/*
Theme Name: Scaffold Nordic
Theme URI: https://yuan.l-langji.com/
Author: Scaffold PlaySchool
Description: A warm Nordic-inspired custom theme for Scaffold PlaySchool.
Version: 1.0.0
Text Domain: scaffold-nordic
*/

:root {
  --ink: #233d37;
  --ink-deep: #172f29;
  --muted: #5e716a;
  --cream: #fbf8f0;
  --paper: #fffdf8;
  --mint: #e3efe5;
  --sage: #bed4c4;
  --peach: #f6ded0;
  --gold: #e9c67b;
  --lavender: #e2e4f0;
  --line: #dbe4da;
  --white: #fff;
  --shadow: 0 18px 50px rgba(35, 61, 55, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  margin: .25em 0 .55em;
}
h1 { font-size: clamp(3rem, 7vw, 6.2rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2.15rem, 4.2vw, 3.8rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p { margin: .35em 0 1.15em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 240, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand { text-decoration: none; font: 1.45rem/1 Georgia, serif; white-space: nowrap; }
.brand span { color: #789d87; }
.brand small { display: block; margin-top: 6px; font: 9px/1 Arial, sans-serif; letter-spacing: 2.7px; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.primary-nav a { font-size: 14px; text-decoration: none; position: relative; }
.primary-nav .menu-item > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--ink); transition: right .25s ease; }
.primary-nav .menu-item > a:hover::after,
.primary-nav .current-menu-item > a::after { right: 0; }
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover, .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(35, 61, 55, .16); }
.btn.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.text { padding: 0; min-height: 0; background: none; border: 0; color: var(--ink); border-radius: 0; text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: transparent; color: var(--ink); font-weight: 700; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 100px 0; }
.wrap.narrow { width: min(820px, calc(100% - 48px)); }
.section-soft { background: #e8efe7; }
.section-white { background: var(--paper); }
.section-peach { background: #faeadd; }
.section-dark { background: var(--ink); color: var(--white); }
.center { text-align: center; }
.eyebrow { color: #567568; font-size: 11px; font-weight: 800; letter-spacing: 2.7px; text-transform: uppercase; }
.section-dark .eyebrow { color: #c6ddcb; }
.lead { max-width: 680px; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.center .lead { margin-left: auto; margin-right: auto; }
.note { color: var(--muted); font-size: 12px; }
.section-dark .note { color: #c6d5d0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .actions { justify-content: center; }

.hero { overflow: hidden; background: linear-gradient(120deg, var(--mint), #f8e7d6); }
.hero-inner { width: min(1240px, calc(100% - 48px)); min-height: 665px; margin: auto; padding: 78px 0; display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero-art { min-height: 480px; position: relative; border-radius: 48% 48% 18px 18px; background: radial-gradient(circle at 30% 26%, #ffe4a9 0 12%, transparent 12.5%), radial-gradient(circle at 72% 40%, #e5a48e 0 16%, transparent 16.5%), radial-gradient(circle at 44% 70%, #8daf9b 0 23%, transparent 23.5%), linear-gradient(145deg, #f5d4a3, #c5dbca); box-shadow: 22px 22px 0 rgba(255,255,255,.5); }
.hero-art::before { content: ""; position: absolute; width: 95px; height: 95px; top: 50px; right: -24px; border: 2px solid rgba(35,61,55,.34); border-radius: 50%; }
.hero-art::after { content: "wonder • play • become"; position: absolute; bottom: 35px; left: 30px; font: italic 26px/1.2 Georgia, serif; }
.ticker { padding: 18px 20px; background: var(--ink); color: white; text-align: center; font-size: 13px; letter-spacing: 1.5px; }

.page-hero { background: linear-gradient(120deg, var(--mint), #f8e7d6); }
.page-hero .wrap { min-height: 455px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.page-hero h1 { font-size: clamp(3.2rem, 7vw, 5.8rem); }
.page-mark { width: min(330px, 80vw); aspect-ratio: 1; margin: auto; border-radius: 50% 50% 14% 50%; position: relative; background: var(--gold); box-shadow: 34px 28px 0 rgba(255,255,255,.55); }
.page-mark::before { content: ""; position: absolute; width: 42%; aspect-ratio: 1; left: 16%; top: 18%; border-radius: 50%; background: var(--peach); }
.page-mark::after { content: ""; position: absolute; width: 52%; height: 30%; right: 10%; bottom: 15%; border-radius: 100px 100px 18px 18px; background: #89aa98; }
.page-philosophy .page-mark { background: var(--sage); transform: rotate(-8deg); }
.page-programs .page-mark { background: var(--peach); }
.page-admissions .page-mark { background: var(--gold); transform: rotate(6deg); }
.page-contact .page-mark { background: var(--lavender); }

.intro-copy { max-width: 800px; margin: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.top { align-items: start; }
.quote-shape { padding: 86px 45px 58px; border-radius: 180px 180px 20px 20px; background: var(--peach); text-align: center; font: italic clamp(1.55rem, 3vw, 2.55rem)/1.4 Georgia, serif; }
.image-shape { min-height: 430px; border-radius: 24px 190px 24px 24px; background: radial-gradient(circle at 30% 34%, var(--gold) 0 13%, transparent 13.5%), radial-gradient(circle at 70% 64%, #8daf9b 0 22%, transparent 22.5%), linear-gradient(145deg, #f4dfcf, #dbe8dc); }
.mini-grid, .card-grid, .program-grid, .steps-grid, .values-grid, .contact-grid { display: grid; gap: 22px; }
.mini-grid { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.program-grid { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.steps-grid { grid-template-columns: repeat(3, 1fr); margin-top: 42px; }
.values-grid { grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
.contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
.line-card { padding: 25px 0; border-top: 2px solid #8eaa9b; }
.card { height: 100%; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 1px 0 rgba(35,61,55,.03); }
.card.tint { background: var(--mint); border-color: transparent; }
.card.peach { background: var(--peach); border-color: transparent; }
.card.gold { background: #f5e7bc; border-color: transparent; }
.card.lavender { background: var(--lavender); border-color: transparent; }
.number { display: block; color: #6d9480; font: 2.2rem/1 Georgia, serif; margin-bottom: 16px; }
.icon-orb { width: 66px; height: 66px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 50% 50% 12px 50%; background: var(--mint); font-size: 29px; }
.program-card { overflow: hidden; padding: 0; }
.program-card .program-art { height: 155px; display: grid; place-items: center; background: var(--mint); font-size: 56px; }
.program-card:nth-child(2n) .program-art { background: var(--peach); }
.program-card:nth-child(3n) .program-art { background: #f5e7bc; }
.program-card .program-body { padding: 28px; }
.tag { display: inline-block; color: #567568; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.feature-list { list-style: none; padding: 0; margin: 22px 0; }
.feature-list li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid rgba(35,61,55,.12); }
.feature-list li::before { content: "✳"; position: absolute; left: 0; color: #789d87; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 44px; }
.stat { padding: 35px 25px; background: var(--paper); text-align: center; }
.stat strong { display: block; font: 2.2rem/1.1 Georgia, serif; }

.timeline { position: relative; max-width: 860px; margin: 45px auto 0; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 16px; bottom: 16px; width: 1px; background: #8eaa9b; }
.timeline-item { position: relative; padding: 0 0 38px 82px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: 0; top: 0; width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font: 1.15rem Georgia, serif; }

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; position: relative; padding-right: 35px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: -5px; font: 1.8rem Georgia, serif; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 760px; color: var(--muted); }

.contact-panel { padding: 36px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.contact-list { list-style: none; margin: 30px 0; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cbd8ce; border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; }
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.form-status { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; background: var(--mint); font-weight: 700; }
.form-status.error { background: var(--peach); }

.cta { text-align: center; }
.cta p { max-width: 680px; margin-left: auto; margin-right: auto; }
.site-footer { padding: 60px 0 28px; background: var(--ink-deep); color: var(--white); }
.footer-grid { width: min(1180px, calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 55px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 8px 0; }
.footer-nav a { color: white; text-decoration: none; }
.footer-bottom { width: min(1180px, calc(100% - 48px)); margin: 45px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; color: #c6d5d0; font-size: 12px; }

.skip-link { position: fixed; left: 12px; top: -100px; z-index: 999; padding: 10px 14px; background: white; }
.skip-link:focus { top: 12px; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-block; }
  .primary-nav { display: none; position: fixed; inset: 77px 0 auto; padding: 28px 24px 34px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .primary-nav a { font-size: 18px; }
  .primary-nav .nav-cta { margin-top: 22px; font-size: 14px; }
  .hero-inner, .page-hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 65px 0 80px; }
  .hero-art { min-height: 360px; }
  .page-hero .wrap { padding: 72px 0 95px; gap: 25px; }
  .page-mark { width: 245px; }
  .card-grid, .program-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { width: min(100% - 32px, 1280px); min-height: 70px; }
  .brand { font-size: 1.2rem; }
  .brand small { letter-spacing: 2px; }
  .primary-nav { top: 70px; }
  .wrap, .wrap.narrow, .hero-inner, .page-hero .wrap { width: min(100% - 36px, 1180px); }
  .wrap { padding: 70px 0; }
  .hero-inner { min-height: auto; gap: 38px; }
  .hero-art { min-height: 285px; }
  .hero-art::after { left: 20px; font-size: 20px; }
  .page-mark { width: 190px; }
  .card-grid, .program-grid, .steps-grid, .values-grid, .mini-grid, .stat-row, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 1px; }
  .quote-shape { padding: 65px 28px 45px; }
  .image-shape { min-height: 310px; }
  .contact-panel, .card { padding: 24px; }
  .program-card { padding: 0; }
  .footer-bottom { flex-direction: column; }
}

