/* ClimbVia design system — mockup v0.1
   Night-sky SID chart: deep navy, chart-line blue, white, aviation amber.
   Type: Archivo variable (width axis used for display), IBM Plex Mono for identifiers only
   (tail numbers, hex codes, airport codes). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --night: #071428;       /* page ground */
  --navy: #0B1E3A;        /* logo square, panels */
  --deck: #10284A;        /* raised panels */
  --chart: #1B3A63;       /* chart lines, borders */
  --steel: #8EA4C2;       /* secondary text on navy */
  --mist: #C9D6E8;        /* body text on navy */
  --white: #F4F7FB;
  --amber: #FFB21E;       /* aviation amber: action + climb path */
  --amber-deep: #E59500;
  --amber-ink: #3A2600;
  --clear: #4FD1A5;       /* "no events found" / good fit */
  --caution: #FF7A59;     /* a real caution, used sparingly */
  --paper: #FFFFFF;
  --ink: #0B1E3A;
  --ink-2: #4A5D7A;
  --rule: #DCE3EE;

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);

  --f-sans: "Archivo", system-ui, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--mist);
  background: var(--night);
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-variant-numeric: normal; letter-spacing: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--amber-ink); padding: 10px 14px; border-radius: var(--r-s); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Display type: wide + heavy, like registration markings on a fuselage */
.display {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--white);
  margin: 0;
}
h1, h2, h3 { color: var(--white); margin: 0; }
h2 { font-stretch: 118%; font-weight: 750; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.015em; }
h3 { font-stretch: 108%; font-weight: 700; font-size: 19px; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--mist); max-width: 60ch; }
.quiet { color: var(--steel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0;
  font-weight: 700; font-stretch: 108%; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-amber { background: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 0 rgba(255,178,30,.0); }
.btn-amber:hover { background: #FFC24D; box-shadow: 0 8px 28px -10px rgba(255,178,30,.7); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--chart); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--steel); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #163056; }

/* ---------- Site chrome ---------- */
.site-head { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: rgba(7,20,40,.78); border-bottom: 1px solid rgba(27,58,99,.6); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); font-weight: 800; font-stretch: 120%; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--steel); font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(27,58,99,.55); }
.head-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.head-right .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 860px) { .nav { display: none; } }

.site-foot { border-top: 1px solid var(--chart); padding: 40px 0 56px; color: var(--steel); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-foot a { color: var(--steel); text-decoration: none; }
.site-foot a:hover { color: var(--white); }
.site-foot .spacer { flex: 1; }

/* ---------- Mockup ribbon: every mockup states its numbers are samples ---------- */
.sample-ribbon {
  background: repeating-linear-gradient(-45deg, #FFB21E 0 14px, #F5A400 14px 28px);
  color: var(--amber-ink); font-weight: 700; font-size: 13.5px; text-align: center; padding: 7px 16px; font-stretch: 105%;
}
.sample-ribbon a { color: inherit; }
/* Inline marker for any individual sample figure */
.s { text-decoration: underline dashed 1.5px; text-decoration-color: rgba(255,178,30,.85); text-underline-offset: 4px; text-decoration-skip-ink: none; cursor: help; }
.tag-sample {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; font-stretch: 105%;
  padding: 3px 8px; border-radius: 999px; background: rgba(255,178,30,.14); color: var(--amber); white-space: nowrap; letter-spacing: .01em;
}
.tag-sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-est { background: rgba(142,164,194,.16); color: var(--mist); }
.tag-ok { background: rgba(79,209,165,.14); color: var(--clear); }

/* ---------- Panels ---------- */
.panel { background: var(--navy); border: 1px solid var(--chart); border-radius: var(--r-l); }
.panel-pad { padding: clamp(20px, 2.4vw, 32px); }

/* ---------- Chart-paper background (invented geometry, not a real FAA plate) ---------- */
.chart-bg { position: relative; isolation: isolate; }
.chart-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(27,58,99,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,58,99,.35) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 600px) {
  .head-right .btn-ghost { display: none; }
  .head-right .btn { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .sample-ribbon { font-size: 12px; }
}
