/* Girthwell site v6 (11 Oct 2026). One stylesheet for every page. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #07110C;
  --panel: #0F1D17;
  --panel-2: #142821;
  --line: rgba(244, 237, 224, 0.09);
  --line-2: rgba(244, 237, 224, 0.16);
  --text: #F4EDE0;
  --muted: rgba(244, 237, 224, 0.78);
  --dim: rgba(244, 237, 224, 0.62);
  --brass: #C9A24B;
  --brass-soft: rgba(201, 162, 75, 0.16);
  --tan: #B07A45;
  --green: #1F3A2E;
  --live: #5EC8B0;
  --error: #FFB4A8;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --num: "Instrument Serif", "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left));
  --gutter-r: max(16px, env(safe-area-inset-right));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background-color: var(--bg); }
body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 110% 50% at 50% -8%, rgba(31, 58, 46, 0.95), transparent 72%),
    radial-gradient(ellipse 60% 30% at 50% 22%, rgba(201, 162, 75, 0.06), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- top bar (app-style shell) ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 17, 12, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter-r) 10px var(--gutter);
}
.bar-in { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted);
  white-space: nowrap; text-decoration: none; min-height: 32px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(94, 200, 176, 0.55); flex: none; }

/* ---------- page column ---------- */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px var(--gutter-r) 36px var(--gutter);
}

.label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass);
}

/* ---------- hero ---------- */
.hero { text-align: center; }
.orbit { position: relative; width: 128px; height: 128px; margin: 4px auto 18px; }
.orbit::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.14), transparent 62%);
}
.orbit .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .stitch { fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0.85; }
.ring .inner { fill: none; stroke: rgba(244, 237, 224, 0.12); stroke-width: 1; }
.orbit .mark { position: absolute; width: 54px; height: 54px; left: 50%; top: 50%; margin: -27px 0 0 -27px; }
/* the bead goes round once a minute, in step with the real clock (site.js sets the phase) */
.bead { position: absolute; inset: 0; }
.bead::before {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  left: calc(50% - 4px); top: calc(4.2857% - 4px);
  background: #E6C46E; box-shadow: 0 0 10px 2px rgba(201, 162, 75, 0.55);
}

h1.name {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.75rem, 13vw, 4.5rem); line-height: 1; letter-spacing: -0.015em;
}
.tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 4.4vw, 1.35rem); color: var(--muted); margin-top: 10px;
}

/* ---------- countdown ---------- */
.countdown { margin-top: 34px; text-align: center; }
.countdown .label { display: block; margin-bottom: 12px; }
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cd-cell {
  min-width: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 2px 10px;
  overflow: hidden;
}
.cd-num {
  font-family: var(--num); font-weight: 400;
  font-size: clamp(2.3rem, 10.5vw, 3.9rem); line-height: 1; height: 1em;
  display: flex; justify-content: center; overflow: hidden;
  font-variant-numeric: lining-nums tabular-nums;
}
.dg { display: inline-block; width: 0.52em; text-align: center; }
.dg.roll { animation: roll 0.34s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cd-unit { display: block; margin-top: 8px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.cd-when { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }
.cd-when strong { color: var(--text); font-weight: 600; }
.cd-local { margin-top: 2px; color: var(--dim); font-size: 0.875rem; }
.cd-local:empty { display: none; }
.cd-open { display: none; font-family: var(--serif); font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.2; }
.is-open .cd-grid { display: none; }
.is-open .cd-open { display: block; }
.no-js .cd-grid, .no-js .js-only { display: none; }

.save { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 0.875rem; font-weight: 600; color: var(--text); text-decoration: none;
  background: rgba(244, 237, 224, 0.03);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.chip:hover { border-color: var(--brass); background: var(--brass-soft); }
.chip svg { width: 16px; height: 16px; flex: none; }

/* ---------- what's coming ---------- */
.block { margin-top: 44px; }
.block > .label { display: block; text-align: center; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile {
  min-width: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); padding: 16px 10px 14px; text-align: center;
}
.tile svg { width: 26px; height: 26px; margin: 0 auto 10px; color: var(--brass); }
.tile p { font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.note { text-align: center; color: var(--dim); font-size: 0.9375rem; margin-top: 14px; }

/* ---------- sign-up card ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 24px 20px 20px;
}
.card::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 9px;
  border-top: 1.5px dashed rgba(201, 162, 75, 0.5);
}
.card h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 6vw, 1.85rem); line-height: 1.15; margin-top: 8px; }
.card .lede { color: var(--muted); margin-top: 6px; }
.signup { margin-top: 16px; display: grid; gap: 10px; }
.field {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.28);
  color: var(--text); font: 400 1rem/1.3 var(--sans);
}
.field::placeholder { color: var(--dim); }
.field:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 52px; padding: 12px 20px; border-radius: 14px;
  font: 600 1rem/1.3 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.btn:active { transform: scale(0.99); }
.btn-primary { background: var(--text); color: var(--green); border: 1px solid var(--text); }
.btn-primary:hover { background: #FFFFFF; border-color: var(--brass); }
.btn-primary[disabled] { opacity: 0.7; cursor: default; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--brass); background: var(--brass-soft); }
.error { color: var(--error); font-size: 0.875rem; }
.fine { color: var(--dim); font-size: 0.8125rem; line-height: 1.5; }
.fine a { color: var(--muted); }
.follow { margin-top: 12px; }

@media (min-width: 560px) {
  .signup { grid-template-columns: 1fr auto; }
  .signup .field { grid-column: 1; }
  .signup .btn { grid-column: 2; grid-row: 1; width: auto; }
  .signup .error, .signup .fine { grid-column: 1 / -1; }
  .card { padding: 28px 28px 24px; }
}

/* ---------- footer ---------- */
.foot {
  width: 100%; max-width: 680px; margin: 0 auto;
  padding: 20px var(--gutter-r) calc(24px + env(safe-area-inset-bottom)) var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center; font-size: 0.8125rem; color: var(--dim);
}
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 8px; }
.foot nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.foot nav a:hover { color: var(--text); }

/* ---------- inner pages (cheat sheet, privacy, unsubscribe, 404) ---------- */
.page-head { text-align: center; max-width: 540px; margin: 0 auto; }
.page-head h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 8.5vw, 2.75rem); line-height: 1.1; margin-top: 8px; }
.page-head p { color: var(--muted); margin-top: 10px; }
.stack { display: grid; gap: 10px; max-width: 420px; margin: 22px auto 0; }
.hint { text-align: center; font-size: 0.875rem; color: var(--dim); }

.sheets { display: grid; gap: 14px; margin-top: 30px; }
.sheet { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px 20px 20px; }
.sheet h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.3rem, 5.4vw, 1.6rem); line-height: 1.25; margin-top: 6px; }
.sheet .bar-line { width: 48px; height: 3px; background: var(--brass); border-radius: 2px; margin: 14px 0 4px; }
.sheet dt { font-weight: 600; color: var(--brass); font-size: 1.0625rem; margin-top: 14px; }
.sheet dd { color: var(--text); margin-top: 2px; }
.bonus { background: rgba(244, 237, 224, 0.06); border-radius: 12px; padding: 12px 14px; margin-top: 18px; }
.bonus strong { display: block; color: var(--brass); }
.sheet .tag { margin-top: 18px; font-size: 0.8125rem; font-weight: 600; color: var(--tan); }
.mini { margin: 28px auto 0; max-width: 420px; text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--panel); }
.mini p { color: var(--muted); font-size: 0.9375rem; }
.mini strong { font-family: var(--num); font-weight: 400; font-size: 1.6rem; color: var(--text); line-height: 1; }

.doc { max-width: 600px; margin: 0 auto; }
.doc h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.1; }
.doc .updated { color: var(--dim); font-size: 0.875rem; margin-top: 6px; }
.doc h2 { font-weight: 600; font-size: 1.125rem; margin-top: 28px; }
.doc p, .doc li { color: var(--muted); margin-top: 8px; }
.doc ul { padding-left: 1.2em; }
.doc a { color: var(--text); }

.center { text-align: center; }
.back { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 0.9375rem; padding: 10px 0; }

/* ---------- motion (off when the visitor asks for less motion) ---------- */
@keyframes roll { from { transform: translateY(-0.38em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 200, 176, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(94, 200, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 200, 176, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .bead { animation: orbit 60s linear infinite; }
  .dot { animation: pulse 2.4s ease-out infinite; }
  .rise > * { animation: rise 700ms ease-out both; }
  .rise > *:nth-child(2) { animation-delay: 70ms; }
  .rise > *:nth-child(3) { animation-delay: 140ms; }
  .rise > *:nth-child(4) { animation-delay: 210ms; }
  .rise > *:nth-child(5) { animation-delay: 280ms; }
  .rise > *:nth-child(6) { animation-delay: 350ms; }
}
@media (prefers-reduced-motion: reduce) {
  .bead { display: none; }
  .dg.roll { animation: none; }
}
