:root {
  --ink: #0b1f3a;
  --mist: #eef2f6;
  --paper: #ffffff;
  --line: #d7dee8;
  --quiet: #4f5f73;
  --accent: #007c89;
  --display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Masthead */
.masthead { background: var(--paper); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 26px 32px; }
.wordmark { font: 800 clamp(44px, 8vw, 104px)/1 var(--display); font-stretch: 75%; letter-spacing: -0.015em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--ink); }
.top-actions { display: flex; justify-content: flex-end; align-items: stretch; gap: 12px; }
.btn-outline { display: flex; align-items: center; padding: 0 20px; border: 1px solid var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.search-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.search-btn:hover { border-color: var(--accent); color: var(--accent); }
.strip-search { display: none; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 4px; }
.strip { position: sticky; top: 0; z-index: 5; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-row { display: flex; align-items: center; gap: 12px 24px; min-height: 48px; padding: 0 32px; }
.strip .menu { display: none; }
.brand { font: 800 25px/1 var(--display); font-stretch: 75%; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav { margin: 0 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.strip .nav ul { display: flex; gap: 4px 36px; margin: 0; padding: 0; list-style: none; }
.strip .nav { margin: 0 auto; }
.nav a { font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav .nav-current a { color: var(--accent); }
.menu { position: relative; }
.menu summary { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 24px; height: 24px; list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 100%; height: 2px; background: var(--ink); }
.menu-panel { position: absolute; top: 34px; left: 0; z-index: 10; min-width: 220px; padding: 12px 18px; background: var(--paper); border: 1px solid var(--line); }
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.menu-panel a { display: block; padding: 7px 0; font-weight: 500; text-decoration: none; }
.btn { display: inline-block; background: none; color: var(--ink); border: 1px solid var(--ink); padding: 10px 18px; font: 600 15px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Covers: section-coloured type until a story has its own licensed image */
.cover, .cover-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cover { position: relative; overflow: hidden; background: var(--mist); color: var(--ink); container-type: inline-size; }
.cover span { position: absolute; left: 5cqw; bottom: 3cqw; right: 5cqw; font: 800 9cqw/0.95 var(--display); font-stretch: 75%; letter-spacing: -0.01em; }

/* Shared story text */
a:hover > .card-title, a:hover .card-title, a:hover .lead-title, a:hover .feature-title, .numbered a:hover, .box-light a:hover h4 { color: var(--accent); }
.card a, .lead a, .kicked a, .thumb-row a, .feature a, .box a { display: block; text-decoration: none; }
.card-title { margin: 12px 0 8px; font: 500 19px/1.3 var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.byline { display: block; font-size: 14px; font-weight: 600; }
.kicker { margin: 14px 0 6px; font-size: 14px; font-weight: 500; }
.kicker::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; background: var(--ink); }
.lead-title { margin: 0 0 12px; font: 700 clamp(30px, 3.6vw, 46px)/1.14 var(--body); letter-spacing: -0.02em; }
.lead-excerpt { margin: 0 0 12px; font-size: 16px; line-height: 1.45; }

/* Section titles: oversized, centered, one word boxed */
.block { padding-top: 44px; padding-bottom: 28px; }
.giant { margin: 0 0 28px; text-align: center; font: 800 clamp(48px, 8.5vw, 112px)/1 var(--display); letter-spacing: -0.035em; }
.giant a { text-decoration: none; }
.giant em { color: var(--accent); font-style: normal; }
.tab { display: inline-block; margin: 0 0 8px; font: 800 22px var(--display); }
.tab a { text-decoration: none; }

/* Top Picks */
.picks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); gap: 28px; align-items: start; padding-top: 34px; padding-bottom: 20px; }
.picks-label { margin: 0; font: 800 clamp(48px, 6.2vw, 84px)/0.98 var(--display); letter-spacing: -0.03em; }
.picks-label span { display: block; }
.picks-label span::after { content: ""; display: inline-block; width: 0.28em; height: 0.28em; margin-left: 0.1em; background: var(--accent); }
.picks-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.picks-cards .byline { display: none; }

/* Lead with side list */
.daily { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; }
.thumb-row { border-bottom: 1px solid var(--line); }
.thumb-row a { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 14px; padding: 14px 0; }
.thumb-row .card-title { margin: 0 0 8px; font-size: 17px; }
.thumb-row .cover, .thumb-row .cover-img { aspect-ratio: 1; }
.thumb-row .cover { display: none; }
.thumb-row a:has(> .cover) { grid-template-columns: minmax(0, 1fr); }
.lead .cover { display: none; }
.thumb-row .cover-img { aspect-ratio: 1; }
.lead:has(> a > .cover) .kicker { margin-top: 0; }
.subscribe { margin-top: 22px; padding: 18px; border: 1px solid var(--line); }
.subscribe h2 { margin: 0 0 14px; font: 500 21px/1.25 var(--body); }
.subscribe-row { display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe input { flex: 1 1 150px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 15px var(--body); }
.subscribe-ok, .subscribe-err { display: none; margin: 8px 0 0; font-size: 15px; }
.subscribe.success .subscribe-ok, .subscribe.error .subscribe-err { display: block; }
.subscribe.loading .btn { opacity: .6; }

/* Side cards, center lead, right column */
.three { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.three-side { display: flex; flex-direction: column; gap: 24px; }
.kicked { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.kicked .kicker { margin-top: 0; }
.three-main.centered .lead-title, .three-main.centered .kicker, .three-main.centered .lead-excerpt, .three-main.centered .byline { text-align: center; }
.three-list .subscribe { margin-top: 0; }

/* Text beside picture, small rows below */
.feature a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.feature .cover { display: none; }
.feature .cover-img { aspect-ratio: 16 / 9; }
.feature a:has(> .cover) { grid-template-columns: minmax(0, 1fr); text-align: center; }
.feature-title { margin: 0 0 12px; font: 700 clamp(28px, 2.9vw, 38px)/1.16 var(--body); letter-spacing: -0.02em; }
.feature-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 22px; }
.feature-rows .thumb-row a:has(> .cover-img) { grid-template-columns: 110px minmax(0, 1fr); }
.feature-rows .thumb-row a > div:first-child { order: 2; }

/* Section shelves: one layout for every section */
.shelf { padding-top: 40px; padding-bottom: 8px; }
.shelf-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.shelf-head h2 { margin: 0; font: 800 clamp(28px, 3.4vw, 40px)/1 var(--display); letter-spacing: -0.025em; }
.shelf-head h2 a { text-decoration: none; }
.shelf-head h2 a:hover { color: var(--accent); text-decoration: none; }
.shelf-more { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.shelf-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.shelf-cards .card-title { font-size: 18px; }

/* Spotlight: interviews get a band of their own */
.spotlight { margin-top: 40px; padding: 36px 0 44px; background: var(--mist); }
.spotlight .shelf-head { flex-wrap: wrap; }
.spotlight-note { font-size: 15px; color: var(--quiet); }
.spotlight-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.voice a { display: block; text-decoration: none; }
.voice .cover, .voice .cover-img { aspect-ratio: 4 / 3; }
.voice-title { margin: 6px 0 8px; font: 700 23px/1.2 var(--display); letter-spacing: -0.015em; }
.voice-excerpt { margin: 0; font-size: 15px; line-height: 1.45; color: var(--quiet); }
.voice a:hover .voice-title { color: var(--accent); }

/* Discover More */
.discover-head { margin: 0 0 24px; text-align: center; font: 500 34px/1.1 var(--body); }
.discover { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.box { margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); }
.box h4 { margin: 0 0 10px; font: 500 19px/1.3 var(--body); }
.box p { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.box-dark { background: var(--mist); border-color: var(--mist); }
.box a:hover h4 { color: var(--accent); }
.numbered { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.numbered li { counter-increment: rank; position: relative; padding: 12px 0 12px 32px; font-size: 18px; line-height: 1.3; }
.numbered li::before { content: counter(rank); position: absolute; left: 0; top: 10px; font-size: 24px; color: var(--accent); }
.numbered a { text-decoration: none; }
.numbered-cover { display: none; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.latest { padding-top: 32px; padding-bottom: 56px; }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; font-size: 14px; color: var(--quiet); }
.tagname { color: var(--accent); font-weight: 600; text-decoration: none; }
.pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; font-size: 15px; color: var(--quiet); }

/* Archive */
.archive { padding-top: 48px; }
.archive h1 { margin: 0 0 8px; font: 800 clamp(36px, 6vw, 64px)/1 var(--display); letter-spacing: -0.03em; }
.archive p { margin: 0; color: var(--quiet); }

/* Article */
.article { padding: 48px 32px 72px; }
.article-head, .article-body { max-width: 720px; margin: 0 auto; }
.article-title { margin: 8px 0 18px; font: 800 clamp(34px, 5.4vw, 58px)/1.03 var(--display); letter-spacing: -0.03em; }
.article-brief { margin: 0 0 28px; font-size: 21px; line-height: 1.45; }
.article-image { max-width: 960px; margin: 0 auto 32px; }
.article-image img { display: block; width: 100%; height: auto; }
.article-image figcaption { margin-top: 8px; font-size: 14px; color: var(--quiet); }
.article-body { font-size: 19px; line-height: 1.7; }
.article-body > p:first-child::first-letter { float: left; margin: 0.08em 0.08em 0 0; font: 800 3.4em/0.82 var(--display); color: var(--accent); }
.article-body h2 + p { margin-top: 0; }
.article-body h2 { margin: 36px 0 10px; font: 700 26px/1.15 var(--display); letter-spacing: -0.02em; }
.article-body h3 { margin: 28px 0 8px; font: 650 21px/1.2 var(--display); }
.article-body a { color: var(--accent); font-weight: 500; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { margin: 20px 0; padding-left: 16px; border-left: 3px solid var(--accent); }
.article-body pre { overflow-x: auto; padding: 14px; border-radius: 8px; background: var(--mist); font: 14px/1.5 var(--mono); }
.article-body code { font: 0.9em var(--mono); }
.article-body img { max-width: 100%; height: auto; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; }
.article-body th, .article-body td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.kg-width-wide { width: min(1000px, calc(100vw - 64px)); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* Footer */
.footer { margin-top: 40px; background: var(--mist); color: var(--quiet); font-size: 15px; line-height: 1.5; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.4fr); gap: 40px; padding-top: 44px; padding-bottom: 36px; }
.footer-mark { display: block; margin-bottom: 12px; color: var(--ink); font: 800 42px/0.95 var(--display); font-stretch: 75%; text-transform: uppercase; text-decoration: none; }
.footer p { margin: 0 0 8px; }
.footer a { color: var(--ink); }
.footer a:hover { color: var(--accent); }
.footer-col h2 { margin: 0 0 12px; color: var(--ink); font: 700 16px var(--body); }
.footer-col ul { display: grid; gap: 8px; margin: 0; padding: 0; overflow: visible; list-style: none; }
.footer-col ul a { text-decoration: none; }
.footer-help { font: 800 34px/1 var(--display); }
.footer-help a { color: var(--accent); text-decoration: none; }
.footer .subscribe { margin: 0; padding: 0; border: 0; }
.footer .subscribe h2 { display: none; }
.footer .subscribe input { background: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 1000px) {
  .shelf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .picks-label span { display: inline; }
  .three { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .three-list { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .topbar { padding: 14px 16px; grid-template-columns: auto 1fr auto; }
  .wordmark { font-size: 30px; justify-self: center; }
  .btn-outline { padding: 0 12px; font-size: 14px; }
  .search-btn { display: none; }
  .strip-row { padding: 0 16px; }
  .brand { font-size: 22px; }
  .strip-search { display: block; }
  .nav { margin: 0; flex: 1; }
  .nav ul { gap: 4px 20px; }
  .nav a { font-size: 15px; }
  .picks-cards, .shelf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .spotlight-cards { grid-template-columns: minmax(0, 1fr); }
  .shelf { padding-top: 28px; }
  .daily, .three, .feature a, .feature-rows, .card-grid { grid-template-columns: minmax(0, 1fr); }
  .three-main { order: -1; }
  .feature a > div { order: 2; }
  .giant { margin-bottom: 18px; }
  .block { padding-top: 30px; padding-bottom: 14px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 30px; padding-bottom: 26px; }
  .footer-base { padding-top: 14px; padding-bottom: 18px; }
  .article { padding: 28px 16px 48px; }
  .kg-width-wide { width: calc(100vw - 32px); }
}

/* Story cards change colour on hover; an underline would cut through headlines */
.card a:hover, .lead a:hover, .kicked a:hover, .thumb-row a:hover, .feature a:hover, .box a:hover, .numbered a:hover, .giant a:hover, .desk-label a:hover, .wordmark:hover, .brand:hover, .footer-mark:hover, .btn:hover, .btn-outline:hover, .nav a:hover, .tab a:hover, .tagname:hover { text-decoration: none; }
