/* Night Departure – tokens, fonts and page chrome shared by every public page
   (brand/night-departure/README.md). No inline styles anywhere: the CSP of these pages only
   allows style-src 'self'. The font addresses carry the version of their file
   (scripts/stamp-assets.mjs); fonts and licences: /assets/fonts/. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-700.ttf?v=a737b146fe') format('truetype');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-800.ttf?v=1b388794a6') format('truetype');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/sora-400.ttf?v=647631fce2') format('truetype');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/sora-600.ttf?v=a566f4a4e9') format('truetype');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/space-mono-400.ttf?v=508a2a382b') format('truetype');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-mono-700.ttf?v=35da133403') format('truetype');
}

:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-band: #0a0f1c;
  --surface: #0c1322;
  --tile: #141c30;
  --line: #1c2740;
  --line-tile: #263352;
  --line-input: #2a3754;
  --text: #f2f5fa;
  --text-soft: #c9d2e0;
  --text-muted: #8a97ad;
  --coral: #ff6b4a;
  --coral-soft: #ff8a6b;
  --aqua: #39e0d0;
  --aqua-bright: #7bf0e4;
  --amber: #f5c451;
  --paper: #eef1f6;
  --ink: #0a0e18;
  --ink-soft: #2d3648;
  --ink-muted: #4a5568;
  --display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--aqua);
}
a:hover {
  color: var(--aqua-bright);
}
:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  text-wrap: balance;
}

.wrap {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  background: var(--text);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
  color: var(--ink);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: var(--mono);
}

/* Word mark: the name in board type around a coral slash. */
.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
a.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
a.wordmark:hover {
  color: var(--text);
}
.slash {
  color: var(--coral);
}

.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 34px;
  padding-top: 22px;
  padding-bottom: 22px;
}
@media (max-width: 560px) {
  .site-header {
    gap: 8px 16px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 30px;
  padding-top: 26px;
  padding-bottom: 34px;
}
.site-footer a {
  color: var(--text-soft);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer a:hover {
  color: var(--text);
}

/* An open "[…]" placeholder: board amber, so it cannot be overlooked. */
.placeholder {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--amber);
}
