:root {
  font-family: system-ui, sans-serif;
  color: #202823;
  background: #fff;
  --green: #20513d;
  --muted: #505c55;
  --line: #dce2dc;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { width: min(1160px, 89%); margin: auto; }
header, footer, nav, .brand, .langs { display: flex; align-items: center; }
header { min-height: 76px; gap: 38px; border-bottom: 1px solid var(--line); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #307aa4; outline-offset: 4px; }
.brand { gap: 9px; font-size: 22px; font-weight: 650; letter-spacing: -.055em; }
.brand svg { width: 27px; color: var(--green); }
nav { margin-left: auto; gap: 26px; font-size: 14px; }
.langs { gap: 2px; color: var(--muted); font-size: 13px; }
.langs a { padding: 6px; }
.langs [aria-current] { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.25vw, 72px); letter-spacing: -.055em; max-width: 16ch; }
h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; }
h3 { font-size: 19px; letter-spacing: -.02em; }
p { line-height: 1.6; color: var(--muted); }
.hero, .split { display: grid; align-items: start; gap: clamp(32px, 6vw, 88px); padding-block: clamp(42px, 5.5vw, 72px); }
.hero { grid-template-columns: 1.22fr 1fr; align-items: center; }
.intro, .result p { max-width: 53ch; margin: 20px 0 25px; font-size: 18px; }
.button, button { display: inline-block; border: 0; border-radius: 5px; padding: 13px 20px; background: var(--green); color: white; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.button:hover, button:hover { text-decoration: none; background: #173e2e; }
figure { overflow: hidden; background: #dce9d3; border: 1px solid #adbea8; border-radius: 5px; }
.figure-head, figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; color: #345641; font-size: 12px; }
.figure-head { border-bottom: 1px solid #b0c3ab; }
figcaption { border-top: 1px solid #b0c3ab; }
.diagram { display: block; width: 100%; max-height: 300px; font-family: ui-monospace, monospace; fill: #254d39; }
.split { grid-template-columns: .85fr 1.25fr; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.split p { max-width: 62ch; }
.split h2 + p { margin-top: 12px; }
ul, ol { padding: 0; list-style: none; }
li + li { margin-top: 22px; }
li p { margin-top: 4px; }
ol { list-style: decimal; padding-left: 1.5em; }
ol li { padding-left: .35em; }
ol li::marker { color: var(--muted); font-size: 15px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: block; font-weight: 600; font-size: 14px; }
input, textarea { display: block; width: 100%; margin: 7px 0 18px; padding: 10px 12px; background: white; color: inherit; border: 1px solid #9ba79e; border-radius: 5px; font: 400 16px/1.45 system-ui, sans-serif; }
textarea { resize: vertical; }
.privacy { font-size: 14px; margin-bottom: 16px; }
.trap, .skip:not(:focus) { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; background: white; padding: 8px; }
.result { min-height: 60vh; padding-block: 70px; }
footer { justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--line); }
footer span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  header, main, footer { width: calc(100% - 40px); }
  header { min-height: 62px; }
  header nav { display: none; }
  .langs { margin-left: auto; }
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 36px; }
  .diagram { max-height: 255px; }
  .pair { grid-template-columns: 1fr; gap: 0; }
  footer { flex-wrap: wrap; }
}
