:root {
    color-scheme: light;
    --ink: #182a23;
    --muted: #4e6359;
    --line: #d7e1d9;
    --dark: #123b2c;
    --lime: #dcf5bc;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f6f8f4; color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .17em; }
h1, h2, p { margin: 0; }
h1 { max-width: 19ch; font-size: clamp(2.1rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.12rem, 3vw, 1.45rem); line-height: 1.2; letter-spacing: -.02em; }
p { margin-top: .7rem; }
.wrap { width: min(1110px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 34px); }
.top { background: white; border-bottom: 1px solid var(--line); }
.nav, .footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 15px; }
.nav a { text-decoration: none; font-weight: 650; }
.brand { margin-right: auto; font-size: 1.3rem; }
.brand b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--dark); color: var(--lime); }
.skip { position: absolute; inset: 8px auto auto 8px; background: white; padding: 8px; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #40745c; outline-offset: 3px; }
.hero { padding-block: clamp(28px, 7vw, 76px) 26px; max-width: 740px; }
.hero > a { display: inline-block; margin-top: 18px; }
.search { margin-top: 24px; }
.search div { display: flex; gap: 8px; }
input, button { font: inherit; border-radius: 10px; padding: 10px 12px; min-height: 44px; }
input { min-width: 0; width: 100%; border: 1px solid #8fa498; background: white; color: var(--ink); }
button { cursor: pointer; font-weight: 700; border: 1px solid transparent; background: var(--dark); color: white; }
.secondary { background: var(--lime); color: var(--dark); }
label { display: block; margin: 12px 0 5px; color: var(--muted); }
.cards, .workbench { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.workbench { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: clamp(16px, 4vw, 27px); border: 1px solid var(--line); border-radius: 18px; background: white; }
.tile { display: grid; gap: 8px; text-decoration: none; }
.tile:hover { border-color: #46755d; }
.tile p, .lead, .crumb, .footer { color: var(--muted); }
.tile span { margin-top: auto; font-weight: bold; }
.section-title, .lead { margin-bottom: 16px; }
.crumb { padding-block: 24px 12px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.result { background: var(--dark); color: white; }
.result dd { margin: 0 0 10px; color: var(--lime); font-size: clamp(1.25rem, 4vw, 2.5rem); font-weight: 730; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result dt { color: #d8eee0; }
.error { color: #a72727; margin-top: .35rem; font-size: .92rem; }
.hint { margin-top: .85rem; color: var(--muted); }
.explain, .related, .footer { margin-top: 18px; }
.explain h2 + h2 { margin-top: 1rem; }
.footer { border-top: 1px solid var(--line); font-size: .875rem; }
.page { padding-bottom: 8px; }
.prose { max-width: 740px; padding-bottom: clamp(36px, 8vw, 72px); }
.prose h2 { margin-top: clamp(22px, 4vw, 34px); }
.prose p, .prose ul { margin-top: .7rem; color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-top: .35rem; }
.prose code { font-size: .92em; }
.result:focus { outline: 3px solid var(--lime); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: not-allowed; }
input[aria-invalid="true"] { border-color: #a72727; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 650px) {
    .workbench { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
    .actions { flex-direction: column; }
    .actions button { width: 100%; }
}
