/* Vanguard Fire Ltd: "The Communal Corridor". Shared by every page. Brand colours from brand/colours.md. */
/* Self-hosted fonts (SIL Open Font License), so visitors' IPs aren't sent to Google. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
             src: url(/fonts/archivo-latin.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
             src: url(/fonts/montserrat-latin.woff2) format("woff2"); }

:root {
  --navy: #09264A; --red: #E3262E; --grey: #6F7C8B;
  /* the corridor */
  --corridor: #0b2445; --floor: #061a33; --leaf: #10305a; --frame: #1d4473;
  --steel: #c9d1da; --steel-deep: #8d99a6; --on-navy: #eef2f7; --on-navy-soft: #bccadb;
  /* the rooms below: pale corridor-wall paint */
  --wall: #eef1f5; --plate: #fff; --ink: #0c1c33; --muted: #4f5d6e; --rule: #cfd6df;
  --ok: #1a6b3a; --err: #c8161e; --vf-v: var(--navy);
  --r: 3px;
  --shadow: 0 2px 3px #0000000f, 0 12px 28px -12px #00000038;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --wall: #09264A; --plate: #10305a; --ink: #eef2f7; --muted: #bccadb; --rule: #2b5185; /* dark rooms continue the navy corridor wall */
          --ok: #6bd49a; --err: #ff7479; --vf-v: #fff; --shadow: 0 12px 28px -12px #000a; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--steel-deep) var(--wall); }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 16px/1.6 var(--font); font-stretch: 100%;
       caret-color: var(--red); -webkit-font-smoothing: antialiased; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.02em; font-weight: 800; font-stretch: 112%; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[id] { scroll-margin-top: 80px; } /* clear the sticky ceiling bar */
.num { font-variant-numeric: tabular-nums; }

/* Ceiling: the nav bar runs along the corridor ceiling on every page */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--corridor); color: var(--on-navy); --vf-v: #fff;
          border-bottom: 1px solid #ffffff1a; }
.topbar .in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; font-weight: 600; }
.topbar nav a:not(.btn) { text-decoration: none; color: var(--on-navy-soft); }
.topbar nav a:not(.btn):hover { color: #fff; }

/* Logo lockup: the only place Montserrat appears */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--vf-v); font-family: "Montserrat", var(--font); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand .rule { width: 1.5px; align-self: stretch; margin: 4px 2px; background: currentColor; }
.brand .words { display: grid; line-height: 1; }
.brand b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.brand span span { font-size: .86rem; font-weight: 500; }
.brand em { font-style: normal; font-weight: 600; color: var(--red); }
.vf-v { fill: var(--vf-v); }
.vf-f { fill: var(--red); }

/* Buttons are plates: rectangles, no pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px;
       font: 700 1rem/1 var(--font); font-stretch: 112%; letter-spacing: .01em; text-decoration: none; cursor: pointer;
       border: 0; border-radius: var(--r); background: var(--red); color: #fff;
       box-shadow: 0 1px 0 #00000033, 0 8px 16px -8px #00000059; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:hover { background: #cf1d25; transform: translateY(-1px); box-shadow: 0 1px 0 #00000033, 0 12px 20px -8px #00000073; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #00000033; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn.small { padding: 10px 16px; font-size: .9rem; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: #ffffff14; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Fields */
label, legend { display: block; font-weight: 600; margin: 16px 0 6px; padding: 0; }
input, select, textarea { width: 100%; padding: 12px 14px; font: inherit; color: inherit; background: var(--plate);
       border: 1.5px solid var(--rule); border-radius: var(--r); transition: border-color .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--steel-deep); }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--red) 35%, transparent); outline-offset: 0; border-color: var(--red); }
::placeholder { color: var(--muted); opacity: 1; }
[aria-invalid="true"] { border-color: var(--err); }
.row { display: grid; gap: 0 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.muted, small { color: var(--muted); font-weight: 400; }
.err { color: var(--err); font-size: .9rem; min-height: 1.2em; margin: 4px 0 0; }
.ok { color: var(--ok); min-height: 1.2em; margin: 6px 0 0; }

/* Floor: footer with a steel skirting line */
.foot { background: var(--floor); color: var(--on-navy-soft); font-size: .875rem; border-top: 4px solid var(--steel-deep); }
.foot .in { max-width: 1240px; margin: 0 auto; padding: 28px 24px 36px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.foot a { color: #fff; }
.foot .todo { color: inherit; font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
