/* Chris Meyer Designs — site styles. Phone first (390 px), then desktop (1280 px). */

/* ---------- style settings: every color, size and space comes from here ---------- */
:root {
  /* colors */
  --walnut: #3B2A20;     /* text, header type, footer */
  --rust: #A4471E;       /* primary buttons only */
  --rust-deep: #8A3A16;  /* links, small labels, button hover */
  --gold: #C4912F;       /* only on walnut backgrounds, never as text on stone */
  --kraft: #C49C6C;      /* tags and labels, walnut text on it */
  --stone: #E8E1D3;      /* page background */
  --offwhite: #F8F5EF;   /* cards, forms, buy box */
  --muted: #5E4E42;      /* secondary text (nothing lighter than this on stone or off-white) */
  --line: #D6CCBA;       /* borders and dividers only */
  --ok: #3f6b3a;         /* "added to cart" confirmation */

  /* type */
  --head: 'Zilla Slab', Georgia, serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-title: 32px;      /* page title */
  --fs-section: 24px;    /* section heading */
  --fs-card: 19px;       /* card title */
  --fs-price: 22px;
  --fs-body: 17px;
  --fs-small: 15px;      /* smallest running text */
  --fs-tiny: 13px;       /* only for short labels in caps with wide letter spacing */

  /* space: 8 px steps */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;
  --section: 48px;       /* gap between page sections */
  --gut: 16px;           /* side margin */
  --max: 1200px;         /* desktop content width */
  --radius: 10px;        /* cards */
  --radius-sm: 6px;      /* buttons and fields */
  --tap: 44px;           /* smallest tap target */
  --shadow: 0 1px 2px rgba(59, 42, 32, 0.06), 0 8px 24px rgba(59, 42, 32, 0.08);
}
@media (min-width: 720px) { :root { --gut: 32px; } }
@media (min-width: 1100px) {
  :root { --gut: 80px; --section: 80px; --fs-title: 48px; --fs-section: 32px; --fs-card: 22px; --fs-price: 26px; --fs-body: 18px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--walnut);
  font: 400 var(--fs-body)/1.5 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }

/* links: deep rust, underlined; hover walnut */
a { color: var(--rust-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--walnut); }
/* focus: 2 px walnut ring with 2 px offset on every interactive element (off-white on walnut backgrounds) */
:focus-visible { outline: 2px solid var(--walnut); outline-offset: 2px; }
.on-walnut :focus-visible, .site-footer :focus-visible, .band :focus-visible, .promise :focus-visible { outline-color: var(--offwhite); }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--walnut); }
h1 { font-size: var(--fs-title); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-section); }
h3 { font-size: var(--fs-card); }
p { margin: 0 0 1em; }
.eyebrow {
  font: 700 var(--fs-tiny)/1.2 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin: 0 0 0.75rem;
}
.lede { font-size: calc(var(--fs-body) + 2px); color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.center { text-align: center; }

.wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: calc(760px + 2 * var(--gut)); }
.section { padding: var(--section) 0; }
.kraft { background-color: var(--offwhite); }
.rule { border: 0; border-top: 2px solid var(--walnut); width: 56px; margin: 0 0 1.25rem; }
.center .rule { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--walnut); color: var(--offwhite); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; outline-color: var(--gold); }

/* ---------- inner page header: plain stone, breadcrumb + title (the canopy photo is only on the home page) ---------- */
.page-head { padding: 4px 0 var(--s3); }
.page-head h1 { margin: 0; }
.page-head .lede { margin: var(--s1) 0 0; }
.page-head .lede + * { margin-top: var(--s2); }
@media (min-width: 1100px) { .page-head { padding: var(--s3) 0 var(--s4); } }
.crumbs { font-size: var(--fs-small); color: var(--muted); margin: 0 0 var(--s1); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: '/'; padding: 0 8px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--rust-deep); }
.crumbs a:hover { color: var(--walnut); }
.crumbs [aria-current] { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font: 700 1rem/1 var(--body); letter-spacing: 0.02em;
  border-radius: var(--radius-sm); border: 2px solid var(--rust);
  background: var(--rust); color: #fff; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--rust-deep); border-color: var(--rust-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--walnut); border-color: var(--walnut); }
.btn.ghost:hover { background: var(--walnut); color: #fff; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header: one menu, a row with dropdowns on desktop and a full-height panel on phone ---------- */
.site-header { background: var(--offwhite); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 68px; }
.brand { display: block; flex: 0 1 auto; min-width: 0; }
.brand img { height: 30px; width: auto; max-width: 100%; }
.head-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); border: 0; background: none; color: var(--walnut); border-radius: var(--radius-sm); cursor: pointer;
}
.icon-btn:hover { background: var(--stone); color: var(--walnut); }
.icon-btn svg { width: 24px; height: 24px; }
.menu-btn .i-close, .menu-btn[aria-expanded='true'] .i-menu { display: none; }
.menu-btn[aria-expanded='true'] .i-close { display: block; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--rust); color: #fff; font: 700 13px/20px var(--body); text-align: center;
}
.cart-count[hidden] { display: none; }
/* text for screen readers only (Nov 30, 2026: the cart link's "Cart" label) */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-list, .sub { list-style: none; margin: 0; padding: 0; }
.nav-top { display: flex; align-items: center; gap: 4px; min-height: var(--tap); padding: 0 4px; border: 0; background: none; color: var(--walnut); font: 600 var(--fs-body)/1.2 var(--body); text-decoration: none; cursor: pointer; }
.nav-top .chev { width: 18px; height: 18px; flex: none; }
.nav-top[aria-expanded='true'] .chev { transform: rotate(180deg); }
.sub a { display: flex; align-items: center; min-height: var(--tap); color: var(--walnut); text-decoration: none; font-weight: 600; }
.sub a:hover, .sub a[aria-current='page'] { color: var(--rust-deep); text-decoration: underline; }

/* phone: full-height panel under the header bar */
@media (max-width: 899px) {
  .nav { display: none; position: fixed; left: 0; right: 0; top: 69px; bottom: 0; overflow-y: auto; background: var(--offwhite); border-top: 1px solid var(--line); padding: var(--s1) var(--gut) var(--s5); }
  .site-header.menu-open .nav { display: block; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-top { width: 100%; min-height: 56px; font-size: 19px; }
  .has-sub > .nav-top { display: none; }   /* on phone the group name is a plain heading and its links always show */
  .nav-group { display: flex; align-items: center; min-height: 48px; padding: 0 4px; font: 700 19px/1.2 var(--body); color: var(--walnut); }
  .sub { padding: 0 0 var(--s1) var(--s3); }
  .sub a { min-height: 48px; font-size: 18px; }
  .nav a[aria-current='page'] { color: var(--rust-deep); }
  body.menu-open { overflow: hidden; }
}
/* desktop: one line beside the logo and cart; dropdowns open on click or keyboard, not hover */
@media (min-width: 900px) {
  .head-row { min-height: 84px; }
  .brand img { height: 38px; }
  .menu-btn { display: none; }
  .nav { margin-left: auto; }
  .nav-list { display: flex; align-items: center; gap: 20px; }
  .nav-group { display: none; }
  .nav-list > li { position: relative; }
  .nav-top:hover { color: var(--rust-deep); }
  .nav-top[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--rust); }
  .nav-top.nav-shop { padding: 0 14px 0 18px; border-radius: 999px; background: var(--rust); color: #fff; }
  .nav-top.nav-shop:hover, .nav-top.nav-shop[aria-expanded='true'] { background: var(--rust-deep); color: #fff; }
  .sub { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: var(--s1) 0; background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; }
  .has-sub:last-child .sub { left: auto; right: 0; }
  .nav-top[aria-expanded='true'] + .nav-group + .sub { display: block; }
  .sub a { padding: 0 var(--s2); }
  .sub a:hover { background: var(--stone); }
}
@media (min-width: 900px) and (max-width: 1099px) { .nav-list { gap: 12px; } .brand img { height: 32px; } }

/* ---------- home: short canopy hero, products on the first screen ---------- */
.hero-photo { position: relative; height: 190px; overflow: hidden; background: #3f4a2c; }
.hero-canopy { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hang-tag {
  position: absolute; left: 50%; top: 18px; width: 124px; height: 150px; margin-left: -62px; padding: 34px 14px 0;
  background: var(--kraft); border-radius: 6px; transform: rotate(-2deg); box-shadow: 0 10px 24px rgba(10, 14, 6, 0.4);
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
}
.hang-tag img { width: 96px; height: 96px; }
.hang-hole { position: absolute; left: 50%; top: 10px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle, #2a2419 0 4px, #dcc39a 4.5px 100%); }
.hang-string { position: absolute; left: 50%; top: -20px; width: 3px; height: 36px; margin-left: -1.5px; background: repeating-linear-gradient(135deg, #cfb483 0 3px, #a88857 3px 6px); }
.hero-piece { display: none; }
.hero-text { padding: var(--s3) var(--gut) 0; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; }
.hero-text .eyebrow { display: none; }
.hero h1 { font-size: 30px; margin: 0 0 var(--s1); }
.hero-line { font-size: 16px; color: var(--muted); margin: 0 0 var(--s2); }
.hero-actions { display: grid; gap: 4px; }
.hero-actions .text-link { justify-self: center; }
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: var(--s4) var(--gut) 0; gap: var(--s6); align-items: center; }
  .hero-text { order: -1; padding: 0; margin: 0; }
  .hero-text .eyebrow { display: block; }
  .hero h1 { font-size: 52px; }
  .hero-line { font-size: 20px; margin-bottom: var(--s3); }
  .hero-actions { display: flex; align-items: center; gap: var(--s3); }
  .hero-photo { height: 480px; border-radius: var(--radius); display: grid; place-items: center; }
  .hang-tag { display: none; }
  .hero-piece { display: block; position: absolute; left: 50%; top: 50%; width: 300px; height: 360px; margin: -180px 0 0 -150px; }
  .hero-piece img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(10, 14, 6, 0.45); }
  .piece-tag {
    position: absolute; right: -36px; bottom: 28px; display: grid; gap: 2px; padding: 10px 14px 10px 28px; max-width: 220px;
    background: var(--kraft); color: var(--walnut); transform: rotate(-3deg); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  }
  .piece-tag::before { content: ''; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--offwhite); }
  .pt-name { font: 700 16px/1.2 var(--head); }
  .pt-price { font: 700 20px/1.1 var(--head); }
  .pt-woods { font-size: 14px; line-height: 1.3; }
}
.home-featured { padding: var(--s3) 0 var(--section); }
@media (min-width: 900px) { .home-featured { padding-top: var(--s6); } }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.row-head h2 { margin: 0; }
.row-head a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }

/* phone only: category rows */
.shop-kinds { padding: 0 0 var(--section); }
.shop-kinds h2 { margin-bottom: var(--s1); }
.shop-kinds ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.shop-kinds a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); color: var(--walnut); text-decoration: none; font: 700 19px var(--head); }
.shop-kinds a::after { content: '→'; color: var(--rust-deep); font-family: var(--body); }
.shop-kinds .count { margin-left: auto; margin-right: var(--s2); font: 600 var(--fs-small) var(--body); color: var(--muted); }
@media (min-width: 900px) { .shop-kinds { display: none; } }

.maker { background: var(--offwhite); padding: var(--section) 0; border-block: 1px solid var(--line); }
.maker-grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .maker-grid { grid-template-columns: 5fr 7fr; gap: var(--s8); } }
.maker-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px dashed var(--muted); display: grid; place-items: center; align-content: center; gap: var(--s1); background: var(--stone); padding: var(--s2); text-align: center; }
.maker-photo img { width: 140px; height: 140px; }
.maker-photo figcaption { font-size: var(--fs-small); color: var(--muted); }
.maker .signature { margin: 0 0 var(--s2); }

.home-gift { padding: var(--section) 0 0; }
.gift-box { display: flex; gap: var(--s2); align-items: flex-start; background: var(--kraft); color: var(--walnut); border-radius: var(--radius); padding: var(--s3); }
.gift-box > svg { flex: none; width: 32px; height: 32px; }
.gift-box h2 { font-size: 22px; margin: 0 0 4px; }
.gift-box p { margin: 0 0 4px; }

.promises { padding: var(--section) 0; }
.promises ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
@media (min-width: 900px) { .promises ul { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.promises li { display: flex; gap: var(--s2); align-items: flex-start; }
.promises li svg { flex: none; width: 32px; height: 32px; color: var(--walnut); }
.promises li p { margin: 0; }

/* ---------- product cards: photo or wood card, kraft price tag on the image ---------- */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .grid { gap: var(--s3); } .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 1099px) { .grid.four, .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column; background: var(--offwhite); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--walnut);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--walnut); }
.card-media { position: relative; height: 150px; background: var(--stone); overflow: hidden; }
@media (min-width: 1100px) { .card-media { height: 240px; } }
.card-media > img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
@media (min-width: 1100px) { .card-body { padding: 16px 18px 20px; } }
.card-body h3 { margin: 0; font-size: 17px; line-height: 1.2; }
@media (min-width: 1100px) { .card-body h3 { font-size: 20px; } }
.card-tag { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.35; }
.card-opts { margin: auto 0 0; padding-top: 6px; color: var(--muted); font-size: var(--fs-small); font-weight: 600; }

/* kraft price tag, bottom-right of the image: left edge cut to a point with a punched hole */
.price-tag {
  position: absolute; right: 8px; bottom: 10px; z-index: 1; display: inline-flex; align-items: baseline; gap: 4px;
  padding: 5px 10px 5px 22px; background: var(--kraft); color: var(--walnut); font: 700 15px/1.1 var(--head);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.price-tag::before { content: ''; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--offwhite); }
.price-tag .from { font: 600 13px/1 var(--body); }
@media (min-width: 1100px) { .price-tag { font-size: 18px; right: 10px; bottom: 12px; } }

/* wood card (no photo yet) */
.wood-card { position: relative; width: 100%; height: 100%; }
.wood-card > svg { width: 100%; height: 100%; }
.wood-card .wc-lid { position: absolute; left: 50%; top: 50%; width: 40%; max-width: 150px; height: auto; transform: translate(-50%, -50%); }
.soon-label { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 4px; background: var(--offwhite); color: var(--walnut); font: 700 13px/1.2 var(--body); }

/* dashed "Request a quote" card that fills an empty grid cell */
.card.quote-card { border: 2px dashed var(--muted); background: transparent; justify-content: center; align-items: center; text-align: center; padding: var(--s2); min-height: 180px; font-weight: 700; color: var(--rust-deep); text-decoration: underline; }
.card.quote-card:hover { color: var(--walnut); box-shadow: none; }

.signature { width: 170px; height: auto; color: var(--walnut); margin: 8px 0 0; }

/* ---------- custom band ---------- */
.band { background: var(--walnut); color: #f4ece0; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--kraft); }
.band .muted { color: #d9cbb6; }
.band .btn.ghost { color: #fff; border-color: #fff; }
.band .btn.ghost:hover { background: #fff; color: var(--walnut); }
.band-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .band-grid { grid-template-columns: 1.4fr 1fr; } .band-grid .btn-row { justify-content: flex-end; } }

/* ---------- product page: gallery 7/12, buy box 5/12 on desktop ---------- */
.product { display: grid; gap: var(--s3); padding: var(--s1) 0 var(--s6); grid-template-areas: 'gallery' 'buy' 'info'; }
.gallery { grid-area: gallery; min-width: 0; }
.buy { grid-area: buy; min-width: 0; }
.info { grid-area: info; min-width: 0; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: 'gallery buy' 'info info'; column-gap: var(--s6); row-gap: var(--s6); }
  .gallery { align-self: start; display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
  .gallery .gallery-main { grid-column: 2; grid-row: 1; }
  .gallery .thumbs { grid-column: 1; grid-row: 1; flex-direction: column; margin: 0; overflow: visible; }
  .gallery:has(.thumbs:empty) { grid-template-columns: 1fr; }
  .gallery:has(.thumbs:empty) .gallery-main { grid-column: 1; }
}
/* The frame takes the shape of the choice's first photo, so the page doesn't jump between photos. Nothing is cropped: a photo of another shape gets the stone background beside it. */
.gallery-main { background: var(--stone); border-radius: var(--radius); overflow: hidden; aspect-ratio: var(--photo-ratio, 4 / 3); max-height: calc(100vh - 140px); width: 100%; border: 1px solid var(--line); }
@media (min-width: 900px) { .gallery-main { aspect-ratio: var(--photo-ratio, 1 / 1); } }
.gallery-main > img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.thumbs:empty { display: none; }
.thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--stone); cursor: pointer; opacity: 0.8; }
.thumbs button[aria-current='true'] { border-color: var(--walnut); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.buy h1 { font-size: 30px; margin-bottom: var(--s1); }
@media (min-width: 1100px) { .buy h1 { font-size: 40px; } }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 4px; }
.price { font: 700 26px/1.2 var(--body); color: var(--walnut); }
@media (min-width: 1100px) { .price { font-size: 30px; } }
.price-in { font-size: var(--fs-small); color: var(--muted); }
.promise-line { margin: 0 0 var(--s3); font-size: 16px; color: var(--muted); }
.buy-form { display: grid; gap: var(--s3); }
.opt-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt-group legend { padding: 0; margin-bottom: var(--s1); font-weight: 700; }
.opt-help { margin: 0 0 12px; font-size: var(--fs-small); color: var(--muted); }
.pill { min-height: var(--tap); padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--offwhite); color: var(--walnut); font: 600 var(--fs-small) var(--body); cursor: pointer; }
.pill[aria-pressed='true'] { background: #fff; border: 2px solid var(--walnut); padding: 0 15px; }
.qty-row { display: flex; align-items: center; gap: var(--s2); }
.qty-label { font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--muted); border-radius: var(--radius-sm); background: var(--offwhite); }
.qty button { width: var(--tap); height: var(--tap); border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--walnut); }
.qty button:disabled { color: var(--muted); opacity: 0.5; cursor: default; }
.qty input { width: 44px; height: var(--tap); border: 0; text-align: center; font: 700 var(--fs-body) var(--body); color: var(--walnut); background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.btn.add-btn { min-height: 52px; font-size: 18px; }
.buy-form .text-link { justify-self: center; margin-top: -12px; }
.buy-form .secure-note { margin-top: -20px; }
.added { color: var(--ok); font-weight: 600; margin: 0; }
.added:empty { display: none; }
.buy .form-error { margin: 0; }
.buy-info { margin-top: var(--s3); background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s1) var(--s2); }
.buy-info p { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 10px 0; font-size: var(--fs-small); }
.buy-info p + p { border-top: 1px solid var(--line); }
.buy-info svg { flex: none; width: 24px; height: 24px; color: var(--rust-deep); }
.buy-info .holiday-row { font-weight: 700; color: var(--rust-deep); }
.also { margin: var(--s2) 0 0; }
.coming-soon + .buy-info { margin-top: 0; }

/* details: collapsible rows on phone, a 2-column grid on desktop */
.info { border-top: 1px solid var(--line); }
.info-block { border-bottom: 1px solid var(--line); }
.info-block summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; }
.info-block summary::-webkit-details-marker { display: none; }
.info-block summary h2 { font-size: 19px; margin: 0; }
.info-block summary::after { content: '+'; font: 400 26px/1 var(--body); color: var(--rust-deep); }
.info-block[open] summary::after { content: '–'; }
.info-body { padding: 0 0 var(--s2); }
.info-body p:last-child, .info-body ul:last-child { margin-bottom: 0; }
.info-body ul { margin: 0 0 8px; padding-left: 1.2em; }
.info-body li { margin: 3px 0; }
@media (min-width: 900px) {
  .info { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s6); align-items: start; }
  .info-block { border: 0; border-top: 1px solid var(--line); padding-top: 4px; }
  .info-block summary { pointer-events: none; }
  .info-block summary::after { display: none; }
  .info .note { grid-column: 1 / -1; }
}
.provenance { font-style: italic; }
.note { font-size: var(--fs-small); color: var(--muted); border-left: 3px solid var(--kraft); padding-left: 12px; margin-top: var(--s3); }

/* phone sticky bar: price, option and Add to cart once the main button scrolls away */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--offwhite); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(59, 42, 32, 0.08); }
.sb-text { display: grid; min-width: 0; }
.sb-price { font-weight: 700; font-size: 20px; }
.sb-opt { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .sticky-buy { display: none !important; } }

/* ---------- cart: items 7/12, summary 5/12 (sticky) on desktop ---------- */
.cart-head .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: var(--s2); }
.cart-head .crumbs { grid-column: 1 / -1; }
.cart-head h1 { font-size: 32px; }
@media (min-width: 1100px) { .cart-head h1 { font-size: 44px; } }
.cart-items { margin: 0 0 6px; font-size: var(--fs-small); color: var(--muted); }
.cart-page { padding: 0 0 var(--section); }
.cart-layout { display: grid; gap: var(--s4); }
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: start; }
  .cart-layout .summary { position: sticky; top: 104px; }
}
.cart-lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: var(--s2) 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line .thumb { width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--stone); }
.cart-line .thumb img, .cart-line .thumb svg { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1100px) { .cart-line { grid-template-columns: 110px minmax(0, 1fr) auto; gap: var(--s3); } .cart-line .thumb { width: 110px; height: 110px; } }
.cart-line h2 { font-size: 19px; margin: 0 0 2px; }
.cart-line h2 a { color: var(--walnut); text-decoration: none; }
.cart-line h2 a:hover { color: var(--rust-deep); text-decoration: underline; }
.cart-line .opt { font-size: var(--fs-small); color: var(--muted); margin: 0 0 4px; }
.cart-line .free-tin { font-size: var(--fs-small); font-weight: 600; color: var(--walnut); margin: 0 0 4px; }
.cart-line .line-total { font-weight: 700; text-align: right; }
.line-controls { display: flex; gap: var(--s1) var(--s2); align-items: center; flex-wrap: wrap; margin-top: var(--s1); }
.remove-btn { min-height: var(--tap); padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--rust-deep); font: 600 var(--fs-small) var(--body); cursor: pointer; }
.remove-btn:hover { border-color: var(--rust-deep); }
.cart-facts { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s1); font-size: var(--fs-small); }
.summary { background: var(--offwhite); border: 1px solid var(--line); border-radius: 12px; padding: var(--s3); }
.summary h2 { font-size: 22px; }
.sum-row { display: flex; justify-content: space-between; gap: var(--s2); padding: 6px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: var(--s1); padding-top: 12px; font-weight: 700; font-size: 19px; }
.sum-note { font-size: var(--fs-small); color: var(--muted); margin: var(--s1) 0 0; }
.btn.checkout-btn { min-height: 52px; margin-top: var(--s2); font-size: 18px; }
.btn.checkout-btn svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .btn.checkout-btn { min-height: 56px; } }
.checkout-help { font-size: var(--fs-small); color: var(--muted); margin: 12px 0 0; }
.keep { margin: var(--s1) 0 0; }
.keep a { display: inline-flex; align-items: center; min-height: var(--tap); }
.checkout-error, .buy .form-error { margin: 12px 0 0; padding: 12px 14px; border: 2px solid var(--rust-deep); border-radius: var(--radius-sm); background: var(--offwhite); color: var(--walnut); font-weight: 600; font-size: var(--fs-small); }
.form-error { color: var(--rust-deep); font-weight: 600; margin: 12px 0 0; }
.empty { text-align: center; padding: var(--s6) 0; }
.empty .btn { margin: var(--s1) 0; }
.cart-note { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.cart-page + * { margin-top: 0; }
body:has(#cart-sticky:not([hidden])) .site-footer, body:has(#sticky-buy:not([hidden])) .site-footer { padding-bottom: 96px; }

/* ---------- forms: 48 px fields, labels above, errors under the field ---------- */
.form { display: grid; gap: 20px; }
.form .row2 { display: grid; gap: 20px; }
@media (min-width: 900px) { .form .row2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .req { font-weight: 400; color: var(--muted); }
.field-hint { margin: -2px 0 8px; font-size: var(--fs-small); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--muted); border-radius: var(--radius-sm);
  background: var(--offwhite); color: var(--walnut); font: 400 17px/1.4 var(--body);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--walnut); outline-offset: 2px; }
.field [aria-invalid='true'] { border: 2px solid var(--rust-deep); }
.field-error { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; color: var(--rust-deep); font-weight: 600; font-size: var(--fs-small); }
.field-error svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.hp { position: absolute; left: -5000px; }
.form-foot { display: grid; gap: var(--s1); }
.form-foot .btn { width: 100%; }
@media (min-width: 900px) { .form-foot .btn { width: auto; justify-self: start; } }
.reply-time { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.form-alert { padding: 12px 14px; border: 2px solid var(--rust-deep); border-radius: var(--radius-sm); background: var(--offwhite); font-weight: 600; font-size: var(--fs-small); }
.form-done { background: var(--offwhite); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: var(--s3); }
.form-done h2 { font-size: 24px; margin: 0 0 var(--s1); }
.form-done p:last-child { margin: 0; }
.form-page { padding: 0 0 var(--section); }
.contact-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.5fr; gap: var(--s8); } .contact-grid .form-main:first-child { order: 2; } }
.how-it-works { margin-bottom: var(--s3); }
.how-it-works h2 { font-size: 19px; margin: 0 0 var(--s1); }
.how-it-works ol { margin: 0; padding-left: 1.2em; }
.contact-card { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.contact-card p { margin: 0 0 14px; }
.contact-card a.big { font: 700 21px/1.2 var(--head); color: var(--walnut); text-decoration: none; }

/* ---------- care / prose ---------- */
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; margin: 14px 0; min-height: 34px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--walnut); color: #fff; font: 700 1rem/34px var(--head); text-align: center;
}
.callout { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.callout h3 { font-size: 1.05rem; margin-bottom: 6px; }
.callout p:last-child { margin: 0; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- footer (walnut): Shop and Help columns, newsletter ---------- */
.site-footer { background: var(--walnut); color: var(--offwhite); padding: var(--s6) 0 var(--s3); font-size: var(--fs-small); }
.site-footer a { color: var(--offwhite); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.1fr 0.8fr 0.8fr 1.5fr; gap: var(--s5); } }
.foot-mark { width: 104px; height: 104px; margin-bottom: var(--s2); }
.foot-brand p { margin: 0 0 var(--s1); }
.site-footer h2 { color: var(--offwhite); font: 700 var(--fs-tiny)/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 var(--s1); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a, .foot-email a, .foot-bottom a { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (min-width: 900px) { .site-footer li a { min-height: 36px; } }
.foot-bottom { border-top: 1px solid rgba(248, 245, 239, 0.2); margin-top: var(--s4); padding-top: var(--s1); display: flex; flex-wrap: wrap; gap: 0 var(--s3); align-items: center; justify-content: space-between; }

/* ---------- email signup ---------- */
.signup label { display: block; font: 700 20px/1.2 var(--head); color: var(--offwhite); margin-bottom: 4px; }
.signup p { margin: 0 0 12px; font-size: var(--fs-small); }
.signup-row { display: flex; gap: var(--s1); flex-wrap: wrap; }
.signup-row input[type='email'] { flex: 1 1 200px; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--muted); font: 400 var(--fs-body) var(--body); color: var(--walnut); background: var(--offwhite); }
.signup-row input[type='email']:focus-visible { outline: 2px solid var(--walnut); outline-offset: 2px; }
.site-footer .signup-row input[type='email']:focus-visible { outline-color: var(--gold); }
.signup .signup-status { margin: 10px 0 0; min-height: 1.3em; font-weight: 600; }
.signup .signup-status:empty { display: none; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--walnut); }
.btn.gold:hover { background: var(--offwhite); border-color: var(--offwhite); color: var(--walnut); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none !important; }
}

/* ---------- product page: related row; gallery stays in view while details scroll ---------- */
.related { padding: 0 0 var(--section); border-top: 1px solid var(--line); }
.related h2 { margin: var(--s5) 0 var(--s3); font-size: var(--fs-section); }

.about-media { display: grid; gap: 16px; align-content: start; }

/* ---------- seasonal deadline line ---------- */
.holiday { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; font-weight: 700; color: var(--rust-deep); }
.holiday svg { flex: none; width: 22px; height: 22px; }
.holiday.center { justify-content: center; margin-top: 12px; color: var(--rust-deep); }
.holiday[hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq details { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 44px 15px 18px; font: 700 1.08rem/1.3 var(--head); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--body); color: var(--rust); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 18px 16px; }

/* text-style button (e.g. "Or buy now with secure checkout") with a full-size tap target */
.text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 4px; background: none; border: 0; color: var(--rust-deep); font: 600 1rem/1.3 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-link:hover { color: var(--walnut); }
.text-link[disabled] { opacity: 0.6; cursor: progress; }
.secure-note { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.callout.allergy h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin: 0 0 8px; }
.callout.allergy h2 svg { width: 24px; height: 24px; color: var(--rust-deep); flex: none; }
.faq-more { margin: 28px 0 10px; font-weight: 600; }

/* ---------- order complete ---------- */
.order-complete h1 { font-size: 32px; }
.oc-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .order-complete h1 { font-size: 44px; } .oc-grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; } }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; }
.timeline .dot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--head); background: var(--kraft); color: var(--walnut); }
.timeline li.done .dot { background: var(--walnut); color: var(--offwhite); }
.timeline li div { padding-top: 5px; }
.order-box { background: var(--offwhite); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.order-box h2 { font-size: 1.25rem; margin: 0 0 10px; }
.order-box ul { list-style: none; margin: 0; padding: 0; }
.order-box li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-box li.total { border-bottom: 0; font-weight: 700; font-size: 1.1rem; }
.order-box li.tin { color: var(--muted); font-size: var(--fs-small); }
.order-box .muted { color: var(--muted); font-size: var(--fs-small); }
.oc-questions { margin: 16px 0; }
.wait-box { margin-top: 8px; background: var(--kraft); border: 0; }
.wait-box h2 { font-size: 1.15rem; margin: 0 0 6px; color: var(--walnut); }
.wait-box p, .wait-box a { color: var(--walnut); }
.wait-box p { margin: 4px 0; }

/* ---------- coming soon (no photo yet = not for sale) ---------- */
.coming-soon { background: var(--offwhite); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 8px; }
.coming-soon .soon-badge { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--walnut); color: var(--offwhite); font-weight: 700; font-size: var(--fs-small); }
.coming-soon .signup { margin: 14px 0; padding: 0; border: 0; max-width: none; }
.coming-soon .signup label { color: var(--walnut); font-size: 1.05rem; }
.coming-soon .signup p { color: var(--muted); }
.coming-soon .signup .signup-status { color: var(--walnut); }
.coming-soon .signup-row input[type='email'] { border-color: var(--muted); }

/* links on the tan callout boxes: deep rust passes 4.5:1 there */
.callout a { color: var(--rust-deep); }
.callout a:hover { color: var(--walnut); }
.page-head.product-head { padding: var(--s1) 0 0; }
.page-head.product-head .crumbs { margin: 0; }

/* ---------- promise strip: one wording, under the header on every shop page ---------- */
[hidden] { display: none !important; }
.promise { background: var(--walnut); color: var(--offwhite); }
.promise ul { list-style: none; margin: 0; padding: 7px 0; display: flex; flex-wrap: wrap; justify-content: center; font: 600 13px/1.35 var(--body); text-align: center; }
.promise li + li::before { content: '·'; color: var(--gold); padding: 0 8px; font-weight: 700; }
.promise li.wide { display: none; }
@media (min-width: 900px) {
  .promise ul { font-size: 15px; padding: 9px 0; }
  .promise li.wide { display: list-item; }
}

/* ---------- shop: chips, grouped grid, info rows ---------- */
.chips { margin-top: var(--s2); }
.chips ul { list-style: none; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 6px; display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; }
.chips ul::-webkit-scrollbar { display: none; }
.chips a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--walnut); border-radius: 999px; color: var(--walnut); text-decoration: none; font-weight: 600; white-space: nowrap; }
.chips a:hover { background: var(--offwhite); }
.chips a[aria-current='page'] { background: var(--walnut); color: var(--offwhite); }
.shop-body { padding: 0 0 var(--section); }
.groups { display: grid; gap: var(--s4); }
.group h2 { font-size: 22px; margin: 0 0 12px; }
.group h2 a { color: var(--walnut); text-decoration: none; }
.group h2 a:hover { color: var(--rust-deep); text-decoration: underline; }
@media (min-width: 720px) { .fill-phone { display: none; } }
@media (min-width: 1100px) {
  .group h2 { font-size: 28px; }
  .groups { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s3); row-gap: var(--s6); }
  .group { grid-column: span var(--n); }
  .group .group-grid { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .shop-body > .wrap > .group-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sort { display: flex; align-items: center; gap: var(--s1); justify-content: flex-end; margin-bottom: var(--s2); }
.sort select { min-height: var(--tap); padding: 0 12px; border: 1px solid var(--muted); border-radius: var(--radius-sm); background: var(--offwhite); font: inherit; color: var(--walnut); }
.info-rows { margin-top: var(--s6); display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-rows details { border-bottom: 1px solid var(--line); }
.info-rows summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; font: 700 19px/1.2 var(--head); list-style: none; }
.info-rows summary::-webkit-details-marker { display: none; }
.info-rows summary::after { content: '+'; font: 400 26px/1 var(--body); color: var(--rust-deep); }
.info-rows details[open] summary::after { content: '–'; }
.info-rows details p { margin: 0 0 var(--s2); }
@media (min-width: 900px) {
  .info-rows { grid-template-columns: repeat(3, 1fr); gap: var(--s3); border: 0; }
  .info-rows details { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px var(--s3) var(--s1); }
  .info-rows summary { pointer-events: none; }
  .info-rows summary::after { display: none; }
}
.add-row { display: grid; gap: var(--s3); }
@media (min-width: 900px) {
  .product { column-gap: var(--s5); }
  .buy h1 { font-size: 34px; }
  .add-row { grid-template-columns: auto 1fr; align-items: center; gap: var(--s2); }
  .add-row .qty-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .buy-form { gap: 20px; }
}

/* ---------- trust pages: about, care, FAQ, policies ---------- */
.about-page, .care-page, .faq-page, .policies-page { padding: 0 0 var(--section); }
.definitions { font-size: var(--fs-small); background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px var(--s2); }
.about-mark { width: 120px; height: 120px; margin: 0 0 var(--s2); }
.about-actions { margin-top: var(--s3); }
.about-media { display: grid; gap: var(--s2); align-content: start; }
.about-board { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.about-board img { width: 100%; height: 100%; object-fit: cover; }
.care-rows { margin: 0 0 var(--s3); border-top: 1px solid var(--line); }
.care-rows > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .care-rows > div { grid-template-columns: 200px 1fr; gap: var(--s2); } }
.care-rows dt { font-weight: 700; }
.care-rows dd { margin: 0; }
.jump ul { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.jump a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--walnut); border-radius: 999px; color: var(--walnut); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.jump a:hover { background: var(--offwhite); }
.faq-group { margin-bottom: var(--s4); scroll-margin-top: 100px; }
.faq-group h2 { font-size: 22px; }
@media (min-width: 900px) { .faq summary { cursor: default; pointer-events: none; } .faq summary::after { display: none; } }
.policy-summary { list-style: none; margin: 0 0 var(--s3); padding: var(--s2) var(--s3); background: var(--offwhite); border: 1px solid var(--line); border-left: 4px solid var(--kraft); border-radius: var(--radius); font-weight: 600; }
.policy-summary li { margin: 4px 0; }


/* every tap target at least 44 × 44 px */
.brand { display: flex; align-items: center; min-height: var(--tap); }
.crumbs a, .site-footer li a, .foot-bottom a, .foot-email a { min-width: var(--tap); }
.group h2 a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* ---------- customer project pages (/p/<code>) ---------- */
.site-header.quiet { position: static; }
.quiet-contact { margin: 0; font-size: var(--fs-small); text-align: right; }
.quiet-contact a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); font-weight: 600; }
.site-footer.quiet { padding: var(--s2) 0; }
.site-footer.quiet .foot-bottom { margin-top: 0; border-top: 0; padding-top: 0; }
.pj-center { padding: var(--s6) var(--gut) var(--section); text-align: center; }
.pj-center .lede { margin-left: auto; margin-right: auto; }
.pj-loading { padding: var(--s6) 0; }
.pj-mark { width: 104px; height: 104px; margin: 0 auto var(--s2); }
.pj-code-form { display: grid; gap: var(--s1); justify-items: center; margin: var(--s3) auto; max-width: 320px; }
.pj-code-form label { font-weight: 700; }
.pj-code-form input { width: 180px; min-height: 60px; text-align: center; font: 700 32px/1 var(--body); letter-spacing: 0.4em; padding: 0 0 0 0.4em; border: 1px solid var(--muted); border-radius: var(--radius-sm); background: var(--offwhite); color: var(--walnut); }
.pj-code-form input:focus-visible { outline: 2px solid var(--walnut); outline-offset: 2px; }
.pj-code-form input[aria-invalid='true'] { border: 2px solid var(--rust-deep); }
.pj-code-form .btn { width: 100%; }

.pj-head { background: var(--offwhite); border-bottom: 1px solid var(--line); padding: var(--s4) 0 var(--s3); }
.pj-head h1 { margin: 0 0 var(--s3); }
.pj-head h1:focus { outline: none; }
.pj-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; font-size: var(--fs-small); }
@media (min-width: 900px) { .pj-steps { grid-template-columns: repeat(6, 1fr); } }
.pj-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pj-steps .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font: 700 13px var(--body); background: var(--offwhite); }
.pj-steps li.done { color: var(--walnut); }
.pj-steps li.done .dot { background: var(--walnut); border-color: var(--walnut); color: var(--offwhite); }
.pj-steps li.now { color: var(--walnut); font-weight: 700; }
.pj-steps li.now .dot { border-color: var(--rust); background: var(--rust); color: #fff; }

.pj-body { padding-bottom: var(--section); }
.pj-section { padding-top: var(--s5); }
.pj-intro { color: var(--muted); max-width: 46em; }
.pj-decision { margin-top: var(--s4); background: var(--kraft); border-radius: var(--radius); padding: var(--s3); }
.pj-decision h2 { font-size: 22px; margin: 0 0 var(--s1); }
.pj-designs { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .pj-designs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pj-designs:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pj-design { display: flex; flex-direction: column; background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pj-design.chosen { border: 2px solid var(--walnut); }
.pj-hero { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.pj-hero img { width: 100%; height: 100%; object-fit: cover; }
.pj-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(59, 42, 32, 0.85); color: var(--offwhite); font: 600 13px var(--body); }
.pj-design-body { padding: var(--s2) var(--s3) var(--s3); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pj-design-body h3 { font-size: 24px; margin: 0 0 4px; }
.pj-design-body > p { margin: 0 0 var(--s1); }
.pj-chosen { color: var(--ok); font-weight: 700; }
.pj-specs { margin: 0 0 var(--s1); display: grid; gap: 0; font-size: var(--fs-small); }
.pj-specs > div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.pj-specs dt { font-weight: 700; }
.pj-specs dd { margin: 0; }
.pj-more summary { cursor: pointer; font-weight: 600; color: var(--rust-deep); min-height: var(--tap); display: flex; align-items: center; }
.pj-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: var(--s1) 0; }
.pj-thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; aspect-ratio: 1; cursor: zoom-in; }
.pj-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pj-actions { display: grid; gap: var(--s1); margin-top: auto; padding-top: var(--s2); }
.pj-actions .btn { width: 100%; }
.pj-size { font-weight: 400; font-size: 14px; opacity: 0.9; margin-left: 4px; }
.pj-older { font-size: var(--fs-small); margin: var(--s1) 0 0; }
.pj-posted { font-size: 14px; margin: 4px 0 0; }

.pj-approval-grid { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .pj-approval-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.pj-summary { margin: 0 0 var(--s2); background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px var(--s2); }
.pj-summary > div { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pj-summary > div:first-child { border-top: 0; }
.pj-summary dt { font-weight: 700; }
.pj-summary dd { margin: 0; }
@media (max-width: 480px) { .pj-summary > div { grid-template-columns: 1fr; gap: 0; } }
.pj-approval-img { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.pj-approval-img img { width: 100%; height: auto; }
.pj-approve { margin-top: var(--s3); display: grid; gap: var(--s1); max-width: 560px; background: var(--offwhite); border: 2px solid var(--walnut); border-radius: var(--radius); padding: var(--s3); }
.pj-approve h3 { margin: 0; }
.pj-approve input:not([type=checkbox]) { min-height: 48px; padding: 10px 14px; border: 1px solid var(--muted); border-radius: var(--radius-sm); background: #fff; font: 400 17px var(--body); color: var(--walnut); }
.pj-approve label { font-weight: 700; }
.pj-check { display: flex; gap: 10px; align-items: center; min-height: var(--tap); }
.pj-check input { width: 24px; height: 24px; accent-color: var(--walnut); }
.pj-check:has(input:disabled) { color: var(--muted); }
.pj-statement { margin: 0 0 var(--s1); padding: var(--s2); border-left: 4px solid var(--kraft); background: #fff; font-size: var(--fs-small); }
.pj-approved { margin-top: var(--s3); padding: var(--s2) var(--s3); border-radius: var(--radius); background: var(--offwhite); border: 1px solid var(--line); border-left: 4px solid var(--ok); }
.pj-approved p { margin: 0 0 4px; }

.pj-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.pj-docs li { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: space-between; background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s2); }
.pj-docs li p { margin: 2px 0 0; }

.pj-thread { display: grid; gap: var(--s1); margin-bottom: var(--s2); max-width: 720px; }
.pj-msg { padding: 10px 14px; border-radius: var(--radius); background: var(--offwhite); border: 1px solid var(--line); }
.pj-msg.customer { background: #fff; margin-left: var(--s4); }
.pj-msg.chris { margin-right: var(--s4); }
.pj-msg p { margin: 0; }
.pj-msg .who { font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.pj-reply { display: grid; gap: var(--s1); max-width: 720px; }
.pj-reply label { font-weight: 700; }
.pj-reply textarea { min-height: 120px; padding: 10px 14px; border: 1px solid var(--muted); border-radius: var(--radius-sm); background: var(--offwhite); font: 400 17px/1.4 var(--body); color: var(--walnut); }
.pj-reply .btn { justify-self: start; }

.pj-lightbox { width: min(1100px, 96vw); max-height: 96vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--offwhite); color: var(--walnut); }
.pj-lightbox::backdrop { background: rgba(28, 20, 15, 0.85); }
.lb-frame { background: #fff; display: grid; }
.lb-frame img { width: 100%; max-height: 76vh; object-fit: contain; }
.pj-lightbox.drawing .lb-frame img { max-height: 80vh; }
.lb-cap { margin: 0; padding: 10px var(--s2); font-size: var(--fs-small); background: var(--offwhite); }
.lb-bar { display: flex; gap: var(--s1); align-items: center; padding: 0 var(--s2) var(--s2); }
.lb-bar .lb-count { margin-right: auto; color: var(--muted); font-size: var(--fs-small); }
.pj-confirm { width: min(520px, 94vw); border: 0; border-radius: var(--radius); padding: var(--s3); background: var(--offwhite); color: var(--walnut); }
.pj-confirm::backdrop { background: rgba(28, 20, 15, 0.6); }
.pj-confirm h2 { font-size: 24px; margin: 0 0 var(--s1); }
.cf-actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.pj-actions .btn { flex-direction: column; gap: 0; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
.pj-actions .pj-size, .pj-docs .pj-size, .pj-approval .pj-size { display: block; margin: 2px 0 0; }
.pj-docs .btn, .pj-approval .btn.ghost { flex-direction: column; gap: 0; line-height: 1.2; }
@media (max-width: 599px) { .quiet-contact .q-word { display: none; } }

/* ---------- "Thanks for your board" (/thanks/ and /thanks/<serial>) ---------- */
.thanks-top { padding: var(--s4) 0 var(--section); }
.thanks-grid, .thanks-lookup-grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .thanks-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); } .thanks-lookup-grid { grid-template-columns: 1.1fr 1fr; gap: var(--s8); } }
.thanks-intro h1 { margin-bottom: var(--s2); }
.thanks-intro .signature { margin-top: var(--s2); }
.piece-card { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.piece-art { position: relative; aspect-ratio: 4 / 3; background: var(--stone); }
.piece-art > img, .piece-art .wood-card, .piece-art .wood-card svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.serial-tag {
  position: absolute; right: 12px; bottom: 14px; padding: 8px 14px 8px 30px; background: var(--kraft); color: var(--walnut);
  font: 700 18px/1 var(--head); clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}
.serial-tag::before { content: ''; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--offwhite); }
.piece-card.pending { display: grid; place-items: center; min-height: 220px; background: var(--offwhite); }
.serial-tag.big { position: static; font-size: 30px; padding: 14px 24px 14px 42px; clip-path: polygon(24px 0, 100% 0, 100% 100%, 24px 100%, 0 50%); }
.serial-tag.big::before { left: 18px; width: 12px; height: 12px; margin-top: -6px; }
.piece-body { padding: var(--s2) var(--s3) var(--s3); }
.piece-body h2 { margin: 0 0 var(--s1); }
.piece-note { font-style: italic; color: var(--muted); }
.piece-facts { margin: 0; }
.piece-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.piece-facts dt { font-weight: 700; }
.piece-facts dd { margin: 0; }
.thanks-bar { background: var(--walnut); color: var(--offwhite); padding: var(--s4) 0; }
.thanks-bar h2 { color: var(--offwhite); margin: 0 0 4px; font-size: 24px; }
.thanks-bar p { margin: 0; }
.thanks-bar-in { display: grid; gap: var(--s2); align-items: center; }
@media (min-width: 900px) { .thanks-bar-in { grid-template-columns: 1fr auto; } }
.thanks-care { padding: var(--section) 0 var(--s4); }
.care-cols { margin: 0 0 var(--s3); display: grid; gap: 0; border-top: 1px solid var(--line); }
.care-cols > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.care-cols dt { font: 700 19px var(--head); margin-bottom: 4px; }
.care-cols dd { margin: 0; }
@media (min-width: 900px) {
  .care-cols { grid-template-columns: repeat(5, 1fr); gap: var(--s3); border: 0; }
  .care-cols.three { grid-template-columns: repeat(3, 1fr); }
  .care-cols > div { border: 0; border-top: 3px solid var(--kraft); padding-top: var(--s2); }
}
.thanks-allergy { display: flex; gap: 10px; align-items: flex-start; background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px var(--s2); }
.thanks-allergy svg { flex: none; width: 22px; height: 22px; color: var(--rust-deep); margin-top: 2px; }
.thanks-extra { display: grid; gap: var(--s3); padding-bottom: var(--s4); }
@media (min-width: 900px) { .thanks-extra { grid-template-columns: 1.4fr 1fr; } }
.show-off { background: var(--kraft); border-radius: var(--radius); padding: var(--s3); }
.show-off h2, .know h2 { font-size: 24px; margin: 0 0 var(--s1); }
.show-off .btn.ghost { border-color: var(--walnut); }
.know p { margin: 0; }
.know a { display: inline-flex; align-items: center; min-height: var(--tap); }
.thanks-another { padding-bottom: var(--section); margin: 0; }
.thanks-another a { display: inline-flex; align-items: center; min-height: var(--tap); }
.lookup { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); display: grid; gap: 4px; }
.lookup label { font-weight: 700; font-size: 19px; }
.lookup-row { display: flex; gap: var(--s1); flex-wrap: wrap; }
.lookup-row input { flex: 1 1 160px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--muted); border-radius: var(--radius-sm); background: #fff; font: 600 20px var(--body); letter-spacing: 0.06em; color: var(--walnut); }
.lookup-row input[aria-invalid='true'] { border: 2px solid var(--rust-deep); }
.lookup .field-error { margin-top: 6px; }

/* ---------- /board-butter/ (address printed on the tins) ---------- */
.page-head.butter-head { padding-bottom: 0; }
.butter-page { padding: var(--s1) 0 var(--section); }
.butter-grid { display: grid; gap: var(--s3); align-items: start; }
@media (min-width: 900px) { .butter-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.butter-art { height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--stone); }
@media (min-width: 900px) { .butter-art { height: auto; aspect-ratio: 1; } }
.butter-art > img, .butter-art .wood-card, .butter-art .wood-card svg { width: 100%; height: 100%; object-fit: cover; }
.butter-buy h1 { margin-bottom: var(--s1); }
.butter-buy .lede { margin-bottom: var(--s3); }
.size-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }
.size-card { display: grid; gap: 4px; align-content: center; justify-items: start; min-height: 84px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--offwhite); color: var(--walnut); cursor: pointer; text-align: left; }
.size-card .size { font: 700 22px var(--head); }
.size-card .size-price { font: 600 18px var(--body); color: var(--muted); }
.size-card[aria-pressed='true'] { background: #fff; border: 2px solid var(--walnut); padding: 11px 15px; }
.butter-buy .promise-line { margin: 0; }
.butter-buy .coming-soon { margin: 0; }
.butter-details { display: grid; gap: var(--s4); padding-top: var(--section); }
@media (min-width: 900px) { .butter-details { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.pair-box { margin-top: var(--s5); }
.pair-box h2 { font-size: 22px; margin: 0 0 4px; }

/* ---------- customer login (/login/) ---------- */
.login-page { padding: 0 0 var(--section); }
.login-form { max-width: 440px; background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.login-form .field input { font-size: 18px; }
.login-form #login-pin { max-width: 160px; letter-spacing: 0.3em; }
.login-form .btn { width: 100%; }
.login-help { margin-top: var(--s2); }
.login-mine { margin-bottom: var(--s4); }
.login-mine h2 { font-size: 24px; }
.login-list { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; gap: var(--s1); max-width: 560px; }
.login-list a { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); min-height: 64px; padding: 12px var(--s2); background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); color: var(--walnut); text-decoration: none; }
.login-list a:hover { border-color: var(--walnut); }
.login-list strong { font: 700 20px var(--head); }
.login-list span { color: var(--muted); font-size: var(--fs-small); }
.login-list a::after { content: '→'; color: var(--rust-deep); }
@media (min-width: 900px) { .nav-top.nav-login { font-size: var(--fs-small); border: 1px solid var(--walnut); border-radius: 999px; padding: 0 14px; } .nav-top.nav-login:hover { background: var(--offwhite); } }
@media (min-width: 900px) and (max-width: 1099px) { .nav-top.nav-login { padding: 0 10px; } }

/* Chris's phone page (/workshop/) */
.workshop { padding: var(--s3) 0 var(--s5); }
.workshop h1 { font-size: var(--fs-section); margin: 0; }
.workshop [hidden] { display: none !important; }
.save-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); margin-bottom: var(--s2); padding: 8px 14px; border-radius: var(--radius-sm); background: var(--offwhite); border-left: 6px solid var(--muted); font-weight: 700; }
.save-status.ok { border-left-color: var(--ok); }
.save-status.warn { border-left-color: var(--rust-deep); }
.save-status .btn { min-height: 38px; padding: 4px 12px; flex: none; }
.board-form { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s2); gap: 14px; }
.cut-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cut-choice input { position: absolute; opacity: 0; }
.cut-choice span { display: flex; align-items: center; justify-content: center; min-height: var(--tap); border: 1px solid var(--walnut); border-radius: var(--radius-sm); font-weight: 600; }
.cut-choice input:checked + span { background: var(--walnut); color: #fff; }
.cut-choice input:focus-visible + span { outline: 2px solid var(--walnut); outline-offset: 2px; }
.size-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.board-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.board-form input[type='range'] { width: 100%; min-height: var(--tap); padding: 0; border: 0; background: none; accent-color: var(--rust); }
.board-waiting { margin-top: var(--s3); }
.board-waiting h2 { font-size: var(--fs-card); margin: 0; }
.board-waiting p { margin: 4px 0 8px; }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px; background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.board-main { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.board-note { color: var(--rust-deep); font-weight: 600; font-size: var(--fs-small); }
.board-state { font-weight: 700; font-size: var(--fs-small); }
.board-state.saved { color: var(--ok); }
.board-state.waiting, .board-state.error { color: var(--rust-deep); }
.board-actions { grid-column: 1 / -1; display: flex; gap: var(--s2); }
.text-btn { min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--rust-deep); font: inherit; font-weight: 600; text-decoration: underline; }
.workshop-foot { display: flex; gap: var(--s2); margin-top: var(--s3); }

/* the product description sits under the price; on a phone a tall photo stays short enough for it to show */
.product-overview { margin: 0 0 var(--s2); }
.product-overview p { margin: 0 0 var(--s1); }
.product-overview ul { margin: 0 0 var(--s1); padding-left: 1.2em; }
@media (max-width: 899px) { .gallery-main { max-height: 42vh; } }
.no-photo { display: grid; place-items: center; height: 100%; margin: 0; color: var(--muted); font-weight: 600; }

/* phone page: a photo of the board */
.board-photo { display: grid; gap: 8px; }
.photo-label { font-weight: 600; }
.photo-btn { min-height: var(--tap); }
.board-photo { position: relative; }
.workshop .photo-input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; }
.photo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-list:empty { display: none; }
.photo-list li { position: relative; display: grid; gap: 4px; }
.photo-list img { width: 100%; height: 110px; object-fit: contain; background: var(--stone); border-radius: var(--radius-sm); }
.photo-main { position: absolute; top: 4px; left: 4px; padding: 0 6px; border-radius: 4px; background: var(--walnut); color: #fff; font-size: var(--fs-small); font-weight: 600; }
.photo-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.photo-tools button { min-height: var(--tap); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--stone); color: var(--walnut); font: inherit; font-weight: 700; }
.photo-tools button:disabled { opacity: 0.4; }
.crop { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; background: #111; }
.crop-stage { position: relative; line-height: 0; overflow: hidden; touch-action: none; user-select: none; }
.crop-stage img { display: block; max-width: calc(100vw - 24px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
.crop-box { position: absolute; box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6); cursor: move; touch-action: none; }
.crop-box span { position: absolute; width: 44px; height: 44px; }
.crop-box span::after { content: ''; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; background: #fff; border-radius: 50%; }
.crop-box [data-corner='nw'] { left: -22px; top: -22px; }
.crop-box [data-corner='ne'] { right: -22px; top: -22px; }
.crop-box [data-corner='sw'] { left: -22px; bottom: -22px; }
.crop-box [data-corner='se'] { right: -22px; bottom: -22px; }
.crop-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 420px; }
.crop-actions .btn { min-width: 0; min-height: var(--tap); padding: 0 4px; font-size: var(--fs-small); }
.crop-actions .btn.ghost { color: #fff; border-color: #fff; }
.crm-note { margin: 0 0 var(--s2); }
.work-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: var(--s2); }
.work-tabs .btn { min-height: var(--tap); }
.inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inv-list button { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--offwhite); color: var(--walnut); font: inherit; text-align: left; }
.inv-list img, .inv-nophoto { display: block; width: 72px; height: 72px; object-fit: contain; background: var(--stone); border-radius: var(--radius-sm); }
.inv-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
#inv-detail { position: relative; }
.inv-photos { display: grid; gap: 12px; margin: var(--s1) 0 var(--s2); }
.inv-photos img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: var(--stone); border-radius: var(--radius-sm); }
.inv-photos figure { margin: 0; }
.photo-wait { display: grid; place-items: center; min-height: 180px; background: var(--stone); border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; }
.inv-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: var(--s2) 0 0; }
.inv-facts dt { font-weight: 700; }
.inv-facts dd { margin: 0; overflow-wrap: anywhere; }
.board-tag { display: grid; justify-items: center; gap: 2px; margin-bottom: var(--s2); padding: 12px; border: 2px solid var(--walnut); border-radius: var(--radius-sm); background: #fff; scroll-margin-top: 90px; }
.board-tag strong { font-size: 44px; line-height: 1.1; letter-spacing: 0.02em; }
.board-tag strong.waiting { font-size: 22px; color: var(--rust-deep); }

/* customer account */
.login-page h2 { margin-top: var(--s3); }
.login-sent { font-weight: 600; }
.account-order { margin-bottom: var(--s2); padding: var(--s2); background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.account-order header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.account-order h2 { margin: 0; font-size: var(--fs-card); }
.account-status { font-weight: 700; }
.account-return ul { margin: 8px 0; padding-left: 1.2em; }
.account-items { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 14px; }
.account-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.account-item > div { grid-column: 2; min-width: 0; }
.account-item img { grid-column: 1; width: 96px; height: 96px; object-fit: contain; background: var(--stone); border-radius: var(--radius-sm); }
.account-option { display: block; color: var(--muted); }
.account-item p { grid-column: 1 / -1; margin: 0; font-size: var(--fs-small); }
.account-return { margin: 12px 0; padding: 12px; background: var(--stone); border-radius: var(--radius-sm); }
.account-return p { margin: 4px 0 0; }
.account-return-form { margin-top: var(--s2); }
.account-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); }
.account-choice { display: block; padding: 8px 0; }
.account-actions { margin-top: 12px; }
.account-actions label, .account-return-form .field label { display: grid; gap: 6px; }
.account-butter { margin-top: var(--s2); padding: var(--s2); border-top: 1px solid var(--line); }
.account-butter h2 { margin: 0 0 4px; font-size: var(--fs-card); }
.account-butter p { margin: 0 0 12px; }
.account-butter img { display: block; width: 96px; height: 96px; object-fit: contain; margin: 0 0 12px; background: var(--stone); border-radius: var(--radius-sm); }

/* Product photo zoom (Nov 18, 2026): a magnified pane beside the photo on a computer, and a full-screen viewer. */
.gallery { position: relative; }
.gallery-main { position: relative; }
.zoom-lens { position: absolute; pointer-events: none; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.18); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.zoom-pane { position: absolute; top: 0; left: calc(100% + 24px); width: min(560px, 46vw); aspect-ratio: 1 / 1; z-index: 20;
  background-color: #fff; background-repeat: no-repeat; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); pointer-events: none; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,16,12,.94); }
.lightbox::backdrop { background: rgba(20,16,12,.94); }
.lightbox-stage { position: absolute; inset: 0 0 40px 0; overflow: auto; display: flex; align-items: center; justify-content: center; cursor: zoom-in; touch-action: pan-x pan-y pinch-zoom; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-stage.zoomed { display: block; cursor: zoom-out; }
.lightbox-stage.zoomed img { max-width: none; max-height: none; width: 250%; }
.lightbox-close { position: absolute; top: 12px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 28px; line-height: 1; background: rgba(255,255,255,.9); color: #222; cursor: pointer; }
.lightbox-hint { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; }
@media (max-width: 899px) { .zoom-pane, .zoom-lens { display: none; } }

/* Home hero (Nov 18, 2026): slot 1's main photo fills the hero, with its name and price, and links to it. */
.hero-product { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.hero-canopy-product { object-position: 50% 50%; }
.hero-product-tag { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px;
  background: rgba(255, 252, 245, 0.94); color: #2b2118; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); max-width: calc(100% - 24px); }
.hero-product-tag .pt-name { font-weight: 600; line-height: 1.25; }
.hero-product-tag .pt-price { font-size: 0.95em; }
@media (min-width: 900px) { .hero-product-tag { left: 18px; bottom: 18px; } }
/* On a phone, the product needs more height than the tree strip, and the logo tag would cover its name. */
@media (max-width: 899px) {
  .hero-photo:has(.hero-product) { height: 320px; }
  .hero-photo:has(.hero-product) .hang-tag { display: none; }
}
