/* CLEARSKY design tokens — CANON §12 */
:root {
  /* Brand palette */
  --navy:    #0D1B2A;
  --steel:   #1B3A5C;
  --gold:    #C9A84C;
  --cream:   #F5F0E8;

  /* Tonal extensions of the canonical four */
  --navy-deep:    #08111c;
  --navy-rule:    #18283a;
  --steel-soft:   #243f5d;
  --steel-rule:   #2c4566;
  --cream-dim:    #c9c2b6;
  --cream-mute:   #8a8478;
  --gold-dim:     #8e7635;
  --gold-soft:    #d6bc6f;

  /* Status — institutional, not neon */
  --critical:  #C44536;
  --warning:   #C9A84C;
  --success:   #6B8E4E;
  --info:      #4A6B8C;

  /* Type */
  --font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii — restrained */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;

  /* Layout */
  --max:   1280px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Hairlines */
  --rule: 1px solid var(--navy-rule);
  --rule-steel: 1px solid var(--steel-rule);
  --rule-cream: 1px solid rgba(245, 240, 232, 0.12);
}


* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "kern";
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -200px, rgba(201, 168, 76, 0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(27, 58, 92, 0.45), transparent 70%),
    var(--navy);
}

/* Subtle paper grain — archive-grade */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0 0.91  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ——— Type ——— */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cream);
  text-wrap: balance;
}
h1.display {
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h2.section {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
p  { margin: 0 0 1em 0; line-height: 1.6; text-wrap: pretty; }
p.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--cream); }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }

.eyebrow,
.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.eyebrow.gold,
.label-mono.gold { color: var(--gold); }
.eyebrow.cream,
.label-mono.cream { color: var(--cream-dim); }

.mono { font-family: var(--font-mono); }
.muted { color: var(--cream-mute); }
.dim { color: var(--cream-dim); }

/* ——— Layout ——— */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { position: relative; z-index: 2; }

/* ——— Classification banner (FT-style strap) ——— */
.classbanner {
  position: relative;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--navy-rule);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.classbanner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.classbanner__left { display: flex; align-items: center; gap: 14px; }
.classbanner__right { display: flex; align-items: center; gap: 18px; }
.classbanner .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  vertical-align: middle;
}
.classbanner .sep {
  width: 1px; height: 10px; background: var(--navy-rule); display: inline-block;
}
.classbanner b {
  color: var(--cream-dim);
  font-weight: 500;
}

/* ——— Header ——— */
.siteheader {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 27, 42, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: var(--rule);
}
.siteheader__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand__mark {
  width: 24px; height: 24px;
  display: inline-block;
  /* logo is white-on-transparent; let it sit on dark chrome.
     filter gives a subtle warmth so it harmonizes with gold wordmark */
  filter: brightness(0.95) sepia(0.15) hue-rotate(345deg) saturate(0.7);
}
.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-mute);
  font-weight: 500;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--navy-rule);
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.primary a {
  color: var(--cream-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
nav.primary a:hover { color: var(--cream); }
nav.primary a.active { color: var(--cream); }
nav.primary a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--gold);
  margin-top: 4px;
}
.header__cta { display: flex; align-items: center; gap: 12px; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-1);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 120ms, border-color 120ms, color 120ms, transform 120ms;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--navy-rule);
}
.btn-ghost:hover { border-color: var(--cream-dim); color: var(--cream); }
.btn-link {
  background: transparent;
  color: var(--gold);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  height: auto;
}
.btn-link:hover { color: var(--gold-soft); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }

/* ——— Footer ——— */
.sitefooter {
  margin-top: 96px;
  background: var(--navy-deep);
  border-top: var(--rule);
  color: var(--cream-mute);
  font-size: 14px;
}
.sitefooter__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
}
.sitefooter__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .sitefooter__grid { grid-template-columns: 1fr 1fr; } }
.sitefooter h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream-dim);
  margin-bottom: 16px;
}
.sitefooter ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sitefooter a { color: var(--cream-mute); }
.sitefooter a:hover { color: var(--cream); }
.sitefooter__brand p { color: var(--cream-mute); font-size: 13px; line-height: 1.55; max-width: 32ch; }
.sitefooter__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-mute);
}

/* ——— Cards / surfaces ——— */
.card {
  background: linear-gradient(180deg, rgba(27, 58, 92, 0.42), rgba(27, 58, 92, 0.18));
  border: 1px solid var(--steel-rule);
  border-radius: var(--r-2);
}
.surface {
  background: var(--steel);
  border: 1px solid var(--steel-rule);
  border-radius: var(--r-2);
}

/* ——— Tag / pill ——— */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--navy-rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: rgba(245, 240, 232, 0.02);
}
.tag .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.tag.success .pip { background: var(--success); }
.tag.critical .pip { background: var(--critical); }
.tag.info .pip { background: var(--info); }

/* ——— Hairline ruler ——— */
.hr-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--navy-rule), transparent);
  margin: 0;
  border: 0;
}

/* ——— Section header ——— */
.sec-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr);
  gap: 40px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: var(--rule);
}
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; gap: 12px; } }
.sec-head .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.sec-head h2 { max-width: 22ch; }
.sec-head .lede { color: var(--cream-dim); max-width: 60ch; }

/* ——— Utility ——— */
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; }
.stack-2 { gap: var(--s-2); }
.stack-3 { gap: var(--s-3); }
.stack-4 { gap: var(--s-4); }
.stack-5 { gap: var(--s-5); }
.stack-6 { gap: var(--s-6); }

.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
@media (max-width: 720px) { .section-pad { padding: 64px 0; } }

::selection { background: var(--gold); color: var(--navy-deep); }

/* Scrollbars (subtle) */
* { scrollbar-width: thin; scrollbar-color: var(--steel-rule) transparent; }

/* Ticking marquee for live event row */
@keyframes tick-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Verifier verdict pulse */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* ═══════════════════════════════════════════════════════════════════
   Wave-2 appended utilities — static chrome support (no site.js)
   Everything above this line is the design's tokens.css + site.css,
   order preserved, nothing removed. Only additions below.
   ═══════════════════════════════════════════════════════════════════ */

/* Skip link (a11y, matches live-site convention) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: var(--r-1);
}
.skip-link:focus { left: var(--gutter); top: 8px; color: var(--navy-deep); }

/* Footer brand block: spacing carried by class, not inline style
   (site.js previously injected style="margin-bottom:16px" here) */
.sitefooter__brand .brand { margin-bottom: 16px; }

/* Static-chrome responsive fallbacks. The design ships no JS nav
   toggle, so the header must degrade gracefully without one. */
@media (max-width: 960px) {
  .brand small { display: none; }
  nav.primary { gap: 18px; overflow-x: auto; }
  .header__cta .btn-ghost { display: none; }
}
@media (max-width: 720px) {
  .classbanner__right { display: none; }
  .siteheader__inner {
    height: auto;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
