/* Website for the ice-nine model. System fonts only, no external requests. Light and dark via prefers-color-scheme and data-theme. */
:root {
  --bg: #f4f6f8; --panel: #ffffff; --fg: #15202a; --muted: #586874; --line: #d6dee4;
  --accent: #2a6fb3; --accent-ink: #ffffff; --sink: #2a78d6; --float: #d8602f; --ice: #cfeefa;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1218; --panel: #121c24; --fg: #e4ecf1; --muted: #8fa0ab; --line: #243340;
    --accent: #5aa7e6; --accent-ink: #08131c; --sink: #5aa0f0; --float: #f08a5d; --ice: #1d3a48;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1218; --panel: #121c24; --fg: #e4ecf1; --muted: #8fa0ab; --line: #243340;
  --accent: #5aa7e6; --accent-ink: #08131c; --sink: #5aa0f0; --float: #f08a5d; --ice: #1d3a48;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 54px; }
.top .brand { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--fg); text-decoration: none; margin-right: auto; }
.top nav { display: flex; gap: 16px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
@media (max-width: 760px) { .top nav { display: none; } }

/* buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:hover { filter: brightness(1.05); }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.globes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.globes figure { margin: 0; text-align: center; }
.globes figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.globes .note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.stages.views { margin-bottom: 10px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* sections */
section { padding: 48px 0; border-top: 1px solid var(--line); }
section h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 8px; }
section .intro { color: var(--muted); max-width: 46em; margin: 0 0 28px; }

/* timeline */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .lanes { grid-template-columns: 1fr; } }
.lane h3 { margin: 0 0 4px; font-size: 18px; }
.lane .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.lane ol { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.lane ol::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.lane li { position: relative; margin: 0 0 18px; }
.lane li::before { content: ""; position: absolute; left: -21px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 3px solid var(--sink); }
.lane.float li::before { border-color: var(--float); }
.lane .when { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lane .what { font-weight: 600; }
.lane .detail { font-size: 15px; color: var(--muted); }

/* findings */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .big { font-family: var(--serif); font-size: 30px; color: var(--fg); line-height: 1.1; margin-bottom: 6px; }

/* gallery */
.stages { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.stages button { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; }
.stages button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.pair figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.pair figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.pair .globe-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.legend i { display: inline-block; width: 14px; height: 10px; border: 1px solid var(--line); margin-right: 6px; vertical-align: -1px; }

/* model */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.cols h3 { font-size: 18px; margin: 0 0 6px; }
.cols p, .cols li { font-size: 15px; }
.cols ul { padding-left: 20px; margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }
.conf { font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* paper */
.paper-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.paper figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.paper figcaption { font-size: 13px; color: #586874; margin-top: 6px; }
/* grid items may not grow past their track: a large image would otherwise widen the page */
.hero .wrap > *, .lanes > *, .cards > *, .pair > *, .cols > *, .globes > * { min-width: 0; }

.quote { margin: 0 0 24px; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); max-width: 46em; }
.quote p { margin: 0 0 8px; font-family: var(--serif); font-size: 18px; }
.quote cite { font-size: 13px; color: var(--muted); font-style: normal; }
footer { border-top: 1px solid var(--line); padding: 28px 0 48px; font-size: 13px; color: var(--muted); }
