:root{color-scheme:light;--ink:#112744;--teal:#00685f;--line:#cfdee1;--surface:#edf6f5;--text:#263b4c}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--text);font:1.0625rem/1.65 system-ui,sans-serif}
a{color:var(--teal);text-underline-offset:.2em}
.bar,footer{padding:1rem max(5vw,calc((100% - 68rem)/2));background:var(--ink);color:white;display:flex;justify-content:space-between;gap:1rem}
.bar a,footer a{color:white;font-weight:700}
main{max-width:73rem;margin:auto;padding:0 clamp(1rem,5vw,4rem)}
.hero{display:grid;grid-template-columns:1.3fr 1fr;gap:2rem;align-items:center;padding:3.5rem 0 2rem}
h1,h2{font-family:Georgia,serif;color:var(--ink);line-height:1.12}
h1{font-size:clamp(2.5rem,6vw,4.6rem);margin:0}
h2{font-size:clamp(1.8rem,4vw,2.8rem);margin:0 0 1rem}
.subtitle{font-size:1.25rem;font-weight:700;color:var(--teal)}
figure{margin:0}
figcaption{font-size:.9rem;margin-top:.6rem}
nav{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;border-block:1px solid var(--line);padding:1rem 0}
section{padding:2.4rem 0;border-bottom:1px solid var(--line)}
section p{max-width:76ch}
.formula,.visual,blockquote{background:var(--surface);padding:1rem 1.25rem;border-left:.25rem solid var(--teal);border-radius:.25rem;margin:1.25rem 0}
.formula{overflow-wrap:anywhere}
.table{overflow-x:auto;margin:1rem 0}
table{border-collapse:collapse;width:100%;font-size:.98rem}
th,td{text-align:left;vertical-align:top;padding:.65rem;border-bottom:1px solid var(--line)}
thead th{background:var(--ink);color:white}
tbody th{color:var(--ink)}
details{padding:.8rem 1rem;border:1px solid var(--line);border-radius:.5rem;margin:1rem 0}
summary{cursor:pointer;color:var(--teal);font-weight:700}
.flow{display:flex;flex-wrap:wrap;gap:.85rem;padding:0;list-style:none;counter-reset:steps}
.flow li{flex:1 1 10rem;border:1px solid var(--line);border-radius:.5rem;padding:.75rem;counter-increment:steps}
.flow li::before{content:counter(steps) ". ";color:var(--teal);font-weight:700}
.flow strong{display:block;color:var(--ink)}
.marks{display:grid;grid-template-columns:5rem repeat(10,minmax(0,1fr));gap:.25rem;margin:.4rem 0;align-items:center}
.marks span{text-align:center;background:white;border:1px solid var(--line);border-radius:.25rem;font-variant-numeric:tabular-nums}
.marks .far{background:#ffe4cc;color:#522f10}
.marks .centre{background:#c4e8df;color:#103b35}
.squares{display:flex;align-items:end;gap:2rem}
.square{background:#c4e8df;border:2px solid var(--teal);margin-bottom:.4rem}
.small{width:3.5rem;height:3.5rem}
.big{width:7rem;height:7rem;background:linear-gradient(to right,transparent calc(50% - 1px),var(--teal) calc(50% - 1px),var(--teal) calc(50% + 1px),transparent calc(50% + 1px)),linear-gradient(to bottom,#c4e8df calc(50% - 1px),var(--teal) calc(50% - 1px),var(--teal) calc(50% + 1px),#c4e8df calc(50% + 1px))}
footer{margin-top:2rem}
@media(max-width:43rem){.hero{grid-template-columns:1fr;padding-top:2rem;gap:1rem}.marks{grid-template-columns:repeat(10,minmax(0,1fr));font-size:.875rem}.marks strong{grid-column:1/-1}.visual,details{padding:.65rem}.table table{min-width:34rem}}
.flow:not(.alternatives) li{position:relative}
@media(min-width:58rem){.flow:not(.alternatives) li:not(:last-child)::after{content:"→";position:absolute;left:100%;top:50%;width:.85rem;transform:translateY(-50%);text-align:center;color:var(--teal);font-weight:700}}
.timeline{display:flex;justify-content:space-between;gap:.6rem}
.timeline span{flex:1;border-top:.25rem solid var(--teal);padding-top:.5rem}
.timeline span:last-child{border-color:#9c4d17}
.timeline strong,.timeline small{display:block}
.timeline small{line-height:1.3}
