/* =========================================================================
   Lineaero — public stylesheet
   Written mobile-first. Everything up to the first media query is the phone
   layout. The 40rem layer adds tablet comfort, the 64rem layer introduces the
   real desktop grid (multi-column desks, sidebars, inline navigation), and the
   82rem layer widens the measure. Desktop is designed, not stretched.
   ========================================================================= */

/* --- tokens -------------------------------------------------------------- */
:root {
  --ink: #0B1620;
  --ink-2: #24333F;
  --muted: #5A6B78;
  --rule: #DCE3E8;
  --rule-strong: #B9C5CE;
  --panel: #EEF1F4;
  --paper: #FFFFFF;
  --signal: #C8102E;
  --link: #16405F;

  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: 1.25rem;
  --step-3: 1.5rem;
  --step-4: 1.875rem;
  --step-5: 2.25rem;

  --gap: 1rem;
  --gutter: 1rem;
  --rhythm: 2.25rem;
  --header-h: 3.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--signal); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --- shared pieces ------------------------------------------------------- */
.kicker, .eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: .35rem;
}
.kicker.neutral, .eyebrow { color: var(--muted); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: baseline;
  font-size: var(--step--1);
  color: var(--muted);
}
.meta > * + * { margin-left: .25rem; }
.meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.meta a:hover { color: var(--signal); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer;
  border-radius: 2px;
}
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.icon-btn:hover { color: var(--signal); }

.more-link {
  display: inline-block;
  margin-top: .9rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--link);
}
.more-link:hover { color: var(--signal); }

.empty-state {
  padding: 2.5rem 0;
  color: var(--muted);
  border-top: 2px solid var(--ink);
}

/* --- masthead ------------------------------------------------------------ */
.masthead-utility { display: none; }

.masthead-main {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead-main > .wrap {
  display: flex;
  align-items: center;
  height: var(--header-h);
}
.masthead-main .search-toggle { margin-left: auto; }

.brand { display: block; flex: 1 1 auto; min-width: 0; color: var(--ink); }
.brand svg { height: 1.5rem; width: auto; }
.brand:hover { color: var(--signal); }
.masthead-main .brand { padding-left: .25rem; }

.primary-nav { display: none; }

.header-search {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--panel);
  padding: .75rem 0;
}
.header-search.is-open { display: block; }
.header-search form { display: flex; gap: .5rem; }
.header-search input {
  flex: 1;
  font: inherit;
  padding: .7rem .8rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  border-radius: 2px;
  min-width: 0;
}

/* --- breaking bar -------------------------------------------------------- */
.breaking {
  background: var(--signal);
  color: #fff;
  font-weight: 700;
}
.breaking .wrap {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.breaking p { margin: 0; }
.breaking .label {
  font-size: 0.6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .55);
  padding: .1rem .4rem;
}
.breaking a { color: #fff; font-size: var(--step-0); }
.breaking a:hover { text-decoration: underline; }

/* --- sticky compact bar -------------------------------------------------- */
.sticky-bar { display: none; }

/* --- drawer -------------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--paper);
  overflow-y: auto;
  padding-bottom: 3rem;
  -webkit-overflow-scrolling: touch;
}
.drawer[hidden] { display: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.drawer-search {
  display: flex; gap: .5rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.drawer-search input {
  flex: 1; font: inherit; padding: .75rem .8rem;
  border: 1px solid var(--rule-strong); border-radius: 2px; min-width: 0;
}
.drawer-search button {
  font: inherit; font-weight: 700; padding: .75rem 1rem;
  background: var(--ink); color: #fff; border: 0; border-radius: 2px; cursor: pointer;
}
.drawer nav > ul > li > a {
  display: block;
  padding: .95rem var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.drawer nav ul ul a {
  display: block;
  padding: .7rem var(--gutter) .7rem 2rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--step-0);
}

/* --- lead block ---------------------------------------------------------- */
.lead { margin-bottom: var(--rhythm); }
.lead-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.lead-panel { background: var(--ink); color: #fff; }
.lead-headline {
  background: var(--paper);
  color: var(--ink);
  margin: 0 var(--gutter);
  padding: 1.1rem 1.1rem 1.25rem;
  border-left: 4px solid var(--signal);
  transform: translateY(-1.25rem);
}
.lead-headline h1 { font-size: var(--step-4); }
.lead-headline .deck {
  margin: .6rem 0 .7rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
}

.lead-more { padding: 0 var(--gutter) 1.5rem; margin-top: -.5rem; }
.lead-more li { padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.lead-more li:first-child { border-top: 0; }
.lead-more h2 { font-size: var(--step-2); color: #fff; }
.lead-more h2 a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lead-more .kicker { color: #8FA7B8; }

/* --- section scaffolding ------------------------------------------------- */
.section { margin-bottom: var(--rhythm); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 2px solid var(--ink);
  padding-top: .55rem;
  margin-bottom: 1.1rem;
}
.section-head h2 { font-size: var(--step-3); }
.section-head a {
  font-size: var(--step--1); font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--link); white-space: nowrap;
}

.desk-title {
  font-size: var(--step-3);
  border-top: 2px solid var(--ink);
  padding-top: .55rem;
  margin-bottom: .9rem;
}

/* --- desks (category columns) -------------------------------------------- */
.desks { display: grid; gap: var(--rhythm); margin-bottom: var(--rhythm); }

.desk-figure { display: block; margin-bottom: .7rem; }
.desk-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.desk-lead h3 { font-size: var(--step-2); }

.desk-list { margin-top: 1rem; }
.desk-list li { padding: .8rem 0; border-top: 1px solid var(--rule); }
.desk-list a { font-weight: 700; font-size: var(--step-1); line-height: 1.3; display: block; }

.trending { background: var(--panel); padding: 1rem 1.1rem 1.2rem; }
.trending .desk-title { border-top: 0; padding-top: 0; }
.trending ol { counter-reset: rank; }
.trending li {
  counter-increment: rank;
  display: flex;
  padding: .8rem 0;
  border-top: 1px solid var(--rule-strong);
}
.trending li:first-of-type { border-top: 0; }
.trending li::before {
  content: counter(rank);
  margin-right: .7rem;
  font-weight: 800;
  font-size: var(--step-2);
  color: var(--signal);
  line-height: 1.1;
}
.trending a { font-weight: 700; line-height: 1.35; }

/* --- cards --------------------------------------------------------------- */
.card { display: block; }
.card + .card { margin-top: 1.25rem; }
.card-figure { display: block; margin-bottom: .65rem; }
.card-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card h3 { font-size: var(--step-1); }
.card-body p {
  margin: .45rem 0 .5rem;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.5;
}

.card-row { display: grid; gap: 1.5rem; }
.card-row .card + .card { margin-top: 0; }

/* River: text first, thumbnail to the right — scans fast on a phone. */
.river .card--river {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  gap: .9rem;
  align-items: start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  margin-top: 0;
}
.river .card--river:first-child { border-top: 0; padding-top: 0; }
.card--river .card-figure { order: 2; margin-bottom: 0; }
.card--river .card-figure img { aspect-ratio: 4 / 3; }
.card--river .card-body { order: 1; }
.card--river h3 { font-size: var(--step-1); }
.card--river .card-body p { display: none; }

.card--split {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
}
.card--split .card-figure { margin-bottom: 0; }
.card--split h3 { font-size: var(--step-0); }

.card--text h3 { font-size: var(--step-1); }

/* --- rail (newswire) ----------------------------------------------------- */
.rail li { padding: .8rem 0; border-top: 1px solid var(--rule); }
.rail li:first-child { border-top: 0; padding-top: 0; }
.rail .kicker { margin-bottom: .15rem; font-size: .625rem; }
.rail h3 { font-size: var(--step-0); font-weight: 700; line-height: 1.4; }

/* --- most read ----------------------------------------------------------- */
.most-read .ranked { counter-reset: rank; }
.most-read .ranked li {
  counter-increment: rank;
  display: flex;
  padding: .9rem 0;
  border-top: 1px solid var(--rule);
}
.most-read .ranked li::before {
  content: counter(rank);
  margin-right: .8rem;
  font-size: var(--step-3);
  font-weight: 800;
  color: var(--rule-strong);
  line-height: 1;
}
.most-read .ranked h3 { font-size: var(--step-1); }

/* --- carousel ------------------------------------------------------------ */
.carousel { border-top: 2px solid var(--ink); padding-top: .55rem; }
.carousel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem;
}
.carousel-head h2 { font-size: var(--step-3); }
.carousel-controls { display: flex; }
.carousel-controls .icon-btn + .icon-btn { margin-left: .25rem; }
.carousel-controls .icon-btn { border: 1px solid var(--rule-strong); width: 2.5rem; height: 2.5rem; }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: .5rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { scroll-snap-align: start; }
.carousel-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .6rem; }
.carousel-slide h3 { font-size: var(--step-1); }

.carousel-progress { height: 2px; background: var(--rule); margin-top: .75rem; }
.carousel-progress span { display: block; height: 100%; background: var(--signal); width: 0; transition: width .2s ease; }

/* --- advertisements ------------------------------------------------------ */
.ad { margin: 0 0 var(--rhythm); text-align: center; }
.ad-label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.ad img { margin: 0 auto; }
.ad--sidebar { margin-bottom: 1.5rem; }
.ad-desktop { display: none; }
.ad-mobile { display: block; }

/* --- sidebar layout ------------------------------------------------------ */
.with-sidebar { display: grid; gap: var(--rhythm); }
.sidebar > * + * { margin-top: 1.5rem; }
.panel .desk-title { font-size: var(--step-2); }

/* --- article ------------------------------------------------------------- */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: .4rem;
  font-size: var(--step--1); color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumbs span { color: var(--rule-strong); }

.article-head { padding-top: 1.25rem; }
.article-title { font-size: var(--step-4); }
.article-deck {
  margin: .8rem 0 0;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--ink-2);
}

.article-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 1.1rem 0;
  padding: .9rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
}
.byline-avatar { width: 2.125rem; height: 2.125rem; border-radius: 50%; object-fit: cover; }
.byline-name { font-weight: 700; }
.byline-meta { color: var(--muted); width: 100%; }

.article-hero { margin: 0 0 1.25rem; }
.article-hero img { width: 100%; }
.article-hero figcaption,
.article-body figcaption {
  font-size: var(--step--1);
  color: var(--muted);
  padding-top: .5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .6rem;
}

.article-body {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.66;
  max-width: 38rem;
}
.article-body > p:first-of-type::first-letter {
  float: left; font-size: 3.2rem; line-height: .82; font-weight: 700;
  padding: .18rem .5rem 0 0; font-family: var(--sans);
}
.article-body h2 { font-family: var(--sans); font-size: var(--step-3); margin: 2rem 0 .7rem; }
.article-body h3 { font-family: var(--sans); font-size: var(--step-2); margin: 1.6rem 0 .5rem; }
.article-body a { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.15rem; margin: 0 0 1.1rem; }
.article-body ul li { list-style: disc; margin-bottom: .5rem; }
.article-body ol li { list-style: decimal; margin-bottom: .5rem; }
.article-body blockquote {
  margin: 1.6rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--signal);
  font-family: var(--sans);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.35;
}
.article-body img { margin: 1.5rem 0 0; }
.article-body pre {
  background: var(--panel); padding: 1rem; overflow-x: auto;
  font-size: var(--step--1); line-height: 1.5;
}
.article-body code { font-size: .92em; }

.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0; }
.article-tags a {
  font-size: var(--step--1);
  border: 1px solid var(--rule-strong);
  padding: .35rem .6rem;
  color: var(--ink-2);
}
.article-tags a:hover { border-color: var(--signal); color: var(--signal); }

/* Share rail: a row of targets under the standfirst on a phone, a sticky
   vertical rail beside the copy on a wide screen. */
.share-rail {
  display: flex;
  align-items: center;
  padding: .6rem 0 .9rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}
.share-rail a, .share-rail button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--rule-strong);
  background: transparent; color: var(--ink-2);
  cursor: pointer; border-radius: 2px; padding: 0;
}
.share-rail a + a, .share-rail button { margin-left: .5rem; }
.share-rail svg { width: 1.125rem; height: 1.125rem; }
.share-rail a:hover, .share-rail button:hover { border-color: var(--signal); color: var(--signal); }
.share-rail .is-copied { border-color: var(--signal); color: var(--signal); }

.author-box {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--ink);
  margin-bottom: var(--rhythm);
}
.author-box img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.author-box p { margin: .4rem 0 0; font-size: var(--step--1); color: var(--ink-2); }

/* --- archives, pagination, profiles -------------------------------------- */
.page-head {
  padding: 1.5rem 0 1.25rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.5rem;
}
.page-head h1 { font-size: var(--step-4); }
.page-head p { margin: .6rem 0 0; color: var(--muted); max-width: 42rem; }

.archive-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  gap: .9rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}
.archive-item:first-child { border-top: 0; }
.archive-item figure { order: 2; margin: 0; }
.archive-item figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.archive-item > div { order: 1; }
.archive-item h2 { font-size: var(--step-1); }
.archive-item p { display: none; }

.pagination {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 2rem 0;
}
.pagination a, .pagination span {
  min-width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong); font-weight: 700; font-size: var(--step--1);
}
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

.profile {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.5rem;
}
.profile img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.profile h1 { font-size: var(--step-3); }
.profile .role { color: var(--signal); font-weight: 700; font-size: var(--step--1); }

.grid-3, .grid-4 { display: grid; gap: 1.5rem; }

/* --- prose (static pages) ------------------------------------------------ */
.prose {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.66;
  max-width: 38rem;
}
.prose h2 { font-family: var(--sans); font-size: var(--step-3); margin: 1.8rem 0 .6rem; }
.prose h3 { font-family: var(--sans); font-size: var(--step-2); margin: 1.4rem 0 .5rem; }
.prose ul li { list-style: disc; margin-left: 1.15rem; margin-bottom: .5rem; }
.prose ol li { list-style: decimal; margin-left: 1.15rem; margin-bottom: .5rem; }
.prose a { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }

/* --- search -------------------------------------------------------------- */
.search-form { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.search-form input {
  flex: 1; font: inherit; padding: .8rem;
  border: 1px solid var(--rule-strong); border-radius: 2px; min-width: 0;
}
.search-form button {
  font: inherit; font-weight: 700; padding: .8rem 1.1rem;
  background: var(--ink); color: #fff; border: 0; border-radius: 2px; cursor: pointer;
}
.search-count { color: var(--muted); font-size: var(--step--1); margin-bottom: 1rem; }
.search-result { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.search-result h2 { font-size: var(--step-1); }
.search-result p { margin: .4rem 0 .3rem; color: var(--ink-2); font-family: var(--serif); }

/* --- error pages --------------------------------------------------------- */
.error-page { padding: 3rem 0; text-align: center; }
.error-page .code { font-size: 4rem; font-weight: 800; color: var(--rule-strong); line-height: 1; }
.error-page h1 { font-size: var(--step-3); margin: .5rem 0 .75rem; }
.error-page p { color: var(--muted); }

/* --- footer -------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #A9B7C2;
  padding: 2.5rem 0 1.75rem;
  margin-top: calc(var(--rhythm) * 1.2);
  font-size: var(--step--1);
}
.site-footer a { color: #A9B7C2; }
.site-footer a:hover { color: #fff; }

.footer-masthead { padding-bottom: 1.75rem; }
.footer-masthead .brand { display: block; color: #fff; }
.footer-masthead .brand svg { height: 1.625rem; width: auto; }
.footer-masthead p {
  margin: .9rem 0 0;
  max-width: 30rem;
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.55;
  color: #8B9AA6;
}

/* Three section links with room around them, rather than columns of headlines. */
.footer-desks { display: grid; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-desks a {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-desks .desk-name {
  display: block;
  font-family: var(--sans);
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.footer-desks .desk-note {
  display: block;
  margin-top: .25rem;
  color: #7C8C99;
  line-height: 1.45;
}
.footer-desks a:hover .desk-name { color: var(--signal); }

.footer-bottom { padding-top: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { margin: 0 1.25rem .5rem 0; }
.footer-legal { margin: 0; color: #6F7F8C; }
.footer-legal a { color: #6F7F8C; text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================================
   40rem — roomier phones and tablets
   ========================================================================= */
@media (min-width: 40rem) {
  :root { --gutter: 1.5rem; --rhythm: 2.75rem; }

  .lead-media img { aspect-ratio: 2 / 1; }
  .lead-headline { margin: 0 2rem; padding: 1.4rem 1.6rem 1.5rem; }
  .lead-headline h1 { font-size: var(--step-5); }
  .lead-more { padding: 0 2rem 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .lead-more li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .16); padding: 0 0 0 1rem; }
  .lead-more li:first-child { border-left: 0; padding-left: 0; }
  .lead-more h2 { font-size: var(--step-1); }

  .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .river .card--river { grid-template-columns: minmax(0, 1fr) 9rem; gap: 1.25rem; }
  .card--river .card-body p { display: block; }

  .archive-item { grid-template-columns: minmax(0, 1fr) 11rem; gap: 1.25rem; }
  .archive-item h2 { font-size: var(--step-2); }
  .archive-item p { display: block; margin: .4rem 0 .5rem; color: var(--ink-2); font-family: var(--serif); }

  .carousel-track { grid-auto-columns: 46%; }

  .byline-meta { width: auto; }
  .share span { width: auto; margin-right: .25rem; }

  .footer-desks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-desks a { padding: 1.25rem 1.5rem 1.4rem 0; border-bottom: 0; }
  .footer-desks a + a { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 1.5rem; }
}

/* =========================================================================
   64rem — the desktop layout proper
   ========================================================================= */
@media (min-width: 64rem) {
  :root { --gutter: 2rem; --rhythm: 3.25rem; --header-h: 4.25rem; }

  body { font-size: 1rem; }

  /* Utility strip returns, navigation moves inline, hamburger retires. */
  .masthead-utility {
    display: block;
    background: var(--ink);
    color: #C3CED6;
    font-size: var(--step--1);
  }
  .masthead-utility .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 2.25rem;
  }
  .masthead-utility a { color: #C3CED6; }
  .masthead-utility a:hover { color: #fff; }
  .utility-links { display: flex; }
  .utility-links a + a { margin-left: 1.25rem; }

  .masthead-main { position: static; }
  .masthead-main > .wrap { height: var(--header-h); }
  .primary-nav { margin-left: 2.5rem; }
  .nav-toggle { display: none; }
  .brand { flex: 0 0 auto; }
  .brand svg { height: 1.875rem; }
  .masthead-main .brand { padding-left: 0; }

  .primary-nav { display: block; }
  .primary-nav > ul { display: flex; }
  .primary-nav > ul > li + li { margin-left: 1.5rem; }
  .primary-nav > ul > li { position: relative; }
  .primary-nav > ul > li > a {
    display: block;
    padding: .4rem 0;
    font-size: var(--step-0);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
  }
  .primary-nav > ul > li.is-current > a { border-bottom-color: var(--signal); }
  .primary-nav > ul > li:hover > a { border-bottom-color: var(--rule-strong); }
  .primary-nav ul ul {
    position: absolute; top: 100%; left: -.75rem;
    min-width: 12rem; background: var(--paper);
    border: 1px solid var(--rule); padding: .35rem 0;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease;
    z-index: 70;
  }
  .primary-nav li:hover > ul,
  .primary-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul ul a { display: block; padding: .5rem .75rem; font-size: var(--step-0); }
  .primary-nav ul ul a:hover { background: var(--panel); }

  /* Compact bar appears on scroll — desktop only, JS toggles [hidden]. */
  .sticky-bar {
    display: block;
    position: fixed; top: 0; left: 0; right: 0; z-index: 90;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 2px 10px rgba(11, 22, 32, .08);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .18s ease;
  }
  /* Only in view once the real masthead has scrolled away. Visibility is
     belt-and-braces: an engine that ignores the transform still hides it. */
  .sticky-bar.is-visible { transform: none; visibility: visible; }
  .sticky-bar[hidden] { display: none; }
  .sticky-bar .wrap { display: flex; align-items: center; height: 3.25rem; }
  .sticky-bar nav { margin-left: 2.5rem; }
  .sticky-bar .brand svg { height: 1.375rem; }
  .sticky-bar nav ul { display: flex; }
  .sticky-bar nav li + li { margin-left: 1.25rem; }
  .sticky-bar nav a {
    font-size: var(--step--1); font-weight: 800;
    letter-spacing: .04em; text-transform: uppercase;
  }

  .header-search { border-top: 0; }

  /* Lead: image and panel side by side, headline card overlapping. */
  .lead {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: stretch;
    max-width: 78rem;
    margin: 1.75rem auto var(--rhythm);
    padding: 0 var(--gutter);
  }
  .lead-media { grid-column: 1; }
  .lead-media img { height: 100%; aspect-ratio: auto; min-height: 26rem; }
  .lead-panel { grid-column: 2; display: flex; flex-direction: column; padding: 2rem; }
  .lead-headline {
    margin: 0 0 1.5rem -6rem;
    transform: none;
    padding: 1.5rem 1.75rem 1.6rem;
    box-shadow: 0 2px 24px rgba(11, 22, 32, .16);
  }
  .lead-headline h1 { font-size: var(--step-4); }
  .lead-more { display: block; padding: 0; margin: 0; }
  .lead-more li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); padding: 1rem 0; }
  .lead-more li:first-child { border-top: 0; padding-top: 0; }
  .lead-more h2 { font-size: var(--step-2); }

  /* Three desks plus trending, side by side. */
  .desks {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 15.5rem;
    gap: 2rem;
    align-items: start;
  }
  .desk-lead h3 { font-size: var(--step-2); }
  .trending { position: sticky; top: 4rem; }

  .card-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .with-sidebar { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; }

  .river .card--river { grid-template-columns: minmax(0, 1fr) 13rem; gap: 1.75rem; }

  .archive-item { grid-template-columns: minmax(0, 1fr) 15rem; gap: 2rem; }

  .carousel-track { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); gap: 1.5rem; }

  /* Article: measured column with a share rail and a real sidebar. */
  .article-head { padding-top: 2rem; }
  .article-title { font-size: 2.75rem; }
  .article-layout {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) 18rem;
    gap: 2.5rem;
    align-items: start;
  }
  .share-rail {
    flex-direction: column;
    position: sticky;
    top: 4.5rem;
    border: 0;
    padding: 0;
    margin: .35rem 0 0;
  }
  .share-rail a + a, .share-rail button { margin-left: 0; margin-top: .5rem; }
  .article-body { font-size: 1.125rem; max-width: 40rem; }
  .article-body > p:first-of-type::first-letter { font-size: 3.9rem; }


  .author-box { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .author-box img { width: 4.5rem; height: 4.5rem; }

  .page-head h1 { font-size: 2.5rem; }
  .profile { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .profile img { width: 5.5rem; height: 5.5rem; }

  .prose { font-size: 1.125rem; }

  .ad-desktop { display: block; }
  .ad-mobile { display: none; }

  .site-footer { padding: 3.5rem 0 2.25rem; }
  .footer-masthead { padding-bottom: 2.25rem; }
  .footer-masthead .brand svg { height: 2rem; }
  .footer-desks a { padding: 1.75rem 2.5rem 1.9rem 0; }
  .footer-desks a + a { padding-left: 2.5rem; }
  .footer-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .footer-links { margin-bottom: 0; }
  .footer-links a { margin: 0 1.75rem 0 0; }
}

/* =========================================================================
   82rem — widescreen comfort
   ========================================================================= */
@media (min-width: 82rem) {
  :root { --gutter: 2.5rem; }
  .lead-headline h1 { font-size: var(--step-5); }
  .lead-media img { min-height: 29rem; }
  .desks { gap: 2.5rem; }
}

/* --- motion and print ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .carousel-track { scroll-behavior: auto; }
}

@media print {
  .masthead, .site-footer, .sticky-bar, .drawer, .ad, .share, .sidebar, .carousel { display: none !important; }
  body { font-size: 11pt; }
  .article-body { max-width: none; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
