/* Hallmark · macrostructure: Dispatch / Route ledger · genre: editorial · theme: studied-DNA (source: supplied campus references), custom airmail
 * designed-as-app · system: SCAFFOLD.md · nav: N6 masthead · footer: Ft4 colophon
 * audience: foster-based rescues and donors · use: offer a rescue spot
 * enrichment: Tier A paper details, Tier B route diagram · motion: route opacity only
 * pre-emit critique (source review): P4 H4 E4 S5 R4 V4; rendered review pending
 */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.e3a28eade2.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-var.e3a28eade2.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

[hidden] { display: none !important; }

:root {
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --space-hair: .125rem;
  --space-4xl: 4.5rem;
  --space-paragraph: 1.1em;
  --space-heading-after: .5em;
  --space-page-top: calc(1.25rem + .95rem * 1.6);
  --space-control-y: .65rem;
  --space-2xs: .25rem;
  --space-xs: .5rem;
  --space-sm: .75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-grid: 1.25rem;
  --space-wide: 2.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-section: clamp(3rem, 7vw, 6rem);
  --text-small: .95rem;
  --text-body: 1.125rem;
  --text-lede: clamp(1.2rem, 2.2vw, 1.45rem);
  --text-heading: clamp(1.7rem, 3.4vw, 2.5rem);
  --text-display: clamp(2.4rem, 5vw, 4rem);
  --text-stat: clamp(2.5rem, 5vw, 4rem);
  --ease-out: cubic-bezier(.23,1,.32,1);
  --dur-press: 140ms;
  --dur-enter: 240ms;
  --radius-control: .25rem;
  --radius-paper: .5rem;
  --paper: #F5F7FA;
  --card: #FFFFFF;
  --ink: #17233B;
  --ink-soft: #46546E;
  --blue: #1F4FA3;
  --red: #C42E36;
  --sand: #E4C08F;
  --mist: #D9E0EA;
  --focus: #C42E36;
  --red-text: #A02028;
  --control: #46546E;
  --button-ink: #FFFFFF;
  --stripe: repeating-linear-gradient(-45deg, var(--red) 0 12px, transparent 12px 18px, var(--blue) 18px 30px, transparent 30px 36px);
  --measure: 66ch;
  --wide: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1830;
    --card: #16223F;
    --ink: #E8EDF5;
    --ink-soft: #B3BFD4;
    --blue: #8FB1F0;
    --red: #F08A8F;
    --sand: #E4C08F;
    --mist: #2A3A60;
    --focus: #F08A8F; --red-text: #F59A9E; --control: #B3BFD4; --button-ink: #0F1830;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1830; --card: #16223F; --ink: #E8EDF5; --ink-soft: #B3BFD4;
  --blue: #8FB1F0; --red: #F08A8F; --sand: #E4C08F; --mist: #2A3A60; --focus: #F08A8F; --red-text: #F59A9E; --control: #B3BFD4; --button-ink: #0F1830;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: .08em; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-thickness: .14em; } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: var(--space-sm) var(--space-md); z-index: 10; }
.skip:focus { left: .5rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: var(--wide); }
.wrap.prose > * { max-width: var(--measure); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--space-paragraph); }

h1, h2 { text-wrap: balance; }
h1, h2, h3 { hyphens: auto; line-height: 1.08; margin: 0 0 var(--space-heading-after); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-stretch: 78%; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-stretch: 85%; margin-top: var(--space-wide); }
h3 { font-size: 1.3rem; font-stretch: 92%; }
.lede, .wrap.prose > .lede { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }

/* header: the airmail edge is the one loud element */
.site-header { border-top: 10px solid transparent; border-image: var(--stripe) 10; background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); padding-block: var(--space-md); }
.brand { display: flex; align-items: center; gap: var(--space-sm); color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: 82%; font-size: 1.2rem; }
.brand img { width: 40px; height: 40px; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: var(--space-2xs) 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }

main { display: block; padding-bottom: var(--space-3xl); }
.page-top { padding-top: var(--space-page-top); }
.crumbs { font-size: .95rem; color: var(--ink-soft); padding-top: var(--space-grid); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--mist); }

/* hero: route from Amman to three US airports */
.hero { padding-block: clamp(var(--space-xl), 6vw, var(--space-4xl)) var(--space-md); }
.hero-grid { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.route { width: 100%; max-width: 30rem; height: auto; color: var(--ink); }
.route .path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.route .dot { fill: var(--red); }
.route .dest { fill: var(--blue); }
.route text { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; fill: var(--ink); }
.route .small { font-weight: 500; font-stretch: 75%; fill: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .route .path { animation: fly var(--dur-enter) var(--ease-out) both; }
  @keyframes fly { from { opacity: 0; } to { opacity: 1; } }
}

.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.btn { display: inline-block; padding: var(--space-sm) var(--space-grid); font-weight: 700; text-decoration: none; border-radius: 6px; border: 2px solid var(--blue); line-height: 1.2; font-size: 1.05rem; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--blue); color: var(--button-ink); }
.btn-quiet { background: transparent; color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { text-decoration: underline; }
  .nav a:hover { border-bottom-color: var(--red); }
}

/* manifest: plain counts, written as a sentence-sized table */
.manifest { margin: var(--space-xl) 0 0; border-collapse: collapse; width: 100%; max-width: 38rem; font-size: 1.05rem; }
.manifest caption { text-align: left; font-weight: 700; padding-bottom: var(--space-xs); }
.manifest th, .manifest td { text-align: left; padding: var(--space-xs) var(--space-2xs); border-bottom: 1px solid var(--mist); }
.manifest td:last-child { text-align: right; font-weight: 800; font-stretch: 80%; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.manifest tr.urgent td { color: var(--red-text); }

/* luggage-tag cat cards */
.tags { align-items: start; list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-grid); grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr)); }
.tag { position: relative; background: var(--card); border: 1px solid var(--mist); border-radius: 10px 10px 10px 10px; overflow: hidden; }
.tag::before { content: ""; display: block; height: 8px; background: var(--stripe); }
.tag a:focus-visible { outline-offset: -5px; }
.tag a { color: inherit; text-decoration: none; display: block; }
@media (hover: hover) and (pointer: fine) { .tag a:hover .name { text-decoration: underline; } }
.tag img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tag .body { padding: var(--space-md) var(--space-md) var(--space-md); }
.tag .name { margin: 0 0 var(--space-2xs); font-size: 1.3rem; font-stretch: 92%; }
.tag p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.status { display: inline-block; margin-top: var(--space-sm); font-size: .9rem; font-weight: 700; padding: var(--space-hair) var(--space-xs); border-radius: 4px; background: var(--paper); border: 1px solid var(--control); }
.status.needs { border-color: var(--red); color: var(--red-text); }

.empty { border: 2px dashed var(--mist); border-radius: 10px; padding: var(--space-lg); max-width: var(--measure); }

/* two-column info blocks for rescues */
.split { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.airports { list-style: none; padding: 0; margin: var(--space-md) 0; display: grid; gap: var(--space-sm); }
.airports li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: var(--space-sm); align-items: baseline; }
.airports b { font-size: 1.6rem; font-stretch: 72%; color: var(--blue); }

/* forms */
form.card { background: var(--card); border: 1px solid var(--mist); border-radius: 10px; padding: var(--space-lg); }
form.card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
form.card legend { font-weight: 700; margin-bottom: var(--space-md); padding: 0; }
.field-error { color: var(--red-text); margin: var(--space-2xs) 0 0; min-height: 1lh; }
.field-error:empty { visibility: hidden; }
.field { margin-bottom: var(--space-md); }
.field label { display: block; font-weight: 700; margin-bottom: var(--space-2xs); }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .95rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-soft); border-radius: 6px; padding: var(--space-control-y) var(--space-sm); }
input, select { min-height: calc(1.6em + 1.3rem + 2px); }
textarea { min-height: 8rem; }
.hp { position: absolute; left: -5000px; }

/* cat profile */
.profile > * > :first-child { margin-top: 0; }
.profile { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .profile { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.facts { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: var(--space-xs) var(--space-grid); margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.gallery { display: grid; gap: var(--space-sm); }
.gallery img { width: 100%; }
.nowrap { white-space: nowrap; }
.video { margin-top: var(--space-sm); aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 8px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--mist); padding: var(--space-md) 0; max-width: var(--measure); }
.faq summary { list-style: none; display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); font-weight: 700; cursor: pointer; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
/* "/ \"\"" gives the marker empty alt text so it is not read as part of the question */
.faq summary::before { content: "▸"; content: "▸" / ""; }
.faq details[open] > summary::before { content: "▾"; content: "▾" / ""; }
.faq details p { margin: var(--space-sm) 0 0; }

.updates { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.updates li { padding: var(--space-grid) 0; border-bottom: 1px solid var(--mist); }
.updates time { color: var(--ink-soft); font-size: .95rem; }
.byline { color: var(--ink-soft); font-size: .95rem; margin: -.25rem 0 var(--space-md); }

.share-status { min-height: 1.5em; color: var(--ink-soft); font-size: .95rem; }

.site-footer { border-top: 1px solid var(--mist); padding-block: var(--space-xl) var(--space-2xl); color: var(--ink-soft); font-size: 1rem; }
.site-footer .wrap { display: grid; gap: var(--space-lg); }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-2xs); }
.site-footer h2 { font-size: 1.05rem; margin: 0 0 var(--space-xs); color: var(--ink); font-stretch: 100%; }
.updated { font-size: .95rem; color: var(--ink-soft); }

@media print {
  .site-header, .site-footer, .actions, .nav { display: none; }
}

/* Text children must be allowed to shrink within their tracks. */
.site-header .wrap > *, .brand > *, .nav li, .hero-grid > *, .actions > *, .tags > *, .split > *, .airports li > *, .profile > *, .facts > *, .site-footer .wrap > *, .crumbs li { min-width: 0; }
a[href^="mailto:"], a[href^="tel:"], a[href^="https://wa.me/"] { overflow-wrap: anywhere; }
.btn, .nav a, .nav-toggle { min-height: 44px; display: inline-flex; align-items: center; }
.btn, .nav-toggle { padding-inline: var(--space-md); }
.nav a { min-width: 44px; justify-content: center; }
.btn, .nav-toggle { transition: transform var(--dur-press) var(--ease-out); }
.btn:active, .nav-toggle:active { transform: scale(.97); }
.nav-toggle { display: none; font: inherit; background: var(--paper); color: var(--ink); border: 2px solid var(--control); border-radius: 6px; cursor: pointer; }
.site-footer li a, .crumbs a { min-height: 24px; display: inline-flex; align-items: center; }
@media (max-width: 879.98px) and (scripting: enabled) {
  .site-header .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .nav { grid-column: 1 / -1; }
  .nav.is-open a { justify-content: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; }
  .nav.is-open { display: block; }
  .nav.is-open ul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--space-md); }
}
@media (max-width: 22rem) { .airports li { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .btn, .nav-toggle { transition: none; }
  .btn:active, .nav-toggle:active { transform: none; }
  .route .path { animation: none; }
}
@media (prefers-contrast: more) {
  /* the extra selectors match the dark-theme blocks' specificity so dark mode follows too */
  :root, :root:not([data-theme="light"]), :root[data-theme] { --ink-soft: var(--ink); --mist: var(--ink); --control: var(--ink); }
  a { text-decoration: underline; }
}
@media (forced-colors: active) {
  .nav a { border-bottom-color: Canvas; }
  .nav a[aria-current="page"] { border-bottom-color: CanvasText; }
  .btn, input, select, textarea, .nav-toggle, .tag, form.card { border: 2px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
  .route .path { stroke: LinkText; }
  .route .dot, .route .dest, .route text { fill: CanvasText; }
  .site-header { border-image: none; border-top-color: CanvasText; }
  .tag::before { background: CanvasText; }
}

/* A shared editorial masthead; a route sheet leads the home page. */
html, body { overflow-x: clip; }
h1, h2, h3 { font-family: var(--font-display); font-style: normal; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: var(--text-display); font-stretch: 72%; letter-spacing: -.025em; }
h2 { font-size: var(--text-heading); }
.lede, .wrap.prose > .lede { font-size: var(--text-lede); }
.site-header { border-bottom: 3px double var(--mist); }
.brand { font-size: clamp(1.1rem, 2.4vw, 1.75rem); line-height: 1.15; }
.brand img { flex-shrink: 0; }
.nav a { font-size: var(--text-small); }
.hero { padding-block: var(--space-xl) var(--space-2xl); }
.hero-grid { align-items: center; gap: var(--space-2xl); }
.hero h1 { max-width: 17ch; }
.hero .lede { max-width: 40ch; }
.flight-sheet { min-width: 0; padding-block: var(--space-md); border-block: 1px solid var(--mist); }
.route { display: block; margin-inline: auto; }
.route .origin-ring { fill: none; stroke: var(--sand); stroke-width: 3; }
.route .path { stroke-width: 2; }
.manifest { max-width: none; margin-top: var(--space-lg); font-size: var(--text-small); }
.manifest caption { padding-block: var(--space-sm); border-block: 1px dashed var(--control); font-weight: 600; }
.manifest th { font-weight: 400; padding-block: var(--space-sm); padding-inline-end: var(--space-md); }
.manifest td:last-child { font-size: var(--text-stat); line-height: 1.1; font-weight: 850; font-stretch: 72%; }
.manifest tr:last-child th, .manifest tr:last-child td { border-bottom: 0; }
.home-roster { padding-top: var(--space-2xl); }
.home-roster h2 { margin-top: 0; }
.home-note { padding-top: var(--space-section); }
.home-note h2 { margin-top: 0; }
.home-help { padding-block: var(--space-2xl) var(--space-lg); }
.home-help h2 { margin-top: 0; }
.btn { border-radius: var(--radius-control); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.site-footer { padding-block: var(--space-2xl); border-top: 3px double var(--control); }
.site-footer .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
.site-footer p { max-width: var(--measure); margin-block: var(--space-xs); }
.site-footer h2 { font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); align-items: center; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); align-items: center; }
.site-footer li a, .crumbs a { min-height: 44px; }
.updated { margin-top: var(--space-2xl); }
@media (min-width: 880px) {
  .site-header .wrap { flex-direction: column; gap: var(--space-sm); padding-block: var(--space-lg) var(--space-xs); }
  .nav ul { justify-content: center; align-items: center; gap: var(--space-xs) var(--space-2xl); }
}
@media (max-width: 40rem) {
  .hero { padding-top: var(--space-xl); }
  .hero-grid { gap: var(--space-xl); }
  .hero h1 { max-width: none; }
}
@media (forced-colors: active) {
  .route .origin-ring { stroke: CanvasText; }
  .btn-primary { border-color: ButtonText; }
}

/* Luggage tags and an honest, intentionally typeset missing-photo state. */
.tag { border-radius: var(--radius-paper); }
.tag a { padding-top: var(--space-xl); }
.tag::after { content: ""; position: absolute; top: .85rem; right: var(--space-md); width: .75rem; height: .75rem; border: 2px solid var(--control); border-radius: 50%; background: var(--paper); pointer-events: none; }
.tag .body { padding: var(--space-lg) var(--space-md); border-top: 1px dashed var(--mist); }
.tag .name { font-size: var(--text-heading); font-stretch: 72%; }
.photo-pending { min-height: 12rem; display: grid; align-content: center; gap: var(--space-md); padding: var(--space-lg); background: var(--paper); color: var(--ink); }
.ticket-route { display: block; font-family: var(--font-display); font-size: var(--text-heading); font-weight: 800; font-stretch: 72%; border-bottom: 1px dashed var(--control); padding-bottom: var(--space-md); }
.ticket-route span { font-size: var(--text-small); font-weight: 400; font-stretch: 100%; }
.photo-pending p { margin: 0; font-size: var(--text-small); color: var(--ink-soft); }
.empty { border: 0; border-block: 1px dashed var(--control); border-radius: 0; padding: var(--space-lg) 0; }
.empty p:first-child { margin-top: 0; }
.empty p:last-child { margin-bottom: 0; }
.profile { padding-top: var(--space-lg); }
.profile .facts { border-top: 1px dashed var(--control); padding-top: var(--space-lg); }
.facts dt, .facts dd { padding-bottom: var(--space-sm); border-bottom: 1px solid var(--mist); }
.gallery .photo-pending { min-height: 16rem; }

/* The rescue form is first in reading and keyboard order at every width. */
.rescue-studio { align-items: start; padding-top: var(--space-xl); }
.rescue-studio > * > h2:first-child { margin-top: 0; }
form.card { border-radius: var(--radius-paper); border-top: 2px dashed var(--control); padding: var(--space-lg); }
form.card legend { font-stretch: 85%; }
.field { margin-bottom: var(--space-lg); }
input, select, textarea { border-radius: var(--radius-control); }
textarea { resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red-text); }
@media (hover: hover) and (pointer: fine) {
  input:hover, select:hover, textarea:hover { background: var(--card); color: var(--ink); }
}
@media (max-width: 22rem) {
  form.card { padding: var(--space-sm); }
  .photo-pending { padding: var(--space-sm); }
}

/* Informational pages read as documents; the FAQ remains a native conversation. */
.wrap.prose > h1 { max-width: 22ch; }
.wrap.prose > h2 { margin-top: var(--space-2xl); }
.wrap.prose > p { line-height: 1.65; }
.faq details { padding-block: var(--space-lg); }
.faq summary { min-height: 44px; align-items: baseline; font-stretch: 85%; }
.faq details p { padding-inline-start: var(--space-grid); max-width: 60ch; }
.faq details[open] { padding-bottom: var(--space-xl); }
.faq details[open] > summary { text-decoration: underline; text-underline-offset: .18em; }
.actions { align-items: center; }
.btn:disabled, .nav-toggle:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; border-style: dashed; background: var(--paper); color: var(--ink-soft); }
a:active, summary:active { text-decoration: underline; }
form.card > .btn { min-height: calc(1.6em + 1.3rem + 2px); font-size: var(--text-body); }
@media (forced-colors: active) {
  .tag::after { border-color: CanvasText; background: Canvas; }
  form.card { border: 2px solid ButtonText; }
  input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: CanvasText; }
}

/* Custom dispatch system: postal mark, route ledger, foster story and colophon.
 * Variation: framed route art, inverted origin story, horizontal help ledger.
 * Palette stays pinned; sand is illustration only, never a text background. */
.wordmark { display: grid; font-size: clamp(1.4rem, 3vw, 2rem); font-stretch: 78%; letter-spacing: -.025em; }
.wordmark > span { font-size: var(--text-small); font-stretch: 100%; letter-spacing: .16em; text-transform: uppercase; margin-bottom: var(--space-2xs); }
.brand img { width: 64px; height: 64px; }
.dispatch-label { font-size: var(--text-small); font-weight: 700; color: var(--blue); border-top: 2px solid var(--control); padding-top: var(--space-sm); margin: 0 0 var(--space-lg); width: fit-content; }
.hero h1 { max-width: 18ch; }
.hero .lede { font-size: var(--text-body); }
.flight-sheet { background: var(--card); color: var(--ink); padding: var(--space-md); border: 1px solid var(--control); border-top: 8px solid transparent; border-image: var(--stripe) 8; }
.route-geography { fill: none; stroke: var(--mist); stroke-width: 1; }
.route-sand { fill: var(--sand); }
.route-plane { fill: var(--blue); }
.manifest caption { text-transform: uppercase; letter-spacing: .06em; font-size: var(--text-small); }
.home-roster { padding-block: var(--space-2xl) var(--space-section); border-top: 1px solid var(--control); }
.home-roster > .prose { max-width: 54ch; }
.home-roster .empty { margin-top: var(--space-xl); max-width: none; background: var(--card); color: var(--ink); padding: var(--space-lg); }
.home-roster .empty p { max-width: var(--measure); }
.home-note { padding-bottom: var(--space-section); background: var(--ink); color: var(--paper); border-bottom: 8px solid var(--sand); }
.home-note h2 { max-width: 24ch; font-size: var(--text-display); }
.home-note p { max-width: 58ch; }
.home-help { padding-top: var(--space-section); }
.home-help ul { list-style: none; padding: 0; margin: var(--space-xl) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.home-help li { border-top: 1px solid var(--control); padding-top: var(--space-md); }
.home-help li strong { display: block; margin-bottom: var(--space-xs); }
.home-latest { padding-top: var(--space-lg); border-top: 1px solid var(--control); }
.site-footer { background: var(--card); color: var(--ink-soft); border-top: 8px solid transparent; border-image: var(--stripe) 8; }
.footer-route { color: var(--ink); font-size: var(--text-display); font-stretch: 72%; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.footer-route span { font-size: var(--text-heading); font-weight: 400; }
.site-footer .footer-identity { padding-bottom: var(--space-lg); border-bottom: 1px solid var(--control); }
@media (min-width: 900px) {
  .home-roster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--space-2xl); }
  .home-roster h2 { grid-column: 1; }
  .home-roster > .prose { grid-column: 1; }
  .home-roster .empty { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .home-roster .tags { grid-column: 1 / -1; }
  .home-help ul { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr); }
}
@media (max-width: 40rem) {
  .brand img { width: 44px; height: 44px; }
  .wordmark { font-size: 1.4rem; }
  .wordmark > span { font-size: .75rem; }
  .flight-sheet { padding: var(--space-xs); }
  .hero h1 { max-width: none; }
}
@media (max-width: 22rem) {
  .brand { flex-wrap: wrap; }
  .wordmark { font-size: 1.1rem; }
  .wordmark > span { letter-spacing: .04em; }
}
@media (forced-colors: active) {
  .flight-sheet, .site-footer { border-image: none; border-color: CanvasText; }
  .home-note { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .route-geography { stroke: CanvasText; }
  .route-plane { fill: CanvasText; }
  .route-sand { fill: Canvas; }
}

/* Below 320px, use a reflowing destination legend instead of miniature labels. */
.route-legend { display: none; }
@media (max-width: 319.98px) {
  .route text { display: none; }
  .route-legend { display: block; font-size: var(--text-small); color: var(--ink); margin: var(--space-md) 0 0; }
}
