@font-face {
  font-family: Andika;
  src: url("fonts/Andika-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Andika;
  src: url("fonts/Andika-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1B2A4A;
  --cream: #FBF6EB;
  --mustard: #E3AC49;
  --gold: #C4A35A;
  --ink: #2C2416;
  --soft: #F3EDE0;
  --box: #E8E0D0;
  --focus: #E3AC49;
  --radius: 22px;
  --content: 40rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Andika, "Andika", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}
a:hover { color: #142038; }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}
h2 { text-align: center; }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 20;
  background: var(--navy);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  min-height: 44px;
}
.skip:focus { top: 12px; color: var(--cream); }

/* Hero: meadow stays in document flow so the hill band at the top
   is not cropped away. The card is a cream text panel only. Pip
   appears once, in the felt scene. */
.hero {
  position: relative;
  background-color: var(--cream);
}

.hero-scene {
  display: block;
  width: 100%;
  height: auto;
}

.hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: min(72rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 0 3.25rem;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.bot-card {
  pointer-events: auto;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  max-width: 24.5rem;
  box-shadow: 0 8px 0 rgba(27, 42, 74, 0.14);
}

.bot-card-body {
  padding: 1.45rem 1.55rem 1.55rem;
}

.bot-card h1 {
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  text-align: center;
  letter-spacing: -0.01em;
}

.rule {
  display: block;
  width: 3.25rem;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 0.7rem auto 1rem;
}

.lede {
  margin: 0 0 1.35rem;
  font-size: 1.12rem;
  line-height: 1.5;
  text-align: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 12rem;
  padding: 0.7rem 1.4rem;
  background: var(--navy);
  color: var(--cream);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 14px;
  border: 2px solid var(--navy);
}
.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.cta {
  text-align: center;
}

/* Main column */
.wrap {
  width: min(var(--content), calc(100% - 2.5rem));
  margin: 0 auto;
}

main {
  background: var(--cream);
}

.section {
  padding: 3.5rem 0 0;
}

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  text-align: center;
  margin-bottom: 0.85rem;
}

.intro {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 32rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.step {
  background: var(--soft);
  border: 1.5px solid var(--box);
  border-radius: 18px;
  padding: 1.15rem 1.25rem 1.2rem 1.25rem;
}

.step h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.step p {
  margin: 0;
  padding-left: 2.5rem;
}

.note {
  margin-top: 2.75rem;
  background: var(--soft);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.45rem;
}

.note h2 { margin-bottom: 0.7rem; }

.see {
  padding-top: 3.5rem;
}

.see .intro {
  max-width: 42rem;
}

.see-wide {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.see-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .see-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.see-grid figure {
  margin: 0;
}

.see-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
  border-radius: 20px;
  background: var(--soft);
  box-shadow: 0 10px 28px rgba(27, 42, 74, 0.16);
}

.links {
  padding: 3.5rem 0 3.75rem;
}

.link-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.link-list a {
  display: block;
  background: var(--soft);
  border: 1.5px solid var(--box);
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  min-height: 48px;
  color: var(--navy);
}
.link-list a:hover {
  border-color: var(--gold);
  background: #F7F1E4;
}

.more {
  display: block;
  color: var(--ink);
  font-weight: 400;
  margin-top: 0.2rem;
}

/* Footer */
footer {
  color: var(--ink);
  text-align: center;
  padding: 0;
  background: var(--cream);
}

.footer-inner {
  width: min(var(--content), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 1.6rem;
  border-top: 2px solid var(--gold);
}

footer p { margin: 0; }

.skyband {
  display: block;
  width: 100%;
  height: 7.5rem;
  object-fit: cover;
  object-position: center 40%;
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .hero-inner {
    position: static;
    width: calc(100% - 2rem);
    margin: 1.25rem auto 1.1rem;
    padding: 0;
    pointer-events: auto;
    display: block;
  }
  .hero-scene {
    width: 100%;
    height: auto;
    margin: 0;
  }
  .bot-card { max-width: none; }
}

@media (max-width: 700px) {
  body { font-size: 1.0625rem; }
  .hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .hero-inner {
    position: static;
    width: calc(100% - 2rem);
    margin: 1.25rem auto 1.1rem;
    padding: 0;
    pointer-events: auto;
  }
  .hero-scene {
    width: 100%;
    height: auto;
    margin: 0;
  }
  .bot-card { max-width: none; }
  .bot-card-body { padding: 1.2rem 1.25rem 1.35rem; }
  .section { padding-top: 2.75rem; }
  .step p { padding-left: 0; }
  .step h3 { display: grid; grid-template-columns: 1.85rem 1fr; align-items: start; }
  .wrap, .footer-inner { width: min(var(--content), calc(100% - 2rem)); }
  .see { padding-top: 2.75rem; }
  .see-wide { width: min(68rem, calc(100% - 2rem)); }
  .see-grid { gap: 1.1rem; }
  .skyband { height: 5.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Family circle */
.family {
  padding-bottom: 0.5rem;
}
.family-steps {
  list-style: none;
  counter-reset: fam;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.family-steps li {
  counter-increment: fam;
  position: relative;
  background: var(--soft);
  border: 1.5px solid var(--box);
  border-radius: 18px;
  padding: 1rem 1.2rem 1.05rem 3.6rem;
}
.family-steps li::before {
  content: counter(fam);
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.85rem;
  text-align: center;
}
.family-note {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
}
