/* © 2026 Kimberly Newton. All rights reserved. Not licensed for copying, modification, or redistribution. See terms.html. */
/* The English Garden: site styles. Word-part colors carry meaning: prefix = sky, root = leaf, suffix = rose (see the Kimberly Newton brand system). */
@import url('https://fonts.googleapis.com/css2?family=Forum&family=Quattrocento:wght@400;700&family=Atkinson+Hyperlegible+Next:wght@400;600;800&family=Atkinson+Hyperlegible+Mono:wght@500;700&display=swap');

:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --mist: #e2ecee;
  --blush: #fff0ec;
  --ink: #282936;
  --muted: #596170;
  --line: #c9d6d9;
  --teal: #0f6776; --teal-deep: #0a4b56; --on-teal: #ffffff;
  --pre: #275d96;  --pre-bg: #e4eef8;
  --root: #2e6b45; --root-bg: #e3f1e6;
  --suf: #a33e62;  --suf-bg: #f9e5ec;
  --warn: #8a5a00; --warn-bg: #fff3d6;
  --bad: #b42318;  --bad-bg: #fde8e6;
  --focus: #8a5a00;
  --radius-sm: 8px;
  --radius: 14px;
  --font: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Forum', 'Cormorant Garamond', Georgia, serif;
  --wordmark: 'Quattrocento', Georgia, serif;
  --mono: 'Atkinson Hyperlegible Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12212a; --surface: #182a33; --mist: #1a2e36; --blush: #2c2125; --ink: #eef2f3; --muted: #a9b6bc; --line: #30474f;
    --teal: #6ec4d0; --teal-deep: #0f6776; --on-teal: #0b1e24; --focus: #f2c14e;
    --pre: #97c1f0; --pre-bg: #1b3150; --root: #8dd3a2; --root-bg: #173826; --suf: #f2a4bf; --suf-bg: #42202d;
    --warn: #ffd27a; --warn-bg: #3d3014; --bad: #ff9a8f; --bad-bg: #4a1f1d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--teal); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 8px; }

/* nav */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--teal); font-family: var(--wordmark); font-size: 1.3rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); }
.site-nav a:hover { background: var(--mist); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }

/* tiles (shared with the activity) */
.tile { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 14px; border-radius: var(--radius-sm); border: 2px solid transparent; line-height: 1.15; font-family: var(--mono); font-weight: 700; }
.tile small { font-family: var(--font); font-size: 0.75rem; font-weight: 600; margin-top: 3px; }
.tile.pre { background: var(--pre-bg); color: var(--pre); border-color: var(--pre); }
.tile.root { background: var(--root-bg); color: var(--root); border-color: var(--root); }
.tile.suf { background: var(--suf-bg); color: var(--suf); border-color: var(--suf); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: var(--on-teal); border: 2px solid var(--teal); border-radius: var(--radius-sm); padding: 11px 20px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { text-decoration: none; background: var(--teal-deep); border-color: var(--teal-deep); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--mist); color: var(--teal); }
.btn.small { padding: 6px 12px; font-size: 0.9rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* home: hero */
.hero { padding: 64px 0 56px; background: var(--blush); }
.hero-word { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-word .tile { font-size: clamp(2rem, 7vw, 3.6rem); padding: 10px 20px 12px; border-radius: 14px; }
.hero-word .tile small { font-size: clamp(0.8rem, 1.8vw, 1rem); margin-top: 6px; }
.hero-word .plus { font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 800; color: var(--muted); align-self: center; margin-top: -0.6em; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 400; margin: 0 0 14px; max-width: 18ch; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 54ch; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  .hero-word .tile { animation: snap .7s cubic-bezier(.2, .9, .3, 1.2) both; }
  .hero-word .tile.root { --from: -40px; animation-delay: .1s; }
  .hero-word .tile.suf { --from: 60px; animation-delay: .25s; }
  .hero-word .plus { animation: fade .4s .55s both; }
  @keyframes snap { from { transform: translateX(var(--from, 0)) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* sections */
.band { padding: 56px 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--mist); }
.band h2 { font-size: clamp(2rem, 4.2vw, 2.7rem); margin: 0 0 10px; }
.band .lede { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }

/* activity list */
.course { margin-bottom: 30px; }
.course h3 { font-size: 1.15rem; margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; }
.course h3 span { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.sets { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--teal); }
.sets li { border-bottom: 1px solid var(--line); }
.sets a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 4px; text-decoration: none; color: var(--ink); }
.sets a:hover .set-title { text-decoration: underline; text-underline-offset: 4px; }
.set-title { font-weight: 700; font-size: 1.1rem; }
.set-meta { color: var(--muted); font-size: 0.95rem; grid-column: 1; }
.set-go { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; color: var(--teal); }
.empty { padding: 18px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filters input, .filters select { font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.filters input { flex: 1 1 260px; }

/* how it works (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px 24px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 48px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--on-teal); font-weight: 800; }
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.why { margin: 0; padding: 0; list-style: none; }
.why li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.why b { display: block; }

/* footer */
.site-foot { padding: 32px 0 48px; background: var(--teal-deep); color: #e2ecee; color: var(--muted); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-foot a { color: #ffffff; }

/* simple pages */
.page-head { padding: 44px 0 20px; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 3.3rem); margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; max-width: 60ch; }
main.page { padding-bottom: 48px; }

/* credit line under the hero text */
.credit { font-size: 1rem !important; margin-top: -10px !important; }
.credit a { color: var(--teal); }
.site-foot, .site-foot span { color: #e2ecee; }

/* terms page */
.terms { max-width: 760px; }
.terms h2 { font-size: 1.6rem; margin: 32px 0 8px; }
.terms ul { padding-left: 1.2em; margin: 0 0 12px; }
.terms li { margin: 6px 0; }
.muted { color: var(--muted); font-size: 0.95rem; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.course-title { font-size: 1.15rem; margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; font-family: var(--font); color: var(--ink); font-weight: 700; }
.course-title span { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
