/* ============================================================
   AN UNSOLICITED WORD: visual identity. Site-specific.

   WHO THIS IS FOR
   Readers who've grown tired of corporate media and want to hear
   from people who answer to their audience, across a range of
   views, and who'd rather pay a writer directly than scroll.

   WHAT THE DESIGN HAS TO SAY
   An editor's desk: letterpress type on cream paper, a red pencil
   for what matters, and plain proof on every card. Serious, fair
   and a little old-school, never partisan in color or tone.

   SIGNATURES
   The "Who pays for it, in their words" stamp on every voice card.
   A big open quote mark as the brand. Beats as a table of contents
   with counts. Red-pencil labels.

   COLOR
   Cream paper and card, ink black, red pencil for labels and
   quotes, a blue-black ink for links. Deliberately not red-versus-
   blue as a pair. Every text pair is checked by the build script.

   TYPE
   Libre Caslon Display and Text for headings and quotes: classic
   printed-page type. Inter Tight for reading and details.
   ============================================================ */

:root {
  --paper:      #f6f3ec;
  --card:       #fffdf8;
  --ink:        #1a1a1a;
  --ink-soft:   #55524b;
  --red:        #a8231b;
  --blue:       #1f3f7a;
  --stamp-wash: #f7e4e1;
  --dark:       #1a1a1a;
  --on-dark:    #e0ddd6;
  --pale:       #f2b8b2;
  --line:       #e3ddd0;

  --accent:     var(--ink);
  --accent-ink: #ffffff;
  --focus:      #1f3f7a;
  --measure:    66ch;

  --display: 'Libre Caslon Display', Georgia, 'Times New Roman', serif;
  --serif:   'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --body:    'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[hidden] { display: none !important; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); }
.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 0.6rem; }
h3 { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; line-height: 1.2; margin-bottom: 0.3rem; }
p + p { margin-top: 0.8rem; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.kicker { font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; }
.fine { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.8rem; }

.site-header { background: var(--paper); border-bottom: 3px double var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-family: var(--display); font-size: 1.6rem; color: var(--ink); text-decoration: none; }
.mark { font-family: var(--display); font-size: 2.6rem; line-height: 0.6; color: var(--red); margin-top: 0.7rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--red); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }

main { padding-block: 3rem 4rem; }
.hero { padding-bottom: 1rem; }
.hero h1 { max-width: 16ch; margin-bottom: 0.9rem; }
.section { margin-top: 3.25rem; }

.beats { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); max-width: 52rem; }
.beats li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--ink-soft); padding: 0.4rem 0; max-width: none; }
.beats a { font-family: var(--serif); font-size: 1.15rem; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.beats a:hover { text-decoration: underline; }
.n { font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }

.voices { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); margin-top: 1rem; }
.voice { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 1.1rem 1.2rem 1rem; display: flex; flex-direction: column; }
.beat { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 0 0 0.3rem; }
.stamp { margin: 0.9rem 0 0; background: var(--stamp-wash); border-left: 4px solid var(--red); padding: 0.7rem 0.9rem; }
.stamp p { max-width: none; font-family: var(--serif); font-style: italic; }
.stamp .stamp-label { font-family: var(--body); font-style: normal; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin: 0 0 0.2rem; }
.stamp .stamp-src { font-family: var(--body); font-style: normal; font-size: 0.875rem; margin-top: 0.3rem; }
.where { list-style: none; margin: 0.8rem 0 0; padding: 0; font-size: 0.95rem; }
.where li { padding: 0.35rem 0; border-top: 1px solid var(--line); max-width: none; overflow-wrap: anywhere; }
.k { display: inline-block; min-width: 4.3rem; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

.rules { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; counter-reset: r; max-width: 50rem; }
.rules li { counter-increment: r; position: relative; background: var(--card); border: 1px solid var(--line); padding: 1rem 1.1rem 1rem 4rem; max-width: none; }
.rules li::before { content: counter(r); position: absolute; left: 1.1rem; top: 0.6rem; font-family: var(--display); font-size: 2.4rem; color: var(--red); line-height: 1; }
.panel { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: clamp(1.2rem, 3vw, 1.9rem); }
.panel ul { padding-left: 1.2rem; }
.panel li { margin-bottom: 0.45rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.3rem; background: var(--ink); color: #ffffff; border: 2px solid var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: var(--body); }
.btn:hover { background: var(--red); border-color: var(--red); color: #ffffff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.prose h2 { margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.prose li { margin-bottom: 0.45rem; }
.signup { display: grid; gap: 0.6rem; max-width: 26rem; margin-top: 1rem; }
.signup label { font-weight: 700; }
.signup input { padding: 0.6rem 0.9rem; border: 2px solid var(--ink); background: #ffffff; font: inherit; }
.signup button { justify-self: start; }

.site-footer { background: var(--dark); color: #ffffff; margin-top: 2rem; padding-block: 2.5rem 3rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-footer h2 { font-family: var(--body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pale); margin-bottom: 0.5rem; }
.site-footer p { color: var(--on-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #ffffff; display: inline-block; padding-block: 0.3rem; }
.site-footer a:hover { color: var(--pale); }
.site-footer .fine { color: var(--on-dark); margin-top: 2rem; }
.site-footer :focus-visible { outline-color: var(--pale); }

@media (forced-colors: active) { .voice, .stamp, .rules li, .panel, .btn { border: 1px solid; } }
