/* Plain ACR: light only, no dark styles (project rule). Contrast ratios are against white unless noted.
   Design notes and the reasons behind them: review/design/README.md. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-opsz.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
:root {
  --ink: #1b2230;       /* body text, 15.9:1 */
  --navy: #1b365d;      /* headings, buttons, structural rules, 12.1:1 */
  --navy-dark: #10233f;
  --link: #1d4f91;      /* links, 8.1:1 */
  --muted: #4f5866;     /* secondary text, 7.2:1 (6.6:1 on --wash) */
  --wash: #f4f6f9;      /* panels */
  --rule: #cfd5dd;      /* decorative hairlines only */
  --field: #6b7480;     /* form field borders, 4.7:1 (4.4:1 on --wash) */
  --bad: #a61b1b;
  --ps: #7a4100;
  --max: 70rem;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  font-variant-numeric: lining-nums;
}
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--navy); font-weight: 600; line-height: 1.2; margin: 1.7em 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.05rem); line-height: 1.12; letter-spacing: -0.012em; margin-top: 0; }
h2 { font-size: clamp(1.45rem, 2.7vw, 1.85rem); letter-spacing: -0.005em; }
h3 { font-size: 1.2rem; }
p, ul, ol, dl { margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
ul li::marker { color: var(--navy); }
strong { font-weight: 650; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 47rem; }
.lead { font-size: 1.25rem; line-height: 1.55; color: #3a4352; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0.5rem; background: #fff; color: var(--link); padding: 0.5rem 1rem; z-index: 10; font-family: var(--sans); }
.skip:focus { left: 0.5rem; }

/* Letterhead */
.site-header { border-top: 4px solid var(--navy); border-bottom: 1px solid var(--rule); background: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; }
.brand:hover { color: var(--navy-dark); }
.brand-mark { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1; padding: 0.32rem 0.3rem 0.28rem 0.4rem; border: 3px double var(--navy); color: var(--navy); }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; margin: 0; padding: 0; align-items: center; font-family: var(--sans); font-size: 0.95rem; }
.nav li { margin: 0; }
.nav a { display: inline-block; padding: 0.4rem 0; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--link); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.nav a.nav-cta { background: var(--navy); color: #fff; padding: 0.5rem 1rem; border-radius: 3px; text-decoration: none; font-weight: 600; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--navy-dark); color: #fff; }

/* Home: the hero is set like a report's title page */
.hero { padding: 4.5rem 0 0; }
.hero h1 { max-width: 52rem; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero .lead { max-width: 42rem; }
.hero .wrap::after { content: ""; display: block; margin-top: 3.5rem; border-top: 1px solid var(--rule); }
.eyebrow { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }

/* Sections. Inner pages are one column; home sections use margin headings on wide screens. */
.section { padding-top: 3rem; padding-bottom: 3rem; } /* vertical only: .wrap supplies the side padding */
.section > .wrap > h2:first-child { margin-top: 0; }
section.section > .wrap { position: relative; }
section.section + section.section > .wrap::before { content: ""; position: absolute; top: -3rem; left: 1.5rem; right: 1.5rem; border-top: 1px solid var(--rule); }
@media (min-width: 56rem) {
  section.section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  section.section + section.section > .wrap::before { top: -3.5rem; }
  section.section > .wrap { max-width: var(--max); display: grid; grid-template-columns: 14rem minmax(0, 1fr); column-gap: 3.5rem; align-items: start; }
  section.section > .wrap > h2 { grid-column: 1; grid-row: 1 / span 12; margin: 0.1em 0 0; font-size: 1.6rem; }
  section.section > .wrap > :not(h2) { grid-column: 2; max-width: 42rem; }
  section.section > .wrap > .cards { max-width: none; }
}

.button { display: inline-block; background: var(--navy); color: #fff; padding: 0.75rem 1.35rem; border-radius: 3px; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.4; text-decoration: none; border: 2px solid var(--navy); cursor: pointer; }
.button:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--navy); }
.button.secondary:hover { background: var(--wash); color: var(--navy-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Prices: a fee schedule, not plan cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 0.25rem 0 1.5rem; padding: 0; list-style: none; border-top: 3px solid var(--navy); border-bottom: 1px solid var(--rule); }
.card { margin: 0; padding: 1.4rem 2rem 0.75rem 0; }
.card + .card { border-left: 1px solid var(--rule); padding-left: 2rem; }
.card h3 { margin: 0; font-size: 1.25rem; color: var(--ink); }
.price { font-size: 2.6rem; font-weight: 500; line-height: 1.1; color: var(--navy); letter-spacing: -0.015em; margin: 0.4rem 0 0.9rem; font-variant-numeric: lining-nums tabular-nums; }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.checks { padding-left: 1.1rem; list-style: square; font-size: 1.05rem; }

.note h3, .note .note-title { margin-top: 0; }
.note { border-left: 3px solid var(--navy); background: var(--wash); padding: 1.1rem 1.4rem; margin: 1.5rem 0; }
.note > :last-child { margin-bottom: 0; }

/* The VPAT audit steps are a real sequence, so they are numbered */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.75rem; margin-bottom: 1.5rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.4rem; height: 2.4rem; border: 1px solid var(--navy); border-radius: 50%; color: var(--navy); font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps .step-title { margin: 0 0 0.3rem; font-size: 1.2rem; }

/* Tables, set like the ACR itself */
.table-scroll { overflow-x: auto; margin: 1rem 0 2rem; border: 1px solid var(--rule); border-top: 3px solid var(--navy); }
.table-scroll:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.925rem; line-height: 1.5; }
caption { text-align: left; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--navy); padding: 0.75rem 0.9rem 0.6rem; }
th, td { border-top: 1px solid var(--rule); padding: 0.65rem 0.9rem; text-align: left; vertical-align: top; }
thead th { background: var(--wash); border-bottom: 2px solid var(--navy); font-weight: 600; color: var(--navy); white-space: nowrap; }
tbody th[scope="row"] { font-weight: 600; }
.report caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the h2 above shows the same words */
.report td:first-child, .report th[scope="row"] { min-width: 13rem; }
.report td:nth-child(3) { min-width: 20rem; }
.tag { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 2px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; border: 1px solid currentColor; }
.tag.dns { color: var(--bad); background: #fdf1f1; }
.tag.ps { color: var(--ps); background: #fdf6e9; }
.tag.ne { color: var(--muted); border-style: dashed; }

/* Report heading fields (sample report) */
dl { border-top: 1px solid var(--rule); }
dt { font-family: var(--sans); font-size: 0.95rem; color: var(--navy); padding-top: 0.75rem; }
dt strong { font-weight: 600; }
dd { margin: 0.15rem 0 0; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) {
  dl { display: grid; grid-template-columns: 13rem minmax(0, 1fr); column-gap: 1.5rem; }
  dt { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  dd { margin: 0; padding-top: 0.7rem; }
}

/* FAQ: a ruled list */
details { border-top: 1px solid var(--rule); margin: 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.15rem; padding: 1rem 2.25rem 1rem 0; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 0.5rem; top: 1.3rem; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); }
details[open] summary::after { transform: rotate(-135deg); top: 1.55rem; }
summary:hover { color: var(--link); }
details > :not(summary) { margin-top: 0; }
details[open] { padding-bottom: 0.5rem; }

/* Quote form: an official form panel */
form.quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 38rem; background: var(--wash); border-top: 3px solid var(--navy); padding: 1.75rem 1.75rem 2rem; margin: 1.75rem 0; font-family: var(--sans); font-size: 1rem; }
form.quote > * { min-width: 0; } /* long <select> options must not widen the column (iOS Safari) */
form.quote p { margin: 0; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--ink); }
.field .hint { display: block; color: var(--muted); font-size: 0.925rem; margin: -0.1rem 0 0.4rem; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 3px; padding: 0.6rem 0.7rem; min-height: 2.85rem; }
.field textarea { min-height: 6.5rem; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border: 2px solid var(--bad); }
.req { color: var(--bad); }
.error-text { color: var(--bad); font-weight: 600; margin: 0.35rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 0.8rem 1rem; border-radius: 3px; font-weight: 600; }
.form-status:empty { padding: 0; border: 0; } /* stays in the accessibility tree so the first message is announced */
.form-status.error { background: #fff; color: var(--bad); border: 1px solid var(--bad); }
.form-status.busy { background: #fff; color: var(--ink); border: 1px solid var(--rule); }
.quote ~ p.muted { margin-top: 1.25rem; }

/* Readiness check */
.honesty { border-left-color: var(--ps); background: #fdf6e9; }
.honesty .note-title { font-size: 1.2rem; }
.check-page > :not(#results-table), .results-key { max-width: 47rem; } /* prose at reading width, the table full width */
.check-page + .check-page { padding-top: 0; }
.check-form { margin-top: 1.5rem; }
.results > h2 { margin-top: 0; }
.results-pages, .results-key { padding-left: 1.1rem; font-family: var(--sans); font-size: 1rem; }
.results-key { list-style: none; padding-left: 0; }
.results-key .tag { margin-right: 0.4rem; }
.page-url { font-weight: 600; overflow-wrap: anywhere; }
.page-error { color: var(--bad); }
.tag.scan-none { color: var(--ink); background: #fff; }
.scan-table th[scope="row"] { min-width: 13rem; }
.scan-table td:nth-child(3) { min-width: 20rem; }
.scan-table td p, .scan-table td ul { margin: 0 0 0.5rem; }
.scan-table td ul { padding-left: 1.1rem; }
.scan-table .example { display: block; color: var(--muted); }
.scan-table code { font-size: 0.85rem; color: var(--ink); background: var(--wash); padding: 0 0.2rem; overflow-wrap: anywhere; word-break: break-word; }
.scan-table tr.row-problems > th { border-left: 3px solid var(--bad); }
@media (max-width: 40rem) {
  /* Phones: each row becomes a stacked block (criterion, result, findings) instead of a sideways-scrolling table. */
  .scan-table, .scan-table tbody { display: block; width: 100%; }
  .scan-table caption { display: block; }
  .scan-table td { overflow-wrap: anywhere; }
  .scan-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .scan-table tr { display: block; border-top: 1px solid var(--rule); padding: 0.6rem 0.9rem 0.3rem; }
  .scan-table tr.row-problems { border-left: 3px solid var(--bad); }
  .scan-table th[scope="row"], .scan-table td { display: block; border: 0; padding: 0 0 0.4rem; min-width: 0; }
  .scan-table tr.row-problems > th { border-left: 0; }
  .scan-table td:nth-child(3) { min-width: 0; }
}

/* Footer: fine print */
.site-footer { border-top: 1px solid var(--rule); background: var(--wash); margin-top: 3rem; padding: 2.5rem 0 2rem; font-family: var(--sans); font-size: 0.95rem; }
.footer-inner { display: grid; gap: 1.1rem; }
.footer-inner p { margin: 0 0 0.4rem; }
.site-footer strong { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; margin: 0; padding: 0.9rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.footer-nav li { margin: 0; }
.fine { color: var(--muted); font-size: 0.875rem; max-width: 52rem; }

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .wrap { padding-left: 1.25rem; padding-right: 1.25rem; } /* sides only: .section sets the vertical padding */
  section.section + section.section > .wrap::before { left: 1.25rem; right: 1.25rem; }
  .header-inner { padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .brand { font-size: 1.3rem; }
  .nav { gap: 0.1rem 1rem; }
  .nav a.nav-cta { padding: 0.45rem 0.8rem; }
  .hero { padding-top: 2.5rem; }
  .hero .wrap::after { margin-top: 2.5rem; }
  .lead { font-size: 1.15rem; }
  .card, .card + .card { padding: 1.25rem 0 0.5rem; border-left: 0; }
  .card + .card { border-top: 1px solid var(--rule); }
  .price { font-size: 2.25rem; }
  form.quote { padding: 1.25rem 1rem 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
