/* Smashing Science — shared styles */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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;
  --bg: #0a1120;
  --bg-2: #0d1628;
  --surface: #111b2f;
  --surface-2: #18243c;
  --line: #26344f;
  --line-strong: #3a4b6b;
  --text: #e8eef7;
  --muted: #a7b5c9;
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --blue: #8ec2ff;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--teal);
  color: #04201c;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #04201c; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; }
.crumb { color: var(--muted); display: flex; align-items: center; gap: 14px; min-width: 0; }
.crumb::before { content: '/'; color: var(--line-strong); }
.crumb h1 { font-size: 1rem; font-weight: 550; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- home ---------- */
.wrap { width: min(1120px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }

.hero { padding: clamp(24px, 4vw, 44px) 0 clamp(20px, 3vw, 32px); }
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lede { margin-top: 20px; max-width: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.subject { padding: clamp(24px, 4vw, 40px) 0; border-top: 1px solid var(--line); }
.subject-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.subject-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; font-weight: 650; }
.subject-head p { color: var(--muted); font-size: 0.95rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.model-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
a.model-card:hover, a.model-card:focus-visible { border-color: var(--teal); color: var(--text); transform: translateY(-2px); }
.model-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(160deg, #15233d, #0c1526); display: grid; place-items: center; }
.model-card .thumb svg { width: 100%; height: 100%; display: block; }
.model-card .body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.model-card h3 { font-size: 1.1rem; font-weight: 620; letter-spacing: -0.01em; }
.model-card p { color: var(--muted); font-size: 0.93rem; }
.model-card .go { margin-top: 6px; color: var(--teal); font-weight: 600; font-size: 0.9rem; }
.model-card.is-soon { border-style: dashed; background: transparent; }
.model-card.is-soon .thumb { background: transparent; color: var(--line-strong); }
.model-card.is-soon .thumb svg { width: 56px; height: 56px; }
.badge {
  justify-self: start;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer { margin-top: clamp(32px, 6vw, 72px); border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- text pages ---------- */
.prose { padding: clamp(32px, 6vw, 72px) 0; max-width: 68ch; }
.prose h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.prose h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }

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