/* brockwaydigital.com
   Shares its design tokens with ericbrockway.com (same fonts, type scale and
   spacing; Teal palette, chosen October 2026). Headings are set in Plex Sans here
   and Plex Serif there: sans for the firm, serif for the person. */

/* ------------------------------------------------------------------
   Fonts: IBM Plex (SIL Open Font License, see /assets/fonts/OFL.txt)
   ------------------------------------------------------------------ */

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/plex-sans-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/plex-sans-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/plex-sans-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------------ */

:root {
    --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

    --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
    --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
    --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
    --step-3: clamp(2.4rem, 1.8rem + 3vw, 4rem);

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4rem;
    --space-6: 6rem;

    --radius: 0.5rem;
    --container: 68rem;
    --measure: 42rem;

    /* Status colour: semantic, for "operational" states and success */
    --ok: light-dark(#15803d, #4ade80);
    /* Warning colour: emergencies and "degraded" states only, never decoration */
    --warn: light-dark(#b45309, #fbbf24);

    color-scheme: light dark;
}

:root[data-mode="light"] {
    color-scheme: light;
}

:root[data-mode="dark"] {
    color-scheme: dark;
}

/* Palette: Teal. Each value is light-dark(light mode, dark mode). */
:root {
    --bg: light-dark(#fafaf7, #0b1120);
    --surface: light-dark(#ffffff, #111827);
    --text: light-dark(#0f172a, #e5e7eb);
    --muted: light-dark(#475569, #9ca3af);
    --line: light-dark(#e2e8f0, #1f2937);
    --accent: light-dark(#0f766e, #2dd4bf);
    --accent-ink: light-dark(#ffffff, #042f2e);
    --accent-soft: light-dark(#e6f4f1, #0f2e2b);
}

/* Older browsers without light-dark(): light mode only, and no light/dark switch */
@supports not (color: light-dark(#000, #fff)) {
    :root,
    :root[data-mode] {
        color-scheme: light;
        --ok: #15803d;
        --warn: #b45309;
        --bg: #fafaf7;
        --surface: #ffffff;
        --text: #0f172a;
        --muted: #475569;
        --line: #e2e8f0;
        --accent: #0f766e;
        --accent-ink: #ffffff;
        --accent-soft: #e6f4f1;
    }

    :root.js .theme-toggle {
        display: none;
    }
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

main {
    display: flex;
    flex: 1;
    flex-direction: column;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 0.14em;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

h1,
h2,
h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

.skip-link {
    position: absolute;
    left: var(--space-2);
    top: -4rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-ink);
}

.skip-link:focus {
    top: var(--space-2);
}

/* ------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------ */

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem var(--space-3);
    min-height: 4rem;
    padding-block: 0.5rem;
}

.site-name {
    font-size: var(--step-1);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
    text-decoration: none;
}

.site-name__suffix {
    font-weight: 400;
    color: var(--muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-3);
    padding: 0;
    list-style: none;
    font-size: var(--step--1);
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a[aria-current="page"] {
    color: var(--text);
    text-decoration-line: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.45em;
}

.site-header__nav {
    margin-inline-start: auto;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Light/dark switch. Hidden until theme.js runs and marks the page with .js. */
.theme-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.js .theme-toggle {
    display: inline-flex;
}

.theme-toggle:hover {
    border-color: var(--muted);
    color: var(--text);
}

.theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The moon offers dark mode; the sun offers light mode */
.theme-toggle__sun,
:root[data-mode="dark"] .theme-toggle__moon {
    display: none;
}

:root[data-mode="dark"] .theme-toggle__sun {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-mode="light"]) .theme-toggle__moon {
        display: none;
    }

    :root:not([data-mode="light"]) .theme-toggle__sun {
        display: block;
    }
}

/* Phones: the wordmark, the switch and "Get help" share the top row; the links go below */
@media (max-width: 48rem) {
    .site-header__nav {
        order: 1;
        flex-basis: 100%;
        margin-inline-start: 0;
    }

    .site-header__actions {
        margin-inline-start: auto;
    }
}

/* ------------------------------------------------------------------
   Buttons and status
   ------------------------------------------------------------------ */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* On phones, stacked buttons share one width */
@media (max-width: 32rem) {
    .actions .button {
        flex: 1 1 100%;
        justify-content: center;
    }
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button--primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.button--primary:hover {
    background: color-mix(in srgb, var(--accent) 85%, var(--text));
}

.button--secondary {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.button--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.button--small {
    padding: 0.45rem 0.9rem;
    font-size: var(--step--1);
}

/* A status-page style pill: "● Accepting new rescue projects" */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.85rem 0.3rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--muted);
}

.status__dot {
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--ok);
    animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent);
    }

    70%,
    100% {
        box-shadow: 0 0 0 0.5rem color-mix(in srgb, var(--ok) 0%, transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .status__dot {
        animation: none;
    }
}

/* ------------------------------------------------------------------
   Holding page (until the full site launches)
   ------------------------------------------------------------------ */

.holding {
    position: relative;
    isolation: isolate;
    display: grid;
    flex: 1;
    align-content: center;
    padding-block: var(--space-5);
    overflow: hidden;
}

/* A faint engineering grid that fades out toward the edges */
.holding::before,
.hero::before,
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
    opacity: 0.6;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 30% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 65% at 30% 40%, #000 0%, transparent 75%);
}

.holding__inner {
    max-width: 46rem;
}

.holding__title {
    margin-top: var(--space-3);
    font-size: var(--step-3);
}

.holding__lead {
    max-width: 40rem;
    margin-top: var(--space-3);
    font-size: var(--step-1);
    line-height: 1.5;
}

.holding__note {
    max-width: var(--measure);
    margin-top: var(--space-2);
    color: var(--muted);
}

.holding .actions {
    margin-top: var(--space-4);
}

.holding__urgent {
    max-width: var(--measure);
    margin-top: var(--space-3);
    color: var(--muted);
}

.holding__urgent strong {
    font-weight: 600;
    color: var(--text);
}

.holding__fine {
    max-width: var(--measure);
    margin-top: var(--space-2);
    font-size: var(--step--1);
    color: var(--muted);
}

.holding__founder {
    max-width: var(--measure);
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

/* ------------------------------------------------------------------
   Home: hero and incident panel
   ------------------------------------------------------------------ */

.hero {
    position: relative;
    isolation: isolate;
    padding-block: var(--space-5);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    gap: var(--space-4);
    align-items: center;
}

@media (min-width: 60rem) {
    .hero__inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: var(--space-5);
    }
}

.hero__title {
    margin-top: var(--space-3);
    font-size: var(--step-3);
}

.hero__lead {
    max-width: 38rem;
    margin-top: var(--space-3);
    color: var(--muted);
    font-size: var(--step-1);
    line-height: 1.5;
}

.hero .actions {
    margin-top: var(--space-4);
}

.hero__urgent {
    margin-top: var(--space-3);
    color: var(--muted);
    font-size: var(--step--1);
}

.hero__urgent strong {
    color: var(--warn);
}

/* Always dark, like a terminal, whichever mode the page is in */
.incident {
    --panel-bg: #0a0f1c;
    --panel-text: #e2e8f0;
    --panel-muted: #94a3b8;
    --panel-line: #1e293b;
    --panel-ok: #4ade80;
    --panel-warn: #fbbf24;

    overflow: hidden;
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    background: var(--panel-bg);
    box-shadow: 0 1.5rem 3rem -1.5rem rgb(15 23 42 / 0.5);
    color: var(--panel-text);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    line-height: 1.5;
}

.incident__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--panel-line);
    color: var(--panel-muted);
}

.incident__tag {
    padding: 0 0.5rem;
    border: 1px solid var(--panel-line);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.incident__log {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    list-style: none;
}

.incident__log li {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.75rem;
}

.incident__time {
    color: var(--panel-muted);
}

.incident__state {
    display: inline-block;
    margin-inline-end: 0.35rem;
    padding: 0 0.45rem;
    border-radius: 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    line-height: 1.7;
    text-transform: uppercase;
}

.incident__state--degraded {
    background: color-mix(in srgb, var(--panel-warn) 16%, transparent);
    color: var(--panel-warn);
}

.incident__state--operational {
    background: color-mix(in srgb, var(--panel-ok) 16%, transparent);
    color: var(--panel-ok);
}

/* ------------------------------------------------------------------
   Page sections (home and inner pages)
   ------------------------------------------------------------------ */

.section {
    padding-block: var(--space-5);
}

.section--alt {
    border-block: 1px solid var(--line);
    background: var(--surface);
}

/* Two plain sections in a row still get a dividing line */
.section:not(.section--alt) + .section:not(.section--alt) {
    border-top: 1px solid var(--line);
}

.section__header {
    max-width: var(--measure);
    margin-bottom: var(--space-4);
}

.section__title {
    font-size: var(--step-2);
}

.section__lead {
    margin-top: var(--space-2);
    color: var(--muted);
}

.section__note {
    max-width: var(--measure);
    margin-top: var(--space-4);
    color: var(--muted);
}

.section__more {
    margin-top: var(--space-4);
    font-weight: 600;
}

.subhead {
    margin-block: var(--space-5) var(--space-3);
    font-size: var(--step-1);
}

/* Symptoms, each marked with a small amber "warning" dot */
.symptoms {
    display: grid;
    gap: var(--space-2) var(--space-4);
    padding: 0;
    list-style: none;
}

@media (min-width: 48rem) {
    .symptoms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.symptoms li {
    position: relative;
    padding-inline-start: 1.5rem;
}

.symptoms li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0.2rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--warn);
}

/* Numbered steps: 01 Assess, 02 Stabilize… */
.steps {
    display: grid;
    gap: var(--space-4);
    padding: 0;
    list-style: none;
    counter-reset: step;
}

@media (min-width: 40rem) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.steps__item {
    padding-top: var(--space-2);
    border-top: 2px solid var(--accent);
    counter-increment: step;
}

.steps__item::before {
    content: counter(step, decimal-leading-zero);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: var(--step--1);
}

.steps__title {
    margin-block: 0.25rem 0.5rem;
    font-size: var(--step-1);
}

.steps__item p {
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: var(--space-3);
    padding: 0;
    list-style: none;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.section--alt .card {
    background: var(--bg);
}

.card__title {
    font-size: var(--step-1);
}

.card__title a {
    color: inherit;
    text-decoration: none;
}

.card__title a:hover {
    color: var(--accent);
}

.card p {
    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.5rem 0 0;
    list-style: none;
}

.tags li {
    padding: 0.1rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

/* Prices: an accent rule on top, amber for emergency work */
.offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: var(--space-3);
    padding: 0;
    list-style: none;
}

.offer {
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
}

.offer--warn {
    border-top-color: var(--warn);
}

.offer__name {
    font-size: var(--step-0);
}

.offer__price {
    margin-top: 0.25rem;
    font-size: var(--step-2);
    font-weight: 600;
    line-height: 1.2;
}

.offer__term {
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    font-weight: 400;
}

.offer__summary {
    margin-top: 0.75rem;
    color: var(--muted);
}

.principal {
    max-width: var(--measure);
}

.principal__text {
    margin-top: var(--space-3);
    font-size: var(--step-1);
    line-height: 1.55;
}

.principal .section__more {
    margin-top: var(--space-3);
}

/* FAQ: native <details>, so it works without JavaScript */
.faq {
    max-width: var(--measure);
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__item summary {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    padding-block: var(--space-2);
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";
    color: var(--accent);
    font-family: var(--font-mono);
}

.faq__item[open] summary::after {
    content: "\2212";
}

.faq__item p {
    padding-bottom: var(--space-2);
    color: var(--muted);
}

.closing {
    text-align: center;
}

.closing__inner {
    display: grid;
    justify-items: center;
    gap: var(--space-3);
}

.closing__title {
    font-size: var(--step-2);
}

.closing__text {
    max-width: 36rem;
    color: var(--muted);
}

.closing .actions {
    justify-content: center;
}

/* ------------------------------------------------------------------
   Inner pages
   ------------------------------------------------------------------ */

/* Title block at the top of inner pages, on the hero's faint grid */
.page-header {
    position: relative;
    isolation: isolate;
    padding-block: var(--space-5) var(--space-4);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.page-header__title {
    max-width: var(--measure);
    margin-top: var(--space-2);
    font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
}

.page-header__lead {
    max-width: 38rem;
    margin-top: var(--space-3);
    color: var(--muted);
    font-size: var(--step-1);
    line-height: 1.5;
}

/* Urgent situations get the amber edge used for emergency prices */
.card--warn {
    border-top: 3px solid var(--warn);
}

.card .card__foot {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    font-size: var(--step--1);
}

/* Ticked lists: what an offer includes, the terms, promises to agencies */
.checklist {
    display: grid;
    gap: 0.5rem;
    max-width: var(--measure);
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 1.75rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    top: 0.4em;
    left: 0.2rem;
    width: 0.8rem;
    height: 0.45rem;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.offer .checklist {
    margin-top: var(--space-2);
    font-size: var(--step--1);
}

.offer__note {
    margin-top: var(--space-2);
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: var(--step--1);
}

/* Case studies: one panel each, the four-part story side by side on wide screens */
.studies {
    display: grid;
    gap: var(--space-4);
}

.study {
    padding: clamp(var(--space-3), 4vw, var(--space-4));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.study .placeholder-note {
    margin-bottom: var(--space-2);
}

.study__title {
    font-size: var(--step-2);
}

.study__summary {
    max-width: var(--measure);
    margin-top: var(--space-2);
    color: var(--muted);
}

.study__flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: var(--space-3);
    margin-block: var(--space-4) var(--space-3);
}

.study__step {
    padding-top: var(--space-2);
    border-top: 2px solid var(--line);
}

.study__step dt {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.study__step dd {
    margin: 0.4rem 0 0;
}

/* The outcome is the system healthy again: green, like "Operational" on the home page */
.study__step:last-child {
    border-top-color: var(--ok);
}

.study__step:last-child dt {
    color: var(--ok);
}

/* About: Eric's signed note, set off like a letter */
.note {
    margin-top: var(--space-3);
    padding-left: var(--space-3);
    border-left: 3px solid var(--accent);
}

.note p + p {
    margin-top: var(--space-2);
}

.note .note__sign {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-3);
}

.note__name {
    font-weight: 600;
}

.note__role {
    color: var(--muted);
    font-size: var(--step--1);
}

/* Boxed notices on /contact. The amber one is the emergency line, like "Degraded" on the home page */
.callout {
    display: grid;
    gap: 0.75rem;
    max-width: var(--measure);
    margin-top: var(--space-4);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
}

.callout--warn {
    border-color: color-mix(in srgb, var(--warn) 40%, var(--line));
    border-left-color: var(--warn);
    background: color-mix(in srgb, var(--warn) 8%, var(--surface));
}

.callout__title {
    font-size: var(--step-1);
}

.callout--warn .callout__title {
    color: var(--warn);
}

/* Contact details: a small label over the address or number */
.card__label {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card__value {
    font-size: var(--step-1);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.site-footer {
    padding-block: var(--space-4);
    border-top: 1px solid var(--line);
    font-size: var(--step--1);
    color: var(--muted);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-2);
}

.footer-links {
    display: flex;
    gap: var(--space-3);
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--muted);
}

/* ------------------------------------------------------------------
   Placeholders (preview only) and the error page
   ------------------------------------------------------------------ */

.is-placeholder {
    outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: 3px;
}

.placeholder-note {
    display: inline-block;
    justify-self: start;
    align-self: flex-start;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.error-page {
    max-width: var(--measure);
    padding-block: var(--space-6);
}

.error-page__title {
    margin-top: 0.4rem;
    font-size: var(--step-2);
}

.error-page p {
    margin-top: var(--space-2);
}

/* ------------------------------------------------------------------
   Long-form text (privacy)
   ------------------------------------------------------------------ */

.prose {
    max-width: var(--measure);
    padding-block: var(--space-5) var(--space-6);
}

.prose h1 {
    margin-top: 0.4rem;
    font-size: var(--step-2);
}

.prose h2 {
    margin-top: var(--space-4);
    font-size: var(--step-1);
}

.prose p,
.prose ul {
    margin-top: var(--space-2);
}

.prose ul {
    padding-left: 1.25rem;
}

.prose li + li {
    margin-top: 0.35rem;
}

.prose__meta {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--muted);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ------------------------------------------------------------------
   Print
   ------------------------------------------------------------------ */

@media print {
    :root,
    :root[data-mode] {
        color-scheme: light;
        --bg: #ffffff;
        --surface: #ffffff;
        --text: #000000;
        --muted: #333333;
        --line: #cccccc;
        --accent: #000000;
        --accent-ink: #ffffff;
        --accent-soft: #ffffff;
    }

    .site-header,
    .skip-link,
    .is-placeholder {
        display: none !important;
    }

    .holding::before,
    .status__dot {
        display: none;
    }

    a {
        color: inherit;
    }
}
