/* Layout: one centered 1120px column; dark header/footer bands frame light pasture-toned sections. */
:root {
  --bg: #f3f4ee;
  --surface: #ffffff;
  --ink: #1d221e;
  --muted: #59615a;
  --line: #d7dbd0;
  --leather: #7a5530;
  --cedar: #3d5233;
  --band: #1d221e;
  --band-fg: #eceee6;
  --band-muted: #a9b0a4;
  --mark: #fff4d6;
  --display: "Alegreya SC", "Iowan Old Style", Georgia, serif;
  --body: "Alegreya", "Iowan Old Style", Georgia, serif;
  --sans: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131613; --surface: #1b1f1b; --ink: #e8ebe3; --muted: #a4ab9f; --line: #30362f;
    --leather: #d1a874; --cedar: #9cb88c; --band: #0d0f0d; --band-fg: #eceee6; --band-muted: #9aa195;
    --mark: #3a3220; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131613; --surface: #1b1f1b; --ink: #e8ebe3; --muted: #a4ab9f; --line: #30362f;
  --leather: #d1a874; --cedar: #9cb88c; --band: #0d0f0d; --band-fg: #eceee6; --band-muted: #9aa195;
  --mark: #3a3220; color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--leather); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--leather); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cedar); font-weight: 600; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.prose { display: grid; gap: 1rem; max-width: 66ch; }
.fill { background: var(--mark); padding: 0 .25em; border-radius: 3px; font-family: var(--sans); font-size: .9em; }

/* header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand .mark { width: 46px; height: 46px; }
.brand .word { height: 22px; width: auto; }
.logo-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-head .logo-dark { display: none; } :root:not([data-theme="light"]) .site-head .logo-light { display: block; } }
:root[data-theme="dark"] .site-head .logo-dark { display: none; }
:root[data-theme="dark"] .site-head .logo-light { display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--sans); font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--leather); }
.nav .cta { background: var(--leather); color: var(--surface); padding: 6px 14px; border-radius: 4px; border: 0; }
@media (max-width: 720px) { .brand .word { height: 17px; } .nav { font-size: .9rem; gap: 2px 14px; } }

/* photos with graceful placeholder */
.ph { aspect-ratio: 4 / 3; position: relative; background: color-mix(in srgb, var(--cedar) 14%, var(--surface)); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.missing img { display: none; }
.ph.missing::after { content: attr(data-alt); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; font-family: var(--sans); font-size: .85rem; color: var(--muted); }

/* hero */
.hero { position: relative; color: #f4f2ea; background: #2b2f27; }
.hero .ph { position: absolute; inset: 0; aspect-ratio: auto; background: #2b2f27; }
.hero .ph.missing::after { content: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,17,14,.78), rgba(15,17,14,.25)); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 11vw, 140px); display: grid; gap: 18px; }
.hero .eyebrow { color: #d8c49f; }
.hero p { max-width: 54ch; font-size: 1.2rem; color: #e3e1d7; }
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; text-decoration: none; background: var(--leather); color: #fff; padding: 11px 20px; border-radius: 4px; border: 0; cursor: pointer; font-size: 1rem; }
.btn.ghost { background: transparent; color: var(--leather); box-shadow: inset 0 0 0 1.5px var(--leather); }
.hero .btn { justify-self: start; background: #c79d62; color: #1d1a12; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section .head { display: grid; gap: 10px; margin-bottom: 28px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split > * { min-width: 0; }
.split .ph { aspect-ratio: 4 / 3; border-radius: 4px; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--leather); font-style: italic; color: var(--muted); }
blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .85rem; margin-top: 6px; }

.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.card .ph { aspect-ratio: 4 / 3; }
.card .body { padding: 14px 16px 18px; display: grid; gap: 4px; align-content: start; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.list li { padding-left: 22px; position: relative; }
.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--leather); transform: rotate(45deg); }

/* herd */
.bull { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding-block: 32px; border-top: 1px solid var(--line); }
.bull > * { min-width: 0; }
.bull .pics { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.bull .pics .ph { aspect-ratio: 3 / 4; border-radius: 4px; }
.bull .pics .ph:first-child { aspect-ratio: auto; }
.reg { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 14px 0 16px; font-variant-numeric: tabular-nums; }
.stats div { background: var(--surface); padding: 10px 12px; }
.stats b { display: block; font-family: var(--sans); font-size: 1.15rem; }
.stats span { font-family: var(--sans); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 820px) { .bull { grid-template-columns: minmax(0, 1fr); } }
.breed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: 28px; }
.breed > * { min-width: 0; }
.breed .ph { aspect-ratio: 4 / 3; border-radius: 4px; }
.breed + .breed { border-top: 1px solid var(--line); }
@media (max-width: 820px) { .breed { grid-template-columns: minmax(0, 1fr); } }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.figures b { display: block; font-family: var(--display); font-size: 2.6rem; color: var(--leather); line-height: 1; }
.figures span { font-family: var(--sans); font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.gallery .ph { aspect-ratio: 1; border-radius: 3px; }

/* beef */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.option { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.option.rec { box-shadow: inset 0 0 0 2px var(--leather); }
.tag { justify-self: start; font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--leather); }
.terms { display: grid; gap: 34px; max-width: 72ch; }
.terms section { display: grid; gap: 10px; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--leather); padding: 14px 18px; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); }
.contact > * { min-width: 0; }
@media (max-width: 820px) { .contact { grid-template-columns: minmax(0, 1fr); } }
dl.facts { margin: 0; display: grid; gap: 14px; }
dl.facts dt { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cedar); font-weight: 600; }
dl.facts dd { margin: 2px 0 0; }
form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
label { font-family: var(--sans); font-size: .9rem; font-weight: 600; display: grid; gap: 6px; }
input, select, textarea { font: 1rem var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); width: 100%; }
textarea { min-height: 140px; resize: vertical; }
.form-msg { font-family: var(--sans); font-size: .95rem; color: var(--cedar); }

/* links */
.linkcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; }
.linkcols section { display: grid; gap: 10px; align-content: start; }
.linkcols h2 { font-size: 1.3rem; border-bottom: 1px solid var(--line); padding-bottom: 6px; }

/* footer */
.site-foot { background: var(--band); color: var(--band-fg); padding-block: 48px 28px; font-family: var(--sans); font-size: .95rem; }
.site-foot a { color: var(--band-fg); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot-grid > * { min-width: 0; display: grid; gap: 8px; align-content: start; }
.foot-grid h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .mark { width: 54px; }
.foot-brand .word { height: 20px; width: auto; }
.foot-nav { display: grid; gap: 4px; }
.foot-nav a { text-decoration: none; }
.foot-base { margin-top: 36px; padding-top: 16px; border-top: 1px solid #343a33; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--band-muted); font-size: .85rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.hero img[src$="home/hero.jpg"] { object-position: center 28%; }
.hero img[src$="herd/herd-golden-hour.jpg"] { object-position: center 55%; }
.hero img[src$="horse-rescue/hero.jpg"] { object-position: center 62%; }
.hero img[src$="about/hero.jpg"] { object-position: center 40%; }
.ph img { object-position: center 30%; }
.breed { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.breed .ph { aspect-ratio: 4 / 5; }
@media (max-width: 820px) { .breed { grid-template-columns: minmax(0, 1fr); } .breed .ph { max-width: 420px; } }
.gfig { margin: 0; display: grid; gap: 6px; align-content: start; }
.gfig figcaption { font-family: var(--sans); font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.gallery .gfig .ph { aspect-ratio: 1; border-radius: 3px; }
.calves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.calves .ph { aspect-ratio: 3 / 4; border-radius: 3px; }
.calves .lead { grid-column: span 2; grid-row: span 2; }
.calves .lead .ph { aspect-ratio: auto; height: 100%; min-height: 320px; }
.calves .lead { grid-template-rows: 1fr auto; }
@media (max-width: 720px) { .calves { grid-template-columns: repeat(2, minmax(0, 1fr)); } .calves .lead { grid-row: auto; } .calves .lead .ph { aspect-ratio: 4 / 5; height: auto; min-height: 0; } }
.breed .ph.wide { aspect-ratio: 4 / 3; }
.breed .ph.wide img { object-position: 30% center; }
.status { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; margin-left: 8px; padding: 3px 8px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); }
.status.on { color: var(--cedar); border-color: var(--cedar); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px; margin-top: 6px; }
.calc > * { min-width: 0; }
@media (max-width: 760px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-in { display: grid; gap: 14px; align-content: start; }
.calc fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.calc legend { font-family: var(--sans); font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.calc .radio { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.calc .radio input { width: auto; }
.calc input[type="range"] { padding: 0; accent-color: var(--leather); }
.calc output { font-variant-numeric: tabular-nums; color: var(--leather); }
.calc details summary, .how summary { cursor: pointer; font-family: var(--sans); font-size: .9rem; color: var(--leather); }
.calc details[open] { display: grid; gap: 10px; }
.calc-out { background: var(--bg); border-radius: 4px; padding: 16px 18px; display: grid; gap: 12px; align-content: start; font-variant-numeric: tabular-nums; }
.calc-out .big { display: grid; gap: 2px; }
.calc-out .big span { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.calc-out .big b { font-family: var(--display); font-size: 2.4rem; color: var(--leather); line-height: 1.1; }
.calc-out .big small { font-family: var(--sans); color: var(--muted); }
.calc-out dl { margin: 0; display: grid; gap: 0; font-family: var(--sans); font-size: .95rem; }
.calc-out dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.calc-out dt { color: var(--muted); }
.calc-out dd { white-space: nowrap; margin: 0; font-weight: 600; text-align: right; }
.how { margin-top: 12px; }
.how .list { margin-top: 10px; }
.story { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.story.two { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.story .ph { aspect-ratio: 3 / 4; border-radius: 3px; }
@media (max-width: 720px) { .story, .story.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.calves .gfig:not(.lead) .ph { aspect-ratio: 3 / 4; }
.compare { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.compare div { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; display: grid; gap: 4px; }
.compare span { font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.compare b { font-family: var(--display); font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.compare div:first-child b { color: var(--leather); }
.tablewrap { overflow-x: auto; margin: 10px 0; }
table.cuts { border-collapse: collapse; width: 100%; max-width: 560px; font-family: var(--sans); font-size: .95rem; font-variant-numeric: tabular-nums; }
table.cuts th, table.cuts td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
table.cuts th:not(:first-child), table.cuts td:not(:first-child) { text-align: right; }
table.cuts th { color: var(--muted); font-weight: 600; font-size: .82rem; }
table.cuts tr.total td { font-weight: 600; border-top: 2px solid var(--ink); }
ol.list.numbered { list-style: decimal; padding-left: 22px; }
ol.list.numbered li { padding-left: 4px; }
ol.list.numbered li::before { content: none; }
img[src$="scruffy/75515.jpg"] { object-position: center 15%; }
img[src$="scruffy/77895.jpg"] { object-position: center 25%; }
.waitlist { max-width: 640px; }
.wl-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
@media (max-width: 600px) { .wl-row { grid-template-columns: minmax(0,1fr); } }
.brandmark { display: flex; align-items: center; gap: 16px; }
.brandmark img { width: 60px; height: 100px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brandmark img { filter: invert(1); } }
:root[data-theme="dark"] .brandmark img { filter: invert(1); }
/* About: portrait photos shown uncropped-ish */
.ph:has(img[src*="about/guinndolyn-portrait"]), .ph:has(img[src*="about/guinndolyn-harp-recital"]), .ph:has(img[src*="about/guinndolyn-harp-christmas"]) { aspect-ratio: 3 / 4; }
.ph img[src*="about/guinndolyn-portrait"], .ph img[src*="about/guinndolyn-harp-recital"], .ph img[src*="about/guinndolyn-harp-christmas"] { object-position: center 20%; }
.card .ph:has(img[src*="about/central-park"]), .card .ph:has(img[src*="about/robert-guinndolyn"]), .card .ph:has(img[src*="about/guinndolyn-harp.jpg"]) { aspect-ratio: 1; }
.ph img[src*="about/robert-guinndolyn-formal"] { object-position: center 0%; }
.ph img[src*="about/guinndolyn-harp.jpg"] { object-position: center 15%; }
.ph img[src*="about/robert-guinndolyn-kiss"] { object-position: center 10%; }
/* Photo framing audit, Oct 29 2026: show documents and wide group photos whole; nudge crops to keep heads and feet in frame */
.ph img[src$="pedigree-cert.jpg"], .ph img[src$="about/guinndolyn-father-ted.jpg"] { object-fit: contain; object-position: center; background: var(--surface); }
.ph img[src$="about/veteran.jpg"] { object-position: center 5%; }
.ph img[src$="about/christmas-staircase.jpg"] { object-position: center 10%; }
.ph img[src$="horse-rescue/life-horse-dog.jpg"] { object-position: center 80%; }
.ph img[src$="horse-rescue/pasture.jpg"] { object-position: center 75%; }
.ph img[src$="herd/red-angus-34-portrait.jpg"] { object-position: center 65%; }
