/* ============================================================
   The Community Journal — design system
   Warm amber-on-ink editorial. Dark-first, both themes tokened.
   ============================================================ */

:root {
  --ink: #F0E7D1;
  --surface: #FAF3E3;
  --surface-2: #E9DFC8;
  --text: #201C13;
  --text-strong: #14110A;
  --muted: #6E6552;
  --faint: #9C9280;
  --line: rgba(32, 28, 19, 0.14);
  --line-strong: rgba(32, 28, 19, 0.28);
  --accent: #B23A5B;
  --accent-soft: rgba(178, 58, 91, 0.13);
  --on-accent: #ffffff;
  --plate: #14130D;
  --plate-text: #EFE8D8;
  --glow: rgba(232, 92, 108, 0.0);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #14130D;
    --surface: #1E1B13;
    --surface-2: #17150E;
    --text: #EDE6D4;
    --text-strong: #FAF4E6;
    --muted: #A99E88;
    --faint: #6F6653;
    --line: rgba(237, 230, 212, 0.13);
    --line-strong: rgba(237, 230, 212, 0.26);
    --accent: #E85C6C;
    --accent-soft: rgba(232, 92, 108, 0.16);
    --on-accent: #3a0f14;
    --plate: #100F0A;
    --plate-text: #EFE8D8;
    --glow: rgba(232, 92, 108, 0.20);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #14130D;
  --surface: #1E1B13;
  --surface-2: #17150E;
  --text: #EDE6D4;
  --text-strong: #FAF4E6;
  --muted: #A99E88;
  --faint: #6F6653;
  --line: rgba(237, 230, 212, 0.13);
  --line-strong: rgba(237, 230, 212, 0.26);
  --accent: #E85C6C;
  --accent-soft: rgba(232, 92, 108, 0.16);
  --on-accent: #3a0f14;
  --plate: #100F0A;
  --plate-text: #EFE8D8;
  --glow: rgba(232, 92, 108, 0.20);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }

.label {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}
.mono { font-family: "Space Mono", ui-monospace, monospace; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1.5px solid var(--line-strong); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px 0 16px; flex-wrap: wrap;
}
.wordmark {
  display: inline-block; text-decoration: none; text-align: left;
  font-family: "Oswald", sans-serif; text-transform: uppercase;
  line-height: 0.84; color: var(--text-strong);
}
.wordmark .l { display: block; }
.wordmark .the { font-weight: 500; font-size: clamp(12px, 1.5vw, 15px); letter-spacing: 0.4em; color: var(--muted); margin: 0 0 0.34em; }
.wordmark .community { font-weight: 700; font-size: clamp(28px, 5vw, 46px); letter-spacing: 0.01em; color: var(--accent); }
.wordmark .journal { font-weight: 700; font-size: clamp(28px, 5vw, 46px); letter-spacing: 0.01em; }
.wordmark .dot { color: var(--accent); }
.masthead-nav { display: flex; align-items: center; gap: 22px; }
.masthead-nav a {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color .15s;
}
.masthead-nav a:hover { color: var(--accent); }
.toggle {
  appearance: none; border: 1.5px solid var(--line-strong); background: transparent;
  color: var(--text); width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: grid; place-items: center; flex: none;
  transition: border-color .2s, transform .2s, color .2s;
}
.toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(-18deg); }
.toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.rule-tick { height: 3px; background: var(--line); position: relative; }
.rule-tick::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 84px;
  background: var(--accent); box-shadow: 0 0 14px var(--glow);
}
.issue-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 0; color: var(--muted); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.issue-bar .mono { letter-spacing: 0.08em; }
.issue-bar b { color: var(--accent); }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.13em; font-size: 12.5px; cursor: pointer;
  padding: 14px 22px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent);
  text-decoration: none; border-radius: 2px; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--accent); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.textlink { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.textlink:hover { border-bottom-color: var(--accent); }

/* ---------- Hero (home + article) ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; padding: 42px 0 56px; }
.eyebrow { color: var(--accent); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
h1.headline {
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(44px, 7.6vw, 92px); line-height: 0.96; letter-spacing: -0.01em;
  margin: 0 0 26px; color: var(--text-strong); text-wrap: balance;
}
h1.headline .bw { font-style: italic; color: var(--accent); }
.standfirst { font-size: clamp(19px, 2.3vw, 23px); line-height: 1.5; color: var(--text); max-width: 36ch; margin: 0 0 28px; }
.byline { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.byline b { color: var(--text); font-family: "Archivo", sans-serif; font-weight: 700; }

.plate { background: var(--plate); border: 1px solid var(--line); padding: 14px 14px 16px; position: relative; box-shadow: 0 30px 70px -40px rgba(0,0,0,0.7); }
.plate::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 120px 20px var(--glow); pointer-events: none; }
.plate img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.plate .cap {
  color: var(--plate-text); opacity: 0.62; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: "Space Mono", monospace;
}

/* ---------- Article ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding: 8px 0 40px; border-top: 1.5px solid var(--line-strong); }
.article { max-width: 66ch; padding-top: 44px; }
.article p { margin: 0 0 1.25em; }
.article a, .preview .preview-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article a:hover, .preview .preview-body a:hover { text-decoration-thickness: 2px; }
.article .lead::first-letter { font-family: "Instrument Serif", Georgia, serif; font-size: 4.6em; line-height: 0.72; float: left; padding: 8px 12px 0 0; color: var(--accent); }
.sec-head { font-family: "Archivo", sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 800; color: var(--accent); margin: 2.4em 0 0.2em; display: flex; align-items: center; gap: 12px; }
.sec-head .n { font-family: "Space Mono", monospace; color: var(--faint); font-weight: 700; letter-spacing: 0; }
.sec-title { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(28px, 4.6vw, 40px); line-height: 1.02; color: var(--text-strong); margin: 0.15em 0 0.7em; font-weight: 400; text-wrap: balance; }
.pull { margin: 1.6em -6% 1.7em; padding: 0 0 0 26px; border-left: 3px solid var(--accent); }
.pull q { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(25px, 4.2vw, 36px); line-height: 1.14; color: var(--text-strong); quotes: none; }
.pull .attr { display: block; margin-top: 14px; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.dossier { position: sticky; top: 24px; border: 1.5px solid var(--line-strong); background: var(--surface); padding: 22px 22px 24px; }
.dossier h2 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; margin: 0 0 4px; color: var(--text-strong); }
.dossier .sub { font-family: "Space Mono", monospace; font-size: 11px; color: var(--accent); margin-bottom: 18px; }
.dossier dl { margin: 0; display: grid; gap: 14px; }
.dossier .row { display: grid; gap: 3px; }
.dossier dt { font-family: "Space Mono", monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.dossier dd { margin: 0; font-family: "Newsreader", serif; font-size: 16px; line-height: 1.35; color: var(--text); }
.dossier .divider { height: 1px; background: var(--line); margin: 4px 0; }
aside.file { padding-top: 44px; }

.offclock { background: var(--surface-2); border-top: 1.5px solid var(--line-strong); border-bottom: 1.5px solid var(--line-strong); padding: 52px 0; }
.offclock .kick { color: var(--accent); margin-bottom: 8px; }
.offclock h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(30px, 5vw, 46px); margin: 0 0 30px; color: var(--text-strong); line-height: 1; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.chip .k { font-family: "Space Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.chip .v { color: var(--text); font-size: 16.5px; line-height: 1.3; }
.chip .v b { color: var(--accent); font-weight: 500; }

.closing { border-top: 1.5px solid var(--line-strong); padding: 70px 0 60px; text-align: center; }
.closing q { font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(30px, 5.6vw, 54px); line-height: 1.08; color: var(--text-strong); quotes: none; display: block; max-width: 20ch; margin: 0 auto 22px; text-wrap: balance; }
.closing .attr { color: var(--muted); font-family: "Archivo", sans-serif; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; }

/* ---------- Share ---------- */
.share { border-top: 1.5px solid var(--line-strong); padding: 26px 0 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.share-label { color: var(--muted); }
.share-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--text); background: transparent; cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s, transform .15s; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.share-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn.copy { width: auto; border-radius: 22px; padding: 0 18px; gap: 8px; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; height: 42px; }
.share-btn.copy.copied { border-color: var(--accent); color: var(--accent); }

/* ---------- Home archive ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1.5px solid var(--line-strong); padding-top: 22px; margin-top: 8px; }
.section-head h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(26px, 4vw, 38px); margin: 0; color: var(--text-strong); }
.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px 26px; padding: 30px 0 60px; }
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--plate); border: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); transition: transform .3s, filter .3s; }
.card:hover .card-img img { transform: scale(1.03); filter: grayscale(0); }
.card .kicker { font-family: "Space Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 25px; line-height: 1.05; margin: 0; color: var(--text-strong); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.empty { padding: 60px 0; color: var(--muted); text-align: center; }

/* ---------- Home: magazine cover + back issues ---------- */
.cover { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(28px, 4.5vw, 60px); align-items: center; padding: clamp(28px, 4vw, 50px) 0 clamp(30px, 4vw, 48px); }
.coverplate { position: relative; background: var(--plate); padding: 14px; box-shadow: 0 40px 80px -46px rgba(0,0,0,0.75); }
.coverplate::after { content: ""; position: absolute; inset: 14px; box-shadow: inset 0 0 120px 16px var(--glow); pointer-events: none; }
.coverplate img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.coverplate .bignum { position: absolute; top: 2px; right: 18px; font-family: "Instrument Serif", serif; font-size: clamp(64px, 12vw, 128px); line-height: 1; color: var(--accent); opacity: 0.95; text-shadow: 0 6px 30px rgba(0,0,0,0.5); pointer-events: none; }
.coverplate .empty-portrait { aspect-ratio: 4 / 5; display: grid; place-items: center; color: var(--faint); font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: radial-gradient(120% 90% at 50% 12%, var(--accent-soft), transparent 60%), #0f0d09; }
.coverplate .cn { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 16px 16px 8px; background: linear-gradient(0deg, rgba(10,9,6,0.92), rgba(10,9,6,0.35) 72%, transparent); }
.coverplate .cn .n { font-family: "Instrument Serif", serif; font-size: clamp(23px, 3.4vw, 30px); color: #fff; line-height: 1; }
.coverplate .cn .r { font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(239,231,214,0.72); margin-top: 6px; }

.rack { border-top: 1.5px solid var(--line-strong); padding-top: 22px; margin-top: 8px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(18px, 2.4vw, 30px); padding: 24px 0 clamp(40px, 5vw, 64px); }
.mini { text-decoration: none; color: inherit; display: block; }
.mini .cov { aspect-ratio: 3 / 4; background: var(--plate); padding: 12px; display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: 0 24px 44px -34px rgba(0,0,0,0.7); transition: transform 0.28s, box-shadow 0.28s; }
.mini:hover .cov { transform: translateY(-6px); box-shadow: 0 34px 54px -34px rgba(0,0,0,0.8); }
.mini .wm { text-align: center; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(239,231,214,0.78); border-bottom: 1px solid rgba(239,231,214,0.2); padding-bottom: 8px; }
.mini .pic { flex: 1; margin: 10px 0; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 12%, var(--accent-soft), transparent 58%), #0b0906; }
.mini .pic img { width: 100%; height: 100%; object-fit: cover; }
.mini .pic .ph { font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.mini .cf .k { font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.mini .cf .n { font-family: "Instrument Serif", serif; font-size: 21px; line-height: 1.02; color: #fff; margin-top: 3px; }
.mini .cf .d { color: rgba(239,231,214,0.6); font-size: 13.5px; line-height: 1.4; margin-top: 6px; }

/* ---------- Forms ---------- */
.page-head { padding: 46px 0 10px; }
.page-head h1 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(38px, 6vw, 62px); line-height: 1; margin: 0 0 16px; color: var(--text-strong); text-wrap: balance; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0; }
.form { padding: 24px 0 70px; max-width: 720px; }
.form-grid { display: grid; gap: 22px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.field { display: grid; gap: 7px; }
.field label { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field .hint { font-size: 13.5px; color: var(--faint); font-family: "Newsreader", serif; }
.field input, .field textarea {
  width: 100%; font-family: "Newsreader", serif; font-size: 17px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 3px; padding: 12px 14px;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .err { color: #d0455f; font-size: 13.5px; }
:root[data-theme="dark"] .field .err, :root:not([data-theme="light"]) .field .err { color: #ff8fa3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #ff8fa3; } }
.check { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--line-strong); padding: 16px; border-radius: 3px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.check label { font-family: "Newsreader", serif; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); font-size: 16px; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }

/* ---------- Write / submission form ---------- */
.write-head { padding-bottom: 4px; }
.write-head .eyebrow { color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.write-head .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.write-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 4.5vw, 64px); align-items: start; padding: 12px 0 84px; }
.write-form { display: flex; flex-direction: column; gap: clamp(30px, 4vw, 44px); max-width: none; padding: 0; }
.form-section { display: flex; flex-direction: column; gap: 20px; }
.fs-head { display: flex; gap: 16px; align-items: baseline; border-top: 1.5px solid var(--line-strong); padding-top: 18px; }
.fs-n { font-family: "Space Mono", monospace; font-size: 13px; font-weight: 700; color: var(--accent); flex: none; }
.fs-head h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1; margin: 0; color: var(--text-strong); }
.fs-head p { margin: 7px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.field label .req { color: var(--accent); margin-left: 2px; }
.field label .opt { opacity: .55; font-weight: 400; letter-spacing: 0; text-transform: none; }

.write-aside { position: sticky; top: 24px; }
.aside-card { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 4px; padding: 24px 24px 26px; }
.aside-card h3 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin: 0 0 4px; color: var(--text-strong); }
.aside-card .sub { font-family: "Space Mono", monospace; font-size: 11px; color: var(--accent); margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 0 0 20px; position: relative; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 2px; width: 1.5px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .n { grid-row: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: "Space Mono", monospace; font-size: 12px; font-weight: 700; display: grid; place-items: center; z-index: 1; }
.steps .t { align-self: center; font-size: 15px; line-height: 1.4; color: var(--text); }
.steps .t b { color: var(--text-strong); font-family: "Archivo", sans-serif; font-weight: 700; font-size: 13.5px; display: block; }
.aside-card .rule { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-family: "Instrument Serif", serif; font-style: italic; font-size: 19px; line-height: 1.28; color: var(--text-strong); }
.field-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.field-foot .hint { margin: 0; }
.wordcount { font-family: "Space Mono", monospace; font-size: 12px; color: var(--faint); white-space: nowrap; }
textarea[data-autogrow] { resize: none; overflow: hidden; min-height: 240px; line-height: 1.6; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt-card { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line-strong); border-radius: 4px; padding: 14px 16px; cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.opt-card:hover { border-color: var(--accent); }
.opt-card input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.opt-card span { font-family: "Newsreader", serif; font-size: 14.5px; line-height: 1.35; color: var(--muted); }
.opt-card span b { display: block; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 13.5px; color: var(--text-strong); margin-bottom: 3px; }
.opt-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.notice { border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--text-strong); padding: 14px 18px; border-radius: 3px; font-size: 16px; }
.notice.warn { border-color: var(--line-strong); background: var(--surface-2); color: var(--muted); }

/* ---------- Consent / thanks / centred pages ---------- */
.centred { max-width: 640px; margin: 0 auto; padding: 70px 0; text-align: center; }
.centred h1 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(34px, 5.5vw, 54px); line-height: 1.02; margin: 0 0 18px; color: var(--text-strong); }
.centred p { color: var(--text); font-size: 18px; margin: 0 auto 16px; max-width: 52ch; }
.consent-card { border: 1.5px solid var(--line-strong); background: var(--surface); padding: 30px; border-radius: 4px; text-align: left; margin: 26px 0; }
.consent-card .peek { font-family: "Instrument Serif", serif; font-size: 26px; color: var(--text-strong); margin: 6px 0 4px; }

/* ---------- Full-page preview banner ---------- */
.preview-bar { position: sticky; top: 0; z-index: 40; background: var(--accent); color: var(--on-accent); text-align: center; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; padding: 10px 18px; }

/* ---------- Article preview (consent + editorial) ---------- */
.preview { border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--surface); padding: 26px clamp(18px, 4vw, 34px) 30px; margin: 22px 0; text-align: left; }
.preview .preview-kicker { font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--accent); margin-bottom: 14px; }
.preview .preview-head { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.02; margin: 0 0 12px; color: var(--text-strong); text-wrap: balance; }
.preview .preview-head .bw { font-style: italic; color: var(--accent); }
.preview .preview-stand { font-size: 18px; line-height: 1.5; color: var(--text); margin: 0 0 10px; }
.preview .preview-byl { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.preview .preview-portrait { max-width: 220px; border: 1px solid var(--line); border-radius: 3px; margin: 0 0 18px; }
.preview .preview-body { max-width: none; padding-top: 18px; border-top: 1px solid var(--line); }
.preview .preview-body p { margin: 0 0 1em; }
.preview .preview-body p:last-child { margin-bottom: 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 880px; padding: 8px 0 80px; }
.legal table { min-width: 0; }
.legal .updated { font-family: "Space Mono", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 26px; }
.legal h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; color: var(--text-strong); margin: 1.7em 0 0.4em; }
.legal p { color: var(--text); font-size: 17px; line-height: 1.62; margin: 0 0 1em; }
.legal ul { padding-left: 1.2em; display: grid; gap: 7px; margin: 0 0 1.2em; }
.legal li { color: var(--text); font-size: 17px; line-height: 1.55; }
.legal a:not(.btn) { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.legal a:not(.btn):hover { border-bottom-color: var(--accent); }
.legal strong { color: var(--text-strong); }
.legal .table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal th { text-align: left; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--line-strong); }
.legal td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: top; line-height: 1.45; }
.legal td .mono { font-family: "Space Mono", monospace; font-size: 13px; color: var(--text-strong); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 660px; margin: 0 auto; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 6px; box-shadow: 0 22px 54px -26px rgba(0,0,0,0.55); padding: 15px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: var(--text); }
.cookie-banner a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.cookie-banner a:hover { border-bottom-color: var(--accent); }
.cookie-banner .btn { flex: none; }
@media (prefers-reduced-motion: no-preference) { .cookie-banner { animation: cookie-up .32s ease; } }
@keyframes cookie-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.subscribe { background: var(--surface-2); color: var(--text); padding: 52px 0; border-top: 1.5px solid var(--line-strong); border-bottom: 1.5px solid var(--line-strong); }
.subscribe .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.subscribe h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; line-height: 1.02; color: var(--text-strong); }
.subscribe p { margin: 0; color: var(--muted); font-size: 16px; }
.subscribe form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 220px; font-family: "Newsreader", serif; font-size: 16px; padding: 13px 15px; border-radius: 3px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); }
.subscribe input::placeholder { color: var(--faint); }
.subscribe input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
footer.foot { padding: 26px 0 42px; color: var(--faint); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; letter-spacing: 0.06em; }
footer.foot .mono { color: var(--muted); }
footer.foot a { color: var(--muted); text-decoration: none; }
footer.foot a:hover { color: var(--accent); }

/* ---------- Admin ---------- */
.admin-top { border-bottom: 1.5px solid var(--line-strong); }
.admin-top .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; gap: 16px; flex-wrap: wrap; }
.admin-brand { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; color: var(--text-strong); display: flex; align-items: center; gap: 10px; }
.admin-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.admin-nav { display: flex; gap: 20px; align-items: center; }
.admin-nav a { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.admin-nav a:hover { color: var(--accent); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; padding: 30px 0; }
.stat { border: 1.5px solid var(--line-strong); background: var(--surface); padding: 18px 20px; }
.stat .num { font-family: "Archivo", sans-serif; font-weight: 900; font-size: 34px; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat .lbl { font-family: "Space Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.table { width: 100%; border-collapse: collapse; margin: 8px 0 40px; }
.table th { text-align: left; font-family: "Space Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1.5px solid var(--line-strong); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.table tr:hover td { background: var(--surface); }
.pill { display: inline-block; font-family: "Space Mono", monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--line-strong); color: var(--muted); }
.pill.good { color: #2f7d4f; border-color: #2f7d4f; }
.pill.wait { color: var(--accent); border-color: var(--accent); }
.pill.bad { color: #b2445a; border-color: #b2445a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.good { color: #7cd6a0; border-color: #4f9d72; } }
:root[data-theme="dark"] .pill.good { color: #7cd6a0; border-color: #4f9d72; }
.admin-h1 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 40px; margin: 26px 0 6px; color: var(--text-strong); }
.rowbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.sm { padding: 8px 14px; font-size: 11px; }
.flash { margin: 18px 0 0; }

/* ---------- Admin rich body editor ---------- */
.editor { border: 1.5px solid var(--line-strong); border-radius: 3px; overflow: hidden; }
.editor .toolbar { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; padding: 8px; background: var(--surface-2); border-bottom: 1.5px solid var(--line-strong); }
.editor .toolbar button { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 11px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 3px; cursor: pointer; transition: border-color .15s, color .15s; }
.editor .toolbar button:hover { border-color: var(--accent); color: var(--accent); }
.editor .toolbar .spacer { flex: 1; }
.editor .toolbar .toggle-preview[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.editor .editor-area { border: 0; border-radius: 0; width: 100%; display: block; }
.editor .editor-area:focus { outline: none; box-shadow: none; }
.editor .editor-preview { padding: 20px 22px; background: var(--surface); min-height: 260px; max-width: none; }
.editor .editor-preview .lead::first-letter { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  .hero .plate { order: -1; }
  .cover { grid-template-columns: 1fr; gap: 30px; }
  .cover .coverplate { order: -1; }
  .standfirst { max-width: none; }
  .feature { grid-template-columns: 1fr; gap: 0; }
  aside.file { padding-top: 8px; }
  .dossier { position: static; margin-bottom: 20px; }
  .article { max-width: none; }
  .pull { margin-left: 0; margin-right: 0; }
  .subscribe .inner { grid-template-columns: 1fr; gap: 18px; }
  .two { grid-template-columns: 1fr; }
  .write-layout { grid-template-columns: 1fr; gap: 30px; }
  .write-aside { position: static; order: -1; }
  .choice { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .wrap { padding: 0 20px; }
  .masthead-nav a:not(.write-cta) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
