/* jasonbellows.com — shared styles (every page).
   Inter (variable, Latin subset, v5.3.0 via @fontsource-variable/inter) is self-hosted from
   fonts/ under the SIL Open Font License 1.1 (fonts/OFL.txt).
   No external requests, scripts, trackers or cookies. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark light;
  --bg: #07070f;
  --text: #f3f3fa;
  --muted: #a9a9c6;
  --faint: #8080a0;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --card: #10101e;
  --link: #b4b8ff;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(100deg, #c4b5fd 0%, #67e8f9 48%, #f9a8d4 100%);
  --grad-btn: linear-gradient(100deg, #7c3aed 0%, #4f46e5 50%, #0e7490 100%);
  --aurora-1: rgba(124, 58, 237, 0.32);
  --aurora-2: rgba(8, 145, 178, 0.24);
  --aurora-3: rgba(219, 39, 119, 0.15);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7fc;
    --text: #0c0c1d;
    --muted: #4b4b68;
    --faint: #62627e;
    --line: rgba(20, 20, 70, 0.10);
    --line-strong: rgba(20, 20, 70, 0.18);
    --surface: rgba(255, 255, 255, 0.72);
    --surface-2: #ffffff;
    --card: #ffffff;
    --link: #4338ca;
    --grad: linear-gradient(100deg, #6d28d9 0%, #0e7490 50%, #be185d 100%);
    --aurora-1: rgba(139, 92, 246, 0.20);
    --aurora-2: rgba(34, 211, 238, 0.18);
    --aurora-3: rgba(244, 114, 182, 0.13);
    --shadow: 0 30px 70px -35px rgba(40, 30, 110, 0.30);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Soft aurora glow behind the top of every page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 380px at 12% -5%, var(--aurora-1), transparent 70%),
    radial-gradient(560px 360px at 88% 0%, var(--aurora-2), transparent 70%),
    radial-gradient(520px 320px at 55% 30%, var(--aurora-3), transparent 70%);
}

::selection { background: rgba(139, 92, 246, 0.35); }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.wide { max-width: 76rem; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(7, 7, 15, 0.7);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 76rem; }

header.site a.home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
header.site a.home::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e9d5ff 18%, #8b5cf6 52%, #312e81 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 0 18px rgba(139, 92, 246, 0.65);
}

/* Footer */
footer.site {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
footer.site .wrap { max-width: 76rem; }
footer.site nav a { color: var(--text); text-decoration: none; }
footer.site nav a:hover { color: var(--link); text-decoration: underline; }
footer.site p { margin: 8px 0 0; color: var(--faint); }

/* Text pages: SMS, Privacy, Terms, Preview expired */
main { display: block; }
main.wrap { padding-top: 64px; padding-bottom: 24px; }

h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 6.5vw, 3.6rem); font-weight: 780; margin: 0 0 0.7rem; letter-spacing: -0.04em; }
h2 { font-size: 1.45rem; font-weight: 700; margin: 2.8rem 0 0.7rem; letter-spacing: -0.025em; }
h3 { font-size: 1.12rem; font-weight: 650; margin: 1.9rem 0 0.5rem; letter-spacing: -0.015em; }

main.wrap > h1 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

p, ul, ol { margin: 0 0 1.05rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--faint); }
strong { font-weight: 650; }

.lede { font-size: 1.2rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; }
main.wrap > p.meta:first-of-type {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1.6rem;
}

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
ol .box { margin: 0.6rem 0 0.9rem; box-shadow: none; background: var(--surface-2); font-size: 0.97rem; border-radius: 20px 20px 20px 6px; }

.notyet { border-left: 3px solid var(--violet); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 40px; }
  h2 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

figure.shot{margin:16px 0;max-width:300px}
figure.shot img{display:block;width:100%;height:auto;border:1px solid rgba(127,127,127,.35);border-radius:12px}
figure.shot figcaption{font-size:14px;opacity:.8;margin-top:6px}
