:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #19251f;
  --muted: #4e5950;
  --line: #d3d5c9;
  --accent: #355843;
  --dark: #132a23;
  --mint: #d8f49a;
  --warm: #ffd18c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font: 100%/1.6 var(--sans);
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
p { margin: 0 0 .9rem; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button, input[type='range'], input[type='radio'], summary { cursor: pointer; }
:focus-visible { outline: 3px solid #92602e; outline-offset: 4px; }
:target { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.skip { position: absolute; z-index: 10; left: 1rem; top: .8rem; background: #fff; padding: .6rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { min-height: 5.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: .72rem; font-weight: 750; line-height: 1.02; text-decoration: none; font-size: .97rem; letter-spacing: -.018em; }
.mark { width: 2.4rem; height: 2.4rem; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: .12rem; padding: .35rem; border-radius: .33rem; background: var(--dark); }
.mark i { display: block; height: 1.44rem; border: 1.5px solid var(--mint); border-right-width: 0; border-radius: 50% 13% 13% 50%; transform: rotate(-20deg); }
.mark i + i { border: 1.5px solid var(--warm); border-left-width: 0; border-radius: 13% 50% 50% 13%; transform: rotate(-20deg); }
.masthead nav { display: flex; gap: clamp(.85rem, 3vw, 2rem); align-items: center; }
.masthead nav a { padding: .5rem 0; text-decoration: none; font-size: .94rem; font-weight: 650; }
.masthead nav a:hover, .wordmark:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); align-items: center; gap: clamp(1.7rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6.3rem) 0 3.1rem; }
.eyebrow { font-weight: 760; font-size: .85rem; line-height: 1.25; color: var(--accent); text-transform: uppercase; letter-spacing: .105em; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.047em; }
h1 { font-size: clamp(3.25rem, 5.92vw, 5.6rem); line-height: .96; margin: .9rem 0 1.2rem; }
h1 em { display: block; color: var(--accent); }
.hero-copy > p:not(.eyebrow) { max-width: 36rem; color: var(--muted); }
.hero-copy > .lead { font-size: clamp(1.1rem, 2.1vw, 1.33rem); line-height: 1.42; font-weight: 650; color: var(--ink); }
.primary-link { display: inline-flex; padding: .74rem 1.25rem; margin-top: .5rem; text-decoration: none; color: #fff; font-weight: 700; background: var(--accent); border-radius: .27rem; }
.primary-link:hover { background: var(--dark); }
.cover { position: relative; isolation: isolate; margin: 0; min-height: clamp(23rem, 37vw, 31.25rem); overflow: hidden; border-radius: .52rem .52rem .2rem .2rem; background: var(--dark); color: var(--mint); }
.cover::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 40% 47%, #325547, transparent 72%); }
.cover-label { position: absolute; z-index: 1; top: 1.35rem; left: 1.45rem; font-size: .87rem; font-weight: 650; color: #e3ecda; }
.cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover figcaption { position: absolute; inset: auto 0 0; padding: 2rem 1.45rem 1.45rem; background: linear-gradient(transparent, #132a23 44%); }
.cover figcaption strong, .cover figcaption span { display: block; }
.cover figcaption strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2.5vw, 2.05rem); letter-spacing: -.034em; line-height: 1.2; }
.cover figcaption span { font-size: .91rem; color: #e3ecda; margin-top: .28rem; }
.collection { display: grid; grid-template-columns: .95fr 1.7fr; gap: 1.8rem; border-block: 1px solid var(--line); padding: 1.35rem 0; }
.collection h2 { font-size: 1.8rem; line-height: 1.12; }
.collection-title p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.entry-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.entry-links a { display: flex; flex-direction: column; justify-content: center; gap: .24rem; border-left: 1px solid var(--line); padding: .35rem .7rem .35rem 1rem; text-decoration: none; }
.entry-links a:hover { background: #e9eee1; }
.entry-links strong { font-weight: 680; line-height: 1.3; }
.exhibit { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr); gap: 1.2rem clamp(1.7rem, 5vw, 5rem); padding: 4.3rem 0; border-bottom: 1px solid var(--line); }
.exhibit-intro { padding-top: .25rem; }
.exhibit h2, .about h2 { font-size: clamp(2.3rem, 4.3vw, 4rem); line-height: 1.02; margin-bottom: 1rem; }
.exhibit-intro p:not(.eyebrow), .about p { color: var(--muted); max-width: 40rem; }
.exhibit-intro strong { color: var(--ink); }
.experiment { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1rem, 2.75vw, 1.8rem); min-width: 0; border-radius: .4rem; }
.roll-experiment { background: #e7eddf; border: 1px solid #ced9c9; }
.control { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .35rem .75rem; }
.control label, .mixtures legend { font-size: .93rem; font-weight: 720; }
.control output { font-weight: 750; font-size: 1.14rem; }
.control input[type='range'] { grid-column: 1 / -1; width: 100%; min-width: 0; height: 1.7rem; padding: 0; margin: 0; accent-color: var(--accent); }
.range-scale, .control-help, .presets { grid-column: 1 / -1; }
.range-scale { display: flex; justify-content: space-between; margin-top: -.29rem; color: var(--muted); font-size: .81rem; }
.control-help { margin: .2rem 0; color: var(--muted); font-size: .9rem; }
.presets { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .27rem; }
.presets button { min-height: 2.3rem; border-radius: .27rem; border: 1px solid #819584; padding: .27rem .62rem; color: inherit; background: transparent; font-size: .85rem; font-weight: 650; }
.presets button:hover { background: #d1dfcb; }
.presets button[aria-pressed='true'] { color: #fff; background: var(--accent); border-color: var(--accent); }
.delta-board { display: grid; gap: .45rem; border-top: 1px solid #b8c7b6; padding-top: .75rem; }
.delta-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 .7rem; font-size: .9rem; }
meter { grid-column: 1 / -1; width: 100%; height: .7rem; margin: .18rem 0; }
meter::-webkit-meter-bar { background: #ccd8cb; border: 0; border-radius: .2rem; }
meter::-webkit-meter-optimum-value { background: #3b634c; border-radius: .2rem; }
meter::-moz-meter-bar { background: #3b634c; border-radius: .2rem; }
.material-meter::-webkit-meter-optimum-value { background: #9a6938; }
.material-meter::-moz-meter-bar { background: #9a6938; }
.plan-grid, .wave-readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .52rem; }
.plan { border: 1px solid #bdcbb9; border-radius: .26rem; padding: .57rem .7rem; background: #f3f6ed; }
.plan.is-cheaper { border-color: #4a7558; background: #d2e3cb; }
.plan span, .wave-readout span { display: block; font-size: .78rem; line-height: 1.4; }
.plan strong, .wave-readout strong { display: block; font-size: clamp(1.23rem, 3.2vw, 1.72rem); font-variant-numeric: tabular-nums; line-height: 1.28; margin-top: .14rem; }
.verdict { margin: 0; font-size: .94rem; font-weight: 680; }
.evidence { grid-column: 2; border-block: 1px solid var(--line); padding: .8rem 0; }
.evidence summary { font-weight: 690; color: var(--accent); }
.evidence[open] summary { margin-bottom: .75rem; }
.evidence p, .evidence dl { font-size: .94rem; color: var(--muted); }
.evidence a, .about-links a { color: var(--accent); font-weight: 700; }
.source-values { margin: 0 0 .9rem; }
.source-values div { display: flex; flex-wrap: wrap; gap: .2rem .75rem; }
.source-values dt { font-weight: 700; }
.source-values dd { margin: 0; overflow-wrap: anywhere; }
.phase-experiment { color: #f0f5ec; background: var(--dark); }
.phase-experiment :focus-visible { outline-color: var(--warm); }
.phase-controls { display: grid; gap: .78rem; }
.mixtures { display: flex; flex-wrap: wrap; gap: .7rem 1rem; margin: 0; padding: .3rem 0 0; border: 0; min-width: 0; }
.mixtures label { display: flex; align-items: center; gap: .35rem; min-height: 2rem; font-size: .89rem; font-weight: 630; }
.mixtures input { accent-color: var(--mint); margin: 0; }
.phase-control input[type='range'] { accent-color: var(--mint); }
.phase-control .range-scale { color: #cbddcf; }
.phase-control .presets button { background: transparent; color: #e9f3e1; border-color: #8faa96; }
.phase-control .presets button:hover { background: #305044; }
.phase-control .presets button[aria-pressed='true'] { color: var(--dark); background: var(--mint); border-color: var(--mint); }
.phase-figure { margin: 0; border-block: 1px solid #4c675b; padding: .55rem 0; }
.phase-figure canvas { width: 100%; height: clamp(9rem, 16vw, 12.5rem); display: block; }
.phase-figure figcaption { font-size: .85rem; color: #d3e3d7; }
.phase-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .82rem; font-weight: 660; }
.phase-legend span { display: inline-flex; gap: .35rem; align-items: center; }
.phase-legend i { width: 1.25rem; border-top: 3px solid var(--mint); }
.phase-legend .trial-key { border-top: 3px dashed var(--warm); }
.wave-readout div { padding: .48rem .6rem; border-radius: .24rem; background: #264437; }
.wave-readout strong { color: var(--mint); }
.about { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr); gap: .7rem clamp(1.7rem, 5vw, 5rem); padding: 4rem 0 3.5rem; }
.about-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.1rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.2rem 0 1.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.noscript { padding: .75rem 1rem; border: 1px solid var(--line); }

@media (max-width: 53rem) {
  .hero { grid-template-columns: 1fr; padding-top: 3.25rem; }
  .hero-copy { max-width: 40rem; }
  .cover { min-height: clamp(16rem, 56vw, 26rem); }
  .collection { grid-template-columns: 1fr; gap: .8rem; }
  .exhibit, .about { grid-template-columns: 1fr; padding: 3rem 0; }
  .evidence { grid-column: 1; }
}
@media (max-width: 34rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { min-height: 4.4rem; }
  h1 { font-size: clamp(2.78rem, 11.2vw, 4.4rem); }
  .hero { padding-top: 2.6rem; }
  .cover-label { top: 1rem; left: 1rem; }
  .cover figcaption { padding-inline: 1rem; padding-bottom: 1rem; }
  .entry-links { grid-template-columns: 1fr; }
  .entry-links a { min-height: 3.35rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .entry-links a, .primary-link, .presets button { transition: background-color 120ms ease, color 120ms ease; }
}
