:root {
  --paper: #fff8ec;
  --paper-2: #edf4ef;
  --paper-3: #f8e9dc;
  --ink: #26332e;
  --muted: #5e6b63;
  --sage: #638a70;
  --sage-dark: #3f624d;
  --gold: #e8b84a;
  --coral: #cf6b55;
  --blue: #6d8fc9;
  --red: #b95346;
  --wood: #c89962;
  --wood-dark: #8c6036;
  --mint: #dcebe1;
  --sun: #f7df96;
  --sky: #dfe9f7;
  --rose: #f5d7cc;
  --line: #e0cfb8;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(55, 42, 27, 0.12);
  --soft-shadow: 0 10px 28px rgba(82, 62, 36, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(207, 107, 85, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(99, 138, 112, 0.08) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(109, 134, 198, 0.65);
  outline-offset: 4px;
}

.site-header {
  align-items: center;
  background: rgba(255, 248, 236, 0.97);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  padding: 16px clamp(18px, 5vw, 68px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  align-items: center;
  display: flex;
  gap: 13px;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.brand small {
  color: var(--sage-dark);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.mark {
  display: grid;
  flex: 0 0 auto;
  height: 42px;
  position: relative;
  width: 54px;
}

.book {
  align-self: end;
  border-radius: 5px 5px 2px 2px;
  bottom: 12px;
  display: block;
  position: absolute;
  width: 13px;
}

.book.yellow {
  background: var(--gold);
  height: 31px;
  left: 7px;
}

.book.coral {
  background: var(--coral);
  height: 24px;
  left: 23px;
}

.book.blue {
  background: var(--blue);
  height: 36px;
  left: 39px;
}

.shelf {
  background: var(--wood-dark);
  border-radius: 999px;
  bottom: 8px;
  height: 7px;
  left: 0;
  position: absolute;
  width: 58px;
}

.desktop-nav,
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.desktop-nav {
  justify-content: flex-end;
}

.desktop-nav a,
footer nav a {
  color: var(--sage-dark);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover,
footer nav a:hover,
.guide-card a:hover,
.age-links a:hover {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-action {
  background: var(--red);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 12px 18px;
  white-space: nowrap;
}

.mobile-menu {
  display: none;
}

.hero {
  align-items: center;
  background: #fff8ec url("hero-toddler-play.png") center / cover no-repeat;
  display: grid;
  gap: clamp(30px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.76fr);
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 68px) clamp(34px, 5vw, 64px);
  position: relative;
}

.hero::before {
  background: rgba(255, 248, 236, 0.72);
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.hero::after {
  display: none;
}

.hero-copy {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  font-size: clamp(42px, 5.8vw, 74px);
  margin-bottom: 22px;
  max-width: 860px;
}

h2 {
  font-size: clamp(32px, 3.7vw, 50px);
  margin-bottom: 16px;
}

h3 {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.lede,
.section-title p,
.split p,
.article-main p,
.method p,
.newsletter p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 760px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 15px 22px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.primary:hover,
.header-action:hover {
  background: #9f4036;
}

.button.secondary {
  background: var(--sun);
  border: 1px solid rgba(140, 96, 54, 0.22);
  color: #65441f;
}

.button.secondary:hover {
  background: #f1d37a;
}

.button.compact {
  background: var(--sage-dark);
  color: var(--white);
  margin-top: 10px;
  min-height: 42px;
  padding: 12px 16px;
}

.age-finder,
.age-card,
.guide-card,
.budget-stack article,
.comparison-list article,
.situation-grid article,
.method-list,
.newsletter,
footer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.finder-grid a,
.age-card,
.guide-card,
.budget-stack article,
.comparison-list article,
.situation-grid article {
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.age-card:hover,
.guide-card:hover,
.budget-stack article:hover,
.comparison-list article:hover,
.situation-grid article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.age-finder {
  background:
    linear-gradient(180deg, var(--mint) 0 116px, var(--white) 116px 100%);
  border: 2px solid rgba(140, 96, 54, 0.16);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  z-index: 1;
}

.finder-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.finder-heading span,
.age-card span,
.budget-stack span,
.label {
  color: var(--red);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.finder-heading strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.08;
}

.finder-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.finder-grid a {
  background: var(--white);
  border: 1px solid rgba(95, 132, 111, 0.2);
  border-radius: 8px;
  box-shadow: 0 7px 16px rgba(82, 62, 36, 0.08);
  padding: 15px;
}

.finder-grid a:nth-child(1) {
  border-color: rgba(109, 143, 201, 0.35);
}

.finder-grid a:nth-child(2) {
  border-color: rgba(207, 107, 85, 0.38);
}

.finder-grid a:nth-child(3) {
  border-color: rgba(232, 184, 74, 0.45);
}

.finder-grid a:hover {
  background: #fff6df;
  transform: translateY(-1px);
}

.finder-grid strong,
.finder-grid span {
  display: block;
}

.finder-grid span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.shelf-preview {
  background: linear-gradient(180deg, transparent 0 44px, var(--wood) 44px 56px, transparent 56px 100%);
  border: 1px solid rgba(140, 96, 54, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.shelf-preview article {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px 12px;
  grid-template-columns: 34px 1fr;
  min-height: 88px;
  padding: 14px;
}

.shelf-preview h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.shelf-preview p {
  color: var(--muted);
  grid-column: 2;
  line-height: 1.4;
  margin: 0;
}

.toy-dot {
  border-radius: 6px;
  display: block;
  height: 28px;
  width: 28px;
}

.toy-dot.yellow {
  background: var(--gold);
}

.toy-dot.coral {
  background: var(--coral);
}

.toy-dot.blue {
  background: var(--blue);
}

.section {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 68px);
}

.section-title {
  margin-bottom: 30px;
}

.tinted,
.article-preview {
  background: var(--mint);
}

.age-groups {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.age-card {
  background: #385448;
  box-shadow: none;
  color: var(--white);
  min-height: 370px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.age-card-photo {
  height: 100%;
  inset: 0;
  position: absolute;
  object-fit: cover;
  width: 100%;
}

.age-card::after {
  background: linear-gradient(180deg, rgba(25, 42, 35, 0.24), rgba(25, 42, 35, 0.82));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.age-card::before,
.guide-card::before,
.comparison-list article::before,
.situation-grid article::before {
  content: "";
  display: block;
  height: 8px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.age-card:nth-child(1)::before {
  background: var(--blue);
}

.age-card:nth-child(2)::before {
  background: var(--coral);
}

.age-card:nth-child(3)::before {
  background: var(--gold);
}

.age-card.featured {
  background: #385448;
  border-color: rgba(207, 107, 85, 0.45);
  box-shadow: var(--shadow);
}

.age-card > span,
.age-card > h3,
.age-card > p,
.age-card > .age-links {
  position: relative;
  z-index: 1;
}

.age-card > span {
  color: #ffe6a3;
}

.age-card > h3 {
  color: var(--white);
}

.age-card > p {
  color: rgba(255, 255, 255, 0.9);
}

.guide-card p,
.budget-stack p,
.situation-grid p,
.method-list span,
footer p {
  color: var(--muted);
  line-height: 1.55;
}

.age-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.age-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.age-links a {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.guide-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.guide-card:nth-child(1)::before {
  background: var(--sage);
}

.guide-card:nth-child(2)::before {
  background: var(--gold);
}

.guide-card:nth-child(3)::before {
  background: var(--blue);
}

.guide-card small {
  color: var(--muted);
  display: block;
  line-height: 1.45;
  margin-top: auto;
}

.guide-card a {
  color: var(--sage-dark);
  font-weight: 800;
  margin-top: 18px;
}

.split,
.method,
.newsletter {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
}

.budget-stack {
  display: grid;
  gap: 14px;
}

.budget-stack article {
  border-left: 8px solid var(--wood);
  box-shadow: none;
  padding: 22px;
}

.budget-stack article:nth-child(2) {
  border-left-color: var(--coral);
}

.budget-stack article:nth-child(3) {
  border-left-color: var(--blue);
}

.budget-stack strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.skill-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.skill-grid a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  min-height: 86px;
  padding: 20px;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.skill-grid a:nth-child(1) {
  background: var(--sky);
}

.skill-grid a:nth-child(2) {
  background: var(--mint);
}

.skill-grid a:nth-child(3) {
  background: var(--rose);
}

.skill-grid a:nth-child(4) {
  background: #f6ecd8;
}

.skill-grid a:nth-child(5) {
  background: #ece3f3;
}

.skill-grid a:nth-child(6) {
  background: #f7edd1;
}

.skill-grid a:hover {
  border-color: var(--sage);
  box-shadow: var(--soft-shadow);
  color: var(--sage-dark);
  transform: translateY(-1px);
}

.article-preview {
  display: block;
}

.comparison-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.comparison-list article {
  box-shadow: none;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.comparison-list article:nth-child(1)::before {
  background: var(--red);
}

.comparison-list article:nth-child(2)::before {
  background: var(--gold);
}

.comparison-list article:nth-child(3)::before {
  background: var(--sage);
}

dl,
dd {
  margin: 0;
}

dl {
  display: grid;
  gap: 12px;
}

dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}

.situation-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.situation-grid article {
  box-shadow: none;
  min-height: 170px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.situation-grid article:nth-child(1)::before {
  background: var(--sage);
}

.situation-grid article:nth-child(2)::before {
  background: var(--blue);
}

.situation-grid article:nth-child(3)::before {
  background: var(--coral);
}

.situation-grid article:nth-child(4)::before {
  background: var(--gold);
}

.method-list {
  box-shadow: none;
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.method-list li {
  background: linear-gradient(90deg, rgba(255, 248, 236, 0.92), var(--white));
  padding: 22px 24px;
}

.method-list li + li {
  border-top: 1px solid var(--line);
}

.method-list strong,
.method-list span {
  display: block;
}

.method-list span {
  margin-top: 6px;
}

.newsletter {
  background: var(--sun);
  box-shadow: none;
}

.newsletter form {
  display: grid;
  gap: 10px;
}

.newsletter label {
  font-size: 13px;
  font-weight: 800;
}

.newsletter form div {
  display: flex;
  gap: 10px;
}

input {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  flex: 1;
  font: inherit;
  min-height: 48px;
  min-width: 0;
  padding: 0 18px;
}

footer {
  align-items: start;
  background: #f3e4d1;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 30px clamp(18px, 5vw, 68px);
}

footer strong {
  color: var(--ink);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  margin-bottom: 8px;
}

footer p {
  margin-bottom: 8px;
  max-width: 760px;
}

footer nav {
  justify-content: flex-end;
  max-width: 420px;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 42px;
    justify-content: center;
    list-style: none;
    width: 42px;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    background: var(--ink);
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 18px;
  }

  .mobile-menu nav {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0;
    min-width: 210px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 50px;
  }

  .mobile-menu nav a {
    border-radius: 6px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    padding: 12px;
  }

  .mobile-menu nav a:hover {
    background: var(--paper-2);
  }

  .hero,
  .split,
  .method,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero::after {
    display: none;
  }

  .age-groups,
  .guide-grid,
  .comparison-list,
  .situation-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    grid-template-columns: 1fr auto;
  }

  .brand small {
    display: none;
  }

  .header-action {
    grid-column: 1 / -1;
    min-height: 40px;
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-actions,
  .newsletter form div {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .button.compact {
    width: 100%;
  }

  .finder-grid,
  .age-groups,
  .guide-grid,
  .comparison-list,
  .situation-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .age-card,
  .guide-card {
    min-height: auto;
  }

  .shelf-preview article {
    grid-template-columns: 30px 1fr;
  }

  input {
    width: 100%;
  }
}
