:root {
  color-scheme: light;
  --ink: #152a27;
  --quiet: #4c625e;
  --accent: #14594e;
  --accent-dark: #0f443b;
  --paper: #f5f8f4;
  --line: #c5d2cb;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
a { color: var(--accent); text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1060px, calc(100% - 36px)); margin-inline: auto; }
.masthead { background: #103e39; color: white; }
.masthead-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.masthead a { color: white; }
.wordmark { font-weight: 750; text-decoration: none; }
.wordmark span { font-size: .84em; font-weight: 500; }
.intro { max-width: 690px; padding-block: clamp(34px, 6vw, 68px) 26px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.65rem); line-height: 1.06; letter-spacing: -.036em; margin: 0 0 16px; }
.intro p { max-width: 62ch; margin: 0; font-size: clamp(1rem, 2vw, 1.22rem); color: var(--quiet); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: clamp(16px, 3vw, 26px); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
h2 { font-size: 1.32rem; letter-spacing: -.016em; margin: 0 0 12px; }
.text-button { min-height: 39px; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
label { display: block; font-weight: 625; font-size: .93rem; }
label small { color: var(--quiet); font-weight: 500; }
input, textarea, select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 4px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid #889f95; border-radius: 7px; }
textarea { resize: vertical; min-height: 170px; }
::placeholder { color: #576c66; opacity: 1; }
:focus-visible { outline: 3px solid #117461; outline-offset: 3px; }
.masthead :focus-visible { outline-color: white; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields .wide { grid-column: 1 / -1; }
.helper, .count, .feedback { color: var(--quiet); margin: 9px 0 0; font-size: .9rem; }
.count { color: var(--accent); font-weight: 680; }
.download { background: var(--accent); color: white; min-height: 47px; border: 0; border-radius: 8px; padding: 11px 16px; font-weight: 710; margin-top: 18px; }
.download:hover { background: var(--accent-dark); }
.download:disabled { opacity: .62; cursor: default; }
.feedback[hidden], .feedback:empty { display: none; }
.feedback[data-error="true"] { color: #922a22; font-weight: 620; }
.instructions { margin-block: 35px; max-width: 78ch; }
.instructions ol { padding-left: 23px; margin: 0; }
.instructions li + li { margin-top: 9px; }
code { color: #16483f; font-size: .92em; }
footer { border-top: 1px solid var(--line); padding-block: 18px 32px; color: var(--quiet); }
@media (max-width: 710px) { form { grid-template-columns: 1fr; } }
@media (max-width: 370px) { .fields { grid-template-columns: 1fr; } }
