:root {
  color-scheme: light;
  --paper: #f7f6ee;
  --ink: #18362a;
  --muted: #4c6658;
  --line: #c8d1bf;
  --forest: #102b23;
  --moss: #bdeba0;
  --amber: #f5cf84;
  --type: 'Outfit', 'Avenir Next', system-ui, sans-serif;
  --display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--type); }
a { color: #215b3c; text-underline-offset: .21em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #a85a07; outline-offset: 4px; }
.frame { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 1.25rem; z-index: 5; padding: .5rem 1rem; background: white; color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.mast { background: var(--forest); color: #edf4e3; }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.mast a { color: inherit; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.2rem; font-weight: 800; letter-spacing: .11em; }
.brand img { width: 1.8rem; height: 1.8rem; }
.mast nav { display: flex; gap: clamp(.2rem, 2.1vw, 1.4rem); align-items: center; font-size: .9rem; font-weight: 620; }
.mast nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .25rem .35rem; }
.mast nav a:hover, .mast nav [aria-current] { color: var(--moss); text-decoration: underline; text-underline-offset: .35em; }
.mast .nav-play { gap: .35rem; padding-inline: .85rem; border: 1px solid #74917d; border-radius: .4rem; }
.mast :focus-visible, .feature :focus-visible { outline-color: var(--amber); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.07; letter-spacing: -.034em; }
.intro { padding-block: clamp(2.5rem, 6vw, 5rem) 2rem; max-width: 50rem; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
.intro p { max-width: 41rem; margin-top: 1rem; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.24rem); }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1rem, 4vw, 3.25rem); padding: clamp(1.3rem, 4.3vw, 3.6rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--forest); border-radius: 1.05rem; color: #eef3df; }
.eyebrow, .card-meta { color: var(--muted); font: 650 .74rem/1.4 var(--mono); }
.feature .eyebrow { color: var(--moss); }
.feature h2 { margin: .6rem 0 1rem; font-size: clamp(2rem, 4.3vw, 3.5rem); max-width: 12ch; }
.feature-copy > p:not(.eyebrow) { color: #cbd8c6; max-width: 30rem; }
.launch { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: .6rem 1rem; margin-top: 1.35rem; background: var(--moss); color: var(--forest); border-radius: .35rem; text-decoration: none; font-weight: 700; }
.launch:hover { background: #d2f6b8; }
.feature-boards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.65rem, 2.6vw, 1.6rem); }
.feature-boards figure { display: flex; flex-direction: column-reverse; gap: .5rem; }
.feature-boards figcaption { font: 600 .78rem/1.5 var(--mono); color: #f0f5e5; }
.feature-boards figcaption span { color: #b5cdb8; }
.swatch { position: relative; display: block; aspect-ratio: 1; width: 100%; overflow: hidden; background-color: #19382e; background-image: linear-gradient(to right, #345344 1px, transparent 1px), linear-gradient(to bottom, #345344 1px, transparent 1px); background-size: calc(100% / var(--size)) calc(100% / var(--size)); border-radius: .2rem; }
.swatch i, .swatch b { position: absolute; left: calc((var(--col) + .08) * 100% / var(--size)); top: calc((var(--row) + .08) * 100% / var(--size)); width: calc(.84 * 100% / var(--size)); height: calc(.84 * 100% / var(--size)); border-radius: 15%; }
.swatch i { background: var(--moss); }
.swatch b { outline: 2px solid var(--amber); outline-offset: -1px; }
.collection { margin-block: 2.8rem; }
.collection > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem 1.1rem; padding-block: 0 .9rem; border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.collection h2, .teacher-call h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.collection header p, .teacher-call p { color: var(--muted); }
.card-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.experiment-card { display: flex; align-items: stretch; min-height: 7.1rem; border: 1px solid var(--line); border-radius: .55rem; background: #fffef7; color: var(--ink); text-decoration: none; }
.experiment-card:hover { border-color: #607e64; background: #fafcef; }
.specimen { display: grid; align-content: center; flex: 0 0 4.65rem; border-radius: .48rem 0 0 .48rem; padding: .48rem; background: #dce6d4; }
.specimen .swatch { border-radius: .18rem; }
.specimen .swatch b { outline-width: 1px; }
.card-content { display: flex; flex-direction: column; align-items: start; padding: .8rem .8rem .5rem; }
.card-meta { font-size: .65rem; }
.card-content strong { display: block; margin-top: .3rem; font-size: min(1rem + .12vw, 1.1rem); line-height: 1.3; }
.card-arrow { color: #467150; font-weight: 650; line-height: 1.1; padding-top: .4rem; }
.teacher-call { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #e5ebdb; padding: 1.65rem; border-radius: .6rem; }
.teacher-call p { margin-top: .4rem; }
.teacher-call > a { flex: none; font-weight: 650; }
.foot { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 3rem; padding: 1.3rem 0 2rem; border-top: 1px solid var(--line); font-size: .9rem; }
.crumb { padding: 1.5rem 0 0; }
.crumb a { color: var(--muted); font-size: .88rem; }
.detail-head { padding: 1.05rem 0 1.2rem; }
.detail-head .eyebrow span { color: #789077; padding-inline: .3rem; }
.detail-head h1 { font-size: clamp(2.05rem, 4.8vw, 3.55rem); margin-top: .4rem; max-width: 31ch; }
.detail-lower { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, .8fr); gap: clamp(1.5rem, 7vw, 5rem); margin-top: 2.3rem; }
.field-notes h2, .related h2 { font-size: 1.7rem; margin: 1.7rem 0 .5rem; }
.field-notes > :first-child, .related > :first-child { margin-top: 0; }
.field-notes p { max-width: 65ch; }
.field-notes p + p { margin-top: .7rem; }
.answer { font-size: 1.2rem; font-weight: 550; }
.detail .nojs { padding: .8rem 1rem; background: #e5ebdb; border-left: .25rem solid #668b64; }
.related { align-self: start; border-top: 1px solid var(--line); padding-top: 1rem; }
.related a { display: block; border-bottom: 1px solid var(--line); padding: .7rem 0; font-weight: 560; }
.related .class-link { margin-top: 2rem; }
.record, .embed { border-block-start: 1px solid var(--line); margin: 1.4rem 0 0; }
.record + .embed { margin: 0; border-block-end: 1px solid var(--line); }
.record summary, .embed summary { cursor: pointer; font-weight: 650; padding: .85rem .1rem; }
.record > div, .embed > div { padding-bottom: 1.15rem; }
.record dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0 0 1rem; }
.record dt { font-weight: 640; }
.record dd { margin: 0; }
.record code, .embed textarea { font-family: var(--mono); font-size: .85rem; }
.credit { color: var(--muted); font-size: .85rem; }
.embed label { display: block; margin-bottom: .4rem; }
.embed textarea { display: block; width: 100%; resize: vertical; padding: .6rem; color: var(--ink); background: #fffef7; border: 1px solid #8fa28e; }
.embed a { display: inline-block; margin-top: .6rem; }
@media (max-width: 740px) {
  .detail-lower { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-boards { max-width: 24rem; }
  .feature h2 { max-width: none; }
  .teacher-call { display: block; }
  .teacher-call > a { display: inline-block; margin-top: .7rem; }
}
@media (max-width: 460px) {
  .frame { width: calc(100% - 1.6rem); }
  .mast-inner { gap: .3rem; min-height: 3.75rem; }
  .brand { font-size: 1rem; gap: .3rem; }
  .brand img { width: 1.35rem; height: 1.35rem; }
  .mast nav { gap: .1rem; font-size: .76rem; }
  .mast .nav-play { padding-inline: .45rem; }
  .record dl { display: block; }
  .record dd + dt { margin-top: .5rem; }
}
@media print {
  .mast nav, .skip, .crumb, .embed, .foot, .class-link, .launch { display: none; }
  .frame { width: 100%; }
  .detail-lower { display: block; }
  body { color: black; background: white; }
}
.static-boards { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1.2rem; background: var(--forest); color: #dcebcf; border-radius: .5rem; }
.static-boards figure { width: min(9rem, 42%); }
.static-boards figcaption { margin-top: .4rem; font: 600 .78rem/1.4 var(--mono); }
.research-link { margin: 2.2rem 0 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.research-link h2 { font-size: 1.55rem; }
.research-link p { margin-top: .4rem; color: var(--muted); }
@media (max-width: 360px) {
  .mast-inner { gap: .12rem; }
  .brand img, .mast .nav-play span { display: none; }
  .mast nav { gap: 0; }
  .mast nav a { padding-inline: .22rem; }
}
.edition-notice { margin: 0 0 1rem; padding: .65rem 1rem; border-inline-start: 3px solid #86703b; background: #f0ebd8; }
