:root {
  color-scheme: light;
  --paper: #faf6ea;
  --white: #fffefa;
  --ink: #182822;
  --muted: #485850;
  --line: #d9dacf;
  --green: #175640;
  --mint: #d4ebd6;
  --orange: #f4bc85;
  --blue: #d8e8fc;
  --radius: 24px;
  font-family: 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, select { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button:disabled { cursor: default; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2068b2; outline-offset: 4px; }
h1, h2, p { margin: 0; }
.shell { width: min(1120px, calc(100% - 72px)); margin: 0 auto; padding: clamp(28px, 5vw, 68px) 0 48px; }
.chooser .shell { padding-top: clamp(36px, 9vh, 108px); }
.landing-heading { margin: 0 0 34px; }
.landing-heading h1, .screen-heading h1 {
  font-family: Rockwell, 'Georgia', serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 87px);
  letter-spacing: -.055em;
  line-height: 1.03;
  text-wrap: balance;
}
.landing-heading em { color: var(--green); font-style: italic; }
.landing-heading p { margin-top: 15px; color: var(--muted); font-size: clamp(17px, 2.2vw, 23px); }
.lab-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.lab-bar-inner { display: flex; align-items: center; gap: 22px; width: min(1120px, calc(100% - 72px)); margin: auto; min-height: 66px; }
.back-link, .lab-home { display: inline-flex; align-items: center; min-height: 48px; font-weight: 750; }
.back-link { color: var(--green); text-decoration: none; white-space: nowrap; }
.lab-home { background: none; border: 0; padding: 0; text-align: left; }
.lab-home:hover, .back-link:hover { text-decoration: underline; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.activity-card {
  width: 100%; display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  box-shadow: 0 6px 0 #e8e3d5; text-align: left; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .activity-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 #e8e3d5; }
}
.activity-copy { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: clamp(18px, 3.2vw, 32px); }
.activity-copy h2, .activity-title { font: bold clamp(24px, 3.45vw, 40px)/1.1 Rockwell, Georgia, serif; letter-spacing: -.035em; }
.activity-copy p, .activity-description { color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.48; }
.activity-link { margin-top: 8px; color: var(--green); font-weight: 800; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.activity-art {
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  height: clamp(130px, 21vw, 236px); isolation: isolate;
  background-image: radial-gradient(#18282235 1px, transparent 1px);
  background-size: 17px 17px;
}
.math-art { background-color: var(--mint); gap: clamp(10px, 3vw, 30px); }
.math-art span {
  width: clamp(46px, 9vw, 98px); aspect-ratio: 1; display: grid; place-items: center;
  background: var(--white); color: var(--green); border: 2px solid #287052; border-radius: 18%;
  font: bold clamp(34px, 6vw, 66px)/1 Georgia, serif; box-shadow: 0 6px 0 #287052;
}
.math-art span:nth-child(1) { transform: rotate(-12deg) translateY(8%); }
.math-art span:nth-child(2) { transform: rotate(8deg) translateY(-11%); background: var(--green); color: #fff; }
.math-art span:nth-child(3) { transform: rotate(-7deg) translateY(7%); }
.earth-art { background-color: var(--orange); }
.earth-art span:nth-child(1) { font-size: clamp(48px, 8vw, 88px); color: #783920; z-index: 1; position: absolute; top: 9%; left: 17%; }
.earth-art span:nth-child(2) {
  position: absolute; bottom: -8%; width: 85%; height: 75%; background: #477452;
  clip-path: polygon(0 100%, 8% 85%, 33% 16%, 47% 45%, 61% 5%, 84% 55%, 100% 100%);
}
.earth-art span:nth-child(3) {
  z-index: 2; margin: -10% 0 0 48%; border: 2px solid #783920; background: #fff5d5; color: #783920;
  border-radius: 50% 50% 48% 14%; padding: 11px 18px; transform: rotate(10deg); font: bold clamp(20px, 3.5vw, 38px)/1.15 Georgia, serif;
}
.ramp-art { background-color: var(--blue); }
.art-ramp { position: absolute; left: 10%; bottom: 15%; width: 77%; height: 56%; background: #355983; clip-path: polygon(0 0, 72% 91%, 100% 91%, 100% 100%, 0 100%); }
.art-cart { width: clamp(45px, 9vw, 85px); height: clamp(23px, 4.3vw, 41px); background: #db5c3b; border: 3px solid #7b2e22; border-radius: 8px 13px 6px 6px; position: absolute; left: 36%; top: 34%; transform: rotate(24deg); }
.art-cart::before, .art-cart::after { content: ''; position: absolute; width: 25%; aspect-ratio: 1; background: #182f49; border: 2px solid #eef7ff; border-radius: 50%; top: 74%; }
.art-cart::before { left: 7%; }
.art-cart::after { right: 7%; }
.art-flag { position: absolute; right: 17%; bottom: 18%; width: 3px; height: 39%; background: #25446c; }
.art-flag::after { content: ''; position: absolute; width: clamp(24px, 4.5vw, 44px); aspect-ratio: 1.7; background: #ffd274; border: 2px solid #25446c; left: 3px; }
@media (max-width: 630px) {
  .shell, .lab-bar-inner { width: calc(100% - 30px); }
  .activity-grid { grid-template-columns: 1fr; gap: 17px; }
  .landing-heading { margin-bottom: 23px; }
  .lab-bar-inner { gap: 15px; min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
