@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 380 620;
  font-display: swap;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --bg: #14110e;
  --bg-raise: #1e1a16;
  --cream: #f6f1e8;
  --cream-dim: #ddd4c6;
  --muted: #c4b8a8;
  --line: rgba(246, 241, 232, 0.14);
  --gold: #e6b84a;
  --ink: #241c16;
  --ink-soft: #5c5148;
  --paper: #f7f3ec;
  --paper-raise: #fffdf9;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Lato", sans-serif;
  --radius: 22px;
  --header: 72px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede { font-size: 1.18rem; color: var(--cream-dim); max-width: 38rem; }
.muted { color: var(--muted); }

.ticker {
  overflow: hidden;
  height: 5.8rem;
  background: var(--bg-raise);
  border-bottom: 1px solid var(--line);
  color: var(--cream);
}
.ticker-track {
  display: flex;
  flex-direction: column;
  animation: ticker 50s ease-in-out infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticker li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 5.8rem;
  height: 5.8rem;
  box-sizing: border-box;
  padding: 0 24px;
  text-align: center;
}
.ticker li span {
  max-width: 40rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: 1.15rem;
  line-height: 1.35;
}
.ticker li span::before { content: "\201C"; }
.ticker li span::after { content: "\201D"; }
@keyframes ticker {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-10%); }
  40%, 56% { transform: translateY(-20%); }
  60%, 76% { transform: translateY(-30%); }
  80%, 96% { transform: translateY(-40%); }
  100% { transform: translateY(-50%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(20, 17, 14, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 560; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--cream-dim); font-size: 0.96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 560;
}
.btn-primary { background: var(--cream); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream-dim); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.hero { padding: 22px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: start;
  min-height: calc(100svh - var(--header) - 8rem);
}
.hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); max-width: 11ch; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.hero-points li { padding-left: 16px; position: relative; margin: 6px 0; }
.hero-points li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  position: absolute; left: 0; top: 0.55em;
}
.privacy {
  background: var(--cream);
  color: var(--ink);
  padding: 64px 0;
}
.privacy .eyebrow { color: #8a5a12; }
.privacy h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 14ch;
  margin-bottom: 16px;
}
.privacy .lede { color: var(--ink); font-size: 1.2rem; max-width: 38rem; }
.privacy p { max-width: 38rem; color: var(--ink-soft); }
.privacy p + p { margin-top: 12px; }
.privacy .privacy-note { color: var(--ink); font-weight: 560; }

.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-visual .glow {
  position: absolute;
  inset: 8% 10% auto;
  height: 78%;
  background: radial-gradient(circle, var(--glow, rgba(99, 224, 143, 0.35)), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-visual [data-ring] { width: min(440px, 100%); position: relative; }
.ring .shell {
  fill: #f7f4ee;
  stroke: rgba(62, 50, 36, 0.16);
  stroke-width: 1.4;
}
.ring .face { fill: #fffdf9; }
.ring { filter: drop-shadow(0 8px 14px rgba(12, 9, 6, 0.22)); }
.readout { text-align: center; margin-top: 8px; min-height: 4.6em; }
.readout strong { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 560; letter-spacing: -0.03em; }
.readout span { display: block; color: var(--muted); max-width: 28rem; margin: 4px auto 0; }

.section { padding: 84px 0; }
.section-head { max-width: 40rem; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.15rem); margin-bottom: 12px; }
.section + .section { border-top: 1px solid var(--line); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
}
.facts div {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
}
.facts dt { font-family: var(--serif); font-size: 1.8rem; font-weight: 560; letter-spacing: -0.03em; }
.facts dd { margin: 6px 0 0; color: var(--muted); }
.steps + .facts { margin-top: 28px; }
.stage-card, .pattern, .use-card, .facts div { color: var(--cream); }
body.guide .eyebrow { color: #8a5a12; }
.prose .pattern h3 { margin: 0 0 6px; font-size: 1.15rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  padding: 8px 8px 0 0;
}
.step em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { color: var(--cream-dim); }

.use-group + .use-group { margin-top: 42px; }
.use-group > h3 { font-size: 1.85rem; margin-bottom: 8px; }
.use-intro { color: var(--muted); max-width: 42rem; margin-bottom: 16px; }
.use-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.use-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 8px 16px;
  align-items: center;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 18px;
}
.use-card [data-ring] { width: 104px; }
.use-card h3 { font-size: 1.35rem; }
.chip {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.use-card p { grid-column: 2; margin-top: -6px; color: var(--cream-dim); }
.also {
  margin-top: 16px;
  color: var(--muted);
  max-width: 46rem;
}

.stage-card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
}
.stage-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 8px;
}
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button, .film button, .nav-toggle {
  cursor: pointer;
}
.seg button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
}
.seg button[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.stage-readout { text-align: right; }
.stage-readout strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 560; display: block; }
.stage-readout span { color: var(--muted); display: block; max-width: 26rem; }
.stage-main {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 18px;
  align-items: center;
}
.stage-main [data-ring] { width: min(340px, 100%); margin: 0 auto; }
.slider-label { display: block; color: var(--muted); font-size: 0.92rem; }
.slider-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stage-play {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
}
.stage-play[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.stage-card input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 8px 0 4px;
  background: transparent;
  cursor: pointer;
}
.stage-card input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: rgba(246, 241, 232, 0.28);
  border-radius: 999px;
}
.stage-card input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 5px var(--gold);
}
.stage-card input[type="range"]::-moz-range-track {
  height: 8px;
  background: rgba(246, 241, 232, 0.28);
  border: 0;
  border-radius: 999px;
}
.stage-card input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 5px solid var(--gold);
  border-radius: 50%;
  background: var(--cream);
}
.fine { color: var(--muted); font-size: 0.92rem; margin-top: 14px; }
.film {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.film button {
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  border-radius: 16px;
  padding: 8px 6px 10px;
  text-align: center;
}
.film button[aria-current="true"] { border-color: rgba(230, 184, 74, 0.85); background: rgba(230, 184, 74, 0.06); }
.film button:hover { border-color: var(--line); }
.film strong { display: block; font-size: 0.95rem; }
.film em { display: block; font-style: normal; color: var(--muted); font-size: 0.82rem; }

.pattern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pattern {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 12px 16px;
  text-align: center;
}
.pattern [data-ring] { width: min(150px, 100%); margin: 0 auto 8px; }
.pattern h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pattern p { color: var(--muted); font-size: 0.92rem; }
.setup-copy { margin-top: 22px; max-width: 46rem; color: var(--cream-dim); }
.setup-copy p + p { margin-top: 12px; }
.setup-copy a { color: var(--cream); }

.reserve {
  background: var(--paper);
  color: var(--ink);
}
.reserve .eyebrow { color: #8a5a12; }
.reserve .section-head p { color: var(--ink-soft); }
.reserve-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}
.reserve h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 12px; }
.promise { color: var(--ink-soft); }
.promise strong { color: var(--ink); font-weight: 560; }
form {
  background: var(--paper-raise);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 50px rgba(36, 28, 22, 0.08);
  display: grid;
  gap: 14px;
}
.field { display: grid; gap: 6px; }
.field span { font-size: 0.92rem; font-weight: 560; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid #e2d9cc;
  border-radius: 12px;
  padding: 12px 12px;
  min-height: 48px;
}
textarea { min-height: 96px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 140px; gap: 12px; }
.reserve .btn-primary { background: var(--ink); color: var(--cream); width: 100%; }
.reserve .btn-primary:hover { background: #3a2e24; }
.form-note { color: var(--ink-soft); font-size: 0.9rem; }
[data-form-status] { min-height: 1.4em; font-weight: 560; }
[data-form-status][data-state="error"] { color: #9d2b22; }
[data-form-status][data-state="ok"] { color: #1d6b3a; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
}
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--cream); }
.site-footer p + p { margin-top: 4px; }

body.guide { background: var(--paper); color: var(--ink); }
body.guide .site-footer { border-top-color: #e4dcd0; color: var(--ink-soft); }
body.guide .site-footer a { color: var(--ink); }
.guide-hero { padding: 42px 0 10px; }
.guide-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 14ch; margin-bottom: 14px; }
.guide-hero .lede { color: var(--ink-soft); }
.contents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.contents a { color: #6d4c16; }
.prose { padding-bottom: 64px; }
.prose section { padding: 28px 0; border-top: 1px solid #e6dfd3; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.prose h3 { font-size: 1.25rem; margin: 18px 0 6px; }
.prose p, .prose li { max-width: 68ch; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 10px; }
.prose ul, .prose ol { margin: 8px 0 0; padding-left: 1.2rem; }
.prose li + li { margin-top: 6px; }
.prose a { color: #6d4c16; }
.callout {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  margin-top: 14px;
  max-width: 68ch;
  border: 1px solid #eadfce;
}
.trouble { width: 100%; border-collapse: collapse; margin-top: 12px; }
.trouble th, .trouble td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-top: 1px solid #e6dfd3;
}
.trouble th { width: 34%; font-weight: 560; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 860px) {
  .hero-grid, .steps, .use-grid, .reserve-grid, .stage-main, .facts, .pattern-grid { grid-template-columns: 1fr; }
  .use-card p { grid-column: auto; margin-top: 0; }
  .stage-top { flex-direction: column; align-items: start; }
  .stage-readout { text-align: left; }
  .row-2 { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero-grid { min-height: 0; }
  .film { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .film button { min-width: 132px; scroll-snap-align: start; }
  .pattern-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-header { height: auto; min-height: var(--header); }
  .header-inner { position: relative; min-height: var(--header); width: min(var(--wrap), calc(100% - 40px)); }
  #nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 20px 18px;
    background: rgba(20, 17, 14, 0.97);
    border-bottom: 1px solid var(--line);
  }
  #nav.is-open { display: flex; }
  .trouble, .trouble tbody, .trouble tr, .trouble th, .trouble td { display: block; width: 100%; }
  .trouble th { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual .glow { filter: none; }
  .ticker { height: auto; }
  .ticker-track { animation: none; }
  .ticker ul[aria-hidden="true"] { display: none; }
  .ticker li { height: auto; flex-basis: auto; padding: 12px 20px; }
}

@media print {
  .ticker, .site-header, .nav-toggle, .hero-actions, .noprint, form { display: none !important; }
  body, body.guide { background: white; color: black; }
  a { color: black; text-decoration: none; }
  .stage-card, .pattern, .use-card, .facts div { break-inside: avoid; }
}
