:root {
  --moss: #224f40;
  --leaf: #ebf2cd;
  --ivory: #f4f5ed;
  --card: #fcfcf6;
  --forest-ink: #1c332c;
  --rule: #cbd4c6;
  --subdued: #53665b;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ivory); color: var(--forest-ink); font: 1rem/1.5 var(--font-sans, system-ui, sans-serif); }
main { width: min(100% - 2.5rem, 62rem); margin: auto; padding: .875rem 0 1.5rem; }
nav { padding: .4rem 0 .85rem; border-bottom: 1px solid var(--rule); font-size: .86rem; }
a { color: var(--moss); text-underline-offset: .2em; }
header { padding: 1.5rem 0 1.2rem; }
header p, #facts, #empty-facts { color: var(--subdued); }
header p { max-width: 64ch; margin: .5rem 0 0; }
.interrupt-button {
  margin-top: .85rem;
  border: 1px solid var(--moss);
  border-radius: 7px;
  padding: .5rem .75rem;
  background: var(--moss);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.interrupt-button:hover { background: #173d31; }
.signature, .head-row { display: flex; align-items: center; gap: .55rem; }
.signature { color: var(--moss); font-size: .86rem; font-weight: 700; }
.soundmark { display: flex; gap: 2px; align-items: center; height: 21px; }
.soundmark i { width: 3px; height: 7px; border-radius: 2px; background: var(--moss); }
.soundmark i:nth-child(even) { height: 14px; }
.soundmark i:nth-child(3) { height: 21px; }
h1, .question, .quote { font-family: var(--font-serif, Georgia, serif); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin: .3rem 0 0; }
h2, legend { margin: 0; font-size: 1rem; font-weight: 700; }
.panels { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem; }
section { min-width: 0; border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1rem, 3vw, 1.45rem); }
.console { background: var(--moss); border-color: var(--moss); color: #f6f7e9; }
.paper { background: var(--card); }
fieldset { padding: 0; margin: 0; border: 0; display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
legend { padding: 0; margin-bottom: .65rem; }
fieldset label { position: relative; cursor: pointer; }
fieldset input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
fieldset span { display: block; padding: .42rem .65rem; border: 1px solid #92ae9b; border-radius: 7px; font-size: .85rem; }
fieldset input:checked + span { background: var(--leaf); color: var(--moss); border-color: var(--leaf); font-weight: 650; }
:focus-visible, fieldset input:focus-visible + span { outline: 3px solid #d59840; outline-offset: 3px; }
.question { margin: 1rem 0; font-size: clamp(1.55rem, 4vw, 2.25rem); }
.edition-label, .response-label { font-size: .84rem; color: #d6e4d3; }
select { display: block; margin-top: .28rem; padding: .45rem .7rem; border: 1px solid #93b0a0; border-radius: 6px; background: var(--card); color: var(--forest-ink); font: inherit; max-width: 100%; }
.playback { margin-top: 1.15rem; border-top: 1px solid #658574; padding-top: .9rem; }
.head-row { justify-content: space-between; flex-wrap: wrap; gap: .3rem .75rem; }
#state, .step-title b, .step-title span, .metadata { font-family: var(--font-mono, monospace); font-size: .77rem; }
#state { color: #d7e6c9; }
audio { width: 100%; height: 42px; display: block; margin: .65rem 0 1rem; }
.response-label, .quote { margin: 0; }
.quote { font-size: 1.45rem; margin-top: .3rem; }
.toggle { display: flex; align-items: center; gap: .3rem; font-size: .84rem; cursor: pointer; }
input { accent-color: var(--moss); }
.steps { padding: 0; margin: .7rem 0 0; list-style: none; }
.steps > li { border-top: 1px solid var(--rule); padding: .8rem 0; }
.step-title { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.step-title b { color: var(--moss); letter-spacing: .08em; }
.step-title span,.metadata { color: var(--subdued); }
.steps p { margin: .35rem 0 0; }
#candidates, #facts { margin: .35rem 0 0; padding-left: 1.25rem; }
#candidates { font-size: .86rem; }
#candidates:empty { display: none; }
.metadata { display: block; }
blockquote { margin: .65rem 0 0; padding: .7rem .85rem; background: #edf1e3; border-left: 3px solid #819c6e; border-radius: 0 6px 6px 0; }
details { border-top: 1px solid var(--rule); padding-top: .65rem; font-size: .88rem; }
summary { cursor: pointer; color: var(--moss); font-weight: 650; }
#empty-facts { margin: .3rem 0 0; }
.interruption { margin-bottom: 1rem; }
.interruption > p { max-width: 78ch; margin: .5rem 0; }
.cue-list { list-style: none; padding: 0; margin: 0; }
.cue-list li { display: flex; gap: .65rem; padding: .42rem .55rem; border-radius: 4px; font-size: .9rem; }
.cue-list time { flex: 0 0 4rem; color: var(--subdued); font-variant-numeric: tabular-nums; }
.cue-list [aria-current="step"] { background: #edf1e3; color: var(--moss); font-weight: 650; }
.system { margin-top: 1rem; }
.system dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem 1.25rem; margin: .6rem 0; }
.system dt { font-weight: 650; }
.system dd { margin: .3rem 0 0; color: var(--subdued); font-size: .93rem; }
.system > p { margin: .8rem 0 0; }
.embedded nav, .embedded .signature, .embedded h1 { display: none; }
.embedded main { padding-top: 0; }
.embedded header { padding-top: .9rem; }
@media (max-width: 670px) {
  main { width: min(100% - 1.5rem, 34rem); }
  .panels { grid-template-columns: 1fr; gap: .75rem; }
  .system dl { grid-template-columns: 1fr; }
}
