/* Shared styling for the standalone utility pages (404, thank-you, privacy).
   Values are lifted verbatim from index.html so these pages are visually part of
   the same site. The homepage does NOT load this file; it keeps its own inline
   CSS, so editing this can never affect the homepage. */

:root {
    --midnight: #070e1b;
    --navy:     #0c1f3d;
    --navy-mid: #13305e;
    --crimson:  #b91c1c;
    --crimson-h:#991b1b;
    --gold:     #c8951c;
    --white:    #ffffff;
    --off:      #f6f5f1;
    --text:     #0d1117;
    --muted:    #5a6272;
    --border:   #e2e4e8;
    --r:        12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 3px; }
.font-display { font-family: 'Playfair Display', serif; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10001; background: var(--crimson); color: #fff; padding: .7rem 1.15rem; font-size: .85rem; font-weight: 600; text-decoration: none; border-radius: 0 0 var(--r) 0; }
.skip-link:focus { left: 0; }

/* ── Nav (matches index.html's scrolled state) ─────────────────────────── */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 500; background: rgba(7,14,27,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: baseline; gap: .75rem; text-decoration: none; }
.nav-name { font-family: 'Playfair Display',serif; font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.nav-creds { font-family: 'JetBrains Mono',monospace; font-size: .7rem; color: rgba(255,255,255,.45); letter-spacing: .06em; }
.nav-links { display: flex; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.nav-link { font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.7); text-decoration: none; letter-spacing: .02em; transition: color .2s; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--crimson); transition: width .25s; }
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
@media (max-width: 768px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-creds { display: none; } }

/* ── Page shell ────────────────────────────────────────────────────────── */
.page {
    flex: 1;
    background: linear-gradient(135deg, var(--midnight) 0%, var(--navy) 55%, var(--navy-mid) 100%);
    position: relative; overflow: hidden;
    display: flex; align-items: center;
    padding: 10rem 2rem 6rem;
}
.page::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 64px 64px;
}
.page-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; width: 100%; }
.page-wide  { max-width: 900px; }

.over { display: inline-flex; align-items: center; gap: .625rem; font-family: 'JetBrains Mono',monospace; font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--crimson); margin-bottom: 1.25rem; }
.over::before { content: ''; display: block; width: 1.75rem; height: 1.5px; background: var(--crimson); flex-shrink: 0; }

h1.title { font-family: 'Playfair Display',serif; font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: #fff; margin: 0 0 1.25rem; }
.code { font-family: 'Playfair Display',serif; font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 900; line-height: .9; color: rgba(255,255,255,.09); letter-spacing: -.04em; margin: 0 0 1.25rem; }
.lede { font-size: 1rem; line-height: 1.78; color: rgba(255,255,255,.62); margin: 0 0 2rem; max-width: 56ch; }

.rule { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.75rem; }
.rule .line { width: 3rem; height: 1px; background: rgba(255,255,255,.18); }
.rule .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--crimson); }

.ctas { display: flex; gap: .875rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-p { display: inline-flex; align-items: center; gap: .45rem; background: var(--crimson); color: #fff; padding: .85rem 1.875rem; border-radius: 6px; font-weight: 600; font-size: .875rem; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; letter-spacing: .01em; }
.btn-p:hover { background: var(--crimson-h); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(185,28,28,.35); }
.btn-g { display: inline-flex; align-items: center; gap: .45rem; background: transparent; color: rgba(255,255,255,.75); padding: .85rem 1.875rem; border-radius: 6px; font-weight: 500; font-size: .875rem; text-decoration: none; border: 1px solid rgba(255,255,255,.18); transition: border-color .2s, color .2s, transform .2s; }
.btn-g:hover { border-color: rgba(255,255,255,.45); color: #fff; transform: translateY(-1px); }

.jump { list-style: none; margin: 0; padding: 1.75rem 0 0; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-wrap: wrap; gap: 1.75rem; }
.jump a { font-size: .82rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.jump a:hover { color: #fff; }

/* Long-form legal copy */
.doc h2 { font-family: 'Playfair Display',serif; font-size: 1.4rem; font-weight: 700; color: #fff; margin: 2.5rem 0 .75rem; }
.doc h2:first-of-type { margin-top: 1.5rem; }
.doc p, .doc li { font-size: .925rem; line-height: 1.8; color: rgba(255,255,255,.62); }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.doc li { margin-bottom: .45rem; }
.doc a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: #fff; }
.doc strong { color: rgba(255,255,255,.85); }
/* .5 alpha rather than .32: on the navy gradient that is 5.03:1 against the
   background, which clears WCAG AA for body text. At .32 it was 2.83:1. */
.updated { font-family: 'JetBrains Mono',monospace; font-size: .72rem; letter-spacing: .06em; color: rgba(255,255,255,.5); text-transform: uppercase; }

.note { border-left: 2px solid var(--crimson); padding: .25rem 0 .25rem 1.1rem; margin: 0 0 2rem; }
.note p { margin: 0; font-size: .875rem; color: rgba(255,255,255,.55); }

/* ── Footer (matches index.html) ───────────────────────────────────────── */
footer { background: #040a15; padding: 2.75rem 2rem; border-top: 1px solid rgba(255,255,255,.045); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-name { font-family: 'Playfair Display',serif; font-size: 1.05rem; font-weight: 700; color: rgba(255,255,255,.65); }
.footer-tag  { font-size: .775rem; color: rgba(255,255,255,.28); margin-top: .2rem; }
.footer-copy { font-size: .72rem; color: rgba(255,255,255,.22); }
.footer-divider { width: 1px; height: 2rem; background: rgba(255,255,255,.06); }
.footer-link { font-size: .72rem; color: rgba(255,255,255,.32); text-decoration: none; }
.footer-link:hover { color: rgba(255,255,255,.6); }
@media (max-width: 560px) { .footer-inner { flex-direction: column; text-align: center; } .footer-divider { display: none; } }
@media (max-width: 640px) { .page { padding: 8rem 1.5rem 4rem; } }
