/* The hub: a country newsagent's wire rack on newsprint grey. The hub's own words are set in
   one neutral serif; colour on the page comes only from the papers themselves. */
:root {
  color-scheme: light;
  --ground: #e9e6df;
  --ink: #1b1a17;
  --muted: #4d4a43;
  --hair: #bcb7ad;
  --label: #f7f5f0;
  --steel-hi: #f2f0eb;
  --steel: #a8a399;
  --steel-lo: #6c685f;
  --paper-w: 226px;
  --paper-h: 364px;
  --gap: 20px;
  --serif: "Hub Serif", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 18px/1.55 var(--serif); font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ground); padding: 6px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── the hub's own nameplate ─────────────────────────────────────────────────────── */
.hub-head { max-width: 1272px; margin: 0 auto; padding: 34px 20px 6px; }
.hub-head::before { content: ""; display: block; height: 7px; background: var(--ink); margin-bottom: 18px; }
.hub-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.hub-name h1, .hub-name a {
  margin: 0; font: 700 clamp(46px, 7.4vw, 92px)/0.92 var(--serif); letter-spacing: -0.025em;
  font-variation-settings: "opsz" 60; text-decoration: none;
}
.working {
  display: inline-block; transform: rotate(-4deg); border: 1.5px solid var(--ink);
  padding: 5px 9px 4px; font: 600 12px/1 var(--serif); letter-spacing: 0.16em; text-transform: uppercase;
}
.hub-strap { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--ink); max-width: 60ch; font-size: 20px; line-height: 1.4; }
.hub-head--small { padding-top: 18px; padding-bottom: 0; }
.hub-head--small::before { height: 5px; margin-bottom: 12px; }
.hub-head--small .hub-name a { font-size: 34px; }
.hub-head--small .working { font-size: 10.5px; }

/* ── the rack ───────────────────────────────────────────────────────────────────── */
.rack { max-width: 1272px; margin: 0 auto; padding: 30px 20px 10px; }
.rack-sign { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 20px; }
.rack-sign h2 {
  margin: 0; background: var(--ink); color: var(--ground); padding: 7px 14px 6px;
  font: 600 15px/1.1 var(--serif); letter-spacing: 0.12em; text-transform: uppercase;
}
.rack-sign p { margin: 0; font-style: italic; color: var(--muted); font-size: 17px; }

.slots {
  list-style: none; margin: 0; padding: 0 10px; display: flex; flex-wrap: wrap; gap: 34px var(--gap);
  max-width: calc(var(--cols, 5) * (var(--paper-w) + var(--gap)) - var(--gap) + 20px);
}
.slot { position: relative; width: var(--paper-w); display: flex; flex-direction: column; }
/* the back wire between papers: only shows in the gaps */
.slot::before {
  content: ""; position: absolute; z-index: 0; left: calc(var(--gap) / -2 - 2px); top: 26px; height: calc(var(--paper-h) - 40px); width: 4px;
  border-radius: 2px; background: linear-gradient(90deg, var(--steel-lo), var(--steel-hi) 45%, var(--steel));
}

.paper {
  position: relative; z-index: 1; display: block; height: var(--paper-h); overflow: hidden;
  background: var(--p-paper); color: var(--p-ink); text-decoration: none;
  border-top: 5px solid var(--p-accent); padding: 13px 14px 0;
  box-shadow: 0 0 0 0.5px rgba(27, 26, 23, 0.18), 3px 8px 16px -8px rgba(27, 26, 23, 0.55);
  transform: rotate(var(--tilt)); transform-origin: 50% 100%;
  animation: rack-in 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 85ms + 120ms);
}
.paper:hover { transform: rotate(var(--tilt)) translateY(-6px); transition: transform 180ms ease-out; }
.paper:hover .lead { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.plate { display: block; width: 100%; height: 40px; object-fit: contain; object-position: left center; }
.plate--type { height: auto; font: 700 22px/1.05 var(--p-face); }
.dateline {
  display: block; margin: 9px 0 10px; padding: 4px 0 3px;
  border-top: 3px double var(--p-ink); border-bottom: 1px solid var(--p-ink);
  font: 400 11.5px/1.3 var(--serif); letter-spacing: 0.04em;
}
.lead {
  display: block; font-family: var(--p-face); font-weight: 650; line-height: 1.12; letter-spacing: -0.005em;
  text-wrap: pretty; hyphens: manual;
}
.lead--l { font-size: 21px; }
.lead--m { font-size: 19px; }
.lead--s { font-size: 17px; line-height: 1.15; }
.lead--xs { font-size: 15.5px; line-height: 1.17; }
.brief {
  display: block; margin-top: 10px; padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--p-ink) 28%, transparent);
  font: 400 13.5px/1.3 var(--p-face); color: color-mix(in srgb, var(--p-ink) 82%, var(--p-paper));
}

/* the rail and the tray lip: steel across the bottom of every paper, holding the shelf ticket */
.ticket {
  position: relative; z-index: 2; flex: 1; margin: -54px calc(var(--gap) / -2) 0; padding: 18px 12px 12px;
  background: linear-gradient(180deg, #d8d4cb 0, #c3beb4 60%, #b2ada2 100%);
  box-shadow: inset 0 -2px 0 var(--steel-lo), 0 6px 10px -6px rgba(27, 26, 23, 0.45);
  display: flex; flex-direction: column; gap: 2px;
}
.ticket::before {
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 13px; border-radius: 7px;
  background: linear-gradient(180deg, var(--steel-hi) 0, var(--steel) 45%, var(--steel-lo) 80%, var(--steel) 100%);
  box-shadow: 0 2px 3px rgba(27, 26, 23, 0.35);
}
.ticket a, .ticket span { background: var(--label); padding: 0 8px; }
.ticket a { padding-top: 5px; font: italic 600 15px/1.3 var(--serif); overflow-wrap: anywhere; }
/* a long domain breaks at its dots, never mid-word: australianworkplacesafety.com.au split as "...safety.co / m.au" (10 Oct) */
.ticket a.long { font-size: 13px; letter-spacing: -0.01em; }
.ticket span { padding-bottom: 6px; font-size: 13.5px; line-height: 1.3; color: var(--muted); flex: 1; }

@keyframes rack-in {
  from { opacity: 0; transform: translate(-44px, 4px) rotate(-3deg); }
  to   { opacity: 1; transform: rotate(var(--tilt)); }
}
@media (prefers-reduced-motion: reduce) {
  .paper { animation: none; }
  .paper:hover { transition: none; }
}

/* ── the counter: advertisers, sources, press ───────────────────────────────────── */
.desk {
  max-width: 1272px; margin: 34px auto 0; padding: 26px 20px 10px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px;
  border-top: 3px double var(--ink);
}
.desk h2 { margin: 0 0 10px; font: 650 24px/1.15 var(--serif); letter-spacing: -0.01em; }
.desk p { margin: 0 0 14px; }
.desk-col { min-width: 0; }
.desk-stack > section + section { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--ink); }
.plain { list-style: none; margin: 0 0 14px; padding: 0; }
.plain li { padding: 8px 0; border-top: 1px solid var(--hair); }
.table-wrap { overflow-x: auto; }
table.reach { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums lining-nums; }
.reach th, .reach td { text-align: left; padding: 7px 10px 7px 0; border-top: 1px solid var(--hair); vertical-align: baseline; }
.reach thead th { font-weight: 600; font-size: 13.5px; line-height: 1.25; border-top: 0; border-bottom: 1.5px solid var(--ink); }
.reach td:nth-child(2), .reach td:nth-child(3), .reach thead th:nth-child(2), .reach thead th:nth-child(3) { text-align: right; padding-right: 18px; }
.reach td, .reach time { white-space: nowrap; }
.reach td.nil { color: var(--muted); font-style: italic; }
.reach tbody th { font-weight: 400; }
.howlist summary { cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.howlist ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: 15.5px; }
.howlist li { padding: 6px 0; border-top: 1px solid var(--hair); }
.howlist li span { display: block; font-weight: 600; }

.hub-foot { max-width: 1272px; margin: 40px auto 0; padding: 14px 20px 40px; border-top: 1px solid var(--ink); font-size: 15px; color: var(--muted); }
.hub-foot p { margin: 0 0 4px; }
.hub-foot strong { color: var(--ink); }

/* ── a title's own page ─────────────────────────────────────────────────────────── */
.title-main { max-width: 1120px; margin: 0 auto; padding: 22px 20px 0; }
.crumb { margin: 0 0 14px; font-size: 15.5px; }
.crumb a::before { content: "\2190\00a0"; }
.title-paper {
  background: var(--p-paper); color: var(--p-ink); border-top: 7px solid var(--p-accent);
  padding: 28px 32px 22px; box-shadow: 0 0 0 0.5px rgba(27, 26, 23, 0.18), 4px 12px 24px -12px rgba(27, 26, 23, 0.5);
}
.title-paper .plate { height: 64px; width: auto; max-width: 100%; object-position: left center; }
.title-paper h1.plate--type { margin: 0; font-size: 40px; }
.title-tag { margin: 14px 0 0; padding-top: 10px; border-top: 3px double var(--p-ink); font: italic 400 21px/1.35 var(--p-face); }
.title-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; margin-top: 30px; }
.title-grid h2 { margin: 0 0 10px; font: 650 22px/1.2 var(--serif); }
.title-side h2 { font-size: 18px; margin-top: 22px; }
.title-side h2:first-child { margin-top: 0; }
.title-side p { margin: 0 0 10px; font-size: 16.5px; }
.title-side .areas { font-style: italic; }
.fine { font-size: 14.5px !important; color: var(--muted); }
.latest { list-style: none; margin: 0; padding: 0; }
.latest li { padding: 13px 0 14px; border-top: 1px solid var(--hair); }
.latest time { display: block; font-size: 14px; color: var(--muted); margin-bottom: 3px; }
.latest a { font: 600 21px/1.25 var(--p-face); text-decoration: none; }
.latest a:hover { text-decoration: underline; }
.go { margin-top: 16px; font-weight: 600; }
.reach--one th { font-weight: 400; }
.reach--one td { text-align: right; padding-right: 0; }
.links li { padding: 6px 0; }
.nf { font-size: 40px; margin: 30px 0 10px; }
.title-page .hub-head, .title-page .hub-foot { max-width: 1120px; }

/* ── phone: the rack scrolls inside its shelf, the page never does ──────────────── */
@media (max-width: 1000px) {
  .desk { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 760px) {
  :root { --paper-w: 218px; --paper-h: 356px; --gap: 16px; }
  table.reach { font-size: 14.5px; }
  .reach:not(.reach--one) tr > :last-child { display: none; }
  .reach td:nth-child(2), .reach td:nth-child(3), .reach thead th:nth-child(2), .reach thead th:nth-child(3) { padding-right: 10px; }
  body { font-size: 17px; }
  .hub-head { padding: 22px 16px 4px; }
  .hub-strap { font-size: 18px; }
  .rack { padding: 24px 0 6px; }
  .rack-sign { padding: 0 16px; margin-bottom: 16px; }
  .shelf {
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-left: 16px; padding: 8px 0 14px; scrollbar-width: thin;
  }
  .slots { flex-wrap: nowrap; width: max-content; max-width: none; padding: 0 26px 0 26px; }
  .slot { scroll-snap-align: start; flex: none; }
  .desk { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 22px 16px 6px; }
  .hub-foot { padding: 14px 16px 34px; }
  .title-main { padding: 16px 16px 0; }
  .title-paper { padding: 20px 18px 16px; }
  .title-paper .plate { height: 44px; }
  .title-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .latest a { font-size: 19px; }
}
