:root {
  color-scheme: light dark;
  --background: #f7f7f8;
  --surface: #ffffff;
  --surface-muted: #eeeeef;
  --ink: #111113;
  --muted: #5f6065;
  --line: #dddddf;
  --accent: #111113;
  --accent-contrast: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shot-width: 286px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
}

nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

.hero {
  min-height: 56vh;
  padding: 38px 0 38px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--shot-width);
  gap: 48px;
  align-items: center;
}

.hero.compact {
  min-height: 0;
  display: block;
  padding: 48px 0 40px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 30px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-shot,
.split-section img {
  width: min(100%, var(--shot-width));
  height: auto;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px var(--shadow);
  background: var(--surface);
}

.article-hero {
  width: min(100%, 360px);
  height: auto;
  margin: 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px var(--shadow);
  background: var(--surface);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--shot-width);
  gap: 48px;
  align-items: center;
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--line);
}

.content {
  padding: 16px 0 0;
  font-size: 16px;
}

.content p,
.content ul {
  max-width: 760px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding: 28px 0 0;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.post-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: 20px;
}

.post-card h2 a,
.post-card h3 a,
.text-link {
  color: var(--ink);
  font-weight: 800;
}

.article {
  max-width: 760px;
}

.article p,
.article li {
  font-size: 16px;
}

.article-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.callout {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.references li {
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

ul {
  padding-left: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #050506;
    --surface: #121214;
    --surface-muted: #1c1c1f;
    --ink: #f4f4f5;
    --muted: #a5a5aa;
    --line: #2d2d31;
    --accent: #f4f4f5;
    --accent-contrast: #050506;
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

@media (max-width: 740px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    padding: 32px 0;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 24px;
  }

  .lead {
    font-size: 16px;
  }
}
