/* ==========================================================================
   gotb.css — the shared Genius of the Body design system (2026-09 redesign)
   Night navy, silver for structure, gold only at centres.
   Every page links this first; page-specific styles come after it.
   ========================================================================== */

/* Fonts, self-hosted (latin subset) */
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/EBGaramond-400i.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url(/assets/fonts/EBGaramond-500i.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/EBGaramond-400.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/EBGaramond-500.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/Jost-400.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/Jost-500.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Caslon Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/LibreCaslonDisplay-400.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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #060d1f;
  --ink-2: #0a1530;
  --ink-3: #101e3f;
  --silver: #dfe2e8;
  --silver-dim: #a2a9b6;
  --silver-line: rgba(214, 219, 228, .22);
  --silver-hair: rgba(214, 219, 228, .12);
  --gold: #d9b862;
  --gold-bright: #f3dc98;
  --gold-deep: #a9832f;
  --gold-line: rgba(217, 184, 98, .45);
  --text: #d9dde5;
  --text-bright: #f4f2ec;
  --muted: #a3aab7;

  --foil: linear-gradient(115deg, #a8842f 0%, #e9cd84 30%, #fff0bf 44%, #d2ab55 58%, #9d7a2c 100%);
  --foil-silver: linear-gradient(115deg, #8d94a0 0%, #eef0f3 38%, #ffffff 46%, #b5bbc5 62%, #858c98 100%);

  --f-display: 'Libre Caslon Display', 'EB Garamond', serif;
  --f-body: 'EB Garamond', Georgia, serif;
  --f-label: 'Jost', 'Helvetica Neue', sans-serif;

  --frame: clamp(8px, 1.4vw, 18px);
  --pad: clamp(22px, 6vw, 88px);
  --measure: 36rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --star: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scrollbar-color: var(--gold-deep) var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--ink); color: var(--text); font-family: var(--f-body); caret-color: var(--gold); }
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold-deep), #6f5520); border: 3px solid var(--ink); border-radius: 10px; }

/* Components shared by every page */
.gotb-label { font-family: var(--f-label); font-size: .74rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--silver-dim); }
.gotb-star { display: inline-block; width: 16px; height: 16px; background: var(--foil); clip-path: var(--star); }

.btn-foil {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  min-height: 54px; padding: 0 2.1rem; border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--f-label); font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: #0a1226; background: var(--foil); background-size: 180% 100%; background-position: 20% 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -1px 0 rgba(0,0,0,.25) inset, 0 16px 28px -14px rgba(0,0,0,.85);
  transition: background-position 900ms var(--ease), box-shadow 400ms var(--ease), transform 160ms var(--ease);
}
.btn-foil::before { content: ''; width: 9px; height: 9px; background: #0a1226; clip-path: var(--star); }
.btn-foil:hover { background-position: 90% 0; }
.btn-foil:active { transform: scale(.98); }

.link-line {
  display: inline-flex; align-items: center; min-height: 44px; gap: .6em;
  font-family: var(--f-label); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--silver);
  background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 10px) / 0 1px no-repeat, linear-gradient(var(--silver-line), var(--silver-line)) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size 500ms var(--ease), color 300ms var(--ease);
}
.link-line:hover { color: var(--gold-bright); background-size: 100% 1px, 100% 1px; }
.link-line svg { width: 1em; height: 1em; flex: none; }

/* ---------- Site chrome (pages built on the new system: body.gotb) ---------- */
:where(.gotb) *, :where(.gotb) *::before, :where(.gotb) *::after { box-sizing: border-box; margin: 0; padding: 0; }
.gotb { font-size: clamp(1.06rem, .98rem + .3vw, 1.2rem); line-height: 1.7; overflow-x: hidden; }
:where(.gotb) a { color: inherit; }
:where(.gotb) img { display: block; max-width: 100%; }
:where(.gotb) section[id] { scroll-margin-top: calc(var(--frame) + 68px + 12px); }
:where(.gotb) :is(h1, h2, h3) { font-family: var(--f-display); font-weight: 400; color: var(--text-bright); text-wrap: balance; }
:where(.gotb) .wrap { max-width: 1180px; margin: 0 auto; }

.frame { position: fixed; inset: var(--frame); border: 1px solid var(--silver-line); pointer-events: none; z-index: 150; }
.frame i { position: absolute; width: 11px; height: 11px; background: var(--gold); clip-path: var(--star); }
.frame i:nth-child(1) { top: -6px; left: -6px; } .frame i:nth-child(2) { top: -6px; right: -6px; }
.frame i:nth-child(3) { bottom: -6px; left: -6px; } .frame i:nth-child(4) { bottom: -6px; right: -6px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: calc(var(--frame) + 12px); top: calc(var(--frame) + 12px); z-index: 400; background: var(--gold); color: var(--ink); padding: .7rem 1rem; font-family: var(--f-label); }

.nav {
  position: fixed; z-index: 200; top: var(--frame); left: var(--frame); right: var(--frame);
  height: 68px; padding: 0 clamp(14px, 2.4vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(180deg, rgba(6,13,31,.97), rgba(6,13,31,.93));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--silver-hair);
}
.lockup { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; min-height: 44px; }
.wordmark { font-family: var(--f-body); font-size: 1rem; letter-spacing: .2em; color: var(--text-bright); text-transform: uppercase; white-space: nowrap; }
.wordmark em { text-transform: none; letter-spacing: .06em; font-size: 1.05em; margin: 0 .15em; font-style: italic; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; }
.nav__links a:not(.btn-foil) { font-family: var(--f-label); font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color 250ms var(--ease); padding: 14px 0; }
.nav__links a:not(.btn-foil):hover, .nav__links a[aria-current] { color: var(--text-bright); }
.nav .btn-foil { min-height: 44px; padding: 0 1.3rem; font-size: .7rem; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--silver); }
.nav__toggle span { display: block; width: 22px; height: 1px; background: currentColor; margin: 7px auto; transition: transform 300ms var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.footer { padding: 3.5rem var(--pad) calc(3rem + var(--frame)); border-top: 1px solid var(--silver-hair); background: var(--ink); }
.footer__grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.footer__sub { text-wrap: balance; display: block; font-family: var(--f-label); font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.8rem; }
.footer nav a { font-family: var(--f-label); font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.footer nav a:hover { color: var(--gold-bright); }
.footer__base { max-width: 1180px; margin: 2.5rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--silver-hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; font-size: .9rem; color: var(--muted); }

/* the section break: silver hairlines meeting at a small gold star */
.star-rule { display: flex; align-items: center; gap: 18px; max-width: 360px; margin: 0 auto; }
.star-rule::before, .star-rule::after { content: ''; flex: 1; height: 1px; background: var(--silver-line); }
.star-rule span { width: 12px; height: 12px; background: var(--foil); clip-path: var(--star); }

/* reveal on scroll (gotb.js adds .js and .in) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.4rem 1.4rem; background: var(--ink); border-bottom: 1px solid var(--silver-hair); display: none; }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn-foil) { display: flex; min-height: 52px; align-items: center; border-bottom: 1px solid var(--silver-hair); }
  .nav__links li:last-child { margin-top: 1rem; }
  .nav__links .btn-foil { width: 100%; min-height: 52px; }
  .nav__toggle { display: block; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .wordmark { font-size: .86rem; letter-spacing: .16em; } }

/* ---------- Guide pages: the one shared top bar and footer ---------- */
.gbar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(var(--frame) + .35rem) calc(var(--frame) + clamp(14px, 3vw, 40px)) .35rem; background: var(--ink); border-bottom: 1px solid var(--silver-hair); }
.gbar__mark { display: inline-block; min-height: 44px; padding: 0; text-decoration: none; font-family: var(--f-body); font-size: 1rem; line-height: 44px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-bright); white-space: nowrap; }
.gbar__mark em { font-style: italic; text-transform: none; letter-spacing: .06em; font-size: 1.05em; margin: 0; color: inherit; }
.gbar .link-line { font-size: .72rem; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 420px) { .gbar__mark { font-size: .86rem; letter-spacing: .16em; } .gbar .link-line { font-size: .7rem; letter-spacing: .12em; } }

footer.gfoot { display: block; margin: 0; padding: 3.5rem calc(var(--frame) + var(--pad)) calc(3rem + var(--frame)); text-align: left; background: var(--ink); border-top: 1px solid var(--silver-hair); font-family: var(--f-body); }
.gfoot__inner, .gfoot__base { max-width: 1180px; margin: 0 auto; }
.gfoot__mark { display: inline-block; text-decoration: none; font-family: var(--f-body); font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-bright); white-space: nowrap; }
.gfoot__mark em { font-style: italic; text-transform: none; letter-spacing: .06em; font-size: 1.05em; margin: 0; color: inherit; }
.gfoot__sub { text-wrap: balance; display: block; margin-top: .45rem; font-family: var(--f-label); font-size: .74rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.gfoot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--silver-hair); font-size: .9rem; line-height: 1.5; color: var(--muted); }
.gfoot__base span { margin: 0; }

/* Form fields (sign-up forms) */
.gotb-input, input.gotb-input {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 0;
  background: rgba(255,255,255,.02); border: 1px solid var(--silver-line); color: var(--text-bright);
  font-family: var(--f-body); font-size: 1.05rem;
}
.gotb-input::placeholder { color: var(--muted); opacity: .75; }
.gotb-input:focus { outline: none; border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* 2026-10-03 (Taste review): form fields read as boxes on the night ground (border contrast >= 3:1); focus keeps its gold ring */
form input[type="text"]:not(:focus), form input[type="email"]:not(:focus) { border-color: rgba(214,219,228,.5) !important; }

/* 2026-10-03: form messages that can be told apart. Problem = warm rose rule and tone; sent = gold rule. */
.optin-note { padding-left: .9rem; border-left: 2px solid transparent; font-style: normal; }
.optin-note--ok { border-left-color: var(--gold-line); color: var(--text-bright); }
.optin-note--error { border-left-color: #e8907c; color: #f4b6a6; }
form input[aria-invalid="true"] { border-color: #e8907c !important; }

/* footer: the quiet Privacy link beside the copyright */
.gfoot__privacy, .footer__privacy { color: inherit; text-decoration: underline; text-decoration-color: var(--silver-line); text-underline-offset: 4px; }
.gfoot__privacy:hover, .footer__privacy:hover { color: var(--gold-bright); text-decoration-color: var(--gold); }
