/* Homepage and book pages. Look taken from MShujaa's draft (stem-n-nem-books-curriculum): deep green,
   cream, Georgia headings. These pages no longer load the old template's style.css or bootstrap. */
:root {
  --ink: #183e36;
  --cream: #fffbef;
  --yellow: #f5bd49;
  --mint: #dcece0;
  --orange: #bc4c2e;
  --sand: #ece7d7;
  --line: #183e3626;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { background: var(--cream); color: var(--ink); font-family: Arial, sans-serif; line-height: 1.65; margin: 0; }
a { color: inherit; }
img { display: block; height: auto; max-width: 100%; }
p { margin: 0 0 20px; }
.wrap, .container { margin: auto; width: min(1260px, 90%); }
.skip { left: -9999px; position: absolute; }
.skip:focus { background: #fff; left: 12px; padding: 12px; top: 12px; z-index: 10; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.curriculum :focus-visible, .sn-section--navy :focus-visible { outline-color: var(--cream); }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); padding: 24px 0; }
.site-header .wrap, .site-nav { align-items: center; display: flex; gap: 26px; justify-content: space-between; }
.site-logo { width: 255px; }
.site-nav a { font-size: 14px; font-weight: bold; text-decoration: none; }
.site-nav a:hover { color: var(--orange); }
.site-footer { font-size: 12px; padding: 35px 0; }
.site-footer .wrap { display: flex; gap: 20px; justify-content: space-between; }
.contact { background: var(--mint); padding: 60px 0; }
.contact form { display: grid; gap: 12px; max-width: 560px; }
.contact form label { font-weight: bold; margin-top: 4px; }
.contact input, .contact textarea { background: #fff; border: 1px solid #6b7f79; border-radius: 6px; font: inherit; padding: 12px 14px; width: 100%; }
.contact textarea { resize: vertical; }
.contact-lede { margin: 0 0 18px; max-width: 560px; }
.contact button { justify-self: start; }
.sr-only { clip: rect(0, 0, 0, 0); height: 1px; overflow: hidden; position: absolute; width: 1px; }

/* Shared pieces */
.btn, .sn-btn { background: var(--ink); border: 0; border-radius: 6px; color: #fff; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; padding: 14px 23px; text-decoration: none; }
.btn:hover, .sn-btn:hover { background: var(--orange); color: #fff; }
.btn.outline, .sn-btn--secondary { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn.outline:hover, .sn-btn--secondary:hover { background: var(--ink); color: #fff; }
.btn.yellow, .sn-section--navy .sn-btn--primary { background: var(--yellow); color: var(--ink); }
.btn.yellow:hover, .sn-section--navy .sn-btn--primary:hover { background: #fff; color: var(--ink); }
.eyebrow, .sn-label { color: var(--ink); display: block; font-size: 12px; font-weight: bold; letter-spacing: 2px; margin: 0 0 10px; text-transform: uppercase; }
h1, h2 { font-family: Georgia, serif; font-weight: normal; }
h1 { font-size: clamp(42px, 5vw, 72px); letter-spacing: -2px; line-height: 1.07; margin: 20px 0 26px; }
h1 em { color: var(--orange); font-weight: normal; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.16; margin: 10px 0 22px; }
.textlink { border-bottom: 1px solid; font-size: 13px; font-weight: bold; padding-bottom: 4px; text-decoration: none; }
.actions, .sn-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Homepage */
.hero { align-items: center; display: grid; gap: 60px; grid-template-columns: 1fr 1fr; padding: 65px 0 72px; }
.lead { font-size: 18px; max-width: 540px; }
.hero-story { border-top: 1px solid var(--line); margin-top: 32px; max-width: 540px; padding-top: 22px; }
.hero-story h2 { font-family: Arial, sans-serif; }
.hero-story p { margin: 0 0 12px; }
.hero-art { background: var(--yellow); border-radius: 45% 45% 8px 8px; padding: 18px; position: relative; }
.hero-art img { border-radius: 43% 43% 4px 4px; width: 100%; }
.badge { background: var(--ink); border-radius: 4px; bottom: -15px; color: #fff; font-size: 13px; font-weight: bold; left: -18px; padding: 13px 22px; position: absolute; transform: rotate(-3deg); }
.ribbon { background: var(--ink); color: #fff4d8; font-size: 14px; letter-spacing: 1px; padding: 16px 5%; text-align: center; }
.section { padding: 80px 0; }
.section-head { align-items: end; display: flex; gap: 40px; justify-content: space-between; margin-bottom: 35px; }
.section-head p:not(.eyebrow) { max-width: 390px; }
.about { background: var(--mint); }
.curriculum { background: var(--ink); border-radius: 12px; color: var(--cream); padding: 55px; }
.curriculum h2 { max-width: 700px; }
.curriculum .intro { color: #e2eadf; font-size: 18px; max-width: 730px; }
.curriculum .eyebrow { color: var(--cream); }
.pill { border: 1px solid var(--yellow); border-radius: 30px; color: var(--yellow); display: inline-block; font-size: 12px; margin-bottom: 15px; padding: 7px 12px; }
.features { display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); margin: 35px 0; }
.features article { border-top: 1px solid #ffffff40; padding-top: 20px; }
.features h3 { font-size: 19px; margin: 0 0 8px; }
.features p { color: #e2eadf; font-size: 15px; }
.principles { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.principles span { border: 1px solid #183e3630; border-radius: 25px; font-size: 12px; padding: 7px 14px; }
.video-grid { align-items: center; display: grid; gap: 60px; grid-template-columns: 1.1fr 1fr; }
.video { aspect-ratio: 16 / 9; border: 0; border-radius: 8px; width: 100%; }
.closing { background: var(--yellow); padding: 45px 0; }
.closing .wrap { align-items: center; display: flex; gap: 30px; justify-content: space-between; }
.closing h2 { font-size: 32px; margin: 0 0 10px; }
.closing p { margin: 0; }

/* Carousels. Slides share one grid cell, so the box keeps the tallest slide's height and the arrows never move. */
.sn-carousel { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sn-slide { display: grid; grid-template-columns: 1fr 1fr; }
.sn-carousel--family .sn-slide { grid-template-columns: 1.1fr 1fr; }
.sn-slide__art { align-items: center; background: var(--sand); display: flex; justify-content: center; padding: 35px; }
.sn-slide__art img { aspect-ratio: 1; box-shadow: 4px 8px 20px #0002; max-width: 420px; object-fit: contain; width: 100%; }
.sn-carousel--family .sn-slide__art { padding: 22px; }
.sn-carousel--family .sn-slide__art img { aspect-ratio: auto; border-radius: 5px; box-shadow: none; height: 390px; max-width: 100%; object-fit: contain; width: 100%; }
.sn-slide__text { align-self: center; padding: 45px; }
.sn-slide__text .eyebrow { color: var(--orange); line-height: 1.7; }
.sn-slide__text h3 { font: normal clamp(28px, 3.2vw, 44px) / 1.15 Georgia, serif; margin: 12px 0 24px; }
.sn-carousel--family .sn-slide__text p:not(.eyebrow) { font-size: 17px; }
.sn-carousel__controls { display: none; }
.sn-carousel--ready .sn-carousel__slides { display: grid; }
.sn-carousel--ready .sn-slide { grid-area: 1 / 1; }
.sn-carousel--ready .sn-slide[aria-hidden="true"] { visibility: hidden; }
.sn-carousel--ready .sn-carousel__controls { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; padding: 20px 30px; }
.sn-carousel__dots { display: flex; flex-wrap: wrap; }
.sn-carousel__dot { background: transparent; border: 0; cursor: pointer; height: 26px; padding: 0; position: relative; width: 26px; }
.sn-carousel__dot::before { background: #183e3640; border-radius: 50%; content: ""; height: 11px; left: 7px; position: absolute; top: 7px; width: 11px; }
.sn-carousel__dot[aria-current="true"]::before { background: var(--orange); transform: scale(1.3); }
.sn-carousel__nav { align-items: center; display: flex; gap: 14px; }
.sn-carousel__count { font-size: 13px; min-width: 38px; text-align: center; }
.sn-carousel__arrow { background: var(--ink); border: 1px solid var(--ink); border-radius: 50%; color: var(--cream); cursor: pointer; font-size: 24px; height: 46px; line-height: 1; width: 46px; }
.sn-carousel__arrow:hover { background: var(--orange); border-color: var(--orange); }

/* Book pages */
.sn-page h3 { font-family: Georgia, serif; font-size: 22px; font-weight: normal; line-height: 1.25; margin: 0 0 8px; }
.sn-page img { display: block; height: auto; max-width: 100%; }
.sn-section { padding: 72px 0; }
.sn-section--sand { background: var(--sand); }
.sn-section--navy { background: var(--ink); color: var(--cream); }
.sn-section--navy a:not(.sn-btn) { color: var(--cream); }
.sn-narrow { max-width: 680px; }
.sn-intro { margin-bottom: 36px; max-width: 680px; }
.sn-split { align-items: center; display: grid; gap: 56px; grid-template-columns: 1fr 1fr; }
.sn-rounded { border-radius: 8px; }
.sn-crumbs { font-size: 14px; padding: 18px 0; }
.sn-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sn-crumbs li + li::before { content: "/"; margin-right: 8px; }
.sn-book-hero { background: var(--book-tint, var(--sand)); padding: 56px 0 64px; }
.sn-book-hero__grid { align-items: center; display: grid; gap: 56px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.sn-book-hero__cover { border-radius: 4px; box-shadow: 4px 8px 20px #0003; width: 100%; }
.sn-book-subtitle { font-family: Georgia, serif; font-size: 22px; line-height: 1.35; margin: 0 0 20px; }
.sn-book-byline { font-size: 15px; }
.sn-pages { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sn-pages figure { margin: 0; }
.sn-pages a { display: block; }
.sn-pages img { border-radius: 4px; box-shadow: 2px 5px 10px #0003; width: 100%; }
.sn-pages figcaption { font-size: 14px; margin-top: 10px; }
.sn-principles { background: var(--line); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1px; }
.sn-principle { background: var(--cream); flex: 1 1 260px; padding: 24px; }
.sn-principle__meaning { display: block; font-size: 14px; font-weight: bold; margin-bottom: 10px; }
.sn-principle p { font-size: 15px; margin: 0; }
.sn-principle__try { border-top: 1px solid var(--line); margin-top: 14px !important; padding-top: 12px; }
.sn-activities { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sn-activities p { font-size: 15px; margin: 0; }
.sn-facts { border-top: 1px solid var(--line); margin: 24px 0 0; }
.sn-facts div { border-bottom: 1px solid var(--line); display: flex; gap: 16px; padding: 10px 0; }
.sn-facts dt { flex: 0 0 100px; font-size: 14px; font-weight: bold; }
.sn-facts dd { font-size: 14px; margin: 0; }
.sn-books { display: grid; gap: 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sn-book-card { display: flex; flex-direction: column; }
.sn-book-card__cover { display: block; margin-bottom: 14px; }
.sn-book-card__cover img { border-radius: 4px; box-shadow: 2px 5px 10px #0003; transition: transform .2s; width: 100%; }
.sn-book-card__cover:hover img { transform: translateY(-6px); }
.sn-page .sn-book-card h3 { font-size: 18px; margin-bottom: 4px; }
.sn-book-card h3 a { text-decoration: none; }
.sn-book-card p { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.sn-book-card__link { align-self: flex-start; margin-top: auto; }
.sn-viewer:not([open]) { display: none; }
.sn-viewer { background: #fff; border: 0; border-radius: 8px; max-height: 94vh; max-width: min(860px, 94vw); padding: 16px; width: 100%; }
.sn-viewer::backdrop { background: rgba(15, 30, 26, .78); }
.sn-viewer img { display: block; margin: 0 auto; max-height: 76vh; max-width: 100%; }
.sn-viewer__bar { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-top: 12px; }
.sn-viewer__caption { flex: 1; font-size: 14px; margin: 0; text-align: center; }
.sn-viewer button { background: var(--ink); border: 0; border-radius: 4px; color: #fff; cursor: pointer; font-size: 14px; font-weight: bold; padding: 10px 16px; }

@media (max-width: 1000px) {
  .hero { gap: 30px; }
  .site-logo { width: 210px; }
  .site-nav { gap: 15px; }
  .sn-split, .sn-book-hero__grid, .video-grid { gap: 32px; grid-template-columns: 1fr; }
  .sn-book-hero__cover { margin: 0 auto; max-width: 420px; }
  .sn-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-section { padding: 56px 0; }
}
@media (max-width: 650px) {
  .site-header .wrap { flex-direction: column; gap: 15px; }
  .site-nav { flex-wrap: wrap; gap: 18px; justify-content: center; width: 100%; }
  .hero { gap: 35px; grid-template-columns: 1fr; padding: 35px 0 55px; }
  .hero-art { margin: auto; max-width: 450px; }
  .badge { left: 0; }
  h1 { letter-spacing: -1px; }
  .section { padding: 50px 0; }
  .section-head, .closing .wrap { display: block; }
  .curriculum { padding: 30px 23px; }
  .features { gap: 16px; grid-template-columns: 1fr; }
  .closing .btn { margin-top: 15px; }
  .site-footer .wrap { flex-direction: column; gap: 5px; }
  .sn-slide, .sn-carousel--family .sn-slide { grid-template-columns: 1fr; }
  .sn-slide__art { padding: 25px; }
  .sn-slide__art img { max-width: 320px; }
  .sn-carousel--family .sn-slide__art { padding: 16px; }
  .sn-carousel--family .sn-slide__art img { height: 280px; }
  .sn-slide__text { align-self: start; padding: 28px 24px; }
  .sn-carousel--ready .sn-carousel__controls { gap: 10px; padding: 14px 16px; }
  .sn-carousel__nav { gap: 8px; }
  .sn-carousel__arrow { height: 42px; width: 42px; }
  .sn-actions .sn-btn { text-align: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sn-book-card__cover img { transition: none; }
}
