/* FRAYWICK shared chrome: fonts, reset, bar, drawer, footer, toast, buttons. Themes set the variables (landing.css dark, paper.css). */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-mono.woff2) format('woff2'); }
@font-face { font-family: 'Sofia Sans Extra Condensed'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/sofia-sans-extra-condensed.woff2) format('woff2'); }

:root {
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --cond: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --gut: clamp(16px, 3.6vw, 56px);
  --bar-h: 64px;
  --orange: #ff5a1f;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
code, .mono { font-family: var(--mono); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; text-decoration: none; }
.skip:focus { top: 8px; }
.ext svg { width: .82em; height: .82em; vertical-align: -.05em; margin-left: .15em; }

/* ── bar ── */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar-h); display: flex; align-items: center; gap: 18px; padding: 0 var(--gut);
  background: var(--bar-bg); border-bottom: 1px solid var(--rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--wm-font, var(--sans)); font-weight: 700; font-size: var(--wm-size, 21px); letter-spacing: var(--wm-track, .02em); line-height: 1; white-space: nowrap; }
.wordmark svg { width: 22px; height: 22px; flex: none; }
.bar-gap { flex: 1; }
.bar-timer { font-family: var(--mono); font-size: 12px; color: var(--fg2); white-space: nowrap; display: inline-flex; gap: 8px; align-items: baseline; }
.bar-timer b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.bar-links { display: flex; align-items: center; gap: 2px; }
.nl { text-decoration: none; padding: 7px 11px; border-radius: 6px; font-size: var(--nl-size, 15px); font-family: var(--nl-font, var(--sans)); color: var(--fg); letter-spacing: var(--nl-track, 0); }
.nl:hover, .nl[aria-current] { background: var(--hover); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--btn-r, 8px); border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
.btn svg { width: 14px; height: 14px; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; place-items: center; }
.burger svg, .copy svg { width: 18px; height: 18px; }
.copy { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule); border-radius: 7px; background: transparent; cursor: pointer; flex: none; color: var(--fg); }
.copy:hover { background: var(--hover); }
.drawer { position: fixed; z-index: 39; inset: var(--bar-h) 0 auto 0; background: var(--bar-solid); border-bottom: 1px solid var(--rule); padding: 8px var(--gut) 18px; display: none; flex-direction: column; }
.drawer.open { display: flex; }
.drawer .nl { padding: 13px 2px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 18px; }
.drawer .bar-timer { padding-top: 14px; }
@media (max-width: 900px) {
  .bar-links, .bar > .bar-timer { display: none; }
  .burger { display: inline-grid; }
  .bar { gap: 10px; }
}
@media (max-width: 760px) {
  :root { --bar-h: 56px; }
  .bar .btn.buy { height: 34px; padding: 0 12px; font-size: 14px; }
}

/* ── toast ── */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 10px); z-index: 80; background: var(--fg); color: var(--bg); padding: 9px 14px; border-radius: 6px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: min(92vw, 520px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fixture-banner { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; background: #ffd400; color: #111; font: 600 12px/1 var(--mono); text-align: center; padding: 7px 10px; letter-spacing: .04em; pointer-events: none; }

/* ── footer ── */
.foot { border-top: 1px solid var(--rule); padding: 34px var(--gut) 42px; color: var(--fg2); font-size: 14px; background: var(--bg); position: relative; z-index: 2; }
.foot .in { max-width: 1200px; margin: 0 auto; display: grid; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--fg); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot .legal { max-width: 82ch; margin: 0; font-size: 13px; }
.foot .wordmark { color: var(--fg); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
