:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17221c;
  background: #f4f1e8;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; line-height: 1.55; }

a { color: #075c4a; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #f0a540; outline-offset: 3px; }

.site-header, main, footer { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; }
.brand { color: #17221c; font-size: 1.15rem; font-weight: 800; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; }
nav a[aria-current="page"] { color: #17221c; font-weight: 750; }

main { padding-block: 2.5rem 4rem; }
.hero { max-width: 54rem; padding-block: 2.5rem; }
.eyebrow { color: #0b6c58; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
h1 { margin: 0.25rem 0 1rem; font-size: clamp(2.25rem, 7vw, 4.8rem); line-height: 0.98; letter-spacing: -0.045em; }
h2 { margin-top: 0; font-size: 1.55rem; line-height: 1.2; }
h3 { margin: 1.5rem 0 0.5rem; font-size: 1rem; }
.lede { max-width: 48rem; font-size: clamp(1.05rem, 2vw, 1.3rem); }

.scope-card, .tool-card, .result-card, .explain-card, .source-card { border: 1px solid #c9c2ae; border-radius: 1rem; background: #fffdf7; box-shadow: 0 0.75rem 2rem rgba(33, 42, 35, 0.06); }
.scope-card, .tool-card, .result-card, .explain-card { margin-top: 1rem; padding: clamp(1.2rem, 4vw, 2rem); }
.scope-card { border-left: 0.45rem solid #0b6c58; }
.warning { margin-bottom: 0; color: #6f3712; font-weight: 700; }

form { display: grid; gap: 0.6rem; }
label { margin-top: 0.55rem; font-weight: 750; }
input, select, button { width: 100%; min-height: 3rem; border: 1px solid #77766e; border-radius: 0.55rem; background: white; color: #17221c; font: inherit; }
input, select { padding: 0.65rem 0.75rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-grid > div { display: grid; gap: 0.6rem; }
.actions { display: flex; gap: 0.8rem; margin-top: 1rem; }
button { border-color: #075c4a; background: #075c4a; color: white; padding-inline: 1rem; font-weight: 800; cursor: pointer; }
button.secondary { background: transparent; color: #075c4a; }

.result-card[data-status="COMPATIBLE"] { border-top: 0.5rem solid #1b7b45; }
.result-card[data-status="INCOMPATIBLE"] { border-top: 0.5rem solid #a52b20; }
.result-card[data-status="UNKNOWN"] { border-top: 0.5rem solid #be7417; }
.status-badge { display: inline-block; margin: 0 0 0.8rem; border-radius: 999px; background: #17221c; color: white; padding: 0.3rem 0.65rem; font-size: 0.78rem; font-weight: 850; letter-spacing: 0.08em; }
.result-summary { font-size: 1.1rem; font-weight: 650; }
.result-note { padding: 0.8rem; background: #f4f1e8; }
.evidence-list li { margin-bottom: 0.8rem; }

dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
dl div { padding: 1rem; background: #f4f1e8; border-radius: 0.7rem; }
dt { font-weight: 850; }
dd { margin: 0.45rem 0 0; }

.support-page { max-width: 52rem; }
.support-page h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.support-page h2 { margin-top: 2.5rem; }
.source-card { padding: 1.2rem; }
.source-card h3 { margin-top: 0; }
footer { border-top: 1px solid #c9c2ae; padding-block: 1.5rem 2.5rem; color: #51554f; }

@media (max-width: 42rem) {
  .site-header, .field-grid, dl { display: grid; grid-template-columns: 1fr; }
  .site-header { align-items: start; }
  .actions { flex-direction: column; }
  main { padding-top: 0.5rem; }
}
