:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --surface: #fffefa;
  --ink: #202b25;
  --muted: #58645b;
  --line: #cfD3c8;
  --pine: #214334;
  --pine-soft: #e4ece0;
  --focus: #ab501e;
  --glow-rgb: 49 86 65;
  --surface-shadow: 0 2px 5px rgb(39 40 30 / 4%), 0 8px 24px rgb(39 40 30 / 5%);
  --hover-ease: cubic-bezier(.22, .68, .26, 1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; }
h1 { font-size: clamp(2.9rem, 4.8vw, 5rem); line-height: 1.03; }
h2 { font-size: clamp(1.8rem, 2.7vw, 2.45rem); }
a { color: var(--pine); text-decoration-thickness: .075em; text-underline-offset: .2em; }
button, textarea, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button { -webkit-appearance: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1248px, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead .wrap, .masthead nav, .signature { display: flex; align-items: center; }
.masthead .wrap { min-height: 64px; flex-wrap:wrap; gap: clamp(1rem, 3vw, 2.5rem); }
.masthead { color: #20372d; }
.masthead .signature, .masthead nav a { color: inherit; }
.masthead nav { align-self:stretch; gap:clamp(.85rem,2.5vw,2rem); margin-inline-start:auto; }
.masthead nav a { display:grid; align-items:center; align-self:stretch; position:relative; }
.masthead nav a[aria-current="page"]::after { content:""; position:absolute; inset:auto 0 0; height:3px; background:currentColor; }
.masthead nav a[aria-current="page"] { font-weight:700; }
.masthead .language { min-width:7.5em; }
.signature { gap: .6rem; font-weight: 650; color: var(--ink); text-decoration: none; }
.monogram { display: inline-grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 50%; background: #214334; color: #fffced; font: italic 1rem var(--serif); }
.masthead nav a, .language { font-size: .875rem; font-weight: 550; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover, .signature:hover span:last-child { text-decoration: underline; }
.language { display: inline-flex; align-items: center; justify-content:center; min-height: 40px; padding: 0 .85rem; background: color-mix(in srgb, currentColor 7%, transparent); border: 0; border-radius: 25px; }
.skip:not(:focus), .sronly { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip:focus { position:absolute; top:8px; left:8px; z-index:10; background:var(--surface); padding:.5rem; }
.primary { border: 0; border-radius: 7px; background: var(--pine); color: white; font-weight: 650; padding: .7rem 1.1rem; min-height: 46px; }
.primary::after { content: "→"; display:inline-block; margin-inline-start:.65em; }
@media (hover: hover) and (pointer: fine) {
  :where(.primary, .language, .chip, .close, .arrow, .mark, .answers button, .go, #clear, #retry) {
    transition: background-color 220ms ease, color 180ms ease, box-shadow 320ms var(--hover-ease);
  }
  :where(.primary, .chip, .close, .arrow, .mark, .answers button, .go, #clear, #retry):enabled:hover {
    box-shadow: 0 2px 5px rgb(var(--glow-rgb) / 8%), 0 6px 19px rgb(var(--glow-rgb) / 16%);
  }
  .language:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
  .primary:hover { background: #2d523e; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .primary::after { transition: transform 260ms var(--hover-ease); }
  .primary:hover::after { transform: translateX(2px); }
}
@media (forced-colors: active) {
  button:is(.primary, .language, .chip, .close, .arrow, .mark, .go, #clear, #retry), .answers button {
    outline: 1px solid ButtonText;
    outline-offset: -1px;
  }
  button:focus-visible { outline: 3px solid Highlight !important; outline-offset: 3px !important; }
}
.muted, small { color: var(--muted); }
small { font-size:.845rem; }
.footer { border-top:1px solid var(--line); padding-block: 1.35rem 2rem; margin-top: 2.6rem; }
.footer .wrap { display:flex; justify-content:space-between; align-items:baseline; gap:1.25rem; }
.footer p { max-width:80ch; font-size:.875rem; color:var(--muted); }
.footer a { flex:none; font-size:.9rem; font-weight:600; }
@media(max-width:820px) {
  .masthead .wrap { display:grid; grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"identity language" "pages pages"; padding-top:.65rem; row-gap:.25rem; }
  .masthead .signature { grid-area:identity; min-width:0; overflow-wrap:anywhere; }
  .masthead .language { grid-area:language; justify-self:end; min-width:0; }
  .masthead nav { grid-area:pages; display:flex; gap:clamp(.85rem,5vw,1.65rem); flex-wrap:wrap; margin:0; min-height:2.8rem; }
  .masthead nav a { padding:.45rem 0; }
}
@media(max-width:600px) {
  .signature { gap:.4rem; font-size:.9rem; }
  .monogram { width:28px; height:28px; font-size:.875rem; }
  .footer .wrap { flex-direction:column; gap:.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
@media (max-width:480px) {
  .masthead nav { gap:.15rem clamp(.4rem,2.3vw,.7rem); }
  .masthead nav a { font-size:.8rem; }
}
