@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --ink: #17263f;
  --action: #1c3558;
  --muted: #556279;
  --soft: #e9edf3;
  --line: #cbd2dc;
  --surface: #fdfcf8;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--action); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #41649a; outline-offset: 3px; }
header { border-bottom: 1px solid var(--line); }
.shell { width: min(1100px, 100% - 48px); margin: auto; }
.masthead { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.brand { font-size: 1.18rem; letter-spacing: -.035em; font-weight: 700; text-decoration: none; display: inline-flex; gap: 11px; align-items: center; min-height: 44px; }
.mark { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 3px; transform: rotate(45deg); }
.mode, .eyebrow, .meta, .label, .tag, dt { font-family: var(--mono); font-size: .78rem; }
.mode, .eyebrow, .label, dt { letter-spacing: .04em; }
.mode, .meta, .muted, dt, .label { color: var(--muted); }
.intro { padding-block: 42px 19px; }
.intro p { margin: 0 0 9px; color: var(--muted); }
.eyebrow { text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font: 400 clamp(2.5rem, 6vw, 4.8rem)/1 var(--serif); letter-spacing: -.035em; margin: 8px 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 1rem; line-height: 1.35; margin: 0; }
p { margin: 0 0 12px; }
.banner, .feedback { padding: 12px 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; }
.banner { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.error { background: #f7e8e0; border-color: #af7c64; color: #642a19; }
nav { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 13px 0 22px; border-bottom: 1px solid var(--line); }
nav a { display: inline-flex; align-items: center; min-height: 46px; padding-inline: 4px; text-decoration: none; border-bottom: 2px solid transparent; font-size: .9rem; }
nav a[aria-current] { border-bottom-color: var(--action); font-weight: 650; }
.grid, .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 22px; margin: 0 0 16px; }
.feedback { margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px 20px; margin: 12px 0; }
.facts div { min-width: 0; }
dt { text-transform: uppercase; }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.tag { display: inline-flex; align-items: center; padding: 4px 8px; background: var(--soft); color: var(--ink); border-radius: 4px; line-height: 1.35; }
.tag.attention { background: #f7e8e0; color: #642a19; }
.split, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; }
.split { justify-content: space-between; }
.actions { margin: 10px 0; }
button, .button { font: inherit; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--action); border-radius: 4px; background: var(--action); color: white; text-decoration: none; padding: 9px 14px; cursor: pointer; }
.secondary { color: var(--action); background: transparent; }
button:hover, .button:hover { box-shadow: inset 0 0 0 1px currentColor; }
form { display: grid; gap: 10px; margin: 10px 0; }
form button { justify-self: start; }
label { display: grid; gap: 5px; font-weight: 600; min-width: 0; }
input, textarea, select { color: var(--ink); background: #fff; border: 1px solid #8593a8; border-radius: 4px; font: inherit;
  min-height: 48px; padding: 10px 12px; width: 100%; }
textarea { min-height: 114px; resize: vertical; }
.check { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.check input { width: 20px; min-height: 20px; flex: 0 0 20px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { min-height: 44px; padding: 10px 2px; cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.detail { padding: 0 0 10px; }
.run, .finding { border-top: 1px solid var(--line); padding: 15px 0 6px; }
.run + .run, .finding + .finding { margin-top: 12px; }
.result { border-left: 2px solid var(--line); padding: 10px 0 10px 12px; margin: 12px 0; }
.result .pair { margin-top: 9px; }
.meta { overflow-wrap: anywhere; margin: 6px 0 9px; }
code, pre { font-family: var(--mono); font-size: .83rem; overflow-wrap: anywhere; }
pre { background: var(--soft); padding: 12px; border-radius: 4px; max-height: 32rem; overflow: auto; white-space: pre-wrap; }
.empty { background: var(--paper); color: var(--muted); padding: 12px; margin: 10px 0; border-radius: 4px; }
.assessment-list { list-style: none; padding: 0; }
.assessment-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); }
.assessment-list a { display: inline-flex; min-height: 44px; align-items: center; }
.assessment-list a[aria-current] { font-weight: 700; }
.skip { position: absolute; top: -5rem; background: var(--surface); padding: 10px; }
.skip:focus { top: 0; z-index: 1; }
footer { color: var(--muted); padding-block: 20px 36px; font-size: .9rem; }
@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .grid, .pair { grid-template-columns: 1fr; gap: 6px; }
  .intro { padding-top: 30px; }
  .card { padding: 15px; }
  nav { column-gap: 10px; }
}
