/* Inbox Field Guide: the shared theme (version B, the taste-skill build), loaded by every page.
   The palette and faces as start.mjs printed them, the client's mark, the header and footer as every page shows them,
   and the consent panel. The homepage adds home.css; every other page adds pages.css. */


:root {
  --p-bg: #161c1a; --p-surface: #1f2725; --p-ink: #e3e2da; --p-muted: #8e948d;
  --p-accent: #9fc7b8; --p-accent-ink: #161c1a; --p-action: #9fc7b8; --p-action-ink: #161c1a;
  --p-inv-bg: #e3e2da; --p-inv-surface: #d3d2cb; --p-inv-ink: #161c1a; --p-inv-muted: #555a55;
  --p-inv-accent: #161c1a; --p-inv-accent-ink: #e3e2da; --p-inv-action: #161c1a; --p-inv-action-ink: #e3e2da;
  --font-display: "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
}

@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/taste/fonts/geist.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/taste/fonts/geist-mono.woff2") format("woff2"); }

/* ---------------------------------------------------------------- the client's mark (macros.njk mark()) */
.mk-bg { fill: var(--p-ink); }
.mk-tray { fill: none; stroke: var(--p-bg); stroke-width: 2.8; stroke-linejoin: round; }
.mk-route { fill: none; stroke: #6f9a8a; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.mk-dot { fill: #6f9a8a; }
.nav__logo > .nav__mark { width: 24px; height: 24px; flex: none; }
/* The Tools menu's picture boxes. The kit defines .panel in ui/cards.css, which only the homepage
   loads; without these rules each picture fills the whole menu on every other page. */
.nav__menu .panel { position: relative; isolation: isolate; overflow: clip; display: block; min-height: var(--p-h); border-radius: var(--r-md); background: var(--p-surface); }
.nav__menu .panel::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-ink) 7%, transparent); }

/* ---------------------------------------------------------------- the consent panel (production only; analytics-consent.njk, unchanged) */
.analytics-consent { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: var(--s-5); max-width: 1120px; margin: auto; padding: var(--s-5); background: var(--p-surface); color: var(--p-ink); border: 1px solid var(--line); border-radius: var(--r-md); }
.analytics-consent h2 { margin: 0 0 6px; font-size: var(--t-lead); }
.analytics-consent p { max-width: 42rem; font-size: var(--t-small); }
.analytics-consent-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 10px; }
.analytics-settings { padding: 0; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 639px) { .analytics-consent { flex-direction: column; align-items: start; max-height: calc(100svh - 32px); overflow-y: auto; } }

/* ---------------------------------------------------------------- the close: the name set across the .wrap, hand-set per width (sections-library.md, close-word) */
footer.closing .close__word { font-size: 172px; line-height: 1; white-space: nowrap; }
@media (max-width: 1439px) { footer.closing .close__word { font-size: 11.4vw; } }
@media (max-width: 1023px) { footer.closing .close__word { font-size: 11.6vw; } }
@media (max-width: 639px) { footer.closing .close__word { font-size: 11.4vw; } }


/* the phone bar shows the client's mark alone; the link keeps its name */
@media (max-width: 639px) {
  .nav .nav__bar > .nav__logo > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav .nav__bar > .nav__logo > .nav__mark { width: 28px; height: 28px; }
}
@media (max-width: 1023px) { .footer__legal { flex-direction: column; align-items: flex-start; } }
