/*
 * Shop design system: Espresso & Rose (Rene, 2026-10-25). One warm page ground, espresso for the deep panel and
 * footer, one dusty-rose action, hairline rules between sections, square buttons, clean images with quiet labels.
 * Tokens come from brand.css. No external fonts or scripts (CSP 'self'); fonts are self-hosted OFL files in
 * /static/fonts: Young Serif for display, Albert Sans for text (latin and latin-ext subsets).
 */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/youngserif-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/youngserif-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albertsans-var-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albertsans-var-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albertsans-italic-var-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albertsans-italic-var-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base refinements ---------- */
body { background: var(--paper); font-size: 1.0625rem; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.2rem); line-height: 1.15; }
h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.005em; }
a { color: var(--link); }
a:hover { color: var(--ink); }
.lead { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem); color: var(--ink-muted); }
.eyebrow { color: var(--accent); letter-spacing: 0.12em; }
.serif { font-family: var(--font-display); }
.italic { font-style: italic; }
h1 .italic, h2 .italic { font-style: normal; }  /* Young Serif has no italic; never fake one */
.badge { border-radius: var(--radius-small); }
::selection { background: var(--brand-soft); }

.site-header { background: var(--paper); border-bottom: 1px solid var(--border); }
.brand { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: 0; }
.brand-mark {
  width: 1.9rem; height: 1.9rem; border-radius: 0; box-shadow: none;
  background: url("../brand/mark.svg") center / contain no-repeat;
}
.site-footer { background: var(--brand); border-top: 0; color: var(--on-deep-muted); }
.site-footer .muted, .site-footer .footer-links a, .site-footer .footer-support a { color: var(--on-deep-muted); }
.site-footer .footer-links a { text-decoration: none; }
.site-footer .footer-links a:hover, .site-footer .footer-support a:hover { color: var(--on-deep); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--on-deep); }

.button { border-radius: var(--radius-button); padding-left: 1.35rem; padding-right: 1.35rem; font-weight: 600; }
.button-large { padding: 0.85rem 1.7rem; font-size: 1.08rem; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.button-quiet:hover { border-color: var(--ink); color: var(--ink); }

.card { background: var(--surface); border-color: var(--border); box-shadow: 0 1px 0 rgb(60 45 30 / 4%); }

/* ---------- Artwork images and their labels ----------
 * The home page's language everywhere: clean images with a small radius, no gallery frame, mat or drop shadow,
 * and a quiet two-line label (what it is, then the detail). The sand background only shows while an image loads
 * or behind a "Painting…" placeholder. */
.frame { display: block; margin: 0; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--sand); }
.frame img { display: block; width: 100%; height: auto; }
.frame--none { border-radius: 4px; background: none; }

.placard { margin: 0.6rem 0 0; display: grid; gap: 0.1rem; font-size: 0.95rem; line-height: 1.35; }
.placard-title { font-weight: 600; color: var(--ink); }
.placard-meta { color: var(--ink-muted); font-size: 0.875rem; }
.placard--center { text-align: center; }

/* ---------- Home page (2026-10-24 mockup, round 4) ----------
 * The Farmer's Dog's warmth with Storyworth's keepsake calm. Our product carries the page: a framed example in a
 * real room, one photo becoming four portraits, the keepsakes, the memorial print. Paper, one sand band, the deep
 * green at the top and bottom; rhythm comes from space and type rather than colour changes. Phone first. */
.home { --home-gap: clamp(3.5rem, 10vw, 7rem); }
.button-cta {
  background: var(--cta); color: var(--cta-ink); border-radius: var(--radius-button); min-height: 3.25rem;
  padding: 0.75rem 1.9rem; font-size: 1.125rem; font-weight: 600;
}
.button-cta:hover { background: var(--cta-strong); color: var(--cta-ink); }

.home h2 { font-size: clamp(2rem, 1.55rem + 1.8vw, 3rem); line-height: 1.08; color: var(--brand); margin-bottom: 0.75rem; }
.home h3 { font-size: 1.35rem; }
.home-lead { font-size: clamp(1.125rem, 1.07rem + 0.25vw, 1.3rem); line-height: 1.5; color: var(--ink-muted); }
.home-flashes { padding-top: 1rem; }

/* Hero: the framed example on top (phone) or beside (wide), the promise on deep green */
.home-hero { display: grid; background: var(--brand); color: var(--on-deep); }
.home-hero-media { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.home-hero-photo { display: block; width: 100%; height: clamp(17rem, 82vw, 26rem); object-fit: cover; object-position: 45% 45%; }
.home-hero-media figcaption { padding: 0.65rem 1.25rem 0; font-size: 0.875rem; color: var(--on-deep-muted); }
.home-hero-panel { padding: 1.4rem 0 2.6rem; }
.home-hero-copy { padding: 0 1.25rem; max-width: 38rem; }
.home-hero h1 { color: var(--on-deep); font-size: clamp(2.35rem, 1.5rem + 3.6vw, 3.6rem); line-height: 1.04; margin: 0 0 1.1rem; }
.hero-line { display: block; }
.hero-sub { display: block; font-family: var(--font-display); margin-top: 0.3em; font-size: 0.56em; line-height: 1.15; letter-spacing: 0; color: var(--on-deep-muted); }
.home-hero .home-lead { color: var(--on-deep-muted); margin: 0 0 1.75rem; max-width: 30rem; }
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; }
.home-hero-alt { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-deep); font-weight: 600; text-underline-offset: 0.25em; }
.home-hero-alt:hover { color: var(--on-deep); text-decoration-thickness: 2px; }
.home-hero :focus-visible { outline-color: var(--on-deep); }
.home-promises { list-style: none; padding: 1.1rem 0 0; margin: 1.9rem 0 0; border-top: 1px solid var(--on-deep-rule); font-size: 1rem; line-height: 1.85; color: var(--on-deep-muted); }
.home-promises a { color: var(--on-deep); text-underline-offset: 0.2em; }
@media (max-width: 22rem) { .button-cta { width: 100%; } }
@media (min-width: 56rem) {
  .home-hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); height: min(44rem, calc(100vh - 6.5rem)); min-height: 34rem; }
  .home-hero-media { grid-column: 2; grid-row: 1; min-height: 0; }
  .home-hero-media picture, .home-hero-photo { min-height: 0; height: 100%; }
  .home-hero-photo { object-position: 40% 50%; }
  .home-hero-media figcaption { padding: 0.75rem 1.5rem 0.9rem; }
  .home-hero-panel { grid-column: 1; grid-row: 1; display: flex; align-items: center; padding: 3rem 0; }
  .home-hero-copy { max-width: none; padding: 0 3rem 0 max(1.5rem, calc((100vw - var(--container)) / 2 + 1.5rem)); }
}

/* Sections: paper by default, one sand band; rhythm from space */
.home-section { padding: var(--home-gap) 0; }
.home-section + .home-section { padding-top: 0; }
.home-section + .home-section > .container { border-top: 1px solid var(--border); padding-top: var(--home-gap); }
.home-head { max-width: 40rem; margin: 0 0 clamp(2rem, 5vw, 3rem); }
.home-head p { margin: 0; font-size: 1.125rem; color: var(--ink-muted); }
.home-actions { margin: clamp(2rem, 5vw, 2.75rem) 0 0; }

/* One photo becomes four portraits: the transformation is the product */
.transform { display: grid; gap: 0.75rem 1rem; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.transform img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.transform-from { grid-column: 1 / -1; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: center; margin-bottom: 0.5rem; }
.transform-from img { aspect-ratio: 1; }
.transform-from > .transform-label, .transform-note .transform-label { margin: 0; }
.transform-sub { margin: 0.2rem 0 0.15rem; font-size: 0.9rem; line-height: 1.4; color: var(--ink-muted); }
.transform-to { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; list-style: none; padding: 0; margin: 0; }
.transform-label { margin: 0.55rem 0 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.transform figcaption { grid-column: 1 / -1; margin: 1rem 0 0; max-width: 40rem; }
@media (min-width: 52rem) {
  /* The photo column is exactly one style column wide, so every example in the row is the same size. */
  .transform { --styles: 4; grid-template-columns: calc((100% - 3rem - (var(--styles) - 1) * 1rem) / (var(--styles) + 1)) minmax(0, 1fr); align-items: start; gap: 0 3rem; }
  .transform:has(> .transform-cols-3) { --styles: 3; }
  .transform:has(> .transform-cols-5) { --styles: 5; }
  .transform-from { grid-column: 1; display: block; margin: 0; }
  .transform-from img { aspect-ratio: 4 / 5; }
  .transform-from > .transform-label, .transform-note .transform-label { margin: 0.55rem 0 0; }
  .transform-to { grid-column: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .transform figcaption { grid-column: 1 / -1; }
}

.steps { display: grid; gap: 1.75rem; list-style: none; padding: 0; margin: clamp(2.75rem, 7vw, 4rem) 0 0; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.75rem; align-content: start; }
.steps li::before {
  content: counter(step); grid-row: 1 / span 2; font-family: var(--font-display); font-size: 1.9rem; line-height: 1;
  color: var(--accent);
}
.steps h3 { margin: 0.2rem 0 0.4rem; }
.steps p { margin: 0; color: var(--ink-muted); }

/* Something to hold: one consistent set, our example art on each product */
.keepsakes { display: grid; gap: 2rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 56rem) { .keepsakes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.75rem; } }
.keepsake { display: grid; align-content: start; color: var(--ink); text-decoration: none; }
.keepsake img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; margin-bottom: 0.85rem; }
.keepsake h3 { margin: 0 0 0.25rem; }
.keepsake p { margin: 0; font-size: 1rem; color: var(--ink-muted); }
.keepsake .keepsake-price { margin-top: 0.4rem; color: var(--ink); }
.keepsake:hover { color: var(--ink); }
.keepsake:hover h3 { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }
.keepsake .price--from::before { content: "From "; }
.keep-more { display: grid; gap: 0.6rem; max-width: 46rem; margin: clamp(2.25rem, 6vw, 3rem) 0 0; padding-top: 1.5rem; border-top: 1px solid rgb(35 32 28 / 14%); }
.keep-more p { margin: 0; color: var(--ink-muted); }
.keep-more strong { color: var(--ink); font-weight: 650; }
.keep-more a { color: var(--link); text-underline-offset: 0.2em; }
.home-links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; list-style: none; padding: 1rem 0 0; margin: clamp(2.25rem, 6vw, 3rem) 0 0; border-top: 1px solid var(--border); }
.home-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); text-underline-offset: 0.2em; }
.home-links a:hover { color: var(--ink); }

.dates { margin: clamp(2rem, 5vw, 2.75rem) 0 0; padding: clamp(1rem, 3vw, 1.25rem) clamp(1.25rem, 4vw, 1.75rem); border: 1px solid var(--border); }
.dates h3 { margin: 0 0 0.35rem; font-size: 1.3rem; color: var(--brand); }
.dates-list { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.dates-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.55rem 0 0; font-size: 1rem; }
.dates-item { min-width: 0; }
.dates-list .deadline { padding: 0; background: none; font-size: 1rem; white-space: nowrap; }
.dates-list .deadline::before { width: 0.4rem; height: 0.4rem; }
@media (min-width: 40rem) {
  /* One row: the heading, then the one date it is about */
  .dates { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2.5rem; }
  .dates h3 { margin: 0; }
  .dates-list li { padding: 0; gap: 1.5rem; }
}

/* Occasions: short moments in a grid; memorial last, across the row, in the memorial dusk */
.home-memorial { --brand: var(--dusk); --brand-strong: #2a2325; }
.occasions { display: grid; gap: 0 2.5rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 40rem) { .occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56rem) { .occasions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.occasions li { padding: 1.1rem 0 1.5rem; border-top: 1px solid var(--border); }
.occasions h3 { margin: 0 0 0.35rem; }
.occasions p { margin: 0; color: var(--ink-muted); }
.occasions p + p { margin-top: 0.6rem; }
.occasions a { color: var(--link); text-underline-offset: 0.2em; }
.occasions .occasion-link { color: var(--brand); font-weight: 600; }
.occasion-memorial { grid-column: 1 / -1; }
.occasion-memorial > * { max-width: 44rem; }
.occasions .occasion-link { display: inline-flex; align-items: center; min-height: 44px; }

/* FAQ */
.home-faq { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .home-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4.5rem; align-items: start; } }
.home-faq h2 { margin: 0; }
.faq-more { margin: 1.25rem 0 0; }

/* Closing */
.home-final .container { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .home-final .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; } }
.final-figure { margin: 0; }
.final-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.home-credit { margin: 0.65rem 0 0; font-size: 0.875rem; color: var(--ink-muted); }
.home-final h2 { font-size: clamp(2.2rem, 1.7rem + 2.2vw, 3.4rem); }
.home-final .home-lead { margin: 0 0 1.75rem; max-width: 30rem; }
.final-copy p:last-child { margin: 0; }

.lines { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.line-card { display: grid; gap: 0.75rem; align-content: start; text-decoration: none; color: var(--ink); }
.line-card .frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.line-card:hover { color: var(--ink); }
.line-card:hover .frame { transform: translateY(-3px); }
.line-card .frame { transition: transform 0.2s ease; }
.line-card h3 { margin: 0.25rem 0 0; }
.line-card p { margin: 0; color: var(--ink-muted); }
.lines--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
@media (min-width: 48rem) { .lines--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lines--four .line-card p { font-size: 0.95rem; }

.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--border); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.3rem; border: solid var(--brand);
  border-width: 0 2px 2px 0; transform: translateY(-0.15rem) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] > summary::after { transform: translateY(0.15rem) rotate(-135deg); }
.faq details p { margin: 0.5rem 0 0; color: var(--ink-muted); }

.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 1rem 0 0; font-size: 0.92rem; color: var(--ink-muted); }
.trust-row li { display: inline-flex; gap: 0.45rem; align-items: center; }
.trust-row li + li::before { content: ""; width: 1px; height: 0.9em; margin-right: 1rem; background: var(--border-strong); flex: none; }

.sample-note { font-size: 0.875rem; color: var(--ink-muted); margin-top: 1rem; }

/* ---------- Flows ---------- */
.flow { max-width: 52rem; }
.flow fieldset { min-inline-size: 0; }
/* Fieldsets default to min-content: native text/date controls can widen the memorial
   form while the fallback font is in use. Shrink the container and its controls. */
.flow .field { min-width: 0; max-width: 100%; }
.flow :is(input, select, textarea) { min-width: 0; max-width: 100%; }
.flow-narrow { max-width: 36rem; }
.steps-line { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 0 0 1.75rem; font-size: 0.88rem; color: var(--ink-muted); counter-reset: step; }
.steps-line li { counter-increment: step; display: inline-flex; gap: 0.45rem; align-items: center; }
.steps-line li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 0.8rem; }
.steps-line li.is-done::before { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); content: "✓"; }
.steps-line li[aria-current="step"] { color: var(--ink); font-weight: 650; }
.steps-line li[aria-current="step"]::before { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }

.choice-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); margin: 0 0 1.25rem; padding: 0; border: 0; }
.choice-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.choice { position: relative; display: grid; gap: 0.35rem; padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.choice input { position: absolute; top: 0.85rem; right: 0.85rem; width: 1.25rem; height: 1.25rem; accent-color: var(--brand); margin: 0; }
.choice:hover { border-color: var(--border-strong); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--radius) - 4px); background: var(--paper-deep); }
.choice-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.choice-label { font-weight: 650; }
.choice-hint { font-size: 0.85rem; color: var(--ink-muted); }
.choice--text { padding: 1rem 1rem 1rem 1rem; padding-right: 2.75rem; }

.dropzone { display: grid; place-items: center; gap: 0.5rem; text-align: center; padding: 2rem 1rem; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.dropzone.is-dragover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.dropzone input[type="file"] { width: 100%; max-width: 22rem; font: inherit; }
.dropzone-title { font-family: var(--font-display); font-size: 1.25rem; margin: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; margin: 1rem 0; }
.thumb { width: 6.5rem; display: grid; gap: 0.3rem; font-size: 0.8rem; color: var(--ink-muted); }
.thumb img { width: 6.5rem; height: 6.5rem; object-fit: cover; border-radius: var(--radius-small); border: 1px solid var(--border); }
.thumb--warn img { outline: 3px solid var(--warn); }
.tips { font-size: 0.92rem; color: var(--ink-muted); padding-left: 1.1rem; }

.progress-card { display: grid; gap: 1.25rem; align-items: center; padding: clamp(1.25rem, 4vw, 2rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
@media (min-width: 40rem) { .progress-card { grid-template-columns: 11rem 1fr; } }
.progress-photo { width: 100%; max-width: 11rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--mat); box-shadow: 0 0 0 1px var(--border); }
.progress-status { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 0.5rem; }
.progress-bar { width: 100%; height: 0.6rem; accent-color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .progress-card[aria-busy="true"] .progress-photo { animation: breathe 2.4s ease-in-out infinite; }
  @keyframes breathe { 50% { transform: scale(0.97); } }
}

.preview-grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.preview { display: grid; gap: 0.6rem; align-content: start; }
.preview .frame { position: relative; }
.preview--pending .frame { aspect-ratio: 4 / 5; display: grid; place-items: center; color: var(--ink-muted); font-style: italic; font-family: var(--font-display); }
.preview--failed .frame { opacity: 0.7; }
.preview--chosen .frame { outline: 3px solid var(--brand); outline-offset: 4px; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.preview-actions form { margin: 0; }
.preview-actions .button { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.95rem; }

.feedback-form fieldset { background: var(--surface); }
.feedback-form .choice-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }

.product-options { display: grid; gap: 0.9rem; margin: 0 0 1.5rem; padding: 0; border: 0; }
@media (min-width: 40rem) { .product-options { grid-template-columns: repeat(2, 1fr); } }
.product-option { position: relative; display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.9rem; align-items: center; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.product-option input { position: absolute; top: 0.9rem; right: 0.9rem; width: 1.2rem; height: 1.2rem; accent-color: var(--brand); margin: 0; }
.product-option:has(input:checked), .product-option[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.product-option:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.product-option-mockup { width: 5.5rem; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-small); background: var(--paper-deep); }
.artwork-keepsakes { overflow-wrap: anywhere; }
.ornament-fit-placeholder { padding: 0.4rem; font-size: 0.85rem; text-align: center; }
.product-option-name { font-weight: 650; display: block; padding-right: 1.75rem; }
.product-option-detail { display: block; font-size: 0.86rem; color: var(--ink-muted); }

.price { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.price--from::before { content: "from "; font-weight: 400; color: var(--ink-muted); }
.price--large { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }

.deadline { display: inline-flex; gap: 0.5rem; align-items: center; padding: 0.35rem 0.8rem; border-radius: var(--radius-small); background: var(--brand-soft); color: var(--brand-strong); font-size: 0.9rem; font-weight: 600; }
.deadline::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.deadline--soon { background: var(--warn-bg); color: var(--warn); }
.deadline--passed { background: var(--surface-alt); color: var(--ink-muted); }

.order-timeline { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0; }
.order-timeline li { position: relative; padding: 0 0 1.1rem 2rem; color: var(--ink-muted); }
.order-timeline li::before { content: ""; position: absolute; left: 0.3rem; top: 0.35rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--paper); }
.order-timeline li::after { content: ""; position: absolute; left: 0.66rem; top: 1.25rem; bottom: 0; width: 2px; background: var(--border); }
.order-timeline li:last-child::after { display: none; }
.order-timeline li.is-done { color: var(--ink); }
.order-timeline li.is-done::before { background: var(--brand); border-color: var(--brand); }
.order-timeline li[aria-current="step"] { color: var(--ink); font-weight: 650; }
.order-timeline li[aria-current="step"]::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.notice { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-small); padding: 0.9rem 1.1rem; margin: 0 0 1.25rem; }
.notice > :last-child { margin-bottom: 0; }
.notice--memorial { border-left-color: var(--dusk); background: var(--dusk-soft); }
.notice--warn { border-left-color: var(--warn); background: var(--warn-bg); }

.summary-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.summary-list li:last-child { border-bottom: 0; }
.summary-list--total li:last-child { font-weight: 650; }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.sticky-art { position: sticky; top: 1.5rem; }

/* ---------- Memorial mode ---------- */
.memorial { --brand: var(--dusk); --brand-strong: #2a2325; --brand-soft: var(--dusk-soft); }
.memorial .seasonal, .memorial .promo { display: none !important; }
.memorial h1, .memorial h2 { font-weight: 400; }

/* ---------- Storybook proof ---------- */
.book-proof { display: grid; gap: 2rem; }
.book-spread { display: grid; gap: 0; grid-template-columns: 1fr; box-shadow: 0 14px 30px -14px rgb(50 36 22 / 40%); background: var(--mat); }
@media (min-width: 44rem) { .book-spread { grid-template-columns: 1fr 1fr; } }
.book-page { margin: 0; aspect-ratio: 1; background: #fff; border: 1px solid var(--border); }
.book-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-page-edit { margin-top: 0.75rem; }

/* ---------- Account and admin bits ---------- */
.pet-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); list-style: none; padding: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; }
.kv dt { color: var(--ink-muted); }
.kv dd { margin: 0; }

/* ---------- Footer ----------
 * The brand and how to reach us, then four link groups (For you, For your business, Pet portraits, Help), then a
 * quiet base line with the copyright and legal links. Phones: brand, then the groups two by two. */
.footer-grid { display: grid; gap: 2rem 1.5rem; padding-top: 3rem; padding-bottom: 2.25rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 44rem) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .footer-grid { grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .footer-about { grid-column: auto; }
}
.footer-grid p { margin: 0 0 0.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--on-deep); }
.footer-brand .brand-mark { width: 2.2rem; height: 2.2rem; display: inline-block; border-radius: 50%; background: var(--paper) url("../brand/mark.svg") center / 74% no-repeat; }
.footer-blurb { max-width: 21rem; font-size: 1rem; line-height: 1.55; }
.footer-support { font-size: 1rem; }
.footer-support a { padding: 0.5rem 0; text-underline-offset: 0.2em; }
.footer-title { font-weight: 600; font-size: 0.95rem; color: var(--on-deep); letter-spacing: 0.02em; }
.footer-grid .footer-links { flex-direction: column; gap: 0; font-size: 1rem; }
.footer-grid .footer-links a { padding: 0.35rem 0; min-height: 0; }
@media (max-width: 43.99rem) { .footer-grid .footer-links a { padding: 0.6rem 0; } }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; padding: 0.75rem 0 1.25rem; border-top: 1px solid var(--on-deep-rule); font-size: 0.9rem; }
.footer-base p { margin: 0; }
.footer-base .footer-links { gap: 0 1.5rem; }
.footer-base .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }

/* ---------- Error pages: the lost page is warm and points somewhere useful ---------- */
.error-page--lost { max-width: none; display: grid; gap: 2rem; align-items: center; padding: clamp(1rem, 4vw, 3rem) 0 clamp(1.5rem, 5vw, 3.5rem); }
@media (min-width: 52rem) { .error-page--lost { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4.5rem; } }
.error-page--lost h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); line-height: 1.08; color: var(--brand); margin: 0 0 0.85rem; }
.error-page--lost .lead { max-width: 32rem; margin: 0 0 1.75rem; }
.error-actions { margin: 0 0 0.75rem; }
.error-links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.error-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); text-underline-offset: 0.2em; }
.error-figure { margin: 0; width: min(100%, 15rem); justify-self: center; }
@media (min-width: 52rem) { .error-figure { width: min(100%, 22rem); } }
.error-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.error-ref { margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--ink-muted); }

/* ---------- Prose pages ---------- */
.prose { max-width: 44rem; }
.seo-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; list-style: none; padding: 0; font-size: 0.875rem; }
.seo-product-hero { display: grid; gap: 2rem; align-items: start; margin: 2rem 0 3rem; }
.seo-product-hero figure { margin: 0; }
.seo-product-hero img { display: block; width: 100%; height: auto; }
.seo-product-hero figure > img { max-height: 38rem; object-fit: contain; }
.seo-scene { max-width: 44rem; margin: 2rem 0; }
.seo-scene img { display: block; width: 100%; height: auto; }
.seo-scene figcaption { font-size: 0.875rem; margin-top: 0.75rem; }
.home-hero .home-lead a { color: var(--on-deep); }
.seo-product-hero h1 { margin-top: 0; }
.seo-price { font-size: 1.35rem; }
.seo-options ul { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.seo-options a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 0.8rem; border: 1px solid var(--border); border-radius: 4px; }
.seo-options a[aria-current] { border-color: var(--brand); background: var(--brand); color: var(--on-deep); }
.seo-example { margin: 2rem 0 3rem; max-width: 44rem; }
.seo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.seo-pair img { width: 100%; height: auto; }
.seo-example figcaption, .seo-product-hero figcaption, .seo-memorial-example figcaption { font-size: 0.875rem; margin-top: 0.75rem; }
/* Wall products (wall_products in site/seo/_parts.html): two large 4:3 cards that fill the row, one per row on
   phones. Used on the home, gifts, intent and memorial pages, in a plain container. */
.seo-keepsakes { grid-template-columns: minmax(0, 1fr); gap: 2.25rem 2rem; margin: 2rem 0 3rem; }
@media (min-width: 40rem) { .seo-keepsakes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seo-keepsakes .keepsake img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; margin-bottom: 1rem; }
.seo-keepsakes .keepsake h3 { font-size: clamp(1.35rem, 1.22rem + 0.5vw, 1.6rem); margin-bottom: 0.3rem; }
.home .seo-keepsakes { margin: 0; }
.seo-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.seo-memorial-example { max-width: 28rem; margin: 2rem 0; }
.seo-memorial-example img { width: 100%; height: auto; }
.seo-table { overflow-x: auto; margin-top: 1.5rem; }
.seo-table table { width: 100%; border-collapse: collapse; }
.seo-table th, .seo-table td { text-align: left; padding: 1rem 0.75rem; border-bottom: 1px solid var(--border); }
@media (min-width: 56rem) {
  .seo-product-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; }
}
.prose h2 { margin-top: 2.2rem; }
.prose li + li { margin-top: 0.35rem; }
.page-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.page-hero .lead { max-width: 38rem; }
.mini-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); margin: 1.5rem 0; }
.mini-gallery figure { margin: 0; }

/* ---------- Studio and shop details ---------- */
.flush { margin: 0; }
.h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 650; letter-spacing: 0; margin: 0.25rem 0 0; }
.preview-placeholder { aspect-ratio: 4 / 5; display: grid; place-items: center; color: var(--ink-muted); font-family: var(--font-display); font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  .preview-placeholder span { animation: breathe 2.4s ease-in-out infinite; }
}
.choice-fieldset { border: 0; padding: 0; margin: 0; }
.choice-fieldset > legend { font-weight: 650; margin-bottom: 0.75rem; }
.feedback-form .choice-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); gap: 0.5rem; }
.feedback-form legend { padding: 0; margin-bottom: 0.25rem; }
.choice--text { padding: 0.6rem 2.4rem 0.6rem 0.75rem; }
.choice--text input { top: 50%; transform: translateY(-50%); right: 0.7rem; }
details > summary.button-link { display: inline-flex; min-height: 44px; align-items: center; cursor: pointer; }
.notice > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.notice details[open] > summary, .notice[open] > summary { margin-bottom: 0.5rem; }
.preview .placard { margin-top: 0.5rem; }
.preview details { margin-top: -0.25rem; }
input:not([type]) {
  display: block; width: 100%; min-height: 44px; padding: 0.55rem 0.7rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-small);
}
input:not([type]):focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.split .product-options { grid-template-columns: 1fr; }
.product-option .deadline { margin-top: 0.4rem; font-size: 0.8rem; padding: 0.2rem 0.6rem; }
.product-option-name { font-size: 1.02rem; }
.product-option .price { display: block; margin: 0.15rem 0; }

/* ---------- Plain builder forms: label-wrapped fields get the kit's field look ---------- */
form.stack > label:not(.dropzone):not(.choice), fieldset > label:not(.choice) {
  display: grid; gap: 0.3rem; font-weight: 650; margin-bottom: 0.25rem;
}
form.stack > label:has(> input[type="checkbox"]), fieldset > label:has(> input[type="checkbox"]),
form.stack > label:has(> input[type="radio"]) {
  display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400;
}
form.stack > label > input[type="checkbox"], fieldset > label > input[type="checkbox"] {
  width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--brand); flex: none;
}
form.stack > .button:not(.button-primary):not(.button-secondary):not(.button-quiet),
form > button.button:not(.button-primary):not(.button-secondary):not(.button-quiet):not(.button-link) {
  background: var(--surface); color: var(--brand); border-color: var(--brand); justify-self: start;
}
.book-spread article { padding: 0.75rem; }
.book-spread h3 { font-size: 0.9rem; color: var(--ink-muted); margin: 0 0 0.4rem; }
@media (max-width: 40rem) {
  .site-nav > ul > .nav-wide { display: none; }
  .header-inner { flex-wrap: nowrap; gap: 0.75rem; }
  .brand-name { white-space: nowrap; }
  .site-nav > ul { flex-wrap: nowrap; gap: 0.75rem; justify-content: flex-end; }
  .site-nav > ul > li > a { white-space: nowrap; }
  .brand-name { font-size: 1.15rem; }
}
.book-cover { max-width: 44rem; }

/* ---------- Phone menu: a <details> disclosure, so it works without JavaScript ---------- */
.site-header { position: relative; }
.site-header .container, .site-nav, .site-nav > ul, .nav-menu, .menu { position: static; }
.nav-menu { display: none; }
@media (max-width: 40rem) { .nav-menu { display: block; } }
.menu-button {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.75rem; cursor: pointer;
  list-style: none; border: 1px solid var(--border-strong); border-radius: var(--radius-button); font-weight: 600; font-size: 0.95rem;
  color: var(--ink);
}
.menu-button::-webkit-details-marker { display: none; }
.menu-button::after {
  content: ""; width: 0.45rem; height: 0.45rem; margin-top: -0.2rem; border: solid currentColor;
  border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s ease;
}
.menu[open] > .menu-button { border-color: var(--ink); }
.menu[open] > .menu-button::after { margin-top: 0.2rem; transform: rotate(-135deg); }
.site-nav .menu-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20; display: grid !important; gap: 0;
  margin: 0; padding: 0.5rem 1rem 1rem; background: var(--paper); border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px -16px rgb(40 30 20 / 35%);
}
.menu-list li { border-top: 1px solid var(--border); }
.menu-list li:first-child { border-top: 0; }
.menu-list a, .menu-list .nav-button { display: flex; width: 100%; min-height: 48px; padding: 0; font-size: 1.05rem; }

/* ---------- Editions: the home page's sections, for one kind of animal ---------- */
.edition-crumbs { margin: 0 0 1.25rem; font-size: 0.875rem; color: var(--on-deep-muted); }
.edition-crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.edition-crumbs li + li::before { content: "/"; padding: 0 0.55rem; opacity: 0.6; }
.edition-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-deep-muted); text-decoration: none; }
.edition-crumbs a:hover { color: var(--on-deep); text-decoration: underline; text-underline-offset: 0.2em; }
.edition-crumbs span { display: inline-flex; align-items: center; min-height: 44px; }
.edition-hero-portrait { object-fit: contain; }
.example-tag { display: block; margin: 0.6rem 0 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.edition .transform-label, .edition .transform-note .transform-label { margin-top: 0.15rem; }
.edition .keepsake .example-tag { margin: -0.45rem 0 0.35rem; }
.edition-more { margin-top: clamp(2rem, 5vw, 3rem); }
.edition-note { margin: clamp(1.5rem, 4vw, 2rem) 0 0; max-width: 40rem; }
@media (min-width: 52rem) {
  .edition .transform-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .edition .transform-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.edition-tips p { margin: 0.2rem 0 0; color: var(--ink); }
@media (min-width: 48rem) { .edition-tips { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); } }
@media (min-width: 56rem) { .edition-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.edition-products .keepsake img { aspect-ratio: 2 / 3; }
.edition-products .keepsake-price { margin: 0.25rem 0 0.5rem; }
.edition-final .container { grid-template-columns: minmax(0, 40rem) !important; gap: 1.75rem; }
.edition-onward { display: grid; gap: 0.25rem; }
.edition-onward-title { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.edition-related { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; margin: 0; padding: 0; }
.edition-related a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); font-weight: 600; text-underline-offset: 0.2em; }
.edition-coats { margin: 0; font-size: 0.95rem; color: var(--ink-muted); }
.edition-coats a { color: var(--brand); text-underline-offset: 0.2em; }

/* ---------- Phones: the header stays on one line down to 320px (360px is a common Android width) ---------- */
@media (max-width: 40rem) {
  .header-inner { gap: 0.5rem; }
  .site-nav > ul { gap: 0.5rem; }
  .brand { gap: 0.45rem; }
  .menu-button { padding: 0 0.6rem; }
}
@media (max-width: 24rem) {
  .site-header .header-inner { padding-inline: 0.75rem; }
  .brand-name { font-size: 1rem; }
  .site-nav > ul > li > a { padding-inline: 0.15rem; }
}
@media (max-width: 21.5rem) {
  /* The smallest phones keep the mark; the name stays in the link's accessible name. */
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.pet-occasions { --home-gap: var(--seo-gap); }
.pet-occasions > .home-section { padding-bottom: 0; }
.pet-occasions .container { padding-inline: 0; }
