/* Shared base for the Admiral site: the landing page (/) and the changelog
   (/changelog). Tokens are the Hull theme from docs/brand/palette.md. Type
   follows ADR 0043: Chivo for anything read or clicked, Chivo Mono for caps
   markings, Saira Stencil One for callsigns, and no letter spacing. Fonts are
   latin subsets of crates/ui/assets/fonts (OFL, licenses beside the files). */
@font-face { font-family: "Chivo"; font-weight: 400; font-display: swap; src: url("/assets/fonts/chivo-regular.woff2") format("woff2"); }
@font-face { font-family: "Chivo"; font-weight: 500; font-display: swap; src: url("/assets/fonts/chivo-medium.woff2") format("woff2"); }
@font-face { font-family: "Chivo"; font-weight: 600; font-display: swap; src: url("/assets/fonts/chivo-semibold.woff2") format("woff2"); }
@font-face { font-family: "Chivo"; font-weight: 700; font-display: swap; src: url("/assets/fonts/chivo-bold.woff2") format("woff2"); }
@font-face { font-family: "Chivo Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/chivomono-regular.woff2") format("woff2"); }
@font-face { font-family: "Chivo Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/chivomono-medium.woff2") format("woff2"); }
@font-face { font-family: "Saira Stencil One"; font-weight: 400; font-display: swap; src: url("/assets/fonts/sairastencilone-regular.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --f-body: "Chivo", "SF Pro Text", system-ui, sans-serif;
  --f-mono: "Chivo Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --f-stencil: "Saira Stencil One", Impact, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  /* Hull surfaces, text, and signals (palette.md, Hull and Jersey status). */
  --shell: #151410; --ground: #1C1B17; --raised: #23221D; --card: #2A2923;
  --line: #2F2E27; --hover: #34332C; --line-strong: #403D33; --active: #372B14;
  --ink: #EDECE5; --ink-2: #B3B0A3; --ink-3: #85816D;
  --accent: #FEA500; --on-accent: #1C1B17; --olive: #74725D;
  --blue: #6A98C6; --green: #9DB463; --red: #E4553F;
}

* { box-sizing: border-box; }
html { background: var(--shell); scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--shell); color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; padding: 10px 14px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; border-radius: 2px; }
.skip:focus { top: 12px; }

/* Caps markings: Chivo Mono, as the app's placards and chips. */
.placard { font: 500 12px/1.4 var(--f-mono); text-transform: uppercase; color: var(--ink-3); }
.callsign { font: 400 1em/1 var(--f-stencil); }

/* Buttons: 2 px corners, sentence case, amber fill only for the one action. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 2px; font: 600 16px/1 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.btn.primary:hover { background: #EA8D00; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 15px; }
.link-more { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; font-weight: 500; }
.link-more:hover { text-decoration-color: var(--accent); }

/* The release stage beside the wordmark. Amber means act, so the badge uses
   the wash with amber text, never a filled amber that competes with the CTA. */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 2px; font: 500 11px/1 var(--f-mono); text-transform: uppercase; color: #FFB733; background: var(--active); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--shell) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .wordmark { height: 13px; width: auto; fill: currentColor; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 10px 0; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* Footer: the last chance to act, plus the site map. */
.foot { border-top: 1px solid var(--line); padding-block: 40px 48px; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 16px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.foot .fine { margin-top: 20px; color: var(--ink-3); font-size: 14px; }

@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  .nav .btn { margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; padding-bottom: 2px; }
  .nav-links a { padding: 12px 0; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
