:root {
  --paper: #f3eadb;
  --paper-deep: #e7dcc8;
  --ink: #241910;
  --ink-soft: #5c5146;
  --clay: #7c3c2c;
  --brass: #8a6734;
  --pine: #24382c;
  --line: rgba(36, 25, 16, 0.16);
  --silver: #c8c1b6;
  --bay: #6b4228;
  --buckskin: #c4a15a;
  --shadow: 0 18px 40px rgba(36, 25, 16, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(138, 103, 52, 0.09), transparent 50%),
    linear-gradient(180deg, #f7f1e6 0%, var(--paper) 28%, #efe4d2 100%);
  font-family: var(--sans);
  font-weight: 380;
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--clay); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.2rem 0 0.4rem;
}
.eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.8rem 0 0.2rem;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 148px;
  height: auto;
  flex: none;
}
.hero .lockup {
  width: min(100%, 360px);
  height: auto;
  justify-self: end;
  filter: drop-shadow(0 18px 30px rgba(36, 25, 16, 0.12));
}
.traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.trait {
  background: rgba(255, 252, 246, 0.66);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem 1.15rem;
}
.trait h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0.35rem;
  line-height: 1.05;
}
.trait p { margin: 0; color: var(--ink-soft); }
.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--brass);
  margin: 0 0 0.45rem;
}
.brand-name span {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass);
  margin-bottom: 0.25rem;
}
nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  margin-top: 0.8rem;
}
nav.primary a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
nav.primary a[aria-current="page"] {
  color: var(--clay);
  box-shadow: inset 0 -2px 0 var(--clay);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
  padding: 2.6rem 0 1.4rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--pine);
}
.lede {
  font-size: 1.15rem;
  max-width: 42rem;
  color: var(--ink-soft);
}
.prize {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--pine);
  margin: 0.2rem 0 0.8rem;
}
.lede strong { color: var(--ink); font-weight: 560; }

.plate {
  background: var(--pine);
  color: #f3eadb;
  min-height: 280px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.plate.has-photo { padding: 0; }
.plate .photo { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.plate .kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--buckskin);
}
.plate strong {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 540;
  line-height: 1;
  display: block;
  margin-top: 0.4rem;
}
.plate .meta { color: rgba(243, 234, 219, 0.78); font-size: 0.92rem; }
.plate.has-photo .kicker,
.plate.has-photo strong,
.plate.has-photo .meta { display: none; }

.section { padding: 1.5rem 0 0.4rem; }
.section h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}
.section .intro {
  max-width: var(--measure);
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.herd, .crop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.crop { grid-template-columns: 1.2fr 1fr 1fr; }
.card {
  background: rgba(255, 252, 246, 0.66);
  border: 1px solid var(--line);
  padding: 1rem 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--brass); color: inherit; }
.card .role {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--brass);
}
.card h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.85rem;
  line-height: 1;
  margin: 0.45rem 0;
  letter-spacing: -0.03em;
}
.card p { margin: 0; color: var(--ink-soft); }
.card .go { margin-top: auto; padding-top: 1rem; color: var(--clay); font-size: 0.92rem; }
.card .icon {
  width: 128px;
  height: 128px;
  object-fit: cover;
  margin-bottom: 0.8rem;
  border: 1px solid var(--line);
}
.swatch {
  width: 100%;
  height: 8px;
  margin-bottom: 0.8rem;
}
.swatch.silver { background: linear-gradient(90deg, #8d8478, #d9d3cb 45%, #6e645c); }
.swatch.buckskin { background: linear-gradient(90deg, #8a6428, #e2c27a 50%, #6d5428); }
.swatch.bay { background: linear-gradient(90deg, #3a2418, #8a5434 55%, #24160f); }
.swatch.dun { background: linear-gradient(90deg, #8d8064, #d8c89a 40%, #5c5344); }
.swatch.black { background: linear-gradient(90deg, #141414, #3c3c3c 55%, #0c0c0c); }
.swatch.grullo { background: linear-gradient(90deg, #6a6756, #c4bda6 48%, #3a3c34); }
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.band + .herd { margin-top: 1rem; }
.samson-feature { margin: 0 0 1rem; }
.samson-feature .photo {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
}
.due {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.due a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 9rem;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 252, 246, 0.66);
  border: 1px solid var(--line);
  padding: 1rem;
}
.due a:hover { border-color: var(--brass); color: inherit; }
.due .month {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--brass);
}
.due strong {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.due a span:last-child { color: var(--ink-soft); font-size: 0.95rem; }
.herd.four { grid-template-columns: 1fr 1fr; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}
.facts {
  background: #fffaf3;
  border: 1px solid var(--line);
  padding: 0.4rem 1rem 0.8rem;
}
.facts div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.6rem;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
  font-size: 0.98rem;
}
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }

.prose { max-width: 74ch; }
.prose h2, .horse-body h2, .doc h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  font-size: 2rem;
  margin: 1.6rem 0 0.4rem;
}
.prose p, .horse-body p, .doc p { margin: 0.6rem 0; }
.note {
  border-left: 3px solid var(--brass);
  padding: 0.2rem 0 0.2rem 0.9rem;
  color: var(--ink-soft);
}

.ped {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 0.55rem;
  margin: 1rem 0 0.4rem;
}
.gen { display: grid; gap: 0.55rem; }
.gen-1 { grid-template-rows: 1fr 1fr; }
.gen-2 { grid-template-rows: repeat(4, 1fr); }
.node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.8);
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  color: inherit;
  min-height: 4.4rem;
}
a.node:hover { border-color: var(--clay); }
.node strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 560; line-height: 1.15; }
.node span { color: var(--ink-soft); font-size: 0.82rem; }

.links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.links a, button.btn, a.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  font: inherit;
  cursor: pointer;
}
.links a.ghost, a.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
}
.gallery .tile {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery .tile img { width: 100%; height: 180px; object-fit: cover; display: block; }
.lightbox {
  position: fixed;
  inset: 0;
  width: fit-content;
  height: fit-content;
  margin: auto;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(28, 22, 16, 0.88); }
.lightbox img {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.gallery:not(.has-photos) + .gallery-empty,
.gallery.has-photos + .gallery-empty { display: none; }
.gallery:not(.has-photos) + .gallery-empty { display: block; }
.gallery-empty { color: var(--ink-soft); }

.fb-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}
.fb-grid iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  background: #fff;
}

.doc {
  background: #fffaf3;
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem 2rem;
  max-width: 820px;
  box-shadow: var(--shadow);
}
.doc h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.2rem 0 0.4rem;
}
.doc .banner {
  background: #f3e2c4;
  padding: 0.7rem 0.8rem;
  margin: 0.8rem 0 1rem;
}
.blank { border-bottom: 1px solid var(--ink); display: inline-block; min-width: 12rem; }
.sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.4rem;
}
.sign div { border-top: 1px solid var(--ink); padding-top: 0.35rem; }
ol.terms { padding-left: 1.2rem; }
ol.terms li { margin: 0.7rem 0; }
ol.terms h3 { margin: 0; font-size: 1rem; font-family: var(--sans); font-weight: 600; }

.site-footer {
  margin-top: 3rem;
  padding: 1.4rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  font-size: 0.95rem;
}
.site-footer strong { color: var(--ink); font-weight: 560; }
.site-footer a { color: var(--ink); }

.portrait-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.4rem;
  align-items: start;
}
.portrait {
  background: var(--paper-deep);
  min-height: 340px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.portrait .photo { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); min-height: 340px; position: absolute; inset: 0; }
.portrait .fallback {
  min-height: 340px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.portrait.has-photo .fallback { display: none; }
.fallback .color-name {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.fallback small { color: var(--ink-soft); }

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
table.plain th, table.plain td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.4rem;
  vertical-align: top;
}
table.plain th { font-weight: 560; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero, .split, .herd, .herd.four, .band, .crop, .traits, .due, .fb-grid, .site-footer, .portrait-row, .sign, .ped {
    grid-template-columns: 1fr;
  }
  .brand img { width: 112px; }
  .hero .lockup { justify-self: start; width: min(100%, 240px); }
  .facts div { grid-template-columns: 1fr; gap: 0.1rem; }
  .eyebrow { flex-direction: column; }
}
@media print {
  body { background: white; }
  .site-header, .site-footer, .links, .skip, nav { display: none !important; }
  .doc { box-shadow: none; border: 0; padding: 0; max-width: none; }
  a { color: black; text-decoration: none; }
}
