:root {
  --ink: #17210f;
  --muted: #5f6759;
  --paper: #f7f1e3;
  --panel: #fffaf0;
  --line: #d6c8ad;
  --green: #536c35;
  --claret: #7b2025;
  --gold: #c29b40;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 33, 15, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
}

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px min(5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 227, 0.9);
  backdrop-filter: blur(16px);
}

.mark {
  font-weight: 900;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

nav a {
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: min(6vw, 72px);
  align-items: center;
  padding: 64px min(5vw, 64px);
}

.eyebrow,
.section-kicker,
.label {
  margin: 0 0 18px;
  color: var(--claret);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.5;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--panel);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.72);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f2f2ef;
}

.hero-media img {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center;
}

.hero-card {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.92);
}

.portrait {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.hero-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.08;
}

.hero-card p {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.split,
.racing,
.timeline,
.sources {
  padding: 80px min(5vw, 64px);
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: min(6vw, 72px);
  background: rgba(255, 250, 240, 0.5);
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.copy-stack p,
.racing-copy p,
.sources p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.feature-band article {
  min-height: 280px;
  padding: 32px;
  background: var(--panel);
}

.feature-band span {
  color: var(--gold);
  font-weight: 950;
}

h3 {
  margin: 54px 0 12px;
  font-size: 26px;
}

.feature-band p {
  color: var(--muted);
  line-height: 1.55;
}

.racing {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: min(6vw, 72px);
  align-items: stretch;
}

.horse-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: min(5vw, 56px);
  align-items: center;
  padding: 80px min(5vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.58);
}

.horse-highlight figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #f2f2ef;
}

.horse-highlight img {
  width: 100%;
  height: auto;
  display: block;
}

.horse-copy p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.constitution {
  position: relative;
  min-height: 440px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--green);
}

.constitution img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.constitution figcaption {
  position: absolute;
  inset: auto 0 0 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--panel);
  background:
    linear-gradient(180deg, transparent 0%, rgba(23, 33, 15, 0.88) 78%),
    linear-gradient(140deg, rgba(23, 33, 15, 0.12), rgba(123, 32, 37, 0.64));
}

.constitution p {
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.constitution strong {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.timeline {
  background: var(--ink);
  color: var(--panel);
}

.timeline .section-kicker {
  color: var(--gold);
}

.timeline ol {
  display: grid;
  gap: 1px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 250, 240, 0.22);
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px;
  background: var(--ink);
}

time {
  color: var(--gold);
  font-weight: 950;
}

.sources {
  background: var(--panel);
}

.sources p {
  max-width: 820px;
  margin-top: 18px;
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .racing,
  .horse-highlight {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-media {
    min-height: 0;
  }

  h1 {
    font-size: 52px;
  }

  .intro {
    font-size: 18px;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
