/* Layout: barn-board bands, wide photo-led sections, ear-tag counters on animal cards, ticket-stub prices. */
:root {
  --bg: #f6f7f1;          /* pasture-tinted off-white */
  --surface: #ffffff;
  --ink: #1d2a22;         /* deep pasture green-black */
  --muted: #55625a;
  --line: #d9ddd0;
  --brick: #a2321f;       /* red brick */
  --brick-ink: #ffffff;
  --brick-soft: #f6e3dc;
  --hay: #e7b53c;         /* hay bale gold, for tags */
  --hay-ink: #2a2108;
  --field: #2f5a3d;       /* field green */
  --field-ink: #ffffff;
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 4.5vw, 2.8rem);
  --step-4: clamp(2.5rem, 7vw, 4.6rem);
  --radius: 10px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141a16; --surface: #1c241f; --ink: #eef0e8; --muted: #a9b3aa; --line: #2e3a32;
    --brick: #d9624a; --brick-ink: #1a0f0b; --brick-soft: #3a211b;
    --hay: #e7b53c; --hay-ink: #2a2108; --field: #3f7a53; --field-ink: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141a16; --surface: #1c241f; --ink: #eef0e8; --muted: #a9b3aa; --line: #2e3a32;
  --brick: #d9624a; --brick-ink: #1a0f0b; --brick-soft: #3a211b;
  --hay: #e7b53c; --hay-ink: #2a2108; --field: #3f7a53; --field-ink: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--hay); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; max-width: 65ch; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--brick); }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.45; }
.stack { display: grid; gap: 1rem; align-content: start; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 50; }

/* Placeholder marker for facts Shay still needs to confirm */
.tbd { background: var(--hay); color: var(--hay-ink); border-radius: 4px; padding: 0 .3em; font-weight: 600; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; align-items: center; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: .3rem 0; }
.nav a[aria-current="page"] { color: var(--brick); box-shadow: inset 0 -2px 0 var(--brick); }
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--brick); color: var(--brick-ink); text-decoration: none; font-weight: 700; padding: .75rem 1.2rem; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.nav .btn, .nav .btn[aria-current="page"] { padding: .5rem 1rem; color: var(--brick-ink); box-shadow: none; }

/* Hero */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 span { color: var(--brick); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.hero-photo figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--surface); color: var(--ink); font-size: var(--step--1); padding: .3rem .6rem; border-radius: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: .5rem 0 0; list-style: none; color: var(--muted); font-weight: 600; font-size: var(--step--1); }
.facts li { display: flex; align-items: center; gap: .4rem; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--hay); }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; }

/* Barn band: brick-red section with board texture */
.band { background: var(--brick); color: var(--brick-ink); background-image: repeating-linear-gradient(90deg, transparent 0 118px, rgba(0,0,0,.08) 118px 120px); }
.band .eyebrow { color: var(--hay); }
.band a { color: var(--brick-ink); }
.band .btn { background: var(--hay); color: var(--hay-ink); }

/* Animal cards with ear tags */
.animals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.animal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.animal .photo { position: relative; aspect-ratio: 4/3; background: var(--brick-soft); }
.animal .photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.animal .photo[style] img { transform: scale(1.6); transform-origin: var(--pos); }
.animal .photo { overflow: hidden; }
.animal .photo.none { display: grid; place-items: center; color: var(--muted); font-weight: 600; font-size: var(--step--1); }
.animal .body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .45rem; align-content: start; }
.tag { position: absolute; top: 10px; right: 10px; background: var(--hay); color: var(--hay-ink); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1; padding: .55rem .6rem .5rem; border-radius: 6px 6px 14px 14px; min-width: 2.6rem; text-align: center; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.tag::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); margin: 0 auto .3rem; }
.animal .meta { font-size: var(--step--1); color: var(--muted); }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; gap: .4rem; align-content: start; padding-top: 1rem; border-top: 3px solid currentColor; }
.steps li::before { content: "Step " counter(step); font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }

/* Ticket stubs */
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.25rem; }
.stub { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 1fr auto; position: relative; }
.stub .main { padding: 1.1rem 1.2rem; display: grid; gap: .3rem; align-content: start; min-width: 0; }
.stub .price { padding: 1.1rem 1.1rem; border-left: 2px dashed var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--brick); font-variant-numeric: tabular-nums; }
.stub .price small { display: block; font-family: var(--font-body); font-size: .7rem; font-weight: 600; color: var(--muted); text-align: center; }
.stub .who { font-size: var(--step--1); color: var(--muted); }

/* Two-column text + list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.split > * { min-width: 0; }
.list { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .6rem .25rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .75rem; }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style-position: outside; }
.faq details[open] summary { margin-bottom: .5rem; }

/* Gallery strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* Breadcrumb */
.crumbs { font-size: var(--step--1); color: var(--muted); padding-top: 1.25rem; }
.crumbs a { color: var(--muted); }
.page-head { padding-block: 1rem clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: .75rem; }

/* Footer */
.site-footer { background: var(--field); color: var(--field-ink); padding-block: 2.5rem; font-size: var(--step--1); }
.site-footer a { color: var(--field-ink); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.site-footer h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.site-footer .fine { grid-column: 1 / -1; opacity: .8; border-top: 1px solid rgba(255,255,255,.2); padding-top: 1rem; }

@media (max-width: 820px) {
  .hero .wrap, .split, .site-footer .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-photo { order: -1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
