:root {
  --ink: #1a1410;
  --ink-soft: #3a3028;
  --parchment: #e8dcc4;
  --parchment-deep: #d9c7a5;
  --gold: #c9a227;
  --gold-bright: #e2bc45;
  --forest: #1b4d3e;
  --ember: #b84a2a;
  --steel: #2e6b9e;
  --line: rgba(26, 20, 16, 0.18);
  --line-soft: rgba(26, 20, 16, 0.08);
  --white: #f7f1e6;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Cinzel", "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(201, 162, 39, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(27, 77, 62, 0.1), transparent 45%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(26, 20, 16, 0.015) 3px,
      rgba(26, 20, 16, 0.015) 4px
    );
  line-height: 1.55;
  font-size: 1.05rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(1080px, calc(100% - 2.25rem));
  margin-inline: auto;
}
.narrow { width: min(640px, calc(100% - 2.25rem)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(232, 220, 196, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  margin-right: 0.75rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(26, 20, 16, 0.25);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.btn:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}
.btn-sm {
  min-height: 38px;
  padding: 0.4rem 0.95rem;
  font-size: 0.75rem;
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(247, 241, 230, 0.45);
}
.btn-ghost:hover {
  background: rgba(247, 241, 230, 0.1);
  border-color: var(--white);
}
.btn-ghost.dark {
  color: var(--ink);
  border-color: rgba(26, 20, 16, 0.35);
}
.btn-ghost.dark:hover {
  background: rgba(26, 20, 16, 0.06);
}

.hero {
  position: relative;
  min-height: min(94vh, 920px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: clip;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 20, 16, 0.2) 0%, rgba(26, 20, 16, 0.1) 35%, rgba(26, 20, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(26, 20, 16, 0.55) 0%, transparent 50%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3.25rem;
  max-width: 34rem;
  margin-left: max(1.1rem, calc((100% - 1080px) / 2));
  margin-right: 1.1rem;
  animation: rise 700ms ease both;
}
.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.92;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-line {
  margin: 0 0 1.6rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 400;
  color: rgba(247, 241, 230, 0.9);
  max-width: 22ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line-soft);
}
.eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 700;
}
.section h2 {
  margin: 0 0 1.75rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.section-lede {
  margin: -0.75rem 0 1.5rem;
  color: var(--ink-soft);
  max-width: 36ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.steps li:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}
.step-num {
  font-family: var(--display);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  padding-top: 0.15rem;
}
.steps strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}
.steps span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.duel {
  background:
    linear-gradient(180deg, rgba(26, 20, 16, 0.04), transparent 30%),
    var(--parchment-deep);
}
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.mode {
  padding: 1.75rem 1.5rem 1.6rem;
  background: rgba(247, 241, 230, 0.35);
}
.mode-kids {
  border-right: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--ember);
}
.mode-full {
  box-shadow: inset 4px 0 0 var(--steel);
}
.mode-tag {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mode h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}
.mode p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}
.mode ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mode li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.mode li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  border-radius: 1px;
}

.strip {
  padding: 3rem 0;
}
.signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.signal-list li {
  padding-top: 0.85rem;
  border-top: 2px solid var(--gold);
}
.signal-list strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.signal-list span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.cta-band {
  background: var(--ink);
  color: var(--white);
  border-top: none;
}
.cta-band .eyebrow { color: var(--gold); }
.cta-band h2 { color: var(--white); }
.cta-band .section-lede { color: rgba(247, 241, 230, 0.72); }
.pwa-tip {
  margin: 1.5rem 0 0;
  padding: 0;
  border: none;
  background: none;
  color: rgba(247, 241, 230, 0.65);
  font-size: 0.92rem;
  max-width: 40rem;
}
.pwa-tip strong { color: var(--white); }
.pwa-tip a { color: var(--gold-bright); font-weight: 700; text-decoration: none; }
.pwa-tip a:hover { text-decoration: underline; }
.pwa-tip em { font-style: normal; color: var(--gold); font-weight: 700; }

.site-footer {
  background: #120e0b;
  color: rgba(247, 241, 230, 0.72);
  padding: 2.25rem 0 1.25rem;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
}
.foot-brand {
  font-family: var(--display);
  letter-spacing: 0.14em;
  color: var(--white);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-inner p {
  margin: 0.4rem 0 0;
  max-width: 34ch;
  color: rgba(247, 241, 230, 0.5);
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 241, 230, 0.08);
  font-size: 0.85rem;
  color: rgba(247, 241, 230, 0.4);
}
.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .steps,
  .modes,
  .signal-list { grid-template-columns: 1fr; }
  .steps li:nth-child(odd) { border-right: none; }
  .mode-kids { border-right: none; border-bottom: 1px solid var(--line); }
  .hero { min-height: 78vh; }
  .hero-copy { padding-top: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .hero-media img { animation: none; transition: none; }
  .hero-copy { animation: none; }
}
