/* Cassie May brand layer, 2026. Loads after site.css and re-dresses it.
   Ink and limestone carry it. Lake blue is the one thing to click. Copper sparks, gold diamonds. */

:root {
  --paper: #f5f2e6;
  --paper-deep: #e9e5d6;
  --chip: #e1ddcc;
  --chip-hover: #d6d1bf;
  --ink: #171710;
  --soft: #4a4940;
  --rule: rgba(23, 23, 16, 0.3);
  --lake: #1d4b59;
  --merced: #286f6a;
  --moss: #424727;
  --lichen: #e1e8c6;
  --gold: #c4a139;
  --copper: #c0692f;
  --on-copper: #fbf8f2;
  --band-bg: #1a1d1b;
  --band-ink: #ece8de;
  --band-lake: #8fc0cc;
  --band-soft: #c9c5b9;
  --serif: Archivo, "Helvetica Neue", Arial, sans-serif;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wide: "Lexend Exa", Archivo, system-ui, sans-serif;
  --mono: "Courier Prime", ui-monospace, Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  --paper: #13140f;
  --paper-deep: #1c1d17;
  --chip: #26271f;
  --chip-hover: #313228;
  --ink: #ece8de;
  --soft: #c9c5b9;
  --rule: rgba(236, 232, 222, 0.28);
  --lake: #8fc0cc;
  --merced: #5fb3ad;
  --moss: #7d8550;
  --copper: #d98a4e;
  --on-copper: #13140f;
  --band-bg: #202421;
}

/* Type: solid, no curls */
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; }
.letter { font-size: clamp(1.12rem, 1.8vw, 1.35rem); line-height: 1.7; }
.letter .hello, .out-there, .sign { font-style: normal; }
.out-there { font-weight: 600; }
.mark { display: inline-flex; flex-shrink: 0; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.02em; }
.mark img { width: 2.6rem; height: auto; transform: rotate(-4deg); filter: var(--ink-filter); }
.nav-link, .anvil-link { font-family: var(--wide); font-style: normal; font-size: .72rem; letter-spacing: .16em; }
.anvil-link svg { fill: var(--copper); }
.register-rows dd { font-style: normal; font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
.signup-body p { font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
.bigname { font-weight: 700; letter-spacing: -.045em; }
/* The name already sits in the header and footer, so the map band drops it visually. It stays the page h1 for screen readers and search. */
.namefield .bigname { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-footer .sign-off { font-style: normal; font-weight: 700; font-size: 1.35rem; color: var(--copper); }

/* Chips: gold diamond, lake dotted underline */
.chip .lead::before, .chip.no-lead::before { background: var(--gold); }

/* The one button: lake blue, square, wide caps */
.button { min-height: 48px; padding: .9rem 1.4rem; background: var(--lake); color: var(--paper); font-family: var(--wide); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.button:hover { filter: none; opacity: .88; }
.text-link { color: var(--ink); font-weight: 600; text-decoration-color: var(--lake); text-decoration-thickness: 2px; }

/* The why paragraph gets a hot copper edge */
.letter .why { border-left: 3px solid var(--copper); }

/* Vest stitching on the register and the signup card */
.register, .signup-card { position: relative; border-width: 1.5px; }
.register::after, .signup-card::after { content: ""; position: absolute; inset: 5px; border: 1px dashed var(--rule); pointer-events: none; }
.register-head { position: relative; z-index: 1; }
.register-head span:last-child::before { content: ""; display: inline-block; width: .45em; height: .45em; margin-right: .6em; background: var(--copper); transform: rotate(45deg); vertical-align: .1em; }
.pearls { display: flex; gap: 6px; padding: 0 .9rem .9rem; }
.pearls i { width: 8px; height: 8px; border-radius: 50%; background: #f4f1ea; box-shadow: 0 0 0 1px var(--soft); }

/* Margin note: typewriter on lichen paper, taped on */
.margin-note { display: inline-block; position: relative; margin: 1.5rem 0 0; padding: .7rem .95rem; max-width: 24rem; background: var(--lichen); color: #171710; font-family: var(--mono); font-size: .95rem; line-height: 1.45; transform: rotate(-1.5deg); box-shadow: 0 0 0 1px rgba(23,23,16,.18); }
.letter .margin-note { color: #171710; } /* stays ink on lichen in dark mode too */
.margin-note::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .55em; background: var(--copper); transform: rotate(45deg); vertical-align: .05em; }
.margin-note::after { content: ""; position: absolute; top: -10px; left: 50%; width: 58px; height: 18px; margin-left: -29px; background: #8fc0cc; opacity: .7; transform: rotate(4deg); }

/* The map band: forge black, grain, the anteater stamped on */
.namefield { position: relative; }
.namefield::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.namefield .wrap { position: relative; }
.namefield .stamp { width: clamp(8rem, 16vw, 12rem); transform: rotate(-4deg); filter: invert(1) brightness(.93); align-self: center; }
.namefield .eyebrow { display: block; margin: 0 0 .9rem; font-family: var(--wide); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.namefield .map-caption { color: var(--band-soft); }

/* Topo: the contour map is part of the brand.
   How to use: put <canvas class="topo" aria-hidden="true"></canvas> on a page that loads site.js
   and it draws itself. On paper it prints lake lines with ink index lines. Inside a dark band
   (like .namefield) it reverses on its own, because the tokens are set on .topo and read the
   --lake / --ink / --paper of wherever it sits. To restyle one map, override a --topo-* token
   on that canvas. Keep it to the palette: lake, ink and paper. Copper only marks the pin.
   Line style: thin minor contours, a heavier index line every 5th, elevation numbers in
   Courier Prime set in a paper gap on the index lines, like a USGS quad. */
.topo {
  --topo-line: var(--lake);          /* minor contours */
  --topo-index: var(--ink);          /* every 5th line and the summits */
  --topo-label: var(--ink);          /* elevation numbers */
  --topo-label-bg: var(--paper);     /* the gap behind a number */
  --topo-pin: var(--copper);         /* the marker where you tap */
  --topo-line-width: 0.8;            /* px */
  --topo-index-width: 1.2;           /* px */
  --topo-line-alpha: 0.4;
  --topo-index-alpha: 0.55;
  --topo-font: var(--mono);
}

@media (max-width: 820px) {
  .namefield .stamp { align-self: flex-start; }
  .mark img { width: 2.2rem; }
}
@media (max-width: 520px) {
  .mark img { display: none; }
  .nav-link, .anvil-link { font-size: .66rem; letter-spacing: .1em; }
  /* Archivo bold runs wider than Bodoni did: stack the Info head and keep the register head on one line each */
  .page-head h1 { font-size: clamp(1.9rem, 8.4vw, 2.3rem); }
  .info-head { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .info-head .portrait { order: -1; width: 6rem; }
  .register-head { flex-wrap: wrap; gap: .15rem 1rem; font-size: .78rem; letter-spacing: .06em; }
  /* Trail finds in the top menu: just "finds" on phones so the header fits */
  .nav-long { display: none; }
}
.nav-link[href="/finds/"] { white-space: nowrap; }
/* Five links overflowed a 375px phone: tighter header gaps and tracking so it fits without a side scroll */
@media (max-width: 520px) {
  .site-header { gap: .4rem; padding-left: 16px; padding-right: 12px; }
  .site-header nav { gap: .55rem; }
  .nav-link, .anvil-link { letter-spacing: .03em; }
  .mark { font-size: 1rem; }
  .theme-toggle { padding: 4px; }
}
@media (max-width: 380px) {
  .nav-link { font-size: .6rem; letter-spacing: .02em; }
  .mark { font-size: .92rem; }
}

/* Info headline: quieter. Bold Archivo at full size shouted, so it drops a weight and a size step */
.info-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.2; max-width: 26ch; }
@media (max-width: 520px) { .info-head h1 { font-size: 1.6rem; } }

/* Drop a line: the light ask comes first, the call is one option of three */
.drop-line { margin: 2.5rem 0 0; font-weight: 600; }
.drop-line + .actions { margin-top: .9rem; }
.actions-more { margin-top: 1.5rem; font-size: .95rem; }

/* Map band, condensed: one short row (eyebrow + anteater), then a shorter map */
.namefield { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.namefield .wrap { flex-direction: row; align-items: center; }
.namefield .eyebrow { margin: 0; }
.namefield .stamp { width: clamp(5.5rem, 10vw, 8rem); align-self: center; }
.namefield .topo { height: clamp(6rem, 12vw, 10rem); margin-top: 1rem; }

/* Homepage tagline, centered under the top nav (Cassie, 2026-10-19) */
.tagline { margin: clamp(1.5rem, 4vw, 2.5rem) auto 0; text-align: center; font-family: var(--wide); font-size: clamp(1rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--copper); }

/* New Home (2026-10-19): promise, what followers get, receipts */
.letter .promise { margin: clamp(2.5rem, 6vw, 4rem) 0 .5rem; font-family: var(--sans); font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.letter .promise-sub { margin: 0 0 2.25rem; color: var(--soft); }
.letter .gets-head { margin: 0 0 .9rem; font-family: var(--wide); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.gets { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.gets li { padding: 1rem 0 1rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; line-height: 1.5; }
.gets li::before { content: ""; position: absolute; left: .1rem; top: 1.55rem; width: .5em; height: .5em; background: var(--copper); transform: rotate(45deg); }
.gets strong { font-weight: 700; }
.gets .text-link { font-size: .9em; white-space: nowrap; }
.letter .receipts { margin: 2rem 0 0; padding: 1rem 1.1rem; background: var(--paper-deep); border: 1px solid var(--rule); font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
.receipts-label { display: inline-block; margin-right: .6rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }

/* Short topo band under the top nav on Home (Cassie, 2026-10-19) */
.topo-top { height: clamp(4.5rem, 9vw, 7.5rem); margin-top: 0; border-top: 0; }

/* Footer: five links wrapped mid-name on phones ("On the / anvil"). Keep each link whole and let the row wrap */
.footer-links { flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-links a { white-space: nowrap; }

/* Dark mode mountains: draw the engraving as warm light lines straight on the dark page. No cream paper, no frame */
:root[data-theme="dark"] .range img.ink { filter: grayscale(1) invert(1) contrast(1.5) brightness(.82) sepia(.28); mix-blend-mode: screen; background: none; padding: 0; border-radius: 0; box-shadow: none; }
.gets.doors { margin-top: 1.75rem; }
