/* VR Trend Magazine
   A card layout following the supplied reference: white cards floating on a soft grey page,
   a dark pill navigation bar, one geometric sans, one red accent, and a large corner radius.
   Rules of the system:
   - Geist sets everything. Display sizes are tight and heavy, body copy is regular.
   - Surfaces are white cards with a 20px radius on a soft grey page. Buttons are full pills.
   - One accent, red, on links, active states and the ranking numerals.
   - Dark panels are used for emphasis: the lead, the footer, the statistics. */

@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/geist-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/geist-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --page: #f1f1ef;          /* soft grey the cards float on */
  --card: #ffffff;
  --sunk: #f3f3f1;
  --dark: #15171b;          /* the dark panels */
  --on-dark: #ffffff;
  --ink: #15171b;
  --muted: #5d626a;         /* 6.30:1 on white */
  --faint: #64696f;         /* 5.71:1 on white */
  --line: #e6e6e2;
  --line-strong: #d3d3cd;
  --accent: #d12b1f;        /* 5.15:1 on white */
  --accent-soft: #fdeceb;
  --on-accent: #ffffff;
  --bad: #a4243b;
  --plate: #e7e7e3;
  --shadow: 0 1px 2px rgba(21, 23, 27, .04), 0 10px 30px rgba(21, 23, 27, .06);
  --shadow-lift: 0 2px 6px rgba(21, 23, 27, .06), 0 18px 50px rgba(21, 23, 27, .10);

  --body: "Geist", "Segoe UI", Arial, sans-serif;
  --display: var(--body);
  --r: 20px;
  --r-sm: 12px;
  --gutter: clamp(1rem, 3vw, 2.25rem);
  --measure: 68ch;
  --step: clamp(2.5rem, 5vw, 4rem);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0e1013; --card: #171a1f; --sunk: #1d2127; --dark: #05070a; --on-dark: #ffffff;
  --ink: #eceef1; --muted: #a3aab4; --faint: #9aa1ac; --line: #272c33; --line-strong: #3a414a;
  --accent: #ff6a5c; --accent-soft: #2a1a18; --on-accent: #14171b; --bad: #f0a0ac; --plate: #23272e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 50px rgba(0, 0, 0, .45);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--page); color: var(--ink);
  font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul, figure, form, blockquote, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; background: var(--sunk); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: .75rem; top: .75rem; z-index: 40; background: var(--dark); color: var(--on-dark); padding: .6rem 1rem; border-radius: 999px; }

.display { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }

/* ---------- the floating bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; padding: .9rem 0; }
.topbar::before { content: ""; position: absolute; inset: 0; background: var(--page); opacity: .88; backdrop-filter: blur(10px); z-index: -1; }
.topbar__in { display: flex; align-items: center; gap: 1rem; }
.topbar__brand { display: flex; flex-direction: column; gap: .1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.025em; }
.brand__mark { width: .5rem; height: .5rem; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.dateline { font-size: .625rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* the dark pill in the middle */
.nav { display: flex; gap: .15rem; margin: 0 auto; padding: .3rem; background: var(--dark);
  border-radius: 999px; box-shadow: var(--shadow); }
.nav a { padding: .5rem 1rem; border-radius: 999px; font-size: .8125rem; font-weight: 500;
  color: rgba(255, 255, 255, .66); white-space: nowrap; transition: background-color .18s ease, color .18s ease; }
.nav a:hover { color: #fff; }
.nav a[aria-current] { background: rgba(255, 255, 255, .13); color: #fff; }

.topbar__tools { display: flex; align-items: center; gap: .45rem; margin-left: auto; }
.iconbtn { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  cursor: pointer; transition: border-color .18s ease, transform .12s ease; }
.iconbtn:hover { border-color: var(--line-strong); }
.iconbtn:active { transform: scale(.96); }
.iconbtn svg { width: 1rem; height: 1rem; }
.iconbtn .sun { display: none; }
.iconbtn .moon { display: block; }
:root[data-theme="dark"] .iconbtn .sun { display: block; }
:root[data-theme="dark"] .iconbtn .moon { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.6rem; padding: .6rem 1.25rem;
  border: 1px solid var(--dark); border-radius: 999px; background: var(--dark); color: var(--on-dark);
  font: 500 .875rem/1.2 var(--body); white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease; }
.btn svg { width: .95rem; height: .95rem; flex: none; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 2.4rem; padding: .5rem 1rem; font-size: .8125rem; }
.more { font-size: .875rem; font-weight: 500; color: var(--accent); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- shared marks ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.kicker { display: inline-flex; align-self: flex-start; align-items: center; gap: .4rem; padding: .3rem .75rem;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.label { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.meta { font-size: .8125rem; color: var(--muted); }
.sources { font-size: .8125rem; color: var(--muted); }
.sources b { font-weight: 500; color: var(--ink); }
.deck { color: var(--muted); font-size: .9375rem; line-height: 1.6; text-wrap: pretty; }
.rule { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.rule h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.rule .more, .rule .meta { margin-left: auto; }

/* ---------- the lead, a dark card ---------- */
.lead { padding: var(--step) 0 0; }
.lead__grid { position: relative; border-radius: var(--r); overflow: hidden; background: var(--dark);
  box-shadow: var(--shadow-lift); min-height: 30rem; display: grid; }
.lead__media { grid-area: 1 / 1; }
.lead__media img, .lead__media .plate { width: 100%; height: 100%; min-height: 30rem; object-fit: cover; border-radius: 0; opacity: .55; }
.lead__grid > div { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column;
  justify-content: flex-end; gap: .9rem; padding: clamp(1.5rem, 4vw, 3.25rem);
  background: linear-gradient(to top, rgba(10, 12, 15, .92) 12%, rgba(10, 12, 15, .55) 55%, rgba(10, 12, 15, .25) 100%); }
.lead__title { font-size: clamp(2rem, 1rem + 3.4vw, 3.5rem); color: #fff; max-width: 20ch; }
.lead__title a { color: #fff; }
.lead__deck { color: rgba(255, 255, 255, .82); font-size: 1.0625rem; max-width: 52ch; }
.lead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding-top: .35rem; }
.lead__meta .meta, .lead__meta .sources { color: rgba(255, 255, 255, .7); }
.lead__meta .sources b { color: #fff; }
.lead__meta .filed a { background: rgba(255, 255, 255, .16); color: #fff; }
.lead__meta .filed a:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.lead__meta .corrected { background: rgba(255, 255, 255, .16); color: #fff; }
.lead__actions { margin-top: .4rem; }
.lead__actions .btn { background: #fff; border-color: #fff; color: var(--dark); }
.lead__actions .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- what is in the issue ---------- */
.issue { padding: var(--step) 0 0; }
.ranking { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ranking li { background: var(--card); border-radius: var(--r-sm); box-shadow: var(--shadow); transition: box-shadow .18s ease, transform .18s ease; }
.ranking li:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.ranking a { display: grid; grid-template-columns: 2.5rem 1fr; gap: .9rem; align-items: center; padding: 1.15rem 1.35rem; }
.ranking__n { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: .875rem; font-weight: 600; }
.ranking__name { font-size: 1rem; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }

/* ---------- body column and the feed ---------- */
.body { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: var(--step) 0 0; align-items: start; }
.feed { display: grid; gap: 1rem; }
.row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; align-items: center;
  padding: 1rem; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  transition: box-shadow .18s ease, transform .18s ease; }
.row:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.row__media { order: -1; }
.row__media img, .row__media .plate { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r-sm); }
.row__date { grid-column: 2; font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); }
.row__body { grid-column: 2; padding-right: .5rem; }
.row__body h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.row__body .deck { margin-top: .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem; margin-top: .6rem; }

/* ---------- archive grid ---------- */
.index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tile { display: flex; flex-direction: column; gap: .85rem; padding: 1rem; background: var(--card);
  border-radius: var(--r); box-shadow: var(--shadow); height: 100%;
  transition: box-shadow .18s ease, transform .18s ease; }
.tile:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.tile__media { order: -1; }
.tile__media img, .tile__media .plate { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: var(--r-sm); }
.tile h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.32; letter-spacing: -.02em; text-wrap: balance; }
.tile .deck { margin-top: .3rem; font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile > div { display: flex; flex-direction: column; flex: 1; padding: 0 .35rem .35rem; }
.tile__foot { display: flex; flex-wrap: wrap; gap: .4rem .75rem; margin-top: auto; padding-top: .75rem; }
.pages { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* ---------- one issue ---------- */
.article { padding: var(--step) 0 0; }
.article__head { max-width: 52rem; }
.article__title { font-size: clamp(1.875rem, 1rem + 3vw, 3.125rem); margin: .8rem 0 0; }
.article__standfirst { margin-top: 1rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 54ch; text-wrap: pretty; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1.35rem; }
.article__photo { margin-top: 2rem; }
.article__photo img, .article__photo .plate { aspect-ratio: 21 / 9; object-fit: cover; width: 100%;
  border-radius: var(--r); box-shadow: var(--shadow); }
.caption { margin-top: .7rem; font-size: .75rem; color: var(--faint); }
.caption a { text-decoration: underline; text-underline-offset: 2px; }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 2rem 0 0; align-items: start; }

.prose { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3vw, 2.5rem); font-size: 1.0625rem; line-height: 1.7; max-width: none; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; letter-spacing: -.028em; margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; font-weight: 600; margin-top: 1.6rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote { padding: .9rem 1.2rem; border-radius: var(--r-sm); background: var(--sunk); color: var(--muted); }
.prose strong { font-weight: 600; }

.issue-report { margin-top: 1.5rem; padding: 1rem 1.35rem; background: var(--card);
  border-radius: var(--r); box-shadow: var(--shadow); font-size: .9375rem; color: var(--muted); }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.pager__link { display: block; padding: 1.15rem 1.35rem; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.pager__link:hover { box-shadow: var(--shadow-lift); }
.pager__link-next { text-align: right; }
.pager__title { display: block; margin-top: .3rem; font-size: 1rem; font-weight: 600; line-height: 1.32; letter-spacing: -.02em; }

.draftbar { margin-top: 1.25rem; }
.draftbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.35rem; border-radius: var(--r); background: var(--accent-soft); font-size: .875rem; color: var(--ink); }

.correction { margin-top: 1.5rem; padding: 1.15rem 1.35rem; border-radius: var(--r);
  background: var(--accent-soft); max-width: 52rem; }
.correction .label { color: var(--accent); }
.correction p + p { margin-top: .45rem; font-size: .9375rem; line-height: 1.6; }

/* ---------- sidebar ---------- */
.sidebar { display: grid; gap: 1rem; position: sticky; top: 6rem; }
.panel { padding: 1.35rem; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.panel > .label + * { margin-top: .9rem; }
.panel p { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.panel p + p { margin-top: .7rem; }

.contents li + li { margin-top: .2rem; }
.contents a { display: grid; grid-template-columns: 1.75rem 1fr; gap: .6rem; align-items: center;
  padding: .5rem 0; font-size: .875rem; line-height: 1.4; }
.contents a:hover { color: var(--accent); }
.contents .ranking__n { width: 1.6rem; height: 1.6rem; font-size: .75rem; }

.mini li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: .8rem; align-items: center; padding: .55rem 0; }
.mini li + li { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .25rem; }
.mini li > a:last-child { order: -1; }
.mini h4 { font-size: .875rem; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.mini .meta { display: block; margin-top: .2rem; font-size: .75rem; }
.mini img, .mini .plate { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: 10px; }

.ranked li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .6rem; align-items: center;
  padding: .45rem 0; font-size: .875rem; }
.ranked li + li { border-top: 1px solid var(--line); }
.ranked .ranking__n { width: 1.6rem; height: 1.6rem; font-size: .75rem; }
.ranked__name { color: var(--ink); }
.ranked__count { font-size: .75rem; color: var(--faint); }

.follow { display: flex; flex-wrap: wrap; gap: .5rem; }
.follow a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem;
  border-radius: 999px; background: var(--sunk); font-size: .8125rem; font-weight: 500; }
.follow a:hover { background: var(--accent-soft); color: var(--accent); }
.follow svg { width: .9rem; height: .9rem; }

/* ---------- sections ---------- */
.sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sections a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.5rem;
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  transition: box-shadow .18s ease, transform .18s ease; }
.sections a:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.sections__name { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.025em; }
.sections__blurb { font-size: .875rem; line-height: 1.55; color: var(--muted); }
.sections__count { margin-top: auto; padding-top: .5rem; font-size: .75rem; color: var(--faint); }

.filed { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .75rem; }
.filed a { padding: .2rem .6rem; border-radius: 999px; background: var(--sunk); color: var(--muted); font-weight: 500; }
.filed a:hover { background: var(--accent-soft); color: var(--accent); }
.filed__sep { display: none; }
.corrected { padding: .2rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- pictures ---------- */
.plate { display: flex; flex-direction: column; justify-content: space-between; padding: 1rem;
  background: var(--plate); border-radius: var(--r-sm); }
.plate__date { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.plate__count { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.plate--sm { padding: .6rem; }
.plate--sm .plate__date { font-size: .75rem; }
.plate--sm .plate__count { display: none; }

/* ---------- simple pages ---------- */
.page-head { padding: var(--step) 0 0; }
.page-head h1 { font-size: clamp(1.875rem, 1.1rem + 2.4vw, 2.75rem); margin-top: .8rem;
  font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
.page-head p { margin-top: .85rem; color: var(--muted); max-width: 56ch; }
.narrow { width: min(100% - 2 * var(--gutter), 48rem); margin-inline: auto; }

.reasons { margin-top: 2rem; }
.reasons__list { display: grid; gap: 1rem; margin-top: 1rem; }
.reasons__list > div { padding: 1.25rem 1.35rem; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.reasons__list dt { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.reasons__list dd { margin-top: .3rem; font-size: .9375rem; line-height: 1.6; color: var(--muted); }

.form { margin-top: 2rem; display: grid; gap: 1.25rem; padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .8125rem; font-weight: 500; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--faint); }
.field__hint { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.field__err { font-size: .8125rem; font-weight: 500; color: var(--bad); }
.field input, .field textarea, .field select { width: 100%; min-height: 2.75rem; padding: .65rem .95rem;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--page); color: var(--ink);
  font: 400 .9375rem/1.5 var(--body); transition: border-color .18s ease; }
.field textarea { min-height: 0; resize: vertical; }
.field select { appearance: none; padding-right: 2.25rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 55%, calc(100% - .7rem) 55%;
  background-size: .35rem .35rem, .35rem .35rem; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--accent); outline-offset: 1px; }
.field--bad input, .field--bad textarea, .field--bad select { border-color: var(--bad); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.form__foot .field__hint { margin: 0; }

.notice { margin-top: 2rem; padding: 1.35rem 1.5rem; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.notice h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.notice p { margin-top: .5rem; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.notice code { font-size: .875rem; padding: .1rem .35rem; background: var(--sunk); border-radius: 6px; }
.notice--good { background: var(--accent-soft); box-shadow: none; }
.notice--good p { color: var(--ink); }
.notice--bad { margin-top: 0; padding: .8rem 1.1rem; border-radius: 12px; background: var(--accent-soft);
  box-shadow: none; font-size: .875rem; color: var(--bad); font-weight: 500; }

.onward { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.onward__item { display: block; padding: 1.35rem; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.onward__item:hover { box-shadow: var(--shadow-lift); }
.onward__title { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -.02em; color: var(--accent); }
.onward__note { display: block; margin-top: .3rem; font-size: .875rem; line-height: 1.5; color: var(--muted); }

.search form { margin-top: 1.5rem; max-width: 34rem; }
.search label { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: .45rem; }
.search__row { display: flex; gap: .5rem; }
.search input { flex: 1; min-width: 0; min-height: 2.75rem; padding: .65rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink);
  font: 400 .9375rem var(--body); }
.search input::placeholder { color: var(--faint); }

.empty { padding: calc(var(--step) * 1.1) 0; max-width: 42rem; }
.empty h1 { font-size: clamp(1.875rem, 1.1rem + 2.4vw, 2.75rem); margin-top: .8rem;
  font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
.empty p { margin-top: .85rem; color: var(--muted); }
.empty .btn { margin-top: 1.5rem; }

/* ---------- footer ---------- */
.foot { margin-top: var(--step); padding-bottom: 2.5rem; }
.signoff { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem); background: var(--dark); border-radius: var(--r); color: var(--on-dark); }
.signoff h2 { font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.signoff p { margin-top: .6rem; color: rgba(255, 255, 255, .72); font-size: .9375rem; max-width: 52ch; }
.signoff__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.signoff .btn { background: #fff; border-color: #fff; color: var(--dark); }
.signoff .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.signoff .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.signoff .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.foot__legal { font-size: .75rem; color: var(--faint); max-width: 48ch; }
.foot__legal p + p { margin-top: .3rem; }
.foot__owner { font-size: .8125rem; font-weight: 500; color: var(--ink); }
.foot__owner a:hover { color: var(--accent); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.foot__nav a { font-size: .8125rem; color: var(--muted); }
.foot__nav a:hover { color: var(--accent); }

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
  .body, .article__layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index, .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topbar__in { flex-wrap: wrap; row-gap: .75rem; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px) {
  .ranking { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .row__date, .row__body { grid-column: 1; }
  .row__media img, .row__media .plate { aspect-ratio: 16 / 9; }
  .signoff { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .lead__grid, .lead__media img, .lead__media .plate { min-height: 24rem; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager__link-next { text-align: left; }
  .onward { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .sidebar, .index, .sections { grid-template-columns: minmax(0, 1fr); }
  .dateline__count { display: none; }
  .topbar__cta-rest { display: none; }
  .article__photo img, .article__photo .plate { aspect-ratio: 3 / 2; }
}

/* ---------- print ---------- */
@media print {
  .topbar, .sidebar, .foot, .pager, .draftbar { display: none; }
  body { background: #fff; color: #000; }
  .prose { box-shadow: none; padding: 0; }
}
