/* Shared shell for the plain content pages under /moon/.
 *
 * terms.html, privacy.html and watch.html each carry their own inline copy of
 * roughly these rules. Those are left alone — rewriting three live pages to
 * save duplication is a visual-regression risk for no reader-visible gain. But
 * a fourth, fifth and sixth copy is a different question, and the destination
 * pages are all one shape, so they share this file instead.
 *
 * Every path in here is absolute. These pages live one directory down, and a
 * relative font path would resolve to /moon/fonts/. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
    font-family: 'Nasalization';
    src: url('/fonts/Nasalization%20Rg.otf') format('opentype');
    font-weight: 400; font-style: normal; font-display: swap;
}

:root {
    --bg: #05070b;
    --text: #f3f5f8;
    --text-muted: #8b95a3;
    --faint: #5b6473;
    --bone: #e9e6df;
    --signal: #5aa9e6;
    --signal-bright: #8fcdf6;
    --border: rgba(255, 255, 255, 0.08);
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --display: 'Nasalization', 'Outfit', sans-serif;
    --sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ─── Top bar ─── */
.topbar {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky; top: 0;
    background: rgba(5, 7, 11, 0.92);
    backdrop-filter: blur(12px);
    z-index: 10;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
    font-family: var(--display);
    font-size: 20px; letter-spacing: 0.5px;
    color: var(--bone); text-decoration: none;
}
.back {
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); text-decoration: none;
    transition: color 0.2s;
}
.back:hover { color: var(--signal); }

/* ─── Breadcrumb ─── */
.crumbs {
    font-family: var(--mono);
    font-size: 11.5px; letter-spacing: 0.06em;
    color: var(--faint);
    padding: 26px 0 0;
}
.crumbs a { color: var(--text-muted); border: none; }
.crumbs a:hover { color: var(--signal); }

/* ─── Header ─── */
header.doc { padding: 18px 0 30px; }
header.doc h1 {
    font-family: var(--display);
    font-size: clamp(28px, 4.6vw, 42px);
    font-weight: 400; letter-spacing: 0.5px;
    color: var(--bone); line-height: 1.15;
}
.lede { margin-top: 20px; color: var(--text-muted); font-size: 17px; }

/* ─── The fact table ───
   The reason these pages exist. An answer engine lifting a figure wants it
   labelled and next to its unit, not buried in a sentence. */
.facts {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 4px;
    font-size: 15px;
}
.facts th, .facts td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.facts th {
    font-family: var(--mono);
    font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--faint); font-weight: 400;
    width: 38%;
}
.facts td { color: var(--text); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: none; }
.source {
    font-family: var(--mono);
    font-size: 11.5px; color: var(--faint);
    margin-top: 10px;
}

/* ─── Content ─── */
main { padding: 10px 0 72px; }
section { padding-top: 38px; }
h2 {
    font-family: var(--sans);
    font-size: 21px; font-weight: 600;
    color: var(--text); margin-bottom: 12px;
}
h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 22px 0 8px; }
p { color: var(--text-muted); margin-bottom: 14px; }
ul { color: var(--text-muted); margin: 0 0 14px 22px; }
li { margin-bottom: 8px; }
strong { color: var(--text); font-weight: 600; }
a { color: var(--signal); text-decoration: none; border-bottom: 1px solid rgba(90,169,230,0.35); }
a:hover { color: var(--signal-bright); }

/* ─── Calls to action ─── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
    font-family: var(--mono);
    font-size: 13px; letter-spacing: 0.03em;
    padding: 12px 20px; border-radius: 8px;
    text-decoration: none; border: 1px solid transparent;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--signal); color: #04121f; border: none; }
.btn-primary:hover { color: #04121f; }
.btn-secondary { border-color: rgba(255,255,255,0.16); color: var(--text); }
.btn-secondary:hover { border-color: var(--signal); color: var(--signal-bright); }

/* ─── Sibling destinations ─── */
.siblings { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.siblings a {
    font-family: var(--mono); font-size: 12.5px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border); color: var(--text-muted);
}
.siblings a:hover { border-color: var(--signal); color: var(--signal-bright); }

/* ─── Footer ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 0 48px;
    color: var(--faint); font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: var(--text-muted); border: none; }
footer a:hover { color: var(--signal); }
.footlinks { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 600px) {
    body { font-size: 15px; }
    header.doc { padding: 14px 0 22px; }
    section { padding-top: 30px; }
    .facts th { width: 44%; }
    .actions .btn { flex: 1 1 100%; text-align: center; }
}
