/*
 * Datasheets: the one-pagers for the Pentagon of Pain and METEORSTORM.
 *
 * Written 10 October 2026, after visitors described the Space ISAC page as
 * "AI slop": dark rounded cards, glowing pills, letter-spaced micro-labels,
 * click-to-read tab widgets. These sheets go the other way on purpose. They
 * are set like an engineering datasheet: white paper, black ink, hairline
 * rules, numbered figures with captions, everything readable without a click.
 *
 * One sheet is exactly one US Letter page when printed (and when the PDF is
 * made by scripts/one-pager-pdf.mjs). On screen the same sheet sits on a desk;
 * below 760px it reflows to one column.
 *
 * Colour carries meaning only in METEORSTORM figures, where each layer has its
 * colour from the METEORSTORM visual language. Everything else is ink.
 */

:root {
  --ink: #14161a;
  --ink-2: #3b4048;
  --ink-3: #6b717b;
  --rule: #c9ccd1;
  --rule-2: #e6e8eb;
  --paper: #ffffff;
  --desk: #e9e7e2;
  --signal: #b4321e;


  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.ds-body { background: var(--desk); color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; }

/* ---------- screen chrome, never printed ---------- */
.ds-bar { max-width: 8.5in; margin: 0 auto; padding: 18px 0 14px; display: flex; gap: 18px; align-items: center; font-family: var(--display); font-size: 14px; }
.ds-bar a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-3); padding-bottom: 1px; }
.ds-bar a:hover { border-color: var(--ink); }
.ds-bar .ds-pdf { margin-left: auto; background: var(--ink); color: #fff; border: 0; padding: 8px 14px; font-weight: 600; }
.ds-bar .ds-pdf:hover { background: #000; }
.ds-bar a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- the sheet ---------- */
.sheet {
  width: 8.5in; min-height: 11in; margin: 0 auto 40px; background: var(--paper);
  padding: 0.42in 0.52in 0.38in; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 36px rgba(0,0,0,.10);
  display: flex; flex-direction: column; font-size: 8.7pt; line-height: 1.36;
}

.mast { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2.5px solid var(--ink); padding-bottom: 5px; font-family: var(--display); font-size: 7.6pt; font-weight: 600; color: var(--ink-2); }
.mast b { color: var(--ink); font-weight: 800; }

.title { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 11px 0 8px; border-bottom: 0.75px solid var(--rule); }
.title h1 { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 31pt; line-height: .95; letter-spacing: -0.015em; margin: 0; }
.title .deck { font-family: var(--text); font-size: 12pt; line-height: 1.3; color: var(--ink-2); margin: 7px 0 0; max-width: 34em; }
.title-sm h1 { font-size: 24pt; }
.title .ident { font-family: var(--mono); font-size: 7pt; color: var(--ink-3); text-align: right; line-height: 1.5; }

h2.h { font-family: var(--display); font-weight: 800; font-size: 8.4pt; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; padding-top: 6px; border-top: 0.75px solid var(--ink); }
h2.h .n { font-family: var(--mono); font-weight: 500; color: var(--ink-3); margin-right: 6px; }
p { margin: 0 0 6px; }
.lede { font-size: 9.6pt; line-height: 1.38; }
.mono { font-family: var(--mono); }
.quiet { color: var(--ink-2); }

.cols { display: grid; gap: 0 22px; }
.cols.c2 { grid-template-columns: 1fr 1fr; }
.cols.c3 { grid-template-columns: 1fr 1fr 1fr; }
.cols.c-fig { grid-template-columns: 1.18fr 1fr; align-items: start; }
.block { margin-top: 10px; }
.small { font-size: 7.9pt; line-height: 1.32; }
.qt { display: block; font-family: var(--text); font-weight: 400; font-style: italic; font-size: 7.8pt; color: var(--ink-2); margin-top: 2px; }

figure { margin: 0; }
figcaption { font-size: 7.8pt; color: var(--ink-2); margin-top: 4px; line-height: 1.35; }
figcaption b { font-family: var(--display); font-weight: 800; color: var(--ink); margin-right: 4px; }

table.t { width: 100%; border-collapse: collapse; font-size: 8.4pt; line-height: 1.32; }
table.t th { font-family: var(--display); font-weight: 700; font-size: 7.2pt; text-transform: uppercase; letter-spacing: .05em; text-align: left; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding: 0 8px 3px 0; vertical-align: bottom; }
table.t td { border-bottom: 0.5px solid var(--rule); padding: 5px 8px 5px 0; vertical-align: top; }
table.t tr:last-child td { border-bottom: 1px solid var(--ink); }
table.t td.k { font-family: var(--mono); font-size: 7.6pt; color: var(--ink-3); width: 2.2em; }
table.t td.nm { font-family: var(--display); font-weight: 700; }
table.t.pop { table-layout: fixed; font-size: 7.95pt; }
table.t.pop td { padding-top: 3px; padding-bottom: 3px; }
table.t td.q { font-style: italic; }

.foot { margin-top: auto; padding-top: 8px; border-top: 0.75px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; font-family: var(--display); font-size: 7pt; color: var(--ink-3); }
.foot b { color: var(--ink); }

.eten { font-family: var(--mono); font-size: 8.6pt; display: flex; flex-wrap: wrap; gap: 0; border: 0.75px solid var(--ink); margin: 4px 0 6px; }
.eten span { padding: 4px 7px; border-right: 0.75px solid var(--ink); }
.eten span:last-child { border-right: 0; flex: 1; color: var(--ink-3); font-style: italic; font-family: var(--text); }
.eten { font-size: 7.8pt; }
.eten i { display: block; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 5.6pt; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 1px; }
table.t.fn { font-size: 7.9pt; line-height: 1.28; }
table.t.fn td.nm { width: 13.5em; }
table.t.fn td.out { font-size: 7.2pt; white-space: nowrap; width: 9em; }
table.t.fn td { padding-top: 3px; padding-bottom: 3px; }

/* ---------- Pentagon figure ---------- */
.pent text { font-family: var(--display); }
.pent .nm { font-weight: 800; font-size: 13px; fill: var(--ink); }
.pent .ja { font-family: var(--text); font-style: italic; font-size: 11px; fill: var(--ink-3); }
.pent .num { font-family: var(--mono); font-size: 10px; font-weight: 600; fill: #fff; }
.pent .ctr { font-family: var(--text); font-size: 11px; fill: var(--ink); }
.pent .ctr-h { font-family: var(--display); font-weight: 800; font-size: 9px; letter-spacing: .08em; fill: var(--ink-3); }

/* ---------- small screens: reflow ---------- */
@media screen and (max-width: 860px) {
  .ds-bar { padding: 14px 16px; flex-wrap: wrap; }
  .sheet { width: auto; min-height: 0; margin: 0 0 24px; padding: 20px 16px 18px; box-shadow: none; font-size: 15px; }
  .title { grid-template-columns: 1fr; }
  .title h1 { font-size: 40px; }
  .title-sm h1 { font-size: 24pt; }
.title .ident { text-align: left; }
  .cols.c2, .cols.c3, .cols.c-fig { grid-template-columns: 1fr; }
  .cols > * + * { margin-top: 12px; }
  table.t { font-size: 14px; }
  table.t thead { display: none; }
  table.t tr { display: grid; grid-template-columns: 2.2em 1fr; border-bottom: 0.5px solid var(--rule); padding: 8px 0; }
  table.t td { border: 0; padding: 2px 0; }
  table.t td.k { grid-row: span 4; }
  table.t td.nm { width: auto; }
  .foot { flex-direction: column; }
}

/* ---------- print: exactly one Letter page ---------- */

@page { size: letter; margin: 0; }
@media print {
  body.ds-body { background: #fff; }
  .ds-bar, .screen-only { display: none; }
  .sheet { margin: 0; box-shadow: none; width: 8.5in; height: 11in; min-height: 0; overflow: hidden; break-after: page; }
  .sheet:last-child { break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* "Hover an element" means nothing on a touch screen. */
@media (hover: none) { .screen-only { display: none; } }
