/* The public site. The page is the fridge door: pale enamel, with Mooey hanging on it. */
:root {
  color-scheme: light;
  --enamel: #d9ece3;
  --char: #2b1a10;
  --char-soft: #5c4637;
  --horn: #f3e6c8;
  --ear: #cf995d;
  --face: #d99f63;
  --fringe: #a4582a;
  --muzzle: #f2dfb6;
  --brass: #c9a24a;
  --rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--enamel); color: var(--char); font: 1.0625rem/1.55 var(--sans); }
a { color: var(--char); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--char); outline-offset: 4px; }

.door { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.5rem 2rem; }
.door-small { gap: 0; }

/* Mooey himself, drawn as the layers of the laser-cut magnet. */
.cow { appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; width: min(15rem, 62vw); aspect-ratio: 1; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.cow-art { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 7px 0 rgba(43, 26, 16, 0.12)) drop-shadow(0 16px 22px rgba(43, 26, 16, 0.18)); }
.cow-art path, .cow-art ellipse, .cow-art rect, .cow-art circle { stroke: var(--char); stroke-width: 3; stroke-linejoin: round; }
.cow-horn { fill: var(--horn); }
.cow-ear { fill: var(--ear); }
.cow-face { fill: var(--face); }
.cow-fringe { fill: var(--fringe); }
.cow-art .cow-strand { fill: none; stroke-width: 2.25; stroke-linecap: round; opacity: 0.5; }
.cow-muzzle { fill: var(--muzzle); }
.cow-art .cow-nostril { fill: var(--char); stroke: none; }
.cow-art .cow-ear-inner { fill: #eab887; stroke: none; }
.cow-art .cow-pupil { fill: var(--char); stroke: none; }
.cow-art .cow-shine { fill: #fff; stroke: none; }
.cow-art .cow-liner { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.cow-art .cow-blush { fill: #e58f7e; stroke: none; opacity: 0.55; }
.cow-head { transform-box: fill-box; transform-origin: 50% 92%; }
.cow.is-wobbling .cow-head { animation: wobble 1.5s cubic-bezier(0.25, 0.6, 0.35, 1); }
@keyframes wobble {
  0% { transform: rotate(0deg); }
  12% { transform: rotate(-9deg); }
  28% { transform: rotate(7deg); }
  44% { transform: rotate(-4.5deg); }
  60% { transform: rotate(2.5deg); }
  78% { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cow.is-wobbling .cow-head { animation: none; }
}

.wordmark { font-family: var(--rounded); font-weight: 900; font-size: clamp(2.7rem, 1.6rem + 5.5vw, 5rem); line-height: 1; letter-spacing: -0.025em; margin: 2rem 0 0.9rem; }
.wordmark-small { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); margin-top: 0; }
.tagline { max-width: 31ch; margin: 0 auto; color: var(--char-soft); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem); }
.soon { margin: 1.6rem 0 0; font-family: var(--rounded); font-weight: 800; font-size: 1.15rem; }
.door-footer { padding: 1.5rem; text-align: center; color: var(--char-soft); font-size: 0.9rem; }
.door-footer p { margin: 0; }

/* ---------- The shop ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop { --paper: #fffdf8; --shadow: 0 1px 0 rgba(43, 26, 16, 0.07), 0 14px 28px -16px rgba(43, 26, 16, 0.45); --ok: #2f7448; }
.preview-bar { margin: 0; padding: 0.55rem 1rem; background: var(--char); color: var(--enamel); text-align: center; font-size: 0.9rem; }
.preview-bar a { color: inherit; }

.shop-header-inner, .shop-main { width: 100%; max-width: 68rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.shop-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.shop-brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--char); text-decoration: none; font-family: var(--rounded); font-weight: 900; font-size: 1.3rem; letter-spacing: -0.01em; }
.shop-brand img { display: block; }
.cart-link { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--paper); color: var(--char); font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.cart-count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.4rem; border-radius: 999px; background: var(--char); color: var(--enamel); font-size: 0.85rem; }
.shop-main { flex: 1; padding-top: 1rem; padding-bottom: 3.5rem; }
.shop-footer { padding: 2rem 1.25rem 2.5rem; text-align: center; color: var(--char-soft); font-size: 0.9rem; }
.shop-footer p { margin: 0; }

.shop-intro { max-width: 40rem; margin: 1.5rem 0 2.25rem; }
.shop-title, .page-title { font-family: var(--rounded); font-weight: 900; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 0.75rem; }
.page-title { margin-top: 1rem; }
.shop-lede { margin: 0; color: var(--char-soft); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 34ch; }
.shop-empty { max-width: 38rem; padding: 1.25rem 1.4rem; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }

/* Products sit like photos stuck to the fridge door, each a little off square. */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17.5rem, 100%), 1fr)); gap: 2rem 1.75rem; }
.product-card a { display: block; padding: 0.7rem 0.7rem 1rem; border-radius: 12px; background: var(--paper); color: var(--char); text-decoration: none; box-shadow: var(--shadow); transform: rotate(-1deg); transition: transform 0.2s ease; }
.product-card:nth-child(even) a { transform: rotate(1.1deg); }
.product-card:nth-child(3n) a { transform: rotate(-0.4deg); }
.product-card a:hover, .product-card a:focus-visible { transform: rotate(0deg) translateY(-3px); }
.card-photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #efe7d8; }
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-name { display: block; margin-top: 0.8rem; font-family: var(--rounded); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.card-price { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.2rem; color: var(--char-soft); font-weight: 600; }
.tag { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; background: #efe7d8; color: var(--char); font-size: 0.78rem; font-weight: 700; }
.tag-sale { background: var(--fringe); color: #fff; }

/* A product's page */
.crumbs { margin: 0.5rem 0 1.25rem; font-weight: 600; }
.crumbs a { color: var(--char-soft); }
.product { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.gallery-main { padding: 0.75rem; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.gallery-main img, .gallery-empty { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #efe7d8; }
.gallery-empty { content: ""; }
.gallery-thumbs { list-style: none; display: flex; gap: 0.6rem; margin: 0.9rem 0 0; padding: 0.2rem; overflow-x: auto; }
.gallery-thumbs li[hidden] { display: none; }
.thumb { display: block; width: 4.25rem; height: 4.25rem; padding: 0; border: 3px solid transparent; border-radius: 10px; background: var(--paper); cursor: pointer; overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--char); }
.product-title { font-family: var(--rounded); font-weight: 900; font-size: clamp(2.1rem, 1.6rem + 2vw, 3.2rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 0.6rem; }
.product-price { margin: 0 0 1.5rem; font-family: var(--rounded); font-weight: 800; font-size: 1.6rem; }
.product-price s, .line-price s { margin-right: 0.35rem; color: var(--char-soft); font-weight: 600; font-size: 0.75em; }
.buy { display: grid; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 2px dashed rgba(43, 26, 16, 0.18); }
.buy-field label { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.buy select { width: 100%; min-height: 52px; padding: 0 2.75rem 0 1rem; border: 2px solid var(--char); border-radius: 12px; background: var(--paper); color: var(--char); font: inherit; font-weight: 600; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--char) 50%), linear-gradient(135deg, var(--char) 50%, transparent 50%);
  background-position: calc(100% - 1.35rem) 50%, calc(100% - 1rem) 50%; background-size: 0.4rem 0.4rem; background-repeat: no-repeat; }
.ships { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-weight: 600; }
.ships::before, .line-ships::before { content: ""; flex: none; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--ok); }
.ships[data-state="made"]::before, .line-ships[data-state="made"]::before { background: var(--fringe); }
.buy-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.buy-row .button-buy { flex: 1 1 12rem; }
.stepper { display: inline-flex; align-items: stretch; border: 2px solid var(--char); border-radius: 999px; background: var(--paper); overflow: hidden; }
.stepper button { width: 48px; border: 0; background: none; color: var(--char); font: inherit; font-size: 1.35rem; font-weight: 700; cursor: pointer; }
.stepper input { width: 3rem; min-height: 48px; border: 0; background: none; color: var(--char); font: inherit; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.button-buy { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 1.75rem; border: 0; border-radius: 999px; background: var(--char); color: var(--enamel); font-family: var(--rounded); font-weight: 800; font-size: 1.15rem; text-decoration: none; cursor: pointer; }
.button-buy:hover { background: #4a2f1d; }
.button-buy:disabled { opacity: 0.45; cursor: not-allowed; }
.button-quiet { min-height: 44px; padding: 0 1.1rem; border: 2px solid var(--char); border-radius: 999px; background: transparent; color: var(--char); font: inherit; font-weight: 700; cursor: pointer; }
.product-description { margin-top: 1.5rem; max-width: 36rem; }
.product-description p { margin: 0 0 0.9rem; }
.safety { margin: 1.25rem 0 0; padding: 0.8rem 1rem; border-radius: 10px; background: rgba(164, 88, 42, 0.1); font-size: 0.92rem; font-weight: 600; }

/* The cart */
.cart-note { display: inline-block; margin: 0 0 1.25rem; padding: 0.55rem 0.9rem; border-radius: 999px; background: var(--paper); font-weight: 700; box-shadow: var(--shadow); }
.cart-empty { display: grid; justify-items: start; gap: 1rem; }
.cart-empty p { margin: 0; font-size: 1.15rem; }
.cart { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .cart { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.cart-lines ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.9rem; }
.cart-line { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; grid-template-areas: "photo info info" "controls controls price"; gap: 0.6rem 1rem; padding: 0.8rem; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.line-photo { grid-area: photo; width: 4.5rem; height: 4.5rem; border-radius: 8px; overflow: hidden; background: #efe7d8; }
.line-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.line-info { grid-area: info; display: grid; gap: 0.1rem; min-width: 0; }
.line-name { color: var(--char); font-family: var(--rounded); font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.line-wood { color: var(--char-soft); font-weight: 600; }
.line-ships { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; }
.line-price { grid-area: price; align-self: center; font-weight: 800; text-align: right; white-space: nowrap; }
@media (min-width: 40rem) { .cart-line { grid-template-areas: "photo info price" "photo controls controls"; gap: 0.35rem 1rem; } .line-price { align-self: start; } }
.line-controls { grid-area: controls; display: flex; align-items: center; gap: 0.75rem; }
.line-controls input { width: 4.5rem; min-height: 40px; padding: 0 0.6rem; border: 2px solid var(--char); border-radius: 10px; background: #fff; color: var(--char); font: inherit; font-weight: 700; }
.line-remove { min-height: 40px; border: 0; background: none; color: var(--char-soft); font: inherit; text-decoration: underline; cursor: pointer; }
.cart-summary { padding: 1.25rem 1.4rem; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 0; margin: 0 0 1rem; }
.cart-summary dt { color: var(--char-soft); }
.cart-summary dd { margin: 0; padding-left: 1rem; text-align: right; font-weight: 700; }
.cart-summary .total { padding-top: 0.6rem; border-top: 2px dashed rgba(43, 26, 16, 0.18); color: var(--char); font-family: var(--rounded); font-weight: 900; font-size: 1.3rem; }
.cart-summary .button-buy { width: 100%; }
.tax-note { margin: 0 0 1rem; color: var(--char-soft); font-size: 0.9rem; }
.tax-note:last-child { margin: 0.75rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  .product-card a { transition: none; }
}

/* Checkout */
.checkout-alert { margin: 0 0 1.25rem; padding: 0.75rem 1rem; border-radius: 12px; background: #f8e3de; color: #8e2a18; font-weight: 700; }
.checkout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .checkout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.checkout-form fieldset { margin: 0 0 1.5rem; padding: 0; border: 0; }
.checkout-form legend { margin-bottom: 0.75rem; font-family: var(--rounded); font-weight: 800; font-size: 1.3rem; }
.shop-field { margin-bottom: 1rem; }
.shop-field label { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.shop-field .optional { font-weight: 500; color: var(--char-soft); }
.shop-field input, .shop-field select { width: 100%; min-height: 50px; padding: 0 0.9rem; border: 2px solid var(--char); border-radius: 12px; background: var(--paper); color: var(--char); font: inherit; }
.shop-field input[aria-invalid="true"], .shop-field select[aria-invalid="true"] { border-color: #a12f1c; background: #fff6f3; }
.shop .field-error { margin: 0.35rem 0 0; color: #a12f1c; font-weight: 700; font-size: 0.92rem; }
.shop-row { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) { .shop-row { grid-template-columns: 2fr 1.5fr 1fr; } }
.checkout-note { margin: 0 0 1rem; color: var(--char-soft); }
.checkout-form .button-buy { width: 100%; }
.summary-lines { list-style: none; display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0 0 0.9rem; border-bottom: 2px dashed rgba(43, 26, 16, 0.18); }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.cart-summary [hidden] { display: none; }

/* The hop to Square, waiting on Square, and the pretend payment */
.pay-hop, .practice { max-width: 34rem; padding: 1.5rem; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.pay-hop .page-title, .practice .page-title { margin-top: 0; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); }
.practice { border: 3px dashed var(--fringe); }
.practice-badge { display: inline-block; margin: 0 0 0.6rem; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--fringe); color: #fff; font-weight: 800; font-size: 0.85rem; }
.practice-total { font-size: 1.15rem; }
.practice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.practice-actions form { margin: 0; }

/* A customer's order page */
.order-status { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.5rem; font-weight: 800; font-size: 1.1rem; }
.order-status::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ok); }
.order-status[data-state="pending"]::before, .order-status[data-state="expired"]::before, .order-status[data-state="cancelled"]::before { background: #b5aa9e; }
.cart-lines-plain { list-style: none; display: grid; gap: 0.9rem; margin: 0; padding: 0; }
.cart-line.order-line, .cart-line.order-line:is(*) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info price"; }
@media (min-width: 40rem) { .cart-line.order-line { grid-template-areas: "info price"; } }

/* Policy pages and the footer's links */
.policy { max-width: 42rem; }
.policy h2 { margin: 1.75rem 0 0.4rem; font-family: var(--rounded); font-weight: 800; font-size: 1.3rem; }
.policy p, .policy li { line-height: 1.65; }
.policy ul { padding-left: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.25rem; margin-bottom: 0.6rem; }
.footer-links a { color: inherit; font-weight: 700; }

.free-note { margin: 0.5rem 0 0.9rem; font-weight: 700; color: var(--ok); }
