/* McPherson's Red Heart Ranch — shared styles for every page (public site, Gail's Board, flyer).
   Colors come from the ranch sign: barn red on weathered white. Light + dark themes via tokens. */

:root {
  --paper: #F7F4ED;
  --board: #EEE8DB;
  --ink: #2A2521;
  --taupe: #6E655A;
  --barn: #8C2B23;
  --barn-deep: #5F1812;
  --on-barn: #FFFFFF;
  --line: #DCD4C5;
  --card: #FFFFFF;
  --ok: #2F6B3A;
  --ok-bg: #E4EFE2;
  --warn: #8A5A00;
  --warn-bg: #F7EBD3;
  --info: #2D5C7A;
  --info-bg: #E2EDF3;
  --shadow: 0 1px 2px rgba(42, 37, 33, .06), 0 6px 18px rgba(42, 37, 33, .07);
  --slab: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1C1815; --board: #26201A; --ink: #EFE8DC; --taupe: #B3A796;
    --barn: #E46A5C; --barn-deep: #F29084; --on-barn: #1C1815;
    --line: #3A332B; --card: #231E19;
    --ok: #93CFA0; --ok-bg: #1E2E22; --warn: #E9BE6C; --warn-bg: #352A17; --info: #9CC7E2; --info-bg: #1B2A35;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --paper: #1C1815; --board: #26201A; --ink: #EFE8DC; --taupe: #B3A796;
  --barn: #E46A5C; --barn-deep: #F29084; --on-barn: #1C1815;
  --line: #3A332B; --card: #231E19;
  --ok: #93CFA0; --ok-bg: #1E2E22; --warn: #E9BE6C; --warn-bg: #352A17; --info: #9CC7E2; --info-bg: #1B2A35;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
h1, h2, h3, .slab { font-family: var(--slab); line-height: 1.15; text-wrap: balance; margin: 0; }
p { max-width: 66ch; }
a { color: var(--barn); }
a:hover { color: var(--barn-deep); }
:focus-visible { outline: 3px solid var(--barn); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }
.muted { color: var(--taupe); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── header & nav ── */
.site-head { border-top: 6px solid var(--barn); background: var(--paper); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--slab); font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 4px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 3px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--board); color: var(--barn); }

/* ── type helpers ── */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--barn); margin: 0 0 10px; }
h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 700; }
h2 { font-size: clamp(25px, 4.5vw, 34px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
.rule { width: 56px; height: 4px; background: var(--barn); border: 0; margin: 16px 0 22px; }
.lede { font-size: 18px; max-width: 62ch; }
.band { padding: 52px 0; }
.band--board { background: var(--board); }
.band--tight { padding: 36px 0; }

/* ── hero (home) ── */
.hero { padding: 30px 0 40px; }
.brandrow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo { width: 150px; max-width: 42vw; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.tagline { font-size: 19px; margin: 14px 0 4px; max-width: 56ch; }
.place { color: var(--taupe); font-size: 15px; margin: 0; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.page-hero { padding: 34px 0 10px; }
.page-hero .lede { margin-top: 12px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px;
  font-family: var(--slab); font-size: 17px; font-weight: 600; line-height: 1.1; text-decoration: none; cursor: pointer;
  border: 2px solid var(--barn); border-radius: 3px; color: var(--barn); background: transparent; transition: background .15s, color .15s;
}
.btn:hover { color: var(--barn-deep); border-color: var(--barn-deep); }
.btn--solid { background: var(--barn); color: var(--on-barn); }
.btn--solid:hover { background: var(--barn-deep); border-color: var(--barn-deep); color: var(--on-barn); }
.btn--quiet { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn--quiet:hover { border-color: var(--taupe); color: var(--ink); }
.btn--small { min-height: 38px; padding: 6px 12px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── news board ── */
.news { border: 3px solid var(--barn); border-radius: 3px; background: var(--card); padding: 20px 22px; box-shadow: var(--shadow); }
.news h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.news h2 svg { width: 18px; height: 18px; fill: var(--barn); flex: none; }
.news-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.news-list li { padding-left: 16px; border-left: 3px solid var(--line); }
.news-list b { display: block; font-size: 17px; }
.news-list span { display: block; color: var(--ink); font-size: 15.5px; }
.news-list time { display: block; font-size: 13px; color: var(--taupe); margin-top: 2px; }
.news .fine { font-size: 14px; color: var(--taupe); margin: 16px 0 0; }
.news-more { margin-top: 14px; }

/* ── content blocks ── */
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--taupe); margin-top: 8px; }
.figimg { display: block; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.figimg--wide { width: min(100%, 460px); }
.figimg--tall { width: min(100%, 290px); }
figure.center { margin: 24px 0 0; }
.figrow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; align-items: start; }
.figrow .figimg { width: 100%; }
@media (max-width: 620px) { .figrow { grid-template-columns: 1fr; } }
.cards, .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 8px; }
.card, .tile { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
.card h3 { color: var(--barn); margin-bottom: 2px; }
.since { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); }
.tile .since { color: var(--barn); }
.card p, .tile p { font-size: 15.5px; margin: 10px 0 0; }
.strip { margin-top: 22px; padding: 16px 20px; border-left: 4px solid var(--barn); background: var(--card); font-family: var(--slab); font-size: 19px; font-weight: 600; }

/* ── steps (a real sequence) ── */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 16px 18px; }
.steps li::before {
  content: counter(step); flex: none; width: 34px; height: 34px; margin-top: 2px; display: flex; align-items: center; justify-content: center;
  background: var(--barn); color: var(--on-barn); border-radius: 3px; font-family: var(--slab); font-weight: 700; font-size: 18px;
}
.steps b { display: block; font-size: 17px; }
.steps p { margin: 4px 0 0; font-size: 15.5px; }

/* ── butcher dates (public) ── */
.dates { display: grid; gap: 12px; margin-top: 8px; }
.date-card { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 14px 18px; }
.date-cal { flex: none; width: 62px; text-align: center; border: 2px solid var(--barn); border-radius: 3px; overflow: hidden; background: var(--card); }
.date-cal .m { display: block; background: var(--barn); color: var(--on-barn); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 0; }
.date-cal .d { display: block; font-family: var(--slab); font-weight: 700; font-size: 26px; line-height: 1.3; }
.date-cal .tbd { display: block; font-family: var(--slab); font-weight: 700; font-size: 15px; line-height: 1.2; padding: 10px 2px; }
.date-card h3 { font-size: 19px; }
.date-card p { margin: 2px 0 0; font-size: 15px; color: var(--taupe); }
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; vertical-align: middle; }
.chip--open { background: var(--ok-bg); color: var(--ok); }
.chip--full { background: var(--warn-bg); color: var(--warn); }
.chip--closed { background: var(--board); color: var(--taupe); }

/* ── forms ── */
.form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 22px; box-shadow: var(--shadow); max-width: 640px; }
.field { display: grid; gap: 6px; }
.field > span, .legend { font-size: 14.5px; font-weight: 700; }
.field small, .hint { font-size: 13.5px; color: var(--taupe); font-weight: 400; }
input:not([type]), input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--barn); outline-offset: 1px; border-color: var(--barn); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
@media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice .face { display: block; height: 100%; border: 2px solid var(--line); border-radius: 3px; padding: 12px 14px; background: var(--paper); }
.choice .face b { display: block; font-family: var(--slab); font-size: 19px; }
.choice .face small { display: block; color: var(--taupe); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.choice .face .dep { display: block; color: var(--barn); font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.choice input:checked + .face { border-color: var(--barn); background: var(--card); box-shadow: inset 0 0 0 1px var(--barn); }
.choice input:focus-visible + .face { outline: 3px solid var(--barn); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--barn); flex: none; }
.formnote { font-size: 14px; color: var(--taupe); margin: 0; }
.formmsg { display: none; border-left: 4px solid var(--barn); background: var(--board); padding: 10px 14px; font-size: 15px; margin: 0; }
.formmsg.is-shown { display: block; }

/* ── success / payment ── */
.success { display: grid; gap: 14px; background: var(--card); border: 3px solid var(--ok); border-radius: 3px; padding: 22px; max-width: 640px; box-shadow: var(--shadow); }
.success h3 { font-size: 24px; color: var(--ok); display: flex; gap: 10px; align-items: center; }
.success p { margin: 0; }
.paybox { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 16px; display: grid; gap: 10px; }
.paybox .amount { font-family: var(--slab); font-size: 26px; font-weight: 700; color: var(--barn); }
.payrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; flex-wrap: wrap; }
.payrow span { font-size: 14px; color: var(--taupe); }
.payrow b { font-size: 16.5px; word-break: break-word; }
.copy { font: inherit; font-size: 14px; font-weight: 700; color: var(--barn); background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: 6px 10px; min-height: 36px; cursor: pointer; }

/* ── FAQ ── */
.faq { display: grid; gap: 10px; margin-top: 8px; max-width: 720px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--slab); font-size: 22px; line-height: 1; color: var(--barn); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; font-size: 15.5px; }

/* ── contact ── */
.contactgrid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
@media (max-width: 700px) { .contactgrid { grid-template-columns: 1fr; } }
.textline { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
.textline .num { font-family: var(--slab); font-size: 24px; font-weight: 700; display: inline-block; margin: 4px 0 2px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--barn); border-radius: 3px; padding: 20px 22px; }
.cta-band h3 { font-size: 22px; }
.cta-band p { margin: 4px 0 0; color: var(--taupe); font-size: 15.5px; }

footer.site-foot { padding: 34px 0 46px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--taupe); }
footer.site-foot .heart { color: var(--barn); }
footer.site-foot nav { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ════════════════ Gail's Board ════════════════ */
.board-body { background: var(--paper); padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.board-top { background: var(--barn); color: var(--on-barn); border-bottom: 1px solid var(--barn-deep); }
.board-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; padding-bottom: 12px; max-width: 760px; }
.board-top h1 { font-size: 22px; color: var(--on-barn); display: flex; align-items: center; gap: 10px; }
.board-top h1 img { width: 30px; height: 30px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .5); }
.board-top a, .board-top button { color: var(--on-barn); font: inherit; font-size: 14px; font-weight: 600; background: transparent; border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px; padding: 6px 10px; text-decoration: none; cursor: pointer; }
.board-main { max-width: 760px; margin: 0 auto; padding: 18px 16px 30px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
.tabbar button {
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--taupe); background: transparent; border: 0; padding: 9px 4px 10px;
  display: grid; justify-items: center; gap: 3px; cursor: pointer; position: relative; min-height: 60px;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[aria-selected="true"] { color: var(--barn); }
.tabbar button[aria-selected="true"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: var(--barn); border-radius: 0 0 3px 3px; }
.badge { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--barn); color: var(--on-barn); font-size: 11.5px; line-height: 19px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { font-size: 26px; }
.panel-head p { margin: 4px 0 0; color: var(--taupe); font-size: 15px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 16px; margin-bottom: 14px; }
.box h3 { font-size: 19px; margin-bottom: 8px; }
.stack { display: grid; gap: 12px; }
.summary-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.summary-chips span { font-size: 13.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.group-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); margin: 22px 0 8px; display: flex; gap: 8px; align-items: center; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
details > summary.group-title { list-style: none; }
details > summary.group-title::-webkit-details-marker { display: none; }
details > summary.group-title::before { content: "▸"; font-size: 14px; }
details[open] > summary.group-title::before { content: "▾"; }
.rcard { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 3px; padding: 14px 16px; margin-bottom: 10px; }
.rcard.s-new { border-left-color: var(--warn); }
.rcard.s-deposit, .rcard.s-paid { border-left-color: var(--ok); }
.rcard.s-picked_up { border-left-color: var(--info); }
.rcard.s-checked_in, .rcard.s-cancelled { border-left-color: var(--line); }
.rcard.s-cancelled { opacity: .7; }
.rcard-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rcard h3 { font-size: 20px; }
.rcard .meta { margin: 2px 0 0; font-size: 14px; color: var(--taupe); }
.pill { flex: none; font-family: var(--slab); font-weight: 700; font-size: 15px; padding: 3px 10px; border-radius: 3px; background: var(--board); color: var(--ink); border: 1px solid var(--line); }
.status-pill { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.st-new { background: var(--warn-bg); color: var(--warn); }
.st-deposit, .st-paid { background: var(--ok-bg); color: var(--ok); }
.st-picked_up { background: var(--info-bg); color: var(--info); }
.st-checked_in, .st-cancelled { background: var(--board); color: var(--taupe); }
.contact-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 0; }
.contact-line .num { font-weight: 700; margin-right: 4px; }
.say { margin: 10px 0 0; font-size: 15px; padding: 8px 12px; background: var(--paper); border-radius: 3px; }
.notes-field { margin-top: 10px; }
.notes-field textarea { min-height: 54px; font-size: 15.5px; }
.rcard-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 12px; }
.rcard-foot select { width: auto; min-height: 40px; font-size: 15px; padding: 6px 8px; }
.empty { text-align: center; color: var(--taupe); padding: 28px 12px; border: 2px dashed var(--line); border-radius: 3px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.seg button { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 12px; border: 0; background: var(--card); color: var(--taupe); cursor: pointer; min-height: 38px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--barn); color: var(--on-barn); }
.row-list { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 3px; }
.row-item { padding: 12px 14px; border-top: 1px solid var(--line); }
.row-item:first-child { border-top: 0; }
.row-main { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-main b { font-size: 16.5px; }
.row-sub { font-size: 13.5px; color: var(--taupe); }
.row-actions { display: flex; gap: 6px; flex: none; }
.texted { color: var(--ok) !important; border-color: var(--ok) !important; }
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 3px; font-weight: 700; font-size: 15px; z-index: 50; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.signin { max-width: 440px; margin: 40px auto; padding: 0 16px; }
.signin .form { padding: 26px 22px; }
.signin h1 { font-size: 30px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; margin-bottom: 10px; }
.post.is-hidden { opacity: .62; }
.post h3 { font-size: 18px; }
.post p { margin: 4px 0 0; font-size: 15px; }
.post .row-sub { margin-top: 6px; }
.share-box { border: 2px solid var(--barn); }
.print-sheet { display: none; }

@media print {
  .board-body { padding: 0; background: #fff; }
  .board-top, .tabbar, .board-main, .toast, .no-print { display: none !important; }
  .print-sheet { display: block; font: 12pt/1.4 var(--sans); color: #000; }
  .print-sheet h1 { font: 700 18pt var(--slab); margin-bottom: 4pt; }
  .print-sheet table { width: 100%; border-collapse: collapse; margin-top: 10pt; }
  .print-sheet th, .print-sheet td { border: 1px solid #999; padding: 6pt; text-align: left; vertical-align: top; }
  .print-sheet th { background: #eee; }
}
