:root {
  --ink: #161411;
  --muted: #5c564e;
  --paper: #f4efe6;
  --card: #fffdf8;
  --line: #e4dacb;
  --teal: #0f5c56;
  --cream: #f7f1e6;
  --shadow: 0 24px 50px rgba(22, 16, 10, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }

.bar {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 20px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 22px;
  color: var(--cream);
  background: rgba(18, 16, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}
.brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  text-decoration: none;
}
nav { display: flex; align-items: center; gap: 18px; }
nav a { text-decoration: none; color: #d9d0c3; }
.talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.35s ease, background 0.35s ease;
}
.talk:hover { transform: translateY(-2px); background: white; }
.talk-light { margin-top: 8px; }

.hero, .planner, .method, .talk-panel, footer {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}
.hero { padding: 148px 0 36px; }
.eyebrow {
  margin: 0 0 10px;
  color: #9a4e32;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 560; }
h1 {
  margin: 0;
  max-width: 11em;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.lede { max-width: 38rem; color: var(--muted); font-size: 1.12rem; }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #1b1916;
  color: #f3ecdf;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 16px 0;
  animation: drift 28s linear infinite;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.marquee-track span::before { content: "·"; margin-right: 48px; color: #c98462; }
@keyframes drift { to { transform: translateX(-50%); } }

.rail-wrap { height: 240vh; }
.rail-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 80% 20%, rgba(201, 132, 98, 0.28), transparent 60%),
    #141210;
  color: var(--cream);
}
.rail-label {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #c98462;
}
.rail {
  display: flex;
  gap: 18px;
  padding-inline: max(16px, calc((100vw - 1080px) / 2));
  will-change: transform;
}
.rail article {
  flex: 0 0 min(72vw, 380px);
  min-height: 280px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rail span { color: #c98462; font-family: Fraunces, Georgia, serif; font-size: 1.4rem; }
.rail h2 { margin: 18px 0 8px; font-size: 2.4rem; }
.rail p { margin: 0; color: #d9d0c3; max-width: 26ch; }

.planner { display: grid; gap: 22px; padding: 72px 0 20px; }
.card, .result {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px;
}
label { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 500; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { color: var(--muted); }
.primary, .actions button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.primary { background: var(--ink); color: var(--cream); }
.primary:hover { background: #2a241e; }
.result-head, .actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.actions button { background: transparent; border: 1px solid var(--line); }
#planMeta { margin: 0; color: var(--muted); }
ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.when { color: var(--teal); font-weight: 600; }
.step h3 { margin: 0 0 4px; font-size: 1.15rem; }
.step p { margin: 0 0 8px; color: var(--muted); }

.method { padding: 48px 0; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rules article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
}
.rules span { color: #9a4e32; font-family: Fraunces, Georgia, serif; }
.rules h3 { margin: 8px 0; }
.rules p { margin: 0; color: var(--muted); }

.talk-panel {
  margin-bottom: 48px;
  padding: 42px 36px;
  border-radius: 32px;
  background: #171512;
  color: var(--cream);
}
.talk-panel h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.4rem); max-width: 14ch; }
.talk-panel p { color: #d9d0c3; max-width: 40rem; }
.talk-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.talk-links a {
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 10px 16px;
}

footer {
  display: grid;
  gap: 14px;
  padding: 28px 0 48px;
  color: var(--muted);
}
footer p { margin: 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-nav a { color: var(--muted); text-decoration: none; }
.legal-nav a:hover { color: var(--ink); }
.legal {
  width: min(720px, calc(100% - 32px));
  margin: 132px auto 24px;
}
.legal h1 { max-width: none; font-size: clamp(2.6rem, 6vw, 4.4rem); }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--teal); }

@media (max-width: 800px) {
  .bar { padding-inline: 14px; }
  header nav a:not(.talk) { display: none; }
  .grid, .rules, .step { grid-template-columns: 1fr; }
  .rail-wrap { height: auto; }
  .rail-sticky { position: static; height: auto; padding: 28px 0; }
  .rail { flex-direction: column; transform: none !important; }
  .result-head { align-items: flex-start; flex-direction: column; }
  h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .talk { transition: none; }
}
.cookie {
  position: fixed;
  z-index: 30;
  left: 16px;
  bottom: 16px;
  width: min(300px, calc(100% - 32px));
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: #1c1c1e;
  color: #f5f1ea;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.cookie h2 {
  margin: 0 28px 6px 0;
  font-size: 1.05rem;
}
.cookie p { margin: 0; color: #d7d2cb; font-size: 0.82rem; line-height: 1.4; }
.cookie-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f5f1ea;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.cookie-actions { display: flex; gap: 8px; margin-top: 12px; }
.cookie-actions button {
  flex: 1;
  border-radius: 999px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
#cookie-essential {
  background: transparent;
  color: #f5f1ea;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
#cookie-all {
  background: #f4efe6;
  color: #161411;
  border: 0;
}
@media print {
  .bar, .marquee, .rail-wrap, .method, .talk-panel, footer, .actions, form, .cookie { display: none; }
  body { background: white; }
  .result { box-shadow: none; border: 0; }
}
