/* SV Exodus - shared styles.
   Dark, high contrast, readable on a phone in sunlight and on a TV.
   No frameworks, no build step, no external requests - the whole site is
   static files so Cloudflare Pages serves it from the edge for nothing. */

:root {
  --bg: #080c11;
  --panel: #0f151d;
  --panel-2: #141c26;
  --line: #22303f;
  --ink: #e8f0f7;
  --dim: #93a7b8;
  --faint: #65788a;
  --gold: #e8a33d;
  --cyan: #4fc3f7;
  --green: #5dd98c;
  --amber: #f5a623;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 12, 17, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; gap: 26px;
  height: 62px;
}
.brand {
  font-weight: 800; letter-spacing: .16em; font-size: 19px;
  color: var(--ink); text-transform: uppercase;
}
.brand:hover { text-decoration: none; color: var(--gold); }
nav.main { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a { color: var(--dim); font-size: 15px; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--gold); text-decoration: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  padding: 86px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(79,195,247,.10), transparent 70%),
    radial-gradient(700px 380px at 88% 0%, rgba(232,163,61,.08), transparent 70%);
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(34px, 6vw, 58px); line-height: 1.07;
  letter-spacing: -.02em;
}
.hero p.lede { margin: 0; font-size: clamp(17px, 2.3vw, 21px); color: var(--dim); max-width: 60ch; }
.kicker {
  display: inline-block; margin-bottom: 18px; font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}

/* --------------------------------------------------------------- content */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 30px 0 8px; color: var(--gold); }
.sub { color: var(--faint); margin: 0 0 26px; font-size: 15px;
       text-transform: uppercase; letter-spacing: .14em; }
p { margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--dim); }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* code and data */
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Consolas,
  "DejaVu Sans Mono", monospace; }
code { background: var(--panel-2); padding: 2px 6px; border-radius: 5px;
       font-size: .92em; color: var(--green); }
pre {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 16px 18px; overflow-x: auto;
  font-size: 14.5px; line-height: 1.6; color: var(--green);
}
pre .c { color: var(--faint); }

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--gold); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
td.num, th.num { text-align: right; font-family: ui-monospace, Consolas, monospace; }
.scroll-x { overflow-x: auto; }

blockquote {
  margin: 22px 0; padding: 14px 20px;
  border-left: 3px solid var(--cyan); background: var(--panel);
  color: var(--ink); border-radius: 0 10px 10px 0;
}

.tag {
  display: inline-block; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--dim); margin-right: 6px;
}
.tag.ok { color: var(--green); border-color: #1f5c3b; }
.tag.warn { color: var(--amber); border-color: #6b4a16; }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 9px;
  background: #17384f; color: var(--ink); border: 1px solid #2a5f80;
  font-weight: 600; font-size: 15px; margin: 6px 8px 0 0;
}
.btn:hover { background: #1e4a68; text-decoration: none; }
.btn.gold { background: #3a2a12; border-color: #6b4a16; color: var(--gold); }

.note {
  background: var(--panel-2); border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 22px 0;
  color: var(--dim); font-size: 15.5px;
}

.embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
         border-radius: 12px; border: 1px solid var(--line); background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------ foot */
footer.site {
  padding: 40px 0 60px; color: var(--faint); font-size: 14.5px;
  border-top: 1px solid var(--line);
}
footer.site a { color: var(--dim); }

@media (max-width: 640px) {
  header.site .wrap { height: auto; padding-top: 12px; padding-bottom: 12px;
                      flex-wrap: wrap; gap: 12px; }
  nav.main { margin-left: 0; gap: 16px; }
  .hero { padding: 54px 0 42px; }
  section { padding: 40px 0; }
}

/* ------------------------------------------------------------------ logo */
.brand img {
  width: 34px; height: 34px; vertical-align: -9px;
  margin-right: 10px; border-radius: 5px;
}
.hero-logo {
  display: block; width: 210px; height: auto; margin: 0 0 22px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
@media (max-width: 640px) {
  .hero-logo { width: 150px; margin-bottom: 16px; }
  .brand img { width: 28px; height: 28px; vertical-align: -7px; margin-right: 8px; }
}
/* --------------------------------------------------------------- thanks */
.thanks-top { padding-top: 40px; }
.thanks {
  background: linear-gradient(160deg, rgba(232,163,61,.09), rgba(79,195,247,.05));
  border: 1px solid #6b4a16;
  border-radius: 14px;
  padding: 28px 30px;
}
.thanks h2 { color: var(--gold); }
@media (max-width: 640px) { .thanks { padding: 20px 18px; } }
/* ----------------------------------------------------------- photography */
.hero.shot {
  position: relative; padding: 0; border-bottom: 1px solid var(--line);
  background: #000;
}
.hero.shot img.bg {
  display: block; width: 100%; height: clamp(300px, 56vw, 620px);
  object-fit: cover; object-position: center 54%; opacity: .62;
}
.hero.shot .wrap {
  position: absolute; inset: auto 0 0 0; padding-bottom: 38px; padding-top: 70px;
  background: linear-gradient(to top, rgba(8,12,17,.95) 10%, rgba(8,12,17,0));
}
.hero.shot h1 { text-shadow: 0 3px 24px rgba(0,0,0,.8); }

.gallery {
  display: grid; gap: 14px; margin: 22px 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 12px; border: 1px solid var(--line);
  max-height: 440px;
}
.photo {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--line); margin: 6px 0 4px;
}
.caption { color: var(--faint); font-size: 14px; margin: 0 0 18px; }
.card .photo { margin-bottom: 14px; }
.drawing {
  background: #fff; border-radius: 12px; padding: 10px;
  border: 1px solid var(--line);
}
/* ------------------------------------------------- the AI health warning */
.warn-red {
  background: rgba(190, 40, 30, .14);
  border: 2px solid #c0392b;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 26px 0;
  color: #ffdede;
}
.warn-red h3 {
  color: #ff6b5a; margin: 0 0 10px; font-size: 19px;
  text-transform: uppercase; letter-spacing: .08em;
}
.warn-red p { margin: 0 0 10px; }
.warn-red p:last-child { margin-bottom: 0; }
.warn-red strong { color: #fff; }
@media (max-width: 640px) { .warn-red { padding: 16px 18px; } }