/* Russell Learning Series — site styles */

@font-face { font-family: "Bitter"; font-weight: 700; font-display: swap; src: url("fonts/bitter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-weight: 800; font-display: swap; src: url("fonts/bitter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --green: #173d35;      /* field-guide ink, from the 8–11 covers */
  --green-soft: #2b5a4e;
  --mint: #edf5ef;       /* cover paper */
  --gold: #f4c534;       /* series ribbon */
  --gold-deep: #d9a21b;
  --navy: #14284b;       /* ribbon outline */
  --paper: #ffffff;
  --red: #e5392e; --orange: #f28c1e; --yellow: #f7d02c;
  --leaf: #46b04a; --blue: #2e7cd6; --purple: #7a4dc2;

  --display: "Bitter", Georgia, "Times New Roman", serif;
  --body: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 5.2vw, 3.9rem);

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--green);
  background: var(--mint);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header { padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.brand { display: inline-block; text-decoration: none; }
.brand svg { width: 250px; height: auto; display: block; }
.nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: var(--step--1); padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 800; font-size: var(--step-0);
  text-decoration: none; padding: .8rem 1.35rem; border-radius: 999px;
  border: 2px solid var(--green); transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--green); color: var(--paper); }
.btn-line { background: transparent; color: var(--green); }
.btn-gold { background: var(--gold); border-color: var(--navy); color: var(--navy); }
.btn-gold:hover { background: #ffd54f; }
.btn small { font-weight: 600; opacity: .8; }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 0; overflow: hidden; }
.hero-text > * { max-width: 44rem; }
.hero h1 { font-size: var(--step-4); }
.hero .lede { font-size: var(--step-1); line-height: 1.5; margin-top: 1.1rem; max-width: 38rem; }
.hero .byline { margin-top: .9rem; font-size: var(--step--1); color: var(--green-soft); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* The shelf: every product, standing on a plank, measured against a growth ruler */
.shelf-scroll { margin-top: 3.2rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .5rem; }
.shelf {
  display: flex; align-items: flex-end; gap: clamp(1.5rem, 3.5vw, 3rem);
  width: max-content; min-width: 100%;
  padding: 0 max(1.25rem, calc((100vw - var(--wrap)) / 2));
  justify-content: center;
}
.shelf-group { display: flex; flex-direction: column; }
.shelf-items { display: flex; align-items: flex-end; gap: .7rem; padding: 0 .4rem; }
.shelf-items a, .shelf-items .phone-mini { display: block; flex: none; }
.shelf-items img {
  height: clamp(140px, 12.8vw, 172px); width: auto; border-radius: 3px 6px 6px 3px;
  box-shadow: inset 6px 0 0 rgba(0,0,0,.06), 0 10px 18px -10px rgba(23,61,53,.55);
  transition: transform .2s ease;
}
.shelf-items a:hover img { transform: translateY(-8px) rotate(-1deg); }
.phone-mini {
  height: clamp(140px, 12.8vw, 172px); aspect-ratio: 9 / 19;
  border-radius: 18px; background: #111827; padding: 5px;
  box-shadow: 0 10px 18px -10px rgba(23,61,53,.55);
}
.phone-mini img { height: 100%; width: 100%; object-fit: cover; object-position: top; border-radius: 13px; box-shadow: none; }

.plank { height: 14px; background: var(--green); border-radius: 3px; margin-top: -1px; box-shadow: 0 6px 0 -2px #0f2a24; }

/* growth ruler: the tape under each group, ticked by age */
.ruler {
  position: relative; margin-top: 18px; height: 46px;
  background: var(--gold); border: 2px solid var(--navy); border-radius: 4px;
  display: flex; justify-content: space-around; align-items: flex-end;
  background-image: repeating-linear-gradient(90deg, var(--navy) 0 1.5px, transparent 1.5px 12px);
  background-size: 100% 9px; background-repeat: no-repeat; background-position: top;
}
.ruler span { font-family: var(--display); font-weight: 800; color: var(--navy); font-size: var(--step-0); line-height: 1; padding-bottom: 6px; position: relative; }
.ruler span::before { content: ""; position: absolute; left: 50%; top: -24px; width: 2px; height: 16px; background: var(--navy); transform: translateX(-50%); }
.ruler-label { margin-top: .55rem; font-weight: 800; font-size: var(--step--1); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .shelf-items > * { animation: settle .7s cubic-bezier(.2,.9,.3,1.25) both; }
  .shelf-items > *:nth-child(2) { animation-delay: .07s; }
  .shelf-items > *:nth-child(3) { animation-delay: .14s; }
  .shelf-items > *:nth-child(4) { animation-delay: .21s; }
  .shelf-items > *:nth-child(5) { animation-delay: .28s; }
  .shelf-items > *:nth-child(6) { animation-delay: .35s; }
  .shelf-group + .shelf-group .shelf-items > * { animation-delay: calc(var(--d, 0s) + .2s); }
  @keyframes settle { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
}

/* ---------- Section shells ---------- */
.section { padding: 5.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: .8rem; font-size: var(--step-1); line-height: 1.5; }
.age-tag {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: var(--step-0);
  background: var(--gold); color: var(--navy); border: 2px solid var(--navy);
  padding: .15rem .7rem; border-radius: 4px; margin-bottom: 1rem;
}

/* Little learners: the crayon world */
.little { background: var(--paper); position: relative; }
.crayon-rule { height: 10px; display: flex; }
.crayon-rule i { flex: 1; }
.crayon-rule i:nth-child(1) { background: var(--red); }
.crayon-rule i:nth-child(2) { background: var(--orange); }
.crayon-rule i:nth-child(3) { background: var(--yellow); }
.crayon-rule i:nth-child(4) { background: var(--leaf); }
.crayon-rule i:nth-child(5) { background: var(--blue); }
.crayon-rule i:nth-child(6) { background: var(--purple); }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: 5rem; }
.feature.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature.flip .feature-media { order: 2; }
.feature h3 { font-size: var(--step-3); }
.feature .kicker { font-weight: 800; color: var(--green-soft); margin-bottom: .4rem; }
.feature p.body { margin-top: 1rem; max-width: 34rem; }
.feature .actions { margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

.cover-big { max-width: 340px; margin-inline: auto; transform: rotate(-2.5deg); }
.cover-big img { border-radius: 4px 8px 8px 4px; box-shadow: inset 8px 0 0 rgba(0,0,0,.07), 0 26px 40px -22px rgba(23,61,53,.6); }

.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .45rem; }
.ticks li { padding-left: 1.9rem; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--c, var(--leaf));
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}
.ticks li:nth-child(6n+1) { --c: var(--red); }
.ticks li:nth-child(6n+2) { --c: var(--orange); }
.ticks li:nth-child(6n+3) { --c: var(--yellow); }
.ticks li:nth-child(6n+4) { --c: var(--leaf); }
.ticks li:nth-child(6n+5) { --c: var(--blue); }
.ticks li:nth-child(6n+6) { --c: var(--purple); }

/* app: two phones */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 1.2rem; }
.phone {
  width: min(46%, 250px); aspect-ratio: 9 / 19; background: #111827; border-radius: 34px; padding: 9px;
  box-shadow: 0 30px 45px -25px rgba(23,61,53,.6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }
.phone:nth-child(2) { transform: translateY(-2.2rem); }

.soon {
  display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1.15rem; border-radius: 12px;
  background: var(--green); color: var(--paper); font-weight: 800; line-height: 1.15;
}
.soon svg { width: 22px; height: 22px; flex: none; }
.soon small { display: block; font-weight: 600; font-size: .78rem; opacity: .8; }

.promise { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; padding: 0; list-style: none; }
.promise li { border: 2px solid var(--green); border-radius: 999px; padding: .2rem .8rem; font-weight: 800; font-size: var(--step--1); }

/* Explorers: the field-guide world */
.explorers { background: var(--mint); }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2.5rem; }
.book { display: flex; flex-direction: column; }
.book .cover { display: block; }
.book .cover img { border-radius: 3px 6px 6px 3px; box-shadow: inset 6px 0 0 rgba(0,0,0,.06), 0 18px 28px -18px rgba(23,61,53,.6); transition: transform .2s ease; }
.book .cover:hover img { transform: translateY(-6px); }
.book h3 { font-size: var(--step-1); margin-top: 1.3rem; }
.book p { margin-top: .5rem; margin-bottom: 1.2rem; }
.book .facts { display: flex; gap: 1.4rem; margin: .9rem 0 1.1rem; }
.book .facts div { font-size: var(--step--1); line-height: 1.2; }
.book .facts b { display: block; font-family: var(--display); font-size: var(--step-2); color: var(--green); }
.book .btn { margin-top: auto; align-self: flex-start; padding: .6rem 1.1rem; font-size: var(--step--1); }

.every { margin-top: 4rem; padding-top: 2rem; border-top: 2px solid rgba(23,61,53,.18); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.every h4 { font-family: var(--display); font-size: var(--step-1); margin: 0 0 .3rem; }

/* About */
.about { background: var(--green); color: var(--mint); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about h2 { font-size: var(--step-3); color: var(--paper); }
.about p + p { margin-top: 1rem; }
.about .bio { font-size: var(--step-1); line-height: 1.6; max-width: 40rem; }
.bio-lead { margin-top: 1.6rem; font-weight: 600; color: var(--paper); }
.service { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.service li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .8rem; align-items: baseline; }
.service li::before { content: ""; width: .7rem; height: .7rem; background: var(--gold); transform: rotate(45deg) translateY(-2px); }

/* Footer */
.site-footer { background: #0f2a24; color: #cfe3d7; padding: 3rem 0; font-size: var(--step--1); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer a { color: var(--paper); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand svg { width: 200px; }

/* ---------- Plain pages (support, privacy) ---------- */
.page { padding: 3rem 0 6rem; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: var(--step-4); }
.page .lede { font-size: var(--step-1); margin-top: 1rem; }
.page .updated { margin-top: .6rem; font-size: var(--step--1); color: var(--green-soft); }
.page h2 { font-size: var(--step-2); margin: 3rem 0 .8rem; }
.page h3 { font-size: var(--step-1); margin: 1.8rem 0 .4rem; }
.page p + p { margin-top: .9rem; }
.page ul { padding-left: 1.2rem; }
.page li + li { margin-top: .35rem; }
.mail-card {
  margin-top: 2rem; background: var(--paper); border: 2px solid var(--green); border-radius: 14px;
  padding: 1.6rem 1.8rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.mail-card p { font-size: var(--step--1); }
.mail-card strong { font-family: var(--display); font-size: var(--step-1); display: block; }
.faq details { border-bottom: 2px solid rgba(23,61,53,.15); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: var(--step-0); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.flip, .about .wrap { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .every { grid-template-columns: 1fr; }
  .shelf { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .book-grid { grid-template-columns: 1fr; gap: 3rem; }
  .book .cover { max-width: 320px; }
  .cover-big { max-width: 280px; }
  .brand svg { width: 210px; }
  .nav { gap: 1.1rem; }
  .section { padding: 4rem 0; }
  .phone:nth-child(2) { transform: translateY(-1.2rem); }
}
