/* ================================================================
   BRYME — R3 · "Paper & Forest"
   ----------------------------------------------------------------
   A brand layer, not a second design system.

   bryme-v2.css defines the architecture (tokens, shells, components,
   stacking bands). This file changes what the architecture *is*:
   the paper, the ink, the accent, the display face, the rules.

   Rules this file keeps:
   * Every colour is a token. No new hex belongs in a component.
   * Every text/background pair clears WCAG AA on paper, sheet and
     white, and on the forest footer. Brass is split in two:
       --brass        text-safe brass (5.8:1 on paper)
       --brass-deco   rules, marks, hairlines only (3.1:1, non-text)
   * Typography is two families: Fraunces for display, Inter for
     everything a reader has to work with. Long-form prose keeps the
     text serif — Fraunces is a display face and is not asked to set
     3,000-word essays at 17px.
   * Nothing here removes or renames a class. The markup is unchanged,
     so every route, nav and validator sees the site it already knew.

   Fonts are self-hosted (assets/r3/fonts), latin + latin-ext, declared
   with unicode-range so the naira sign and Yoruba diacritics load only
   on the pages that actually print them.
   ================================================================ */

/* ---------- 1. Typefaces (self-hosted, OFL) ---------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/r3/fonts/fraunces-latin.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+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/r3/fonts/fraunces-latin-ext.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/r3/fonts/inter-latin.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+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/r3/fonts/inter-latin-ext.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;
}

/* ---------- 2. Tokens ---------- */

:root {
  /* paper */
  --paper: #f4efe5;
  --paper-2: #eae3d5;
  --sheet: #fbf8f1;

  /* ink */
  --ink: #252b29;
  --muted: #4a544e;   /* 6.9:1 on paper */
  --dim: #59645d;     /* 5.2:1 on paper, 4.7:1 on paper-2 */

  /* structure — the name stays "navy" so every existing rule keeps working;
     the colour it resolves to is forest. */
  --navy: #26352f;
  --navy-deep: #1b2621;
  --forest: #26352f;
  --forest-deep: #1b2621;

  /* the accent: one brass, two jobs */
  --brass: #7e5230;       /* text and small marks — 5.8:1 on paper */
  --brass-bright: #8a5a33;
  --brass-2: #8a5a33;
  --brass-deco: #b47b50;  /* rules and ornament only — never text */

  /* status — colour means something */
  --green: #1f6b47;
  --red: #9c3b2f;
  --gold: #7e5230;
  --blue: #26352f;
  --accent: #7e5230;
  --lime: #7e5230;
  --lime-bright: #8a5a33;
  --green-dark: #175236;

  /* lines */
  --line: rgba(37, 43, 41, .18);
  --line-strong: rgba(37, 43, 41, .4);
  --rule: rgba(37, 43, 41, .18);
  --rule-2: rgba(37, 43, 41, .34);
  --shadow: 0 1px 2px rgba(37, 43, 41, .05), 0 14px 34px rgba(37, 43, 41, .07);
  --radius: 3px;

  /* type */
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --paper: #131917;
  --paper-2: #0e1412;
  --sheet: #1a211e;
  --ink: #ede7da;
  --muted: #a7b0a9;
  --dim: #949e97;
  --navy: #9dbba9;
  --navy-deep: #0b100e;
  --forest: #9dbba9;
  --forest-deep: #0b100e;
  --brass: #c08a5e;
  --brass-2: #c08a5e;
  --brass-bright: #d09a6c;
  --brass-deco: #b47b50;
  --green: #4fae85;
  --red: #e07a6d;
  --gold: #c08a5e;
  --blue: #9dbba9;
  --accent: #c08a5e;
  --lime: #c08a5e;
  --lime-bright: #d09a6c;
  --green-dark: #6cc39a;
  --line: rgba(237, 231, 218, .15);
  --line-strong: rgba(237, 231, 218, .34);
  --rule: rgba(237, 231, 218, .15);
  --rule-2: rgba(237, 231, 218, .34);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 38px rgba(0, 0, 0, .35);
}

/* ---------- 3. Display face ---------- */

h1, h2, h3, h4,
.mast-brand,
.page-hero h1,
.page-hero h2,
.hero h1,
.card h3,
.dossier h1,
.mega-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 36, "SOFT" 0, "WONK" 0;
  letter-spacing: -.014em;
}

h1, .mast-brand, .page-hero h1, .hero h1, .dossier h1 {
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
  letter-spacing: -.022em;
  font-weight: 600;
}
h2 { font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 0; font-weight: 600; }
h3, .card h3 { font-variation-settings: "opsz" 32, "SOFT" 0, "WONK" 0; font-weight: 600; }
h4 { font-variation-settings: "opsz" 24, "SOFT" 0, "WONK" 0; font-weight: 600; }

/* Prose stays in the text serif: reading comfort beats novelty. */
.prose, .prose p, .prose li, .legal-prose, .legal-prose p, .lede, .standfirst {
  font-family: var(--serif);
}

/* ---------- 4. Masthead ---------- */

.site-head { background: var(--paper); }
.site-head::before { background: var(--forest); }
.mast-brand {
  font-weight: 600;
  letter-spacing: .06em;
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
}
.mast-brand .mast-section {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--brass);
  font-size: .34em;
}
.mast-tag { font-family: var(--display); font-style: normal; font-weight: 400; font-variation-settings: "opsz" 18, "SOFT" 0, "WONK" 0; color: var(--muted); }
.mast-edition, .topline, .mast-tools { font-family: var(--sans); }

/* ---------- 5. Navigation ---------- */

.main-nav a,
.main-nav .nav-desk,
.nav-lbl {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .02em;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--forest); }
.main-nav a[aria-current="page"] { color: var(--forest); }
html[data-theme="dark"] .main-nav a[aria-current="page"] { color: var(--navy); }
/* "Get paid" is both the current page and the filled CTA on the page it
   points at, so the current-page colour must not repaint it: forest text on
   the forest fill measures 1.00:1. The fill keeps its own colours in both
   themes; only the underline mark is dropped. */
.main-nav a.nav-cta,
.main-nav a.nav-cta:hover,
.main-nav a.nav-cta[aria-current="page"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}
html[data-theme="dark"] .main-nav a.nav-cta,
html[data-theme="dark"] .main-nav a.nav-cta:hover,
html[data-theme="dark"] .main-nav a.nav-cta[aria-current="page"] {
  background: var(--brass);
  color: #131917;
}
.main-nav a.nav-cta[aria-current="page"]::after { background: var(--brass-deco); }
.main-nav a[aria-current="page"]::after { background: var(--brass-deco); }
.main-nav .home-link svg { stroke: var(--forest); }
html[data-theme="dark"] .main-nav .home-link svg { stroke: var(--navy); }
.nav-articles-dot { background: var(--brass-deco); }

/* ---------- 6. Buttons and links ---------- */

.btn, .button, .cta, a.btn, button.btn, .btn-primary {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 2px;
  box-shadow: none;
}
.btn-primary, .btn--primary, .cta-primary {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}
.btn-primary:hover, .btn--primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn-ghost, .btn--ghost, .cta-secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--forest);
}

/* ---------- 7. Cards, panels, borders ---------- */

.card, .opp-card, .hub-card, .tool-card, .guide-card, .record-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.card:hover, .opp-card:hover, .hub-card:hover, .tool-card:hover, .guide-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card h3 a, .opp-card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover, .opp-card h3 a:hover { color: var(--brass); }

/* verification badges keep their meaning, gain the new palette */
.verify-badge { border-radius: 2px; font-family: var(--sans); font-weight: 600; letter-spacing: .04em; }
.verify-badge.accepting { color: var(--green); border-color: rgba(31, 107, 71, .35); }
.verify-badge.closed { color: var(--red); border-color: rgba(156, 59, 47, .35); }

/* eyebrow / kicker labels across the site */
.eyebrow, .kicker, .label, .meta-label, .reg-k, .st-today-k {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- 7b. Status dots ----------
   The verification status used to be a colour emoji (🟢 🔴 🟡). Emoji are a
   different typeface on every operating system, they ignore the palette, and a
   green circle is a colour-only signal for anyone who cannot separate it from
   the red one. The dot is drawn in CSS next to the label that spells the status
   out, so colour reinforces the words instead of carrying them alone. */
.vdot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 7px; vertical-align: .08em;
  background: var(--dim);
}
.vdot.is-open { background: var(--green); }
.vdot.is-soon { background: var(--brass-deco); }
.vdot.is-closed { background: var(--red); }
.vdot.is-unknown { background: var(--dim); box-shadow: inset 0 0 0 1.5px var(--paper); }
.verify-badge .vdot { margin-right: 6px; }
.trust-icon .vdot { width: 11px; height: 11px; margin: 0; }

/* The legend. Six statuses, each with the sentence the badge abbreviates. */
.legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 30px; margin: 0 0 26px; }
.legend-item { display: flex; gap: 12px; align-items: flex-start; }
.legend-item .verify-badge { flex: none; margin-top: 2px; }
.legend-item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.legend-notes { max-width: 720px; border-top: 1px solid var(--line); padding-top: 18px; }
.legend-notes p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft, #5a5347); }

/* The ledger section carried the generic 84px of section padding top and
   bottom, which reads as an empty band above the first row and another below
   the last. The rows already have their own 20/22px rhythm. */
section.alt:has(#opp-list) { padding-top: 10px; padding-bottom: 26px; }

/* ---------- 6a. The A-Z rail ----------------------------------------------
   The ledger is 304 full-width rows, 98 screens at 1440px. It cannot be
   paginated: a gate here asserts that a bare URL shows every card, and that
   guarantee is worth more than a shorter page. So the reader gets somewhere
   to jump to instead - a letter rail counted from the records, sticky under
   the site nav, with every letter an anchor to a real section heading. */
.az-rail {
  position: sticky; top: 0; z-index: 6; margin: 0 0 6px;
  padding: 10px 0 8px; background: var(--paper-2);
  border-bottom: 1px solid var(--line-strong, #cbbfa5);
}
.az-rail-h {
  margin: 0 0 7px; font-family: var(--sans); font-size: 10.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.az-rail-h span { font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--dim); }
.az-letters { display: flex; flex-wrap: wrap; gap: 3px; }
.az-letters a {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 6px 2px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--ink); text-decoration: none; border: 1px solid transparent; border-radius: 2px;
}
.az-letters a b { font-size: 9.5px; font-weight: 600; color: var(--dim); }
.az-letters a:hover { border-color: var(--brass); color: var(--brass); }
.az-letters a:hover b { color: var(--brass); }
.az-off {
  display: inline-flex; padding: 3px 6px 2px; font-family: var(--sans);
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: #c4bba8;
}

/* Letter sections. The heading is a small tab, not a headline: it marks the
   boundary in a 98-screen list without competing with the row titles. */
.ledger-group { display: block; }
.ledger-letter {
  position: relative; display: flex; align-items: baseline; gap: 8px;
  margin: 34px 0 6px; padding: 0 0 6px; border-bottom: 2px solid var(--ink);
  font-family: var(--display); font-size: 40px; font-weight: 500; line-height: 1;
  letter-spacing: -.02em; color: var(--ink); scroll-margin-top: 96px;
}
.ledger-letter span {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}
#opp-list .job-card:first-of-type { border-top: 0; }
.ledger-group:first-of-type .ledger-letter { margin-top: 10px; }

/* Jump targets sit below the sticky rail plus the sticky site nav. */
#opp-list .job-card { scroll-margin-top: 104px; }

/* ---------- 6b. The desk: /writing/ ---------------------------------------
   The ledger is a deliberate editorial form - full-width rows, facts in a
   two-column definition list, not a card grid. Kept. What was wrong was
   placement and volume: the 13-control filter sat 2,744px down the page,
   below the hero and the country band, and all 304 rows painted at once.
   Measured: 93,329px of list, 99 screens, single column. */
.opp-filter-sec { padding-top: 0; padding-bottom: 10px; }
section.alt .wrap { padding-left: 0; padding-right: 0; }
/* The ledger rows read better as a two-column paper sheet above 1,000px: the
   badge row and title on the left, the four facts on the right, so a row is
   scanned in one horizontal pass rather than top-to-bottom. */
@media (min-width: 1000px) {
  #opp-list .job-card {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    grid-template-areas: "badges facts" "title facts" "sub facts" "foot facts";
    column-gap: 44px; align-items: start; padding: 20px 0 22px;
  }
  #opp-list .job-card-badges { grid-area: badges; }
  #opp-list .job-card-title { grid-area: title; }
  #opp-list .job-card-sub { grid-area: sub; margin-bottom: 0; }
  #opp-list .pub-facts { grid-area: facts; border-top: 0; align-self: start; }
  #opp-list .job-card-foot { grid-area: foot; margin-top: 6px; padding-top: 8px; }
}

/* ---------- 6c. Guide pages: opening, jump list, checklist ----------
   Measured on how-to-handle-a-rejection at 1440px: the article body started
   187px below the back-link, and the first thing in it was a paragraph with
   no top margin while every following paragraph had 19px. So the guide
   opened with a void, then a paragraph jammed against the next heading.

   .guide-body drops the generic section padding (the hero above already
   supplies the separation) and the prose keeps its own 28-56px top padding,
   which is where the first line should breathe from. */

.section.guide-body { padding-top: 8px; }
.section.guide-body .prose { padding-top: clamp(14px, 2vw, 22px); }
.section.guide-body .prose > :first-child { margin-top: 0; }

/* The jump list. Absolute positioning kept colliding with the prose at some
   widths (a -32px overlap at 1440, because the panel is anchored to the
   section while the prose is a centred 720px measure inside it). A grid
   cannot overlap its own columns, so the section becomes two columns on wide
   screens and the panel needs no position at all. */
.section.guide-body { display: grid; justify-content: center; align-items: start;
  grid-template-columns: minmax(0, 720px) 214px; gap: 0 56px; }
.section.guide-body .prose { margin: 0; }
.section.guide-body > .guide-toc { grid-column: 2; grid-row: 1; margin-top: 26px; }
.guide-toc {
  padding: 16px 18px; border: 1px solid var(--line); background: var(--paper-2);
  font-size: 13.5px; line-height: 1.45;
}
.guide-toc-h {
  margin: 0 0 9px; font-family: var(--sans); font-size: 10.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.guide-toc li { counter-increment: toc; margin: 0; }
.guide-toc li + li { margin-top: 7px; }
.guide-toc a { color: var(--ink); text-decoration: none; }
.guide-toc a::before { content: counter(toc) ". "; color: var(--brass); font-weight: 700; }
.guide-toc a:hover { color: var(--brass); text-decoration: underline; }

/* Below the wide breakpoint there is no second column to occupy, so the same
   list folds flat above the article, two columns of links. */
@media (max-width: 1160px) {
  .section.guide-body { grid-template-columns: minmax(0, 720px); }
  .section.guide-body > .guide-toc {
    grid-column: 1; grid-row: 1; margin: 4px 0 22px;
  }
  .section.guide-body .prose { grid-row: 2; }
  .guide-toc ol { columns: 2; column-gap: 24px; }
  .guide-toc li + li { margin-top: 6px; }
}
@media (max-width: 560px) { .guide-toc ol { columns: 1; } }

/* The checklist. 105 guides carry one and every item is distinct, but they
   rendered as a wall of bullets inside prose. As a bordered list with the
   open box drawn as a box, it reads as something to work through. */
.prose ul.checklist { list-style: none; padding: 16px 20px; margin: 18px 0 22px;
  border: 1px solid var(--line); background: var(--paper-2); }
.prose ul.checklist li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.6; }
.prose ul.checklist li + li { margin-top: 11px; }
.prose ul.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 15px;
  border: 1.5px solid var(--muted); border-radius: 2px; background: var(--paper);
}

/* ---------- 7a. Dossier: the docket reads ---------------------------
   Measured on /writers/writing/the-republic/ at 1440px: the docket notes ran
   to 93 characters a line, because a 118px label column plus 44px of column
   gap inside a 1,200px panel left too little for 13.5px text. 66 is the
   comfortable ceiling. Widening the label column and lifting the notes to
   14.5px brings it to ~66 without touching the two-column grid the rows
   depend on (the gate counts 9 rows and their order).
   Line-height stays generous: this text is scanned for one answer, not read
   through. */
.docket-grid { gap: 0 30px; }
.docket-row { grid-template-columns: 132px minmax(0, 1fr); gap: 0 16px; }
.docket-row dt { font-size: 10px; letter-spacing: .07em; }
.docket-note { font-size: 14.5px; line-height: 1.62; }
.docket-lede { font-size: 15.5px; }
.docket-gaps p { font-size: 14.5px; }
.docket-gaps li { font-size: 14.5px; }

/* The gap summary, where it belongs: a writer decides at the hero whether a
   record is complete enough to act on, not 1,100px further down. This is the
   same count the docket states at its foot, printed once more as a link - not
   a second, independently computed figure that could drift from it. */
.hero-gap {
  margin: 18px 0 0; padding: 11px 15px; max-width: 760px;
  border: 1px solid var(--line-strong, #cbbfa5); border-left: 3px solid var(--brass, #8a6a3b);
  background: var(--paper-3, #efe9dc); font-size: 14.5px; line-height: 1.5;
  color: var(--ink-soft, #5a5347);
}
/* The label leads the sentence rather than sitting over it: as a flex row the
   two halves stacked into a three-line block at 1440px. */
.hero-gap b { color: var(--ink, #1f1c17); font-weight: 700; }
/* Source line: space-between was spreading three short items across 769px,
   which read as three unrelated columns. They are one provenance line. */
.source-line { justify-content: flex-start; flex-wrap: wrap; gap: 10px 16px; }
.hero-gap a { color: inherit; text-underline-offset: 2px; }

/* ---------- 7b. Dossier: how to pitch ----------
   The two lines that answer "where does this go" and "what will catch me"
   carry more weight than the generic advice under them, so they are set as
   an answer rather than a paragraph: a rule down the left, room to breathe,
   and a smaller voice for the next-step links so they read as exits. */
.prose .pitch-lead {
  margin: 0 0 14px; padding: 14px 18px; border-left: 3px solid var(--oak, #6b4f32);
  background: var(--paper-3, #efe9dc); line-height: 1.55;
}
.prose .pitch-lead b { color: var(--ink, #1f1c17); }
.prose .pitch-next {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line, #d9d0bd);
  font-size: 15px; color: var(--ink-soft, #5a5347);
}
.prose .pitch-next a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---------- 7c. Section navs ----------
   A subject bar wider than the screen has to lose an end: 22 links, 2,257px,
   on a 1,440px laptop. site-nav.js parks the current link just inside the
   right edge with the least scroll that does it, so the LEFT edge is where the
   list continues.

   The fade has to live on a wrapper, not on .section-nav::before: a pseudo
   inside a scrolling flex container is a content item, so position:sticky on
   it cannot pin it to the viewport edge and the fade scrolls away with the
   row. The shell is the non-scrolling parent, so its ::before stays put.
   pointer-events off: a hint, not a control. */
.section-nav-shell { position: relative; background: var(--paper-2); }
.section-nav-shell::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 64px; z-index: 2;
  pointer-events: none; opacity: 0; transition: opacity .12s linear;
  background: linear-gradient(270deg, rgba(234, 227, 213, 0), var(--paper-2) 72%);
}
.section-nav-shell.is-scrolled::before { opacity: 1; }
html[data-theme="dark"] .section-nav-shell::before {
  background: linear-gradient(270deg, rgba(14, 20, 18, 0), var(--paper-2) 72%);
}
.section-nav { position: relative; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  .section-nav { scroll-behavior: auto; }
  .section-nav-shell::before { transition: none; }
}

/* ---------- 8. Rules as hierarchy ---------- */

.section-head, .page-hero, .prose h2, .foot-bottom { border-color: var(--line); }
.rule, hr { border-color: var(--line); }
blockquote, .pullquote { border-left: 2px solid var(--brass-deco); }
.prose blockquote p, .pullquote p { font-family: var(--display); font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 1; }

/* ---------- 9. Footer ---------- */

.site-foot {
  background: var(--forest-deep);
  color: var(--paper);
  border-top: 1px solid var(--brass-deco);
}
.site-foot .logo, .site-foot b, .site-foot .foot-col b { color: var(--paper); font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.site-foot a { color: rgba(244, 239, 229, .82); }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.site-foot p, .site-foot .foot-bottom { color: rgba(244, 239, 229, .74); font-family: var(--sans); }
.site-foot .foot-bottom { border-color: rgba(244, 239, 229, .18); }
.site-foot .logo-mark { background: var(--brass-deco); }
html[data-theme="dark"] .site-foot { background: #0b100e; }

/* ---------- 10. Forms and filters ---------- */

input, select, textarea, .input {
  font-family: var(--sans);
  border-radius: 2px;
  border-color: var(--line-strong);
  background: var(--sheet);
  color: var(--ink);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- 11. Print ---------- */

@media print {
  .site-head, .main-nav, .site-foot, .float-nav, #site-drawer { display: none !important; }
  :root { --paper: #fff; --ink: #000; }
}

/* ------------------------------------------------------- destination band --
 * Added for the three-destination relaunch (2026-11): BRYME Flagship,
 * BRYME Articles, BRYME Word Games. The flagship card is deliberately the
 * widest and loudest; gaming is the smallest of the three by design, per the
 * owner's brief that games must not overshadow the writing desk.
 */
.dest-band{display:grid;gap:10px;margin:0 auto 26px;grid-template-columns:1fr}
@media(min-width:620px){.dest-band{grid-template-columns:1.6fr 1fr 1fr}}
.dest-card{display:flex;flex-direction:column;gap:5px;padding:18px 18px 16px;border:1px solid var(--line);border-radius:14px;background:var(--sheet);text-decoration:none;color:inherit;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.dest-card:hover,.dest-card:focus-visible{transform:translateY(-2px);border-color:var(--brass-deco);box-shadow:0 12px 30px rgba(38,53,47,.10)}
.dest-k{font:700 9px/1 var(--sans);letter-spacing:.17em;text-transform:uppercase;color:var(--brass);margin-bottom:3px}
.dest-card b{font:800 17px/1.2 var(--display,Georgia,serif);letter-spacing:-.01em;color:var(--ink)}
.dest-card small{font:400 12.5px/1.5 var(--sans);color:var(--muted)}
.dest-go{margin-top:8px;font:700 11px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--brass)}
.dest-flagship{background:linear-gradient(155deg,var(--forest) 0%,var(--forest-deep) 100%);border-color:var(--forest-deep)}
.dest-flagship b{color:var(--sheet);font-size:21px}
.dest-flagship small{color:#c4cec7}
.dest-flagship .dest-k,.dest-flagship .dest-go{color:var(--brass-deco)}
@media(max-width:619px){.dest-flagship b{font-size:19px}}
/* masthead Play affordance - quiet, brass, never competing with Flagship */
.mast-play{font:800 11px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);text-decoration:none;padding:8px 10px;border-radius:999px}
.mast-play:hover{color:var(--brass);background:var(--paper-2)}
/* On a phone the wordmark and the Flagship pill already crowd the masthead,
   so Play takes the space between them rather than being hidden - hiding it
   removed the only above-the-fold route to the games on the smallest screens. */
@media(max-width:520px){
  .mast-play{font-size:10.5px;letter-spacing:.10em;padding:8px 4px}
  .mast-brand .mast-section{display:none}
}

/* Skip link: the rule lives in bryme-v2.css, which the play shell does not
 * load. Without it the link renders as a visible blue anchor at the top of
 * every game page - an accessibility aid turned into a defect. */
.skip-link{position:fixed;z-index:2147405000;top:10px;left:10px;transform:translateY(-160%);padding:10px 16px;background:var(--forest);color:var(--sheet);font:700 13px/1 var(--sans,system-ui);border-radius:8px;text-decoration:none;transition:transform .18s ease}
.skip-link:focus{transform:none}

/* The masthead kicker ("EST. 2026 · NO POP-UP WINDOWS") measures 492px on a
 * 390px phone and was bleeding off the right edge. It is decorative - the trust
 * claim it makes is repeated in the page body and the footer - so it goes below
 * 560px rather than being allowed to overflow. */
@media(max-width:560px){.mast-in>.kicker,.mast-top .kicker{display:none}}
