/*
  Dysart Family Butchers (concept). Tokens come from the counter docket:
  white shop paper, the pink carbon copy, blue biro, dry-aged maroon.
*/
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Covered By Your Grace"; src: url("fonts/covered-by-your-grace.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #f4f5f1;
  --white: #ffffff;
  --ink: #1b1d26;
  --muted: #4d505c;
  --maroon: #5c1a27;
  --maroon-hi: #75283a;
  --pink: #f3d3cd;
  --pink-deep: #e8b5ab;
  --yellow: #f1e3a0;
  --blue: #2438b8;
  --red: #b52a24;
  --open: #1d7a49;
  --rule: #d4d7cf;
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --print: "Courier Prime", "Courier New", Courier, monospace;
  --hand: "Covered By Your Grace", "Bradley Hand", "Segoe Print", cursive;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); font-synthesis: none; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.foot :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(1.95rem, 1.1rem + 3vw, 3.4rem); }
.eyebrow { margin-bottom: 14px; font: 400 0.8125rem/1.3 var(--print); letter-spacing: 0.09em; text-transform: uppercase; color: var(--maroon); }
.eyebrow--light { color: var(--pink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 2px solid var(--maroon); border-radius: 6px; background: transparent; color: var(--maroon); font: 700 0.9375rem/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.btn:hover { background: var(--maroon); color: #fff; }
.btn--primary { background: var(--maroon); color: #fff; }
.btn--primary:hover { background: var(--maroon-hi); border-color: var(--maroon-hi); }

/* Header */
.top { background: var(--white); border-bottom: 1px solid var(--rule); }
.top__in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding-top: 10px; }
.brand { display: grid; text-decoration: none; line-height: 1; }
.brand__name { font: 700 2rem/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--maroon); }
.brand__sub { margin-top: 6px; font: 400 0.75rem/1.2 var(--print); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.btn--call { min-height: 44px; padding: 0 16px; font-size: 0.875rem; white-space: nowrap; }
.btn__long { display: none; }
.nav { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 4px; margin-inline: -8px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font: 400 0.8125rem/1 var(--print); letter-spacing: 0.01em; text-decoration: none; text-transform: uppercase; color: var(--ink); }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Hero: the pitch on the left, the docket on a maroon panel on the right */
.hero { position: relative; overflow-x: clip; padding: 28px 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero h1 { font-size: clamp(2.4rem, 1rem + 6.4vw, 4.8rem); line-height: 1; letter-spacing: -0.02em; color: var(--maroon); }
.lede { margin-top: 18px; max-width: 34em; font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.today { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 20px; font: 400 0.9375rem/1.4 var(--print); }
.today a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.today__dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); }
.today[data-state="open"] .today__dot { background: var(--open); box-shadow: 0 0 0 4px rgba(29, 122, 73, 0.18); }
.today[data-state="closed"] .today__dot { background: var(--red); }

.hero__photo { order: 3; display: grid; grid-template-rows: 1fr auto; }
.hero__photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--pink); }
.terms { order: 4; margin: 0; padding: 4px 0 0; }
.terms > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed #aeb1b8; }
.terms > div:first-child { border-top: 2px solid var(--ink); }
.terms dt { font: 400 0.8125rem/1.3 var(--print); letter-spacing: 0.08em; text-transform: uppercase; color: var(--maroon); }
.terms dd { margin: 0; }
.hero__photo figcaption { margin-top: 10px; font: 400 0.8125rem/1.4 var(--print); color: var(--muted); }

.hero__panel { position: relative; padding: 36px 0 44px; color: #fff; }
.hero__panel::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vw; background: var(--maroon); }
.hero__panel :focus-visible { outline-color: var(--blue); }
.hero__panel > .eyebrow, .hero__panel > .panel__lead { position: relative; }
.panel__lead { max-width: 26em; margin: -4px 0 22px; color: var(--pink); }
.xmas__slip { position: relative; }
.slip-fallback { padding: 22px; background: var(--pink); color: var(--ink); border-radius: 4px; }
.slip-fallback h2 { font-size: 1.25rem; margin-bottom: 8px; }
.slip-fallback a { font-weight: 400; text-underline-offset: 3px; }

/* Christmas price list: plain text, always there */
.prices { padding: 64px 0 8px; }
.prices__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.prices__head h2 { max-width: 15em; }
.prices__head p:last-child { margin-top: 16px; max-width: 36em; }
.plist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; font-family: var(--print); font-size: 0.9375rem; }
.plist__block h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.plist__block h3 span { font: 400 0.8125rem/1.3 var(--print); letter-spacing: 0; text-transform: none; color: var(--muted); }
.plist li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.plist i, .receipt i, .specials i { flex: 1; min-width: 12px; border-bottom: 2px dotted currentColor; opacity: 0.4; transform: translateY(-3px); }

/* The docket: white top copy, pink and yellow duplicates peeking out below */
.docket { position: relative; isolation: isolate; margin: 0 10px 18px 0; color: var(--ink); }
.docket::before, .docket::after { content: ""; position: absolute; z-index: -1; border-radius: 3px; box-shadow: 0 6px 18px rgba(30, 5, 10, 0.3); }
.docket::before { inset: 9px -9px -9px 9px; background: var(--pink); }
.docket::after { inset: 18px -18px -18px 18px; background: var(--yellow); z-index: -2; }
.docket[hidden] { display: none; }
.docket__sheet { padding: 0 22px 26px; background: var(--white); border-radius: 3px; }
.docket__perf { height: 16px; margin: 0 -22px 18px; background: radial-gradient(circle at 8px 0, var(--maroon) 4.5px, transparent 5px) 0 0 / 16px 16px repeat-x; }
.docket__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.docket__shop { font: 400 0.75rem/1.45 var(--print); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.docket__no { flex: none; font: 400 1.25rem/1 var(--print); color: var(--red); letter-spacing: 0.04em; white-space: nowrap; }
.docket__title { margin-top: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0; }

.field { margin-top: 18px; min-width: 0; }
.field__label { display: block; padding: 0; margin-bottom: 6px; font: 400 0.8125rem/1.3 var(--print); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.hand { font-family: var(--hand); color: var(--blue); }
.hand--note, .guide { font-size: 1.3rem; line-height: 1.15; }
.hand--note { margin-top: 6px; }
.guide { margin-top: 10px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper__btn { width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); font: 400 1.5rem/1 var(--print); cursor: pointer; }
.stepper__btn:hover { background: var(--pink); }
.stepper input { width: 84px; height: 56px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; text-align: center; font: 400 3rem/1 var(--hand); color: var(--blue); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.line { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #aeb1b8; }
.line__head { display: grid; grid-template-columns: 26px 1fr; gap: 0 12px; align-items: start; min-height: 44px; cursor: pointer; }
.line__head input { grid-row: 1 / span 2; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--blue); }
.line__name { font: 700 0.9375rem/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.line__desc { grid-column: 2; font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.line__body { margin-left: 0; }
.line:not(:has(.line__head input:checked)) .line__body { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; border: 0; min-width: 0; }
.chip { position: relative; display: block; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > span { display: grid; place-items: center; min-width: 74px; min-height: 52px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 6px; background: var(--white); font: 400 1rem/1.15 var(--print); text-align: center; }
.chip small { display: block; font-size: 0.8125rem; color: var(--muted); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:checked + span small { color: #e3e6ff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.chip.is-suggested::after { content: ""; position: absolute; inset: -6px -7px; border: 2px solid var(--blue); border-radius: 46% 54% 50% 50% / 58% 46% 54% 42%; transform: rotate(-2deg); pointer-events: none; }

legend.field__label { float: left; width: 100%; }
legend.field__label + * { clear: both; }
.extras { margin: 18px 0 0; padding: 14px 0 0; border: 0; border-top: 1px dashed #aeb1b8; min-width: 0; }
.extra { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.extra input { width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.extra__name { font-size: 0.9375rem; line-height: 1.3; }
.extra__price { font: 400 0.9375rem/1 var(--print); }

.collect { margin: 18px 0 0; padding: 14px 0 0; border: 0; border-top: 1px dashed #aeb1b8; min-width: 0; }
.chips--days { display: grid; grid-template-columns: repeat(4, 1fr); }
.chips--days .chip > span, .chips--time .chip > span { min-width: 0; width: 100%; padding-inline: 4px; }
.chips--days small { white-space: nowrap; font-size: 0.75rem; }
.chips--time { display: grid; grid-template-columns: 1fr 1fr; }

.who { display: grid; gap: 0 18px; margin-top: 4px; padding-top: 14px; border-top: 1px dashed #aeb1b8; margin-top: 18px; }
.hand-input { width: 100%; min-height: 48px; padding: 0 2px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; font: 400 1.9rem/1 var(--hand); color: var(--blue); }
.hand-input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.receipt { margin-top: 22px; padding-top: 14px; border-top: 2px dashed var(--ink); font-family: var(--print); font-size: 0.9375rem; }
.receipt__lines { display: grid; gap: 2px; }
.receipt__lines li { display: flex; align-items: baseline; gap: 8px; }
.receipt__empty { color: var(--muted); }
.receipt__total { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ink); font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.04em; }
.receipt__total strong { font: 700 1.5rem/1 var(--display); letter-spacing: -0.01em; }
.receipt__small { margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }

.btn--send { width: 100%; margin-top: 18px; min-height: 56px; font-size: 0.9375rem; }
.sent { margin-top: 14px; padding: 12px 14px; border: 2px solid var(--blue); border-radius: 6px; background: #eef0ff; font: 400 0.9375rem/1.45 var(--print); }
.sent--warn { border-color: var(--red); background: #fdeeed; }
.sent[hidden] { display: none; }

/* This week */
.specials { padding: 64px 0; }
.specials__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.specials__intro p { margin-top: 14px; max-width: 30em; }
.specials__intro .btn { margin-top: 4px; }
.specials__list li { padding: 16px 0 14px; border-bottom: 1px solid var(--rule); }
.specials__list li:first-child { border-top: 2px solid var(--ink); }
.sp__row { display: flex; align-items: baseline; gap: 10px; }
.sp__name { font: 700 1.0625rem/1.25 var(--display); }
.sp__price { flex: none; font: 400 1.25rem/1 var(--print); white-space: nowrap; }
.sp__price small { font-size: 0.875rem; color: var(--muted); }
.sp__note { margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }

/* The counter */
.counter { padding: 64px 0; background: var(--white); }
.counter__head h2 { max-width: 14em; }
.counter__list { display: grid; margin-top: 32px; }
.counter__list > div { padding: 20px 0 22px; border-top: 2px solid var(--ink); }
.counter dt { font: 700 1.1875rem/1.2 var(--display); }
.counter dd { margin-top: 8px; max-width: 34em; }
.from { display: block; margin-top: 10px; font: 400 0.8125rem/1.3 var(--print); letter-spacing: 0.06em; text-transform: uppercase; color: var(--maroon); }

/* Farms */
.farms { padding-bottom: 64px; }
.farms__photo img { width: 100%; height: clamp(190px, 30vw, 380px); object-fit: cover; object-position: 50% 24%; }
.farms__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 48px; }
.farms__text p { margin-top: 16px; max-width: 34em; }
.farms__text .eyebrow { margin-top: 0; }
.farms__list { margin-top: 22px; border-top: 2px solid var(--ink); }
.farms__list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.farms__list strong { font: 700 0.9375rem/1.3 var(--display); }
.farms__list span { color: var(--muted); }
.farms__note { font: 400 0.8125rem/1.4 var(--print); color: var(--muted); }
.farms__side { display: grid; gap: 22px; align-content: start; }
.farms__map { position: relative; aspect-ratio: 1 / 1.02; overflow: hidden; border: 1px solid var(--rule); border-radius: 6px; background: #e9ece4; }
.farms__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__river { fill: none; stroke: #b4c0ee; stroke-width: 14; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map__label, .map__pin { position: absolute; left: var(--x); top: var(--y); font: 400 0.75rem/1.25 var(--print); color: var(--ink); }
.map__label { transform: translate(-50%, -50%) rotate(-12deg); letter-spacing: 0.1em; text-transform: uppercase; color: #3b4ea8; }
.map__pin { padding-left: 18px; }
.map__pin::before { content: ""; position: absolute; left: 0; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.map__pin b { display: block; font: 700 0.75rem/1.25 var(--display); }
.map__pin--shop::before { left: -3px; top: -1px; width: 18px; height: 18px; border-radius: 3px; background: var(--maroon); box-shadow: 0 0 0 3px #fff; }
.map__pin--shop { padding-left: 22px; }
.farms__cattle img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.farms__cattle figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }

/* Visit */
.visit { padding: 60px 0 68px; background: var(--white); border-top: 1px solid var(--rule); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.visit__now { margin-top: 14px; max-width: 28em; }
.hours { width: 100%; max-width: 440px; margin-top: 20px; border-collapse: collapse; font: 400 1rem/1.3 var(--print); }
.hours th, .hours td { padding: 10px 8px; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 2px solid var(--ink); }
.hours td { text-align: right; }
.hours tr[aria-current="date"] { background: var(--pink); }
.hours tr[aria-current="date"] th::after { content: " · today"; color: var(--maroon); }
.visit__xmas { max-width: 30em; margin-top: 18px; padding: 14px 16px; background: var(--paper); border-left: 4px solid var(--maroon); font-size: 0.9375rem; }
.visit__contact h3 { margin-bottom: 14px; font-size: 1.25rem; }
.visit__contact p { margin-top: 14px; max-width: 28em; }
.visit__small { font-size: 0.9375rem; color: var(--muted); }
.textlink { display: inline-block; padding: 12px 0; font: 400 1rem/1.2 var(--print); text-underline-offset: 4px; }

/* Footer */
.foot { padding: 28px 0 34px; background: var(--maroon); color: var(--pink); font: 400 0.875rem/1.6 var(--print); }
.foot__in { display: grid; gap: 4px 24px; }
.foot__brand { font: 400 1rem/1.4 var(--print); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.foot a { display: inline-block; padding: 11px 0; }

@media (min-width: 640px) {
  .btn__long { display: inline; }
  .who { grid-template-columns: 1fr 1fr; }
  .counter__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .docket__sheet { padding-inline: 32px; }
  .docket__perf { margin-inline: -32px; }
  .plist { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

@media (min-width: 900px) {
  .top__in { grid-template-columns: auto 1fr auto; gap: 24px; padding-block: 14px; }
  .nav { grid-column: 2; grid-row: 1; justify-content: center; margin: 0; gap: 4px; }
  .btn--call { grid-column: 3; grid-row: 1; }
  .nav a { padding: 0 12px; font-size: 0.875rem; }
  .btn--call { min-height: 46px; padding: 0 20px; }
  .line__body { margin-left: 38px; }
  .hero { padding: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-rows: auto 1fr auto; column-gap: 88px; row-gap: 32px; align-items: start; }
  .hero__text { grid-column: 1; grid-row: 1; padding-top: 64px; }
  .hero__photo { order: 0; grid-column: 1; grid-row: 2; align-self: stretch; }
  .hero__panel { grid-column: 2; grid-row: 1 / span 3; }
  .hero__photo img { aspect-ratio: auto; min-height: 380px; }
  .terms { order: 0; grid-column: 1; grid-row: 3; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(3rem, 0.6rem + 4.5vw, 5rem); }
  .hero__panel { padding: 56px 0 64px; }
  .hero__panel::before { inset: 0 -100vw 0 -56px; }
  .prices { padding-top: 88px; }
  .prices__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .specials, .counter { padding: 88px 0; }
  .specials__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .farms__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding-top: 64px; }
  .visit { padding: 80px 0 88px; }
  .visit__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; }
  .foot__in { grid-template-columns: auto 1fr; justify-content: space-between; align-items: center; }
  .foot__in p:last-child { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
