/* Slowcow Ranch: one stylesheet for the static pages and the Worker-rendered dashboard and login pages. */

:root {
  --ink: #241f1a;
  --ink-soft: #4a433b;
  --muted: #6e665c;
  --cream: #f8f3ea;
  --paper: #fffdf8;
  --sand: #ebe2d2;
  --sand-deep: #d9cdb7;
  --rust: #9b4a2b;
  --rust-deep: #7d3a20;
  --rust-soft: #f3e3da;
  --forest: #1f3a26;
  --gold: #b9974f;
  --gold-text: #7d6128;
  --gold-soft: #f5edd8;
  --ok: #2e6b3c;
  --ok-soft: #e2f0e4;
  --warn: #9a6b11;
  --warn-soft: #fbf0d6;
  --bad: #9b2f2f;
  --bad-soft: #f8e2e2;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 31, 26, 0.08), 0 1px 2px rgba(36, 31, 26, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--rust-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
main { display: block; flex: 1; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, 720px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.small { font-size: 0.92rem; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; }
.kicker { font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 0.8em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 243, 234, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sand); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.01em; }
.wordmark-sub { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-text); margin-top: 3px; }
.mark { color: var(--ink); flex: none; }
.mark-light { color: var(--cream); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-toggle { display: none; }
.nav-burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; cursor: pointer; border-radius: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); }
@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--sand); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; display: none; box-shadow: var(--shadow); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a:not(.btn) { display: block; padding: 12px 4px; border-bottom: 1px solid var(--sand); }
  .nav-cta { margin-top: 14px; text-align: center; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body); line-height: 1.2; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section-tight { padding: clamp(36px, 5vw, 60px) 0; }
.band-paper { background: var(--paper); }
.band-forest { background: var(--forest); color: #efe9dc; }
.band-forest h2, .band-forest h3 { color: #fff; }
.band-forest .kicker { color: var(--gold); }
.band-forest a { color: #f2dcc9; }
.band-cta { display: grid; gap: 20px; grid-template-columns: 1fr auto; align-items: center; }
@media (max-width: 700px) { .band-cta { grid-template-columns: 1fr; } }
.section-head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 44px); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 9px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft); border: 1.5px solid var(--gold); }
.check-list li::after { content: ""; position: absolute; left: 6px; top: 10px; width: 5px; height: 9px; border: solid var(--gold-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.price-tag { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1; margin: 6px 0 10px; }
.price-tag small { font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.badge { display: inline-block; white-space: nowrap; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--sand); color: var(--ink-soft); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-gold { background: var(--gold-soft); color: var(--gold-text); }
.notice { border-radius: 12px; padding: 14px 18px; border: 1px solid var(--sand-deep); background: var(--paper); margin: 0 0 1.2em; }
.notice-ok { border-color: #bcd9c2; background: var(--ok-soft); }
.notice-warn { border-color: #e6cf98; background: var(--warn-soft); }
.notice-bad { border-color: #e4b4b4; background: var(--bad-soft); }
.notice p:last-child { margin-bottom: 0; }

/* Hero */
.hero { position: relative; min-height: min(82vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img, .hero-img picture { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20, 16, 12, 0.88) 0%, rgba(20, 16, 12, 0.45) 45%, rgba(20, 16, 12, 0.1) 100%); }
.hero-inner { padding: clamp(90px, 14vw, 170px) 0 clamp(44px, 6vw, 72px); }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 0.3em; }
.hero .kicker { color: #e2c77a; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero .lede { color: #f2ede3; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 26px; }
.hero-stat { font-size: 0.95rem; color: #eee6d7; display: flex; align-items: baseline; gap: 10px; }
.hero-stat::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: translateY(-1px); }
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { max-width: 16ch; }

/* Media layouts */
.split { display: grid; gap: clamp(28px, 5vw, 60px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-portrait { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 16 / 9; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px 20px 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 2rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.86rem; color: var(--muted); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--sand-deep); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
.choice { display: grid; gap: 10px; }
.choice label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--sand-deep); border-radius: 12px; background: var(--paper); cursor: pointer; font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--rust); background: var(--rust-soft); }
.choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rust); }
.choice .small { display: block; font-weight: 400; color: var(--muted); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--rust); }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.errors { color: var(--bad); background: var(--bad-soft); border: 1px solid #e4b4b4; border-radius: 10px; padding: 12px 16px; }
.errors ul { margin: 0; padding-left: 1.2em; }

/* FAQ */
.faq details { border-top: 1px solid var(--sand-deep); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--sand-deep); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.15rem; padding: 14px 44px 14px 0; position: relative; list-style: none; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 1.6rem; color: var(--gold-text); font-family: var(--font-body); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 16px; color: var(--ink-soft); max-width: 70ch; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--paper); border: 1px solid var(--sand); border-radius: 10px; overflow: hidden; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--sand); text-align: left; vertical-align: top; }
table.data th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--cream); }
table.data tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Terms */
.terms h2 { font-size: 1.3rem; margin-top: 1.4em; }
.terms p, .terms li { max-width: 68ch; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d0c1; padding: 44px 0 20px; margin-top: auto; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.footer-name { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin: 12px 0 4px; }
.footer-addr { font-size: 0.92rem; margin: 0; }
.footer-col p { margin: 0 0 6px; }
.site-footer a { color: #f1e9d9; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding-top: 18px; font-size: 0.86rem; color: #a99f8e; }
.footer-bottom p { margin: 0; }

/* Dashboard and login */
.panel { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel h2 { font-size: 1.35rem; margin-bottom: 0.6em; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.tile { background: var(--paper); border: 1px solid var(--sand); border-radius: 12px; padding: 14px 16px; }
.tile b { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; line-height: 1.1; }
.tile span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.steer-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.steer { background: var(--paper); border: 1px solid var(--sand); border-radius: 12px; padding: 16px; }
.steer h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.1rem; margin-bottom: 8px; }
.steer ul { list-style: none; padding: 0; margin: 0; }
.steer li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--sand); font-size: 0.95rem; }
.steer li span:last-child { color: var(--muted); white-space: nowrap; }
.quarter-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 10px; }
.quarter-bar i { display: block; height: 8px; border-radius: 4px; background: var(--sand-deep); }
.quarter-bar i.on { background: var(--forest); }
.activity { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.activity li { padding: 8px 0; border-top: 1px solid var(--sand); display: grid; grid-template-columns: 1fr; gap: 2px; }
.activity time { color: var(--muted); font-size: 0.82rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; word-break: break-all; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin: 28px 0 18px; }
.dash-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.login-card { max-width: 420px; margin: clamp(40px, 8vw, 90px) auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .site-header, .site-footer, .nav-burger { display: none; } }

/* Fixes after the first screenshot review */
.band-forest .btn-light { color: var(--ink); }
.band-forest .btn-light:hover { color: var(--ink); }
table.price td, table.price th { white-space: nowrap; }
.about-cols h2 { font-size: 1.5rem; }
@media (max-width: 480px) { table.price .cuts { display: none; } }

/* Freezer beef and individual cuts */
.item { display: flex; flex-direction: column; gap: 4px; }
.item-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.item-top .kicker, .item-top .item-name { margin: 0; }
.item-name { font-size: 1.2rem; }
.item .price-tag { margin: 8px 0 4px; }
.item .btn { align-self: flex-start; margin-top: auto; }
.what { margin: 6px 0 14px; }
.what summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--rust-deep); list-style: none; }
.what summary::-webkit-details-marker { display: none; }
.what summary::before { content: "+ "; color: var(--gold-text); }
.what[open] summary::before { content: "\2212 "; }
.what .answer { font-size: 0.92rem; color: var(--ink-soft); padding-top: 8px; }
.checks { display: grid; gap: 10px; }
.field .checks .check { font-weight: 500; }
