/* Double S Ranch: the look from the Round 3 mockups. One file for every public page.
   Colors: ink #3A2416, page #F6EEDF, card #FFF8EA, line #D9C6A6, rust #9C3F22, dark #2A1A12, gold #C9962B.
   Fonts: Rye (big titles), Bitter (headings), Source Sans 3 (text). No text under 15px; buttons at least 44px tall. */
:root {
  --ink: #3A2416; --page: #F6EEDF; --card: #FFF8EA; --line: #D9C6A6; --rust: #9C3F22; --rust-dark: #7E3119;
  --dark: #2A1A12; --dark-2: #4A2418; --gold: #C9962B; --gold-light: #E8C168; --sand: #E9D8B0; --band: #EADBB8;
  --muted: #6B5443; --ok: #2F6B3A; --ok-bg: #E3EFD9; --bad: #9C3F22; --bad-bg: #F7E1D8;
  --title: Rye, Georgia, serif; --head: Bitter, Georgia, serif; --text: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px; --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(32px, 6vw, 48px); }
h2 { font-size: clamp(26px, 4vw, 32px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--card); padding: 10px 14px; border-radius: 8px; }
.kicker { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); margin: 0 0 8px; }
.lead { font-size: 19px; max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.placeholder { background: #F3E3A8; border-radius: 3px; padding: 0 2px; }

/* ---------- header ---------- */
.site-header { background: var(--dark); color: var(--page); border-bottom: 4px solid var(--rust); }
.site-header .bar { max-width: var(--wrap); margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--page); text-decoration: none; min-height: 48px; min-width: 0; }
.brand:hover { color: var(--page); }
.brand .mark { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--title); font-size: 17px; color: var(--gold-light); }
.brand .names { display: flex; flex-direction: column; min-width: 0; }
.brand .name { font-family: var(--title); font-size: 22px; line-height: 1.1; white-space: nowrap; }
.brand .tag { font-size: 15px; color: var(--gold-light); white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px; }
.nav a { min-height: 44px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; font-size: 16px; text-decoration: none; color: var(--page); }
.nav a:hover { background: var(--dark-2); color: #FFF8EA; }
.nav a[aria-current="page"] { background: var(--dark-2); color: #FFF8EA; font-weight: 700; }
.menu { display: none; }
.menu summary { list-style: none; min-height: 46px; padding: 0 12px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--gold); border-radius: 8px; color: var(--gold-light); font-weight: 700; font-size: 16px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu .when-open { display: none; }
.menu[open] .when-open { display: inline; }
.menu[open] .when-closed { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--dark); border-bottom: 4px solid var(--rust); padding: 8px 16px 16px; }
.menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 8px; color: var(--page); text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--dark-2); }
.menu-panel a[aria-current="page"] { background: var(--dark-2); font-weight: 700; }
@media (max-width: 900px) {
  .site-header { position: relative; }
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 520px) {
  .brand .tag { display: none; }
  .brand .name { font-size: 18px; }
  .brand .mark { width: 40px; height: 40px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 8px; border: 2px solid transparent; font-family: var(--text); font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; }
.btn-rust { background: var(--rust); color: #FFF8EA; }
.btn-rust:hover { background: var(--rust-dark); color: #FFF8EA; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--card); color: var(--ink); }
.btn-dark { background: var(--dark); color: #FFF8EA; }
.btn-dark:hover { background: var(--dark-2); color: #FFF8EA; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--dark); }
.btn-light { background: transparent; color: #FFF8EA; border-color: var(--gold-light); }
.btn-light:hover { background: var(--dark-2); color: #FFF8EA; }
.btn-wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: #D8CBB4; color: #4A3A2C; border-color: #D8CBB4; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections and cards ---------- */
.section { padding: 48px 0; }
.section-tight { padding: 32px 0; }
.section-cream { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-band { background: var(--band); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head p { margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-dark { background: var(--dark); color: var(--page); border-radius: var(--radius); padding: 24px; }
.card-dark h2, .card-dark h3 { color: #FFF8EA; }
.card-dark a { color: var(--gold-light); }
.card-dark .kicker { color: var(--gold-light); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid + p { margin-top: 18px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
@media (max-width: 520px) { .pair { grid-template-columns: 1fr; } }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-low { background: #F6E2B5; color: #7A4B00; }
.chip-out { background: #E6DCCB; color: var(--muted); }
.photo { position: relative; min-height: 180px; border-radius: var(--radius); background: repeating-linear-gradient(135deg, #E4D3AE 0 14px, #D8C49A 14px 28px); border: 1px solid var(--line); }
.photo span { position: absolute; left: 8px; top: 8px; background: rgba(42, 26, 18, .82); color: #FFF8EA; font-size: 15px; padding: 2px 8px; border-radius: 4px; }
.steps { counter-reset: step; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rust); color: #FFF8EA; font-weight: 700; margin-bottom: 10px; }
.list { margin: 0 0 1em; padding-left: 1.2em; }
.list li { margin-bottom: 6px; }

/* ---------- the home page ---------- */
.hero { background: var(--dark); color: var(--page); padding: 44px 0 52px; }
.hero .inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-family: var(--title); font-weight: 400; color: #FFF8EA; font-size: clamp(36px, 6vw, 58px); line-height: 1.05; }
.hero .kicker { color: var(--gold-light); }
.hero .lead { color: #F1E6D2; }
.hero .photo { min-height: 300px; border: 3px solid var(--gold); background: repeating-linear-gradient(135deg, #4A2C1E 0 16px, #3B2418 16px 32px); }
.hero .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 15px; color: #E8DCC6; }
.price-band { background: var(--band); border-bottom: 1px solid var(--line); }
.price-band .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
@media (max-width: 760px) { .hero .inner { grid-template-columns: 1fr; } .hero .photo { min-height: 200px; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: 16px; }
.field .hint { font-size: 15px; color: var(--muted); }
.card-dark .field .hint { color: #E2D4BC; }
input[type="text"], input[type="password"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #BFA983; border-radius: 8px; background: #FFFDF7; color: var(--ink);
  font-family: var(--text); font-size: 17px;
}
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; min-height: 44px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--rust); }
.trap { display: none; }
.notice { border-radius: 8px; padding: 14px 16px; font-size: 17px; }
.notice:empty { display: none; }
.notice-ok { background: var(--ok-bg); color: #1F4A27; border: 1px solid #A9C99A; }
.notice-bad { background: var(--bad-bg); color: #6E2511; border: 1px solid #D9A08C; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 8px; background: var(--card); font-weight: 700; cursor: pointer; }
.choice small { font-weight: 400; font-size: 15px; color: var(--muted); }
.choice input:checked + span { border-color: var(--rust); background: #FBEDE4; }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice input:disabled + span { opacity: .5; cursor: not-allowed; }
.choice-dark input:checked + span { background: var(--dark); color: #FFF8EA; border-color: var(--dark); }
.choice-dark input:checked + span small { color: #E2D4BC; }

/* ---------- reserve: one animal's quarters ---------- */
.animal-pick { display: grid; gap: 12px; }
.animal-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; }
.animal-card.is-picked { border-color: var(--rust); }
.animal-card h3 { margin-bottom: 2px; }
.quarters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.quarter { min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 15px; font-weight: 700; }
.quarter.open { border: 2px dashed #B49B72; color: var(--muted); background: transparent; }
.quarter.taken { background: #6D5544; color: #F6EEDF; }
.quarter.yours { background: var(--rust); color: #FFF8EA; }
.summary { position: sticky; top: 16px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #4E3426; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- shop ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: var(--text); font-size: 16px; font-weight: 700; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--dark); color: #FFF8EA; border-color: var(--dark); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.item { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item .photo { min-height: 120px; border: 0; border-radius: 0; }
.item .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item h3 { font-size: 19px; margin: 0; }
.item .actions { margin-top: auto; padding-top: 8px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 48px; height: 48px; border-radius: 8px; border: 2px solid var(--ink); background: var(--card); font-size: 22px; font-weight: 700; color: var(--ink); cursor: pointer; }
.stepper output { min-width: 80px; text-align: center; font-weight: 700; }
.order-lines { margin: 0 0 12px; padding: 0; list-style: none; }
.order-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #4E3426; }

/* ---------- know your cuts ---------- */
.chart-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .cut { cursor: pointer; transition: fill .12s; }
.chart .cut-label { pointer-events: none; }
.part-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.part-buttons button { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--page); color: var(--ink); font-family: var(--text); font-size: 16px; font-weight: 700; cursor: pointer; }
.part-buttons button[aria-pressed="true"] { background: var(--rust); color: #FFF8EA; border-color: var(--rust); }
@media (max-width: 900px) { .chart-wrap { grid-template-columns: 1fr; } }

/* ---------- questions (FAQ) ---------- */
details.q { border-bottom: 1px solid var(--line); }
details.q summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--head); font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; padding: 8px 0; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: '+'; font-size: 26px; color: var(--rust); }
details.q[open] summary::after { content: '−'; }
details.q p { padding-bottom: 8px; }

/* ---------- drafts ---------- */
.draft { background: #F3E3A8; border: 2px dashed #B88A16; border-radius: 8px; padding: 12px 16px; font-weight: 700; margin-bottom: 24px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #E8DCC6; border-top: 4px solid var(--rust); padding: 40px 0 24px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 24px; }
.site-footer h2 { font-family: var(--title); font-weight: 400; color: #FFF8EA; font-size: 22px; }
.site-footer h3 { color: var(--gold-light); font-size: 17px; }
.site-footer a { color: #FFF8EA; display: inline-block; padding: 11px 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .fine { border-top: 1px solid var(--dark-2); margin-top: 24px; padding-top: 16px; color: #CBB99D; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- groups of choices ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { padding: 0; }
legend h2 { margin-bottom: 10px; }
[hidden] { display: none !important; }
.item .chip, .card .chip { align-self: flex-start; }
