/* ==========================================================================
 * lc-launches.css — watching rocket launches from the Lowcountry coast.
 *
 * THE USAGE SCENE DECIDES THE GROUND, AND HERE IT IS DARKNESS. Every other
 * hand-rendered surface on this site is light, and deliberately so: they are read
 * outdoors in daylight, where a dark UI is a mirror. This one is read at 5am on a
 * beach, or twenty minutes after sunset, by somebody whose eyes have adapted to
 * the dark and who is about to look at a faint thing low over the water. A white
 * screen in that scene destroys the adaptation it takes twenty minutes to build,
 * and the reader loses the event the page exists to send them to.
 *
 * So the ground is the navy of the sky in the hero photograph, the ink is off
 * white, and nothing on the page is allowed to flash bright.
 *
 * TOKENS ARE THE HOUSE BLOCK RE-GROUNDED, NOT A PRIVATE SYSTEM. Same families and
 * same faces as every other vertical (ink / muted / line / accent / gold, serif /
 * sans / display). The values are the dark-ground steps of the same palette, which
 * is the site's own gold lifted and its green replaced by a sky blue, because a
 * 2f6f57 green on a navy ground is unreadable and tinting it lighter turns it mint.
 *
 * THE TWO STATE COLOURS ARE MEASURED, NOT PICKED. Sunlit exhaust and exhaust in
 * the Earth's shadow are the one thing on the page carried by colour, so the pair
 * was run through the palette validator: lightness band, chroma floor, CVD
 * separation (worst adjacent dE 25.0 protan, 24.8 tritan), normal-vision floor
 * 26.8, and contrast against the ground. All six pass. They are still never
 * carried by colour ALONE — every use is labelled in words beside it.
 *
 * FIGURES ARE SANS WITH TABULAR NUMERALS; PROSE IS THE SERIF. A column of degrees
 * and a column of times only read as columns when the digits are the same width.
 * Monospace would be a costume here — these are measurements, and the sans has
 * tabular figures.
 *
 * NO ROUNDED CORNERS anywhere, per the site's front-end rule.
 * ========================================================================== */

.lcl,
.lcl-panel,
.lcl-table-wrap,
.lcl-timeline,
.lcl-windows,
.lcl-arc,
.lcl-undated,
.lcl-empty {
  --lcl-ground:   #0a1020;   /* the sky in the hero frame            */
  --lcl-raised:   #121b2e;   /* one step up, for the panel           */
  --lcl-ink:      #e9eef6;
  --lcl-muted:    #93a6c0;   /* tinted from the ground's hue         */
  --lcl-line:     rgba(147, 166, 192, .22);
  --lcl-line-firm:rgba(147, 166, 192, .38);

  /* The validated state pair, plus text-weight tints of the same two hues. A mark
     colour and a text colour are different jobs: the mark sits on the ground and
     needs 3:1, the label sits beside prose and needs 4.5:1. */
  --lcl-lit-mark:    #c47d0d;
  --lcl-lit-text:    #f0ab41;
  --lcl-shadow-mark: #4e97de;
  --lcl-shadow-text: #8fbdf0;

  --lcl-serif:   "PT Serif", Georgia, "Times New Roman", serif;
  --lcl-sans:    "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lcl-display: "Playfair Display", Georgia, serif;
}

/* The page ground. Set on the body so the space either side of every band is the
   same navy and the page never flashes white between sections. */
body.lc-launch-page {
  background: var(--lcl-ground);
}

body.lc-launch-page ::selection {
  background: var(--lcl-lit-mark);
  color: #0a1020;
}

body.lc-launch-page {
  scrollbar-color: var(--lcl-line-firm) var(--lcl-ground);
}

body.lc-launch-page :focus-visible {
  outline: 2px solid var(--lcl-lit-text);
  outline-offset: 2px;
}

/* ── The lead panel ─────────────────────────────────────────────────────── */

.lcl-panel {
  background: var(--lcl-raised);
  border: 1px solid var(--lcl-line);
  padding: clamp(20px, 4vw, 40px);
  color: var(--lcl-ink);
  font-family: var(--lcl-serif);
}

.lcl-panel__head { margin-bottom: 22px; }

.lcl-mission {
  font-family: var(--lcl-display);
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--lcl-ink);
  text-wrap: balance;
}

.lcl-when {
  font-family: var(--lcl-sans);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  margin: 0;
  color: var(--lcl-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
}

.lcl-countdown {
  color: var(--lcl-muted);
  font-size: 14px;
}

/* The verdict. One authored moment on the page and this is it: the badge and its
   sentence arrive together, once, from an already-visible resting state. */
.lcl-verdict {
  border-top: 1px solid var(--lcl-line);
  padding-top: 20px;
  animation: lcl-rise .7s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes lcl-rise {
  from { opacity: .35; transform: translateY(8px); }
  to   { opacity: 1;   transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lcl-verdict { animation: none; }
}

.lcl-badge {
  display: inline-block;
  font-family: var(--lcl-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid currentColor;
  color: var(--lcl-muted);
  margin-bottom: 12px;
}

.lcl-badge--sm { font-size: 10.5px; padding: 4px 8px; margin: 0; }

.lcl-grade-plume   .lcl-badge { color: var(--lcl-lit-text); }
.lcl-grade-partial .lcl-badge { color: var(--lcl-lit-text); opacity: .82; }
.lcl-grade-dark    .lcl-badge { color: var(--lcl-shadow-text); }

.lcl-note {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  margin: 0;
  max-width: 60ch;
  color: var(--lcl-ink);
}

/* The four facts. A hairline row, never four boxes — the boxes would make this the
   fifth card grid on the site and say nothing the rule does not. */
.lcl-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0;
  margin: 26px 0 0;
  border-top: 1px solid var(--lcl-line);
}

.lcl-facts > div {
  padding: 16px 18px 14px 0;
  border-right: 1px solid var(--lcl-line);
}

.lcl-facts > div:last-child { border-right: 0; }

.lcl-facts dt {
  font-family: var(--lcl-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--lcl-muted);
  margin: 0 0 6px;
}

.lcl-facts dd {
  font-family: var(--lcl-sans);
  font-variant-numeric: tabular-nums;
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 600;
  margin: 0;
  color: var(--lcl-ink);
}

.lcl-status,
.lcl-stamp {
  font-family: var(--lcl-sans);
  font-size: 12.5px;
  color: var(--lcl-muted);
  margin: 18px 0 0;
}

/* The way out of a dead end. On a page whose most likely verdict is "nothing tonight", this
   line is the one that decides whether the reader has a reason to come back, so it is set at
   reading size rather than as a footnote. */
.lcl-onward {
  font-family: var(--lcl-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--lcl-ink);
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--lcl-line);
  max-width: 58ch;
}

.lcl-onward strong { font-weight: 700; }

.lcl-stamp { font-size: 11.5px; opacity: .8; }

/* ── The beach picker ───────────────────────────────────────────────────── */

.lcl-picker {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--lcl-line);
}

.lcl-picker__label {
  display: block;
  font-family: var(--lcl-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--lcl-muted);
  margin-bottom: 12px;
}

.lcl-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lcl-chip {
  display: block;
  font-family: var(--lcl-sans);
  font-size: 13px;
  line-height: 1;
  padding: 17px 14px;          /* 48px total: the site's touch floor, measured not assumed */
  border: 1px solid var(--lcl-line-firm);
  color: var(--lcl-muted);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.lcl-chip:hover,
.lcl-chip:focus-visible {
  color: var(--lcl-ink);
  border-color: var(--lcl-ink);
}

.lcl-chip.is-on {
  background: var(--lcl-ink);
  border-color: var(--lcl-ink);
  color: var(--lcl-ground);
  font-weight: 600;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */

.lcl-table-wrap { margin: 0; }

.lcl-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--lcl-sans);
  font-size: 14px;
  color: var(--lcl-ink);
}

.lcl-table th,
.lcl-table td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--lcl-line);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.lcl-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lcl-muted);
  border-bottom-color: var(--lcl-line-firm);
  white-space: nowrap;
}

.lcl-table tbody th { font-weight: 400; }

.lcl-row__mission {
  display: block;
  font-family: var(--lcl-serif);
  font-size: 16px;
  color: var(--lcl-ink);
}

.lcl-row__rocket {
  display: block;
  font-size: 12px;
  color: var(--lcl-muted);
  margin-top: 3px;
}

.lcl-row.lcl-grade-daylight { opacity: .55; }

.lcl-undated,
.lcl-empty {
  font-family: var(--lcl-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--lcl-muted);
  margin: 20px 0 0;
  max-width: 68ch;
}

/* ── The sky arc ────────────────────────────────────────────────────────── */

/* The drawing is capped at its own natural width so a wide screen renders it 1:1 rather
   than magnifying the type, and floored at a width its labels survive so a phone drags it
   sideways instead of shrinking the compass to five pixels. The sideways scroll lives
   inside this box, never on the document. */
.lcl-arc {
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.lcl-arc svg {
  display: block;
  width: 100%;
  min-width: 640px;
  max-width: 820px;
  height: auto;
}

.lcl-arc__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--lcl-sans);
  font-size: 12.5px;
  color: var(--lcl-muted);
}

.lcl-arc__legend li { display: flex; align-items: center; gap: 8px; }

.lcl-arc__swatch { width: 16px; height: 3px; display: inline-block; }
.lcl-arc__swatch--lit    { background: var(--lcl-lit-mark); }
.lcl-arc__swatch--shadow { background: var(--lcl-shadow-mark); }

.lcl-arc__caption {
  font-family: var(--lcl-sans);
  font-size: 12px;
  color: var(--lcl-muted);
  margin: 10px 0 0;
}

/* ── The minute-by-minute list ──────────────────────────────────────────── */

.lcl-timeline__lead {
  font-family: var(--lcl-sans);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--lcl-muted);
  margin: 0 0 18px;
}

.lcl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--lcl-line);
}

.lcl-step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 4px 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lcl-line);
  font-family: var(--lcl-sans);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--lcl-ink);
  border-left: 2px solid var(--lcl-shadow-mark);
  padding-left: 14px;
}

.lcl-step.is-lit { border-left-color: var(--lcl-lit-mark); }

.lcl-step__t { font-weight: 600; color: var(--lcl-muted); }

.lcl-step__lit {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--lcl-shadow-text);
}

.lcl-step.is-lit .lcl-step__lit { color: var(--lcl-lit-text); }

.lcl-timeline__foot {
  font-family: var(--lcl-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--lcl-muted);
  margin: 18px 0 0;
  max-width: 66ch;
}

/* ── The two windows ────────────────────────────────────────────────────── */

.lcl-windows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--lcl-line-firm);
}

.lcl-window {
  padding: 26px 30px 26px 0;
  border-right: 1px solid var(--lcl-line);
}

.lcl-window:last-child { border-right: 0; padding-right: 0; padding-left: 30px; }

.lcl-window__h {
  font-family: var(--lcl-display);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--lcl-ink);
  text-wrap: balance;
}

.lcl-window p {
  font-family: var(--lcl-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--lcl-muted);
  margin: 0;
  max-width: 46ch;
}

.lcl-window strong {
  color: var(--lcl-ink);
  font-family: var(--lcl-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

@media (max-width: 639px) {
  .lcl-window { border-right: 0; border-bottom: 1px solid var(--lcl-line); padding-right: 0; }
  .lcl-window:last-child { border-bottom: 0; padding-left: 0; }
  .lcl-facts > div { border-right: 0; border-bottom: 1px solid var(--lcl-line); padding-bottom: 12px; }
  .lcl-facts > div:last-child { border-bottom: 0; }
}
