:root {
  color-scheme: light;
  --ink: #192a23;
  --green: #134d3a;
  --paper: #f8f6f0;
  --hairline: #c8d0c5;
  --soft: #e9efe5;
  --muted: #4e6157;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font: 1rem/1.58 var(--sans); color: var(--ink); background: var(--paper); }
a { color: var(--green); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ae591f; outline-offset: 4px; }
.wrap { width: min(1120px, 90%); margin-inline: auto; }
header, footer, .section { border-bottom: 1px solid var(--hairline); }
header nav, footer .wrap, .links { display: flex; flex-wrap: wrap; gap: .55rem 1.45rem; align-items: center; }
header nav, footer .wrap { justify-content: space-between; padding-block: 1.05rem; }
.brand { font: 600 1rem/1.4 var(--mono); letter-spacing: .17em; text-decoration: none; color: var(--ink); }
header .links, footer { font-size: .92rem; }
.skip { position: absolute; left: .5rem; top: -10rem; background: white; padding: .55rem; }
.skip:focus { top: .5rem; z-index: 2; }
.hero { display: grid; grid-template-columns: 1.18fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3.2rem, 6vw, 5.6rem); }
h1, h2, h3, p, dl, ol { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.2vw, 4.85rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.05rem); }
h3 { font: 600 1.09rem/1.4 var(--sans); }
p + p { margin-top: .7rem; }
.lead { font-size: clamp(1.08rem, 1.55vw, 1.23rem); margin: 1.22rem 0 1.65rem; max-width: 51ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; }
.button, summary.button { display: inline-block; background: var(--green); color: white; border: 1px solid var(--green); border-radius: 3px; padding: .65rem 1rem; text-decoration: none; font: 600 1rem/1.45 var(--sans); cursor: pointer; }
.button:hover { background: #0a3a2b; }
.panel { background: #173d31; color: #f8faf4; padding: clamp(1.5rem, 3vw, 2.45rem); border-radius: 3px; }
.eyeline { font: 500 .82rem/1.5 var(--mono); letter-spacing: .045em; color: #c4dac7; margin-bottom: .8rem; }
.panel h2 { font-size: clamp(1.95rem, 3.05vw, 2.75rem); }
.panel dl { margin: 1.25rem 0 .4rem; }
.panel dl div, .math div { border-top: 1px solid #537666; display: flex; justify-content: space-between; align-items: baseline; gap: .85rem; padding: .6rem 0; }
.panel dt { color: #d4e7d6; }
dd { margin: 0; }
.panel dd { text-align: right; }
.panel .note { margin-top: .68rem; font-size: .92rem; color: #d8e7d9; }
.sum { font: 400 clamp(2.1rem, 3.8vw, 3.25rem)/1.15 var(--serif); }
.section { border-top: 1px solid var(--hairline); border-bottom: 0; padding-block: clamp(2.8rem,5.4vw,4.6rem); }
.alt { background: #eeefe7; }
.sectiongrid { display: grid; grid-template-columns: .83fr 1.25fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.sectiongrid > *, .hero > * { min-width: 0; }
.sectiongrid h2 { max-width: 17ch; }
.sectiongrid p { max-width: 66ch; }
.entry { padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
.entry:first-child { padding-top: 0; }
.entry:last-child { border: 0; padding-bottom: 0; }
.entry p { margin-top: .35rem; }
.math { margin: 1rem 0; }
.math div { border-top-color: var(--hairline); }
.math dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.math .total { border-top: 2px solid var(--green); font-weight: 650; }
details summary { cursor: pointer; font-weight: 600; }
details > p { margin-top: .8rem; }
details.worked { border-top: 1px solid var(--hairline); margin-top: 1rem; padding-top: .85rem; }
.end { background: var(--soft); }
.end details { margin: 1.1rem 0; }
.email-choices { display: flex; gap: .65rem 1.3rem; flex-wrap: wrap; margin: .85rem 0; }
.mailbody { background: var(--paper); padding: 1rem; border: 1px solid var(--hairline); border-radius: 3px; overflow-wrap: anywhere; }
.mailbody pre { white-space: pre-wrap; font: inherit; margin: .5rem 0 0; }
button.copy { margin-top: .7rem; color: var(--green); background: transparent; border: 1px solid var(--green); border-radius: 3px; padding: .5rem .75rem; font: inherit; cursor: pointer; }
.status { display: inline-block; margin-inline: .5rem; }
footer { border-top: 1px solid var(--hairline); border-bottom: 0; }
[hidden] { display: none !important; }
@media (max-width: 720px) {
  .hero, .sectiongrid { grid-template-columns: 1fr; gap: 1.5rem; }
  .sectiongrid h2 { max-width: 100%; }
  header nav { align-items: flex-start; }
  header .links { gap: .4rem .9rem; }
}
@media (max-width: 440px) { header nav, footer .wrap { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { header,footer,.actions,.end,script { display: none; } .hero,.sectiongrid{display:block;} .panel{background:white;color:black;border:1px solid black;margin:1rem 0;} .panel dt,.panel .eyeline,.panel .note {color:black;} }
