:root {
  --navy: #0f2744;
  --sand: #f4eee4;
  --paper: #fffdf8;
  --coral: #e07a5f;
  --gold: #c9a227;
  --ink: #1a2332;
  --mute: #5c6570;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font: 650 17px/1.55 Figtree, sans-serif;
}
h1, h2, h3, .logo, .btn, .eyebrow, .hint, .ask summary, .steps b {
  font-family: "Cormorant Garamond", Georgia, serif;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.05; margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 14px; }
h3 { font-size: 1.45rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: #fff; padding: 8px; }

.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid #ddd4c6;
}
.bar { display: flex; align-items: center; gap: 16px; min-height: 74px; }
.logo { font-size: 2rem; text-decoration: none; }
.logo span, .logo.light span { color: var(--coral); }
.logo.light { color: #fff; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 1.15rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border: 0;
  background: var(--navy); color: #fff; text-decoration: none;
  cursor: pointer; font-size: 1.15rem;
}
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--navy); background: #fff; }
.burger span { display: block; height: 2px; margin: 7px 8px; background: var(--navy); }

.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 28px; align-items: center; }
.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: var(--coral); margin: 0 0 10px; }
.eyebrow.light { color: #f0c9be; }
.lead { max-width: 40rem; font-size: 1.12rem; }
.hint {
  border: 1px solid var(--gold);
  padding: 22px 20px;
  background: var(--paper);
}
.hint p { margin: 0 0 8px; font-size: 1.4rem; }

.pad { padding: 44px 0; }
.night { background: var(--navy); color: #f4eee4; }
.muted { color: var(--mute); }

.desk, .cards article, .axes article, .note, .ask details {
  background: var(--paper);
  border: 1px solid #ddd4c6;
}
.desk { padding: 24px; box-shadow: 0 18px 40px rgba(15, 39, 68, 0.08); }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 16px 0; }
label span { display: block; margin-bottom: 6px; color: var(--mute); font-size: 0.9rem; }
select {
  width: 100%; min-height: 48px; border: 1px solid #cfc6b8;
  background: #fff; font: inherit; padding: 0 10px;
}
.verdict {
  min-height: 3.2em; margin: 16px 0 0; padding: 14px;
  background: #f7f1e6; border-left: 4px solid var(--gold);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.axes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cards article, .axes article { padding: 18px; }
.night .cards article { background: #173353; border-color: #2a4a6e; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 12px; margin-bottom: 14px; }
.steps b {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--coral); color: #fff; font-size: 1.3rem;
}
.note { padding: 20px; color: var(--ink); }
.ask details { padding: 12px 16px; margin-bottom: 10px; }
.ask summary { cursor: pointer; font-size: 1.3rem; }

.foot { background: #0a1a2e; color: #d9cbb8; padding: 22px 0; }
.foot-row { flex-wrap: wrap; justify-content: space-between; }

.entry-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 20px; background: rgba(10, 26, 46, 0.88);
}
.entry-overlay.is-hidden { display: none; }
.entry-overlay-card {
  position: relative; width: min(420px, 100%);
  padding: 32px 22px 20px; text-align: center;
  background: var(--paper);
}
.entry-overlay-title { margin: 8px 0 18px; font-size: 2rem; }
.entry-overlay-button { width: 100%; }
.entry-overlay-continue {
  display: block; width: 100%; margin-top: 14px;
  border: 0; background: transparent; color: var(--mute);
  font: inherit; text-decoration: underline; cursor: pointer;
}
.entry-overlay-close {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px; border: 0;
  background: var(--navy); color: #fff; font-size: 22px; cursor: pointer;
}
body.entry-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .hero-grid, .grid3, .cards, .axes, .split { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 16px; border-bottom: 1px solid #ddd4c6; }
  .nav.is-open { display: flex; }
  .burger { display: block; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
