/* districtdocs.com, the marketing site (M-02). Colours, type and focus ring from BRAND.md (D-95); nothing loaded from another site. */

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #14304f;        /* text, wordmark, large areas: 12.2:1 on paper */
  --navy-deep: #0d2137;   /* footer: white 16.3:1, gold 7.4:1 */
  --paper: #f7f4ee;       /* page background */
  --white: #ffffff;
  --muted: #58554e;       /* secondary text: 6.8:1 on paper */
  --link: #1a5a96;        /* links in running text, always underlined: 6.5:1 on paper */
  --gold: #e0a526;        /* a fill behind navy text, or an accent on navy; never text on light */
  --gold-hover: #ebb94a;
  --gold-dark: #7a4f00;   /* the rare gold-coloured text on light: 6.5:1 on paper */
  --field: #857f72;       /* form box and outline edges: 3.6:1 on paper */
  --rule: #d9d4c8;        /* decorative dividers only */
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --measure: 40rem;
  --wide: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--navy);
  font-family: var(--sans); font-size: 18px; line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* The focus ring: 3 px navy with a gold halo, visible on paper, white and navy (BRAND.md section 3). */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 7px var(--gold); border-radius: 2px; }
.on-navy :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--navy); padding: 0.6em 1em; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40em) { .wrap { padding: 0 2rem; } }
.measure { max-width: var(--measure); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; color: var(--navy); text-decoration: none; }
.brand svg { width: 210px; height: auto; display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 0.35em 0; display: inline-block; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--navy); }

/* Sections */
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.white { background: var(--white); }
.lede { font-size: 1.2rem; color: var(--navy); }
.small { font-size: 0.95rem; color: var(--muted); }

.hero { padding: 3.5rem 0 3rem; }
.hero h1 { max-width: 22ch; }

/* Buttons: gold fill with navy text (6.1:1), or a navy outline. Never gold text on light. */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 1.5rem 0 1rem; }
.button {
  display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700;
  text-decoration: none; padding: 0.75em 1.3em; border-radius: 6px; border: 2px solid var(--gold);
}
.button:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.button.quiet { background: transparent; border-color: var(--navy); color: var(--navy); font-weight: 600; }
.button.quiet:hover { background: var(--white); }

.note { font-size: 0.95rem; color: var(--muted); max-width: var(--measure); }

/* Feature list */
.features { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 52em) { .features { grid-template-columns: 1fr 1fr; } }
.feature { border-top: 4px solid var(--navy); padding-top: 1rem; }
.feature p:last-child { margin-bottom: 0; }

/* Three steps */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 52em) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem 1.25rem 1rem; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: var(--white);
  font-weight: 800; margin-bottom: 0.75rem;
}
.steps h3 { margin-bottom: 0.35em; }
.steps p { margin: 0; }

/* A quotation of the accessibility paragraph, set apart */
.statement { border-left: 6px solid var(--gold); background: var(--white); padding: 1.1rem 1.25rem; margin: 0 0 1em; }
.statement p:last-child { margin-bottom: 0; }

/* A placeholder Ross must fill (never shipped while it shows) */
.placeholder { border: 3px dashed var(--gold-dark); background: #fff8e6; padding: 1rem 1.25rem; color: var(--navy); }
.placeholder strong { color: var(--gold-dark); }

/* The closing band */
.band { background: var(--navy); color: var(--white); padding: 3rem 0; }
.band h2 { color: var(--white); }
.band p { color: var(--white); }
.band a:not(.button) { color: var(--white); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--white); padding: 2.5rem 0; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer p { margin: 0 0 0.5rem; }

.mono { font-family: var(--mono); }

/* ---- Layout pieces for the Home options (M-02, 2026-11-02) ---- */

/* A screenshot in a plain browser frame. The image's alt text says what it shows; the caption says it is invented. */
.browser { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 12px 32px rgba(13, 33, 55, 0.12); overflow: hidden; margin: 0; }
.browser .bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem; background: #ece8df; border-bottom: 1px solid var(--rule); }
.browser .dots { display: inline-flex; gap: 6px; }
.browser .dots i { width: 10px; height: 10px; border-radius: 50%; background: #c9c3b6; display: block; }
.browser .addr { flex: 1; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); background: var(--white); border-radius: 5px; padding: 0.15rem 0.6rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser img { display: block; width: 100%; height: auto; }
figure figcaption, .caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }

.center { text-align: center; }
.center .measure, .center h1 { margin-left: auto; margin-right: auto; }
.center .actions { justify-content: center; }
.hero.center h1 { max-width: 24ch; }

/* Split hero: words on the left, the product on the right */
.split { display: grid; gap: 2rem; align-items: center; }
.split > *, .row > * { min-width: 0; }   /* a grid column may shrink below its widest unbreakable line (the address bar did, at 320 px) */
@media (min-width: 60em) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }

/* Three record types */
.cards3 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 52em) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem; }
.card .kind { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

/* A records panel drawn in HTML, styled like the public site's lists */
.records { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 12px 32px rgba(13, 33, 55, 0.10); }
.records .head { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.records .head span { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.records ul { list-style: none; margin: 0; padding: 0; }
.records li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.25rem 0.9rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); }
.records li:last-child { border-bottom: 0; }
.records .date { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); padding-top: 0.15rem; }
.records .what { font-weight: 600; }
.chip { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid var(--field); color: var(--navy); border-radius: 4px; padding: 0.05rem 0.4rem; margin-right: 0.4rem; vertical-align: 0.1em; }
.chip.draft { border-color: var(--gold-dark); color: var(--gold-dark); background: #fff8e6; }
@media (max-width: 30em) { .records li { grid-template-columns: 1fr; } }

/* Alternating rows of picture and words */
.rows { display: grid; gap: 3rem; margin-top: 2rem; }
.row { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56em) { .row { grid-template-columns: 1fr 1fr; gap: 3rem; } .row.flip > :first-child { order: 2; } }

/* A month in the district: a timeline */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.95rem; top: 0.5rem; bottom: 0.5rem; width: 3px; background: var(--rule); }
.timeline li { position: relative; padding: 0 0 1.75rem 3.25rem; }
.timeline li::before { content: ""; position: absolute; left: 0.35rem; top: 0.3rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px var(--paper); }
.timeline .when { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.timeline h3 { margin: 0.15rem 0 0.3rem; }
.timeline p { margin: 0; max-width: var(--measure); }

/* At a glance: a plain list of facts */
.glance { margin: 1.5rem 0 0; border-top: 2px solid var(--navy); }
.glance div { display: grid; gap: 0.2rem 2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 44em) { .glance div { grid-template-columns: 13rem 1fr; } }
.glance dt { font-weight: 700; }
.glance dd { margin: 0; }

/* A notice-style frame for the plain layout */
.noticebox { border: 2px solid var(--navy); background: var(--white); padding: 1.5rem; }
@media (min-width: 40em) { .noticebox { padding: 2rem 2.25rem; } }
.noticebox .kicker { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.thumbs { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .thumbs { grid-template-columns: 1fr 1fr; } }

/* Read by screen readers, not shown */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* What it does: what you do in the console beside what residents then see. */
.pair { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.pair > * { min-width: 0; margin: 0; }
@media (min-width: 48em) { .pair { grid-template-columns: 1fr 1fr; } .pair.three { grid-template-columns: 1fr 1fr 1fr; } }
.pair .who { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem; }
.brief { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.9rem; max-width: 52rem; }
.brief strong { color: var(--navy); }

/* Pricing: what is included and what is not. The marks are decorative; each list's heading says which it is. */
.ticks, .crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.ticks li, .crosses li { position: relative; padding-left: 1.9rem; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.ticks li::before { content: "\2713" / ""; color: var(--navy); }
.crosses li::before { content: "\2715" / ""; color: var(--muted); }

/* The contact form (About and contact). Labels always visible; edges at the form-field contrast (--field, 3.6:1). */
.contact { display: grid; gap: 1.1rem 1.5rem; grid-template-columns: 1fr; max-width: 46rem; margin-top: 1.5rem; }
@media (min-width: 40em) { .contact { grid-template-columns: 1fr 1fr; } .contact .wide { grid-column: 1 / -1; } }
.contact .field { display: grid; gap: 0.35rem; align-content: start; }
.contact label { font-weight: 700; color: var(--navy); }
.contact .req, .contact .help { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.contact input, .contact textarea { font: inherit; color: var(--navy); background: var(--white); border: 2px solid var(--field); border-radius: 6px; padding: 0.55rem 0.7rem; width: 100%; box-sizing: border-box; }
.contact textarea { resize: vertical; }
.contact .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.contact button.button { font: inherit; font-weight: 700; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* A refused form: the list at the top and the words beside each field. --error is 7.8:1 on white and 7.1:1 on paper. */
:root { --error: #a3161a; }
.error-summary { border: 3px solid var(--error); background: var(--white); padding: 1rem 1.25rem; margin-bottom: 0.5rem; }
.error-summary h3 { color: var(--error); margin: 0 0 0.5rem; font-size: 1.1rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--error); font-weight: 700; }
.contact .field-error { display: block; color: var(--error); font-weight: 700; font-size: 0.95rem; }
.contact [aria-invalid="true"] { border-color: var(--error); border-width: 3px; }

/* The skip link moves focus to <main> itself (tabindex="-1"); it is not a control, so it shows no ring. */
main:focus { outline: none; }
