@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1c1c19;
  --muted: #585852;
  --line: #c9c6bd;
  --paper: #f4f2ed;
  --white: #fff;
  --accent: #ad3917;
  --accent-dark: #7c2b11;
  --report: #21211f;
  --report-text: #efede5;
  --danger: #a1172e;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-family: var(--sans);
  font-size: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: clamp(1rem, .96rem + .15vw, 1.0625rem); line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
code { font-family: var(--mono); font-size: .875rem; overflow-wrap: anywhere; }
textarea, dd, .reading-code { overflow-wrap: anywhere; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; }
h1 { max-width: 100%; font-size: clamp(2.5rem, 1.75rem + 3.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 1.5rem + 1.65vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: clamp(1.375rem, 1.25rem + .55vw, 1.75rem); line-height: 1.22; letter-spacing: -.02em; }
h4 { font-size: 1rem; line-height: 1.3; }
.shell { width: min(100% - 2 * clamp(1.25rem, 6vw, 3rem), 74rem); margin-inline: auto; }
.skip-link { z-index: 1; position: absolute; inset: .5rem auto auto .5rem; padding: .55rem .8rem; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
/* The masthead and cover sit on the same field. */
.site-header { position: relative; z-index: 2; color: #f6f4ef; background: #0a0a09; }
.masthead { min-height: 76px; border-bottom: 1px solid #393935; }
.masthead, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; font-size: 1.32rem; font-weight: 700; line-height: 1.1; letter-spacing: -.055em; text-decoration: none; }
.brand-mark { position: relative; display: inline-block; width: 2.2rem; height: 1.45rem; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 1.33rem; height: .88rem; transform: skewX(-19deg); border: .18rem solid currentColor; border-radius: .29rem; }
.brand-mark::before { right: .04rem; top: .02rem; }
.brand-mark::after { left: .12rem; bottom: .02rem; border-color: #ff783f; }
.masthead nav { display: flex; align-items: center; gap: clamp(1.125rem, 3vw, 3.75rem); }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; color: #e4e4dc; font-size: .875rem; text-decoration: none; }
.masthead nav a:hover, .masthead nav a:focus-visible { color: #ff9467; text-decoration: underline; }
.shell { width: min(100% - 2 * clamp(1.15rem, 4.5vw, 5rem), 94rem); }
.skip-link { z-index: 5; }
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; color: #f6f4ee; background: #080908; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-art { z-index: -2; inset: 0 -3vw 0 auto; width: min(95%, 112rem); }
.hero-art img { object-fit: cover; object-position: 75% 46%; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#080908 2%,rgba(8,9,8,.93) 14%,rgba(8,9,8,.58) 38%,transparent 66%), linear-gradient(0deg,rgba(8,9,8,.98) 0%,rgba(8,9,8,.45) 14%,transparent 39%); }
.hero-interior { padding-block: clamp(2.5rem, 4.5vw, 4rem) 1.25rem; }
.hero-copy { width: min(100%, 46rem); }
.scope-label, .scope-path { font: 400 .76rem/1.4 var(--mono); }
.hero h1 { font-size: clamp(2.65rem, 4.35vw, 4.5rem); line-height: .98; letter-spacing: -.065em; font-weight: 600; text-wrap: balance; }
.hero-term { white-space: nowrap; }
.end-stop { color: #ff7944; }
.lede { max-width: 46ch; margin-top: 1rem; font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.45; color: #eeeae2; }
.hero .hero-actions { display: grid; width: fit-content; grid-template-columns: repeat(2, auto); align-items: start; gap: .25rem 1.25rem; margin-top: 1.25rem; }
.hero-choice .button { min-height: 3rem; padding: .6rem .85rem; border-radius: 0; font-size: .95rem; }
.hero-choice-help { display: block; margin-top: .3rem; color: #dedad1; font-size: .8125rem; line-height: 1.35; }
.hero-choice .hero-primary { color: #171810; background: #ff824e; }
.hero-choice .hero-primary:hover { background: #ffab84; }
.hero-choice .hero-local { border-color: #a19c91; color: #f4f1e8; background: #151513; }
.hero-choice .hero-local:hover { border-color: #ff824e; }
.hero :focus-visible { outline-color: #ff824e; }
.hero-example { grid-column: 1 / -1; justify-self: start; padding: .4rem 0; border: 0; min-height: 44px; color: #f4f1e8; background: none; font-size: .92rem; text-decoration: underline; text-decoration-color: #9b9b91; text-underline-offset: .35em; }
.hero-example:hover { text-decoration-color: #ff824e; }
.hero-key { width: 100%; }
.scope-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem clamp(1rem,3vw,3.8rem); padding-block: 1.1rem; border-top: 1px solid #55544f; }
.scope-label { text-transform: uppercase; color: #d3cec4; letter-spacing: .04em; }
.scope-path { display: flex; align-items: center; gap: .5rem; color: #eeeae4; }
.scope-path i { display: block; width: clamp(1rem,2.2vw,2.6rem); height: 1px; }
.observed-line { background: #ff824e; transform-origin: left; }
.separate-line { border-top: 1px dashed #a3a097; }
.scope-caption { margin-left: auto; font-size: .82rem; color: #dedad1; }
.eyebrow { margin-bottom: .75rem; font: 400 .875rem/1.4 var(--mono); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .25rem; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; }
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); color: var(--white); }
.button-secondary { color: var(--accent); background: var(--white); border-color: var(--line); }
.button-secondary:hover:not(:disabled) { border-color: var(--accent); }
.button-quiet { color: var(--accent); background: transparent; }
.button-quiet:hover:not(:disabled) { text-decoration: underline; text-underline-offset: .2em; }

.assessment-section { background: var(--white); border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 7.5vw, 6rem); }
.section-intro { max-width: 65ch; margin-bottom: 1.75rem; }
.section-intro p, .section-summary { margin-top: .8rem; color: var(--muted); }
.instrument { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--line); }
.input-panel, .result-panel { min-width: 0; padding: clamp(1.2rem, 3vw, 2.25rem); }
.input-panel { border-right: 1px solid var(--line); }
.result-panel { background-color: var(--paper); }
label { display: block; font-size: .9375rem; font-weight: 700; line-height: 1.4; margin-bottom: .35rem; }
.field-help { margin-bottom: .55rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.hostname-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: stretch; margin-bottom: 1.15rem; }
input, textarea, select { display: block; min-width: 0; width: 100%; padding: .7rem .8rem; border: 1px solid #8a96ac; border-radius: .25rem; background: var(--white); color: var(--ink); }
input, select { min-height: 2.75rem; }
textarea { resize: vertical; margin-bottom: 1.15rem; font-family: var(--mono); font-size: .875rem; line-height: 1.5; }
.command-panel { background: var(--paper); padding: .8rem; margin-block: .65rem 1.15rem; font-size: .875rem; }
.local-evidence { margin-top: 1.15rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.local-note { margin-top: .6rem; }
#prepare { margin-bottom: 1rem; }
.clear-action { margin-top: .8rem; padding-inline: 0; }
.command { display: block; padding: .6rem .75rem; margin: .5rem 0; background: #e5eafa; color: var(--ink); white-space: pre-wrap; }
.command-panel details { margin-top: .75rem; }
summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.command-panel details p { margin-top: .35rem; }
.form-error { margin-top: .65rem; color: var(--danger); font-size: .875rem; line-height: 1.5; }
[aria-invalid="true"] { border-color: var(--danger); }
.form-actions { margin-top: 1.15rem; }
.result-panel h3 + p { margin-top: .75rem; color: var(--muted); }
.report-outline { display: grid; grid-template-columns: 1fr auto; margin-top: 1.4rem; border-top: 1px solid var(--line); }
.report-outline span { border-bottom: 1px solid var(--line); padding-block: .5rem; color: var(--muted); font-size: .875rem; }
.report-facts { margin-block: 1.15rem; border-top: 1px solid var(--line); }
.report-facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: .5rem; padding-block: .55rem; border-bottom: 1px solid var(--line); }
.report-facts dt { font-size: .875rem; font-weight: 700; line-height: 1.5; }
.report-facts dd { margin: 0; font-family: var(--mono); font-size: .875rem; line-height: 1.5; }
.scope-note { font-size: .875rem; color: var(--muted); }
.next-check { margin-top: 1rem; padding: .8rem 1rem; border-left: .2rem solid var(--accent); background: var(--white); }
.next-check p, .history-panel p { margin-top: .38rem; }
.next-check p { font-size: .9375rem; }
.history-panel { margin-top: 1.15rem; }
.history-panel .actions { margin-top: .65rem; }
.print-action { margin-top: 1.15rem; }
.print-heading { display: none; }

.methodology, .roadmap { display: grid; gap: clamp(1.5rem, 5.5vw, 4rem); }
.methodology { grid-template-columns: 1fr 1.65fr; padding-block: clamp(3.5rem, 7.5vw, 6rem); }
.methodology-details { border-top: 1px solid var(--line); }
.methodology article { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.methodology article p, .roadmap h3 + p { margin-top: .55rem; color: var(--muted); }
.methodology article a { display: inline-block; margin-top: .55rem; font-size: .875rem; font-weight: 700; }
.roadmap-section { background: #e9eefb; border-block: 1px solid var(--line); }
.roadmap { grid-template-columns: .85fr 1.15fr; align-items: start; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.5rem; }
.footer-inner > a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.not-found { padding-block: 4rem; }
.not-found p { margin-top: 1rem; }

@media (min-width: 48.0625rem) {
  .instrument:has(.local-evidence[open]) .result-panel { align-self: start; border-bottom: 1px solid var(--line); }
}

@media (max-width: 48rem) {
  .instrument, .methodology, .roadmap { grid-template-columns: minmax(0, 1fr); }
  .input-panel { border: 0; border-bottom: 1px solid var(--line); }
  .report-outline { display: none; }
  .footer-inner { padding-block: 1rem; }
}

@media (max-width: 25rem) {
  .hostname-row { grid-template-columns: minmax(0, 1fr); }
  .report-facts div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}

@media (max-width: 22.8125rem) {
  .masthead { flex-wrap: wrap; justify-content: flex-start; padding-top: .65rem; gap: .15rem 1rem; }
  .masthead nav { width: 100%; }
}

@media print {
  body { background: white; }
  .site-header, .site-footer, .skip-link, .hero, .methodology, .roadmap-section, .input-panel, .section-intro, .print-action, .history-panel .actions, .history-panel .field-help { display: none !important; }
  .assessment-section, .result-panel, .instrument { display: block; padding: 0; border: 0; background: white; }
  .print-heading { display: block; margin-bottom: 1rem; font-weight: 700; }
  .shell { width: 100%; }
}


@media screen and (max-width: 44rem) {
  .masthead { min-height: 59px; flex-wrap: nowrap; padding-block: 0; gap: .5rem; }
  .masthead nav { width: auto; gap: .8rem; }
  .masthead nav a { font-size: .79rem; }
  .brand { font-size: 1.05rem; gap: .4rem; }
  .brand-mark { transform: scale(.85); transform-origin: left center; width: 1.95rem; }
  .hero-art { right: 0; width: 100%; height: 15rem; }
  .hero-art img { object-position: 65% 43%; }
  .hero::before { background: linear-gradient(180deg, transparent 0, #080908 14rem), linear-gradient(90deg, rgba(8,9,8,.62), transparent); }
  .hero-interior { padding-block: 7.25rem .5rem; }
  .hero h1 { font-size: clamp(2.15rem, 8.8vw, 3.5rem); }
  .hero .lede { margin-top: .75rem; }
  .hero .hero-actions { width: min(100%, 30rem); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem .65rem; margin-top: .9rem; }
  .hero-choice .button { width: 100%; padding-inline: .5rem; font-size: .86rem; }
  .hero-example { font-size: .85rem; }
  .scope-strip { gap: .35rem 1.25rem; padding-block: .8rem; }
  .scope-label, .scope-path { font-size: .69rem; }
  .scope-caption { flex: 1 0 100%; margin: 0; font-size: .76rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .observed-line { animation: trace-connection .8s ease-out both; }
  @keyframes trace-connection { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media print {
  .hero { display: none !important; }
}
