/* Spaceflight Firsts — site styles */

@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: italic; font-display: swap; src: url("/assets/fonts/montserrat-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-style: italic; font-display: swap; src: url("/assets/fonts/montserrat-latin-900-italic.woff2") format("woff2"); }

:root {
  --navy: #0B1D3A;
  --navy-deep: #071328;
  --navy-2: #13294d;
  --orange: #FF6B1A;
  --orange-dark: #d9520a;
  --ink: #14213a;
  --ink-soft: #4a5873;
  --paper: #f5f6f9;
  --card: #ffffff;
  --line: #dfe3ec;
  --radius: 10px;
  --wrap: 1180px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-decoration-color: rgba(255,107,26,.6); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-weight: 800; font-size: 1.45rem; margin: 1.6em 0 .6em; }
h3 { font-weight: 600; font-size: 1.1rem; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Masthead ---------- */
.masthead { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.mh-sky {
  position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 99%, transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,.7) 99%, transparent),
    radial-gradient(1.5px 1.5px at 44% 18%, rgba(255,255,255,.8) 99%, transparent),
    radial-gradient(1px 1px at 58% 82%, rgba(255,255,255,.6) 99%, transparent),
    radial-gradient(1px 1px at 71% 30%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 86% 60%, rgba(255,255,255,.7) 99%, transparent),
    radial-gradient(1px 1px at 93% 14%, rgba(255,255,255,.8) 99%, transparent),
    radial-gradient(1px 1px at 6% 78%, rgba(255,255,255,.6) 99%, transparent),
    radial-gradient(1px 1px at 36% 40%, rgba(255,255,255,.5) 99%, transparent),
    radial-gradient(1px 1px at 64% 52%, rgba(255,255,255,.5) 99%, transparent),
    radial-gradient(ellipse 70% 120% at 100% 110%, rgba(255,107,26,.10), transparent 60%),
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(40,80,150,.35), transparent 60%);
}
.masthead--full .mh-sky::after {
  content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 340px;
  border-top: 2px solid rgba(255,255,255,.08); border-radius: 50%;
}
.mh-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 52px; height: 52px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.wordmark { display: flex; flex-direction: column; line-height: .92; }
.wm-top { font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; }
.wm-bottom { font-weight: 900; font-style: italic; font-size: 1.55rem; letter-spacing: .01em; }
.wm-arc { display: none; }
.tagline { font-weight: 600; font-size: 1.05rem; color: #e6ebf4; margin-top: 10px; }

.masthead--full .mh-inner { padding-top: 44px; padding-bottom: 48px; min-height: 300px; }
.masthead--full .brand { gap: 28px; }
.masthead--full .brand-mark { width: 168px; height: 168px; }
.masthead--full .wm-top { font-size: clamp(1.8rem, 4.2vw, 3.3rem); }
.masthead--full .wm-bottom { font-size: clamp(2.8rem, 6.6vw, 5.2rem); }
.masthead--full .wm-arc { display: block; width: 100%; height: 12px; margin-top: 6px; }

/* Latest first rotator */
.latest { flex: 0 1 360px; border-left: 1px solid rgba(255,255,255,.25); padding-left: 32px; min-height: 170px; display: flex; flex-direction: column; }
.latest-label { display: inline-block; align-self: flex-start; margin: 0 0 14px; background: var(--orange); color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px; transform: skewX(-12deg); }
.latest-slides { flex: 1; }
.latest-slide { display: block; color: #fff; text-decoration: none; }
.latest-slide:hover .latest-title { text-decoration: underline; text-decoration-color: var(--orange); }
.latest-title { display: block; font-weight: 800; font-size: 1.45rem; line-height: 1.2; }
.latest-meta { display: block; margin-top: 8px; color: #c6d0e2; font-size: .95rem; }
.latest-controls { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.latest-controls button { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; }
.latest-prev, .latest-next { font-size: 1.6rem; line-height: 1; padding: 0 6px; }
.latest-dots { display: flex; gap: 8px; }
.latest-dot { width: 10px; height: 10px; border-radius: 50%; padding: 0; background: rgba(255,255,255,.35) !important; }
.latest-dot.is-active { background: var(--orange) !important; }

/* Nav */
.site-nav { position: relative; background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.08); }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-top: 10px; padding-bottom: 10px; }
.site-nav a { color: #dbe3f1; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; border-bottom-color: var(--orange); }
.site-nav .nav-cta { margin-left: auto; background: var(--orange); color: #fff; padding: 6px 16px; border-radius: 999px; border: 0; }
.site-nav .nav-cta:hover { background: var(--orange-dark); }

/* ---------- Page blocks ---------- */
.intro { padding-top: 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .8rem; color: var(--orange-dark); margin: 0; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }
.intro-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-block; background: var(--navy); color: #fff; padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 9px 20px; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.block { padding-top: 28px; padding-bottom: 36px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.block-head h2 { margin-top: .4em; }
.block-head a { font-weight: 600; }
.page-head { padding-top: 40px; }
.crumbs { font-size: .9rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.card:hover { border-top-color: var(--orange); }
.card-date { margin: 0; font-size: .85rem; font-weight: 600; color: var(--orange-dark); }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.card-mission { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.card-tags { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; background: #eef1f7; color: var(--navy-2); padding: 2px 9px; border-radius: 999px; margin-right: 4px; }
.status { display: inline-block; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.status--verified { background: #e3f4e6; color: #1d6b31; }
.status--needs-source { background: #fff2dc; color: #8a5300; }
.status--disputed { background: #fde6e1; color: #a1321b; }
.status--not-quite { background: #ece9f8; color: #4b3a8f; }

/* Countdown band */
.countdown-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; }
.countdown { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 860px) { .countdown { grid-template-columns: repeat(2, 1fr); } }
.cd-step a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); height: 100%; }
.cd-step a:hover { border-color: var(--orange); }
.cd-num { font-weight: 900; font-style: italic; color: var(--orange-dark); font-size: .95rem; }
.cd-label { font-weight: 800; color: var(--navy); }
.cd-month { font-size: .8rem; color: var(--ink-soft); }

/* Subscribe */
.subscribe-box { background: var(--navy); color: #fff; border-radius: 16px; padding: 30px 32px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.subscribe-box h2 { color: #fff; margin: 0 0 6px; }
.subscribe-box p { margin: 0; color: #cfd8e8; }
.subscribe-form { display: flex; gap: 8px; }
.subscribe-form input { flex: 1; min-width: 0; font: inherit; padding: 12px 16px; border-radius: 999px; border: 0; }
.subscribe-form button { font: inherit; font-weight: 800; background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; }
.subscribe-form button:hover { background: var(--orange-dark); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filter { font: inherit; font-size: .9rem; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.era-heading { font-size: 1.2rem; margin: 1.6em 0 .7em; }
.era-heading a { color: var(--navy); text-decoration: none; }

/* Entry page */
.entry { padding-top: 32px; padding-bottom: 40px; }
.entry-head { max-width: 50em; }
.entry-date { margin: 14px 0 0; font-weight: 600; color: var(--orange-dark); }
.entry-claim { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 10px; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px; margin-top: 20px; }
.prose { max-width: 42em; }
.prose p { margin: 0 0 1em; }
.entry-facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; align-self: start; }
.entry-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .93rem; }
.entry-facts dt { font-weight: 800; color: var(--navy); }
.entry-facts dd { margin: 0; }
.entry-facts small { color: var(--ink-soft); }
.entry-sources ul, .entry-books ul { padding-left: 0; list-style: none; }
.entry-sources li { margin: 0 0 8px; }
.source-kind { display: inline-block; min-width: 64px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.entry-correct { margin-top: 30px; font-size: .9rem; color: var(--ink-soft); }

/* Tables, callouts, lists */
.era-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.era-table th, .era-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.era-table th { background: var(--navy); color: #fff; font-size: .85rem; }
.era-table small { color: var(--ink-soft); }
.era-nav { display: flex; justify-content: space-between; margin-top: 28px; font-weight: 600; }
.callout { background: #fff; border-left: 5px solid var(--orange); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 24px; }
.callout h2 { margin: 0 0 4px; font-size: 1.2rem; }
.callout p { margin: 0; }
.issue-parts li, .rules li { margin-bottom: 10px; }
.status-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; }
.status-list dd { margin: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c6d0e2; margin-top: 40px; padding: 36px 0 20px; font-size: .92rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; }
.footer-tag { margin: 8px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; max-width: 520px; }
.site-footer nav a { color: #dbe3f1; text-decoration: none; }
.site-footer nav a:hover { color: var(--orange); }
.footer-fine { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 14px; font-size: .8rem; color: #8e9bb5; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .masthead--full .mh-inner { flex-direction: column; align-items: flex-start; min-height: 0; padding-top: 28px; padding-bottom: 28px; }
  .masthead--full .brand-mark { width: 104px; height: 104px; }
  .masthead--full .brand { gap: 18px; }
  .latest { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding: 20px 0 0; width: 100%; flex-basis: auto; min-height: 0; }
  .tagline { font-size: .95rem; }
  .entry-grid, .subscribe-box { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .site-nav .nav-cta { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
