:root {
  --paper: #f4ecd8;
  --paper-2: #eadfc3;
  --ink: #1a1a2e;
  --blue: #1f4fbf;
  --red: #d6301f;
  --yellow: #f5c428;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
}
.hero canvas {
  will-change: opacity;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-card {
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  bottom: clamp(16px, 5vh, 48px);
  max-width: 460px;
  background: rgba(244, 236, 216, 0.94);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 22px 22px;
}
.tagline {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 8px;
}
.sub { margin: 0 0 16px; font-size: 0.98rem; }
.age {
  position: absolute;
  right: clamp(16px, 4vw, 56px);
  bottom: clamp(16px, 5vh, 48px);
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  background: rgba(244, 236, 216, 0.9);
  border: 2px solid var(--ink);
  padding: 2px 12px;
  opacity: 0;
  transition: opacity 0.6s;
}
.age.on { opacity: 1; }

/* buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--yellow); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* sections */
.wrap { max-width: 1040px; margin: 0 auto; padding: clamp(48px, 9vw, 96px) 24px; }
.narrow { max-width: 720px; }
h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 20px;
}
h3 { font-family: var(--serif); font-size: 1.3rem; margin: 6px 0 6px; }
p { margin: 0 0 14px; }

.band { background: var(--paper-2); border-bottom: 4px solid var(--ink); }
.band-warm { background: var(--paper-2); border-top: 4px solid var(--ink); border-bottom: 0; }
.two-col { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1.1fr; align-items: start; } }

.steps {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: 1fr;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  border: 3px solid var(--ink);
  padding: 20px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
}
.steps li:nth-child(1) .n { background: var(--blue); color: #fff; }
.steps li:nth-child(2) .n { background: var(--red); color: #fff; }
.steps li:nth-child(3) .n { background: var(--yellow); }
.n {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--ink);
  font-family: var(--serif); font-weight: 700;
}

footer { border-top: 4px solid var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.mark { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.8rem; margin: 0; display: flex; align-items: center; gap: 12px; }
.mark img { display: block; border-radius: 9px; }
.small { font-size: 0.92rem; margin: 0; }
.small a { color: var(--ink); }

@media (max-width: 600px) {
  .hero-card { right: 16px; max-width: none; }
  .age { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
