:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --ink: #201f1b;
  --muted: #625f56;
  --line: #d8d0c2;
  --field: #fffaf0;
  --accent: #176b5f;
  --accent-strong: #0f4d44;
  --sun: #d58a24;
  --blue: #315f9f;
  --rose: #a74459;
  --shadow: 0 24px 70px rgba(32, 31, 27, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 208, 194, 0.8);
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.contact-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.nav {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--accent-strong);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  min-height: calc(100svh - 72px);
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(56px, 7vw, 84px);
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 9vw, 7.4rem);
  font-weight: 760;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 12px;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 760;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(32, 31, 27, 0.14);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
}

.bet-map {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.thesis,
.split,
.contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 76px);
  border-top: 1px solid var(--line);
}

.thesis p:last-child,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.bet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bet-card {
  min-height: 248px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.bet-index {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(23, 107, 95, 0.1);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 850;
}

.bet-card p,
.proof-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.proof-band {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - 1120px) / 2));
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  background: #202824;
  color: #fbf7ed;
}

.proof-band .kicker,
.proof-band p {
  color: #c7d8ce;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(251, 247, 237, 0.16);
  border-radius: 8px;
  background: rgba(251, 247, 237, 0.16);
}

.proof-grid > div {
  min-height: 172px;
  padding: 24px;
  background: #202824;
}

.metric {
  display: block;
  margin-bottom: 12px;
  color: #f5b15c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.writing-list {
  display: grid;
  gap: 12px;
}

.writing-list a {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.writing-list a:last-child {
  border-bottom: 1px solid var(--line);
}

.writing-list span {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.writing-list strong {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.2;
}

.contact {
  align-items: center;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .thesis,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .bet-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

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

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .section {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .bet-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
