:root { color: #203a2e; background: #f4f3ec; font: 15px/1.6 system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { max-width: 1200px; margin: auto; padding: 24px 30px; }
header { padding-bottom: 0; }
a { color: #286344; text-underline-offset: 4px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; margin: 28px 0 10px; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(32px, 4.5vw, 54px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 20px; }
h2 { font-size: 27px; line-height: 1.2; margin: 0 0 22px; }
h3 { font-size: 22px; margin: 0 0 10px; }
.intro { max-width: 680px; font-size: 17px; color: #4b5e50; }
.notice { max-width: 880px; border-left: 3px solid #a8834c; padding: 10px 16px; background: #ece6d8; font-size: 13px; }
.loading { display: flex; align-items: center; gap: 16px; min-height: 48px; }
#status { font-size: 13px; }
#status.error { color: #9b3427; }
label { display: block; font-size: 12px; font-weight: 600; min-width: 0; }
select, button { font: inherit; color: inherit; background: #fffefa; border: 1px solid #b4c3af; border-radius: 6px; min-height: 44px; padding: 10px 12px; }
select { display: block; width: 100%; margin-top: 7px; }
button { cursor: pointer; font-size: 12px; }
:focus-visible { outline: 3px solid #286344; outline-offset: 4px; }
.skip { position: fixed; top: -100px; left: 15px; background: #fffefa; padding: 10px; z-index: 5; }
.skip:focus { top: 15px; }
[hidden] { display: none !important; }
.choices { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 16px; }
.muted { font-size: 12px; color: #4b5e50; }
.workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; margin-top: 26px; }
aside { padding: 24px; background: #e7eddf; border-radius: 9px; }
aside .eyebrow { margin-top: 0; }
aside label { margin: 22px 0; }
output { font-variant-numeric: tabular-nums; }
aside output { display: block; font-weight: 400; font-size: 14px; margin: 3px 0; }
input[type=range] { width: 100%; min-height: 44px; accent-color: #286344; margin: 0; cursor: pointer; }
.plot { padding: 24px; background: #fffefa; border-radius: 9px; min-width: 0; }
.plot-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plot-heading .eyebrow { margin: 0 0 6px; }
.plot-heading h2 { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 11px; margin: 24px 0 12px; }
.legend span::before { content: ''; display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; background: #89977f; }
.legend .stock::before { background: #286344; }
.legend .bounds::before { background: #d8c7a6; height: 8px; }
#chart svg { display: block; width: 100%; height: auto; min-height: 180px; }
#chart text { font: 11px system-ui, sans-serif; fill: #4b5e50; }
.day-label { margin: 18px 0; }
.day-label output { margin-left: 10px; font-weight: 400; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid #d8dfd1; padding-top: 20px; }
.values span { display: block; font-size: 11px; }
.values strong { display: block; font: 30px Georgia, serif; margin-top: 6px; font-variant-numeric: tabular-nums; }
.values small { font-size: 11px; }
.explanation { margin-top: 44px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps p { font-size: 13px; color: #4b5e50; }
.methods { border-top: 1px solid #c9d1c3; margin: 28px 0 10px; padding-top: 14px; font-size: 13px; }
summary { min-height: 44px; padding-top: 8px; font-weight: 600; cursor: pointer; }
#integrity { font-size: 11px; overflow-wrap: anywhere; color: #4b5e50; }
footer { border-top: 1px solid #c9d1c3; font-size: 12px; display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 40px; }
footer p { margin: 0; color: #4b5e50; }
@media (max-width: 800px) {
	header, main, footer { padding: 20px 16px; }
	.workspace { grid-template-columns: 1fr; }
	aside { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding: 20px; }
	aside .eyebrow, aside h2, aside > p { grid-column: 1 / -1; margin: 0; }
	aside label { margin: 0; }
	.steps { grid-template-columns: 1fr; gap: 12px; }
	.plot { padding: 20px 14px; }
}
@media (max-width: 450px) {
	.choices { grid-template-columns: 1fr 1fr; }
	.choices label:first-child { grid-column: 1 / -1; }
	aside { grid-template-columns: 1fr; }
	.plot-heading { display: block; }
	.plot-heading button { margin-top: 14px; }
	.values { gap: 8px; }
	.values strong { font-size: 25px; }
}
