/* Meadowlark Portraits, the Mass Street shop: white pages, pale sage bands, cedar green for the one thing to do.
   Zilla Slab heads, Libre Franklin reads. The one memorable thing is the room: a front room drawn in inches,
   where the chosen print hangs over a 7-foot sofa at its true size. Light only. */
:root {
  --paper: #ffffff;
  --sage: #edf1eb;
  --ink: #1d2a23;
  --ink-muted: #55635b;
  --line: #d5dcd6;
  --line-strong: #85938a;
  --cedar: #2d5b45;
  --cedar-hover: #234a38;
  --on-cedar: #ffffff;
  --cedar-tint: #e3ece6;
  --error: #a1271b;
  --ok: #1f6b3a;
  --warn: #8a5a00;
  /* Room and product materials: drawn things, never text. */
  --room-wall: #e4ebe2;
  --trim: #f8f8f4;
  --floor: #9a7556;
  --sofa: #7d8b93;
  --sofa-seat: #6c7a82;
  --frame: #1b1b1b;
  --float-gap: #3b3833;
  --blank: #f4f4ef;
  --display: "Zilla Slab", Rockwell, Georgia, serif;
  --text: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
  --radius-card: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* Author display rules would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }
html { font-size: 106.25%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--text); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cedar); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.quiet, .muted { color: var(--ink-muted); }
.lede { font-size: 1.18rem; color: var(--ink-muted); max-width: 32rem; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.wordmark { font: 600 1.4rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.wordmark img { width: 1.3em; height: 1.3em; margin-right: 6px; vertical-align: -0.3em; }
.place { font-size: .82rem; color: var(--ink-muted); white-space: nowrap; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { font-size: .94rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover { text-decoration: underline; }
.site-header .button { padding: 11px 18px; }
@media (max-width: 760px) {
  /* The hero carries the start button on a phone, so the header keeps to the name and the links. */
  .nav { width: 100%; margin: 0; overflow-x: auto; gap: 20px; }
  .site-header .button { display: none; }
}
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: .88rem; color: var(--ink-muted); }
/* Prairie grass growing along the footer's top line: the one decoration in the shop. */
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; background: url("img/prairie.svg") repeat-x left bottom; pointer-events: none; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer .wordmark { font-size: 1.15rem; color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--ink); }

/* Buttons. One primary per screen; secondary is an outline. */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 24px; border: 1.5px solid var(--cedar); border-radius: var(--radius);
  background: var(--cedar); color: var(--on-cedar); font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { background: var(--cedar-hover); border-color: var(--cedar-hover); }
button:disabled { opacity: .6; cursor: progress; }
button.secondary, .button.secondary { background: transparent; color: var(--cedar); }
button.secondary:hover, .button.secondary:hover { background: var(--cedar-tint); }
.text-link { font-weight: 600; color: var(--cedar); }
.error { min-height: 1.5em; color: var(--error); font-weight: 600; }
.notice { margin-top: 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--cedar-tint); }

/* The room: a photo of a front room (public/img/room.jpg, 1536 x 1152). Its 84" sofa spans 999 px, so the photo is
   129.2" wide; --in is one inch on screen. Measurements in apps/website/IMAGES.md; redo them if the photo changes. */
.room-view { margin: 0; }
.room-view figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-muted); }
.room {
  --in: calc(100cqw / 129.2);
  container-type: inline-size; position: relative; display: block; aspect-ratio: 1536 / 1152; overflow: hidden;
  border-radius: var(--radius-card); background: var(--room-wall);
}
.room > * { position: absolute; display: block; }
.room > img { inset: 0; width: 100%; height: 100%; }
/* The print, centred over the sofa (66.6" from the left) with its bottom 9" above the sofa back (47.1" up) */
.room .piece {
  --u: var(--in); position: absolute;
  left: calc((66.6 - var(--w) / 2 - var(--f)) * var(--in)); bottom: calc(56.1 * var(--in));
  width: calc((var(--w) + 2 * var(--f)) * var(--in)); height: calc((var(--h) + 2 * var(--f)) * var(--in));
  transition: left .3s ease, width .3s ease, height .3s ease;
}

/* A drawn product. --w and --h are the print size in inches, --f the frame face, --u one inch on screen. */
.piece {
  --f: 0; --u: 4px;
  position: relative; display: block; padding: calc(var(--f) * var(--u)); background: var(--frame);
  box-shadow: calc(.4 * var(--u)) calc(.8 * var(--u)) calc(1.4 * var(--u)) rgba(25, 32, 27, .3);
}
.piece.framed-print { --f: .9; }
/* A framed canvas floats in a thin frame: a 0.5" face, then a 0.2" gap (the outline) around the canvas. */
.piece.float-frame { --f: .7; }
.piece.float-frame > .art { outline: calc(.2 * var(--u)) solid var(--float-gap); }
.piece.canvas { box-shadow: calc(.6 * var(--u)) calc(1.2 * var(--u)) calc(1.6 * var(--u)) rgba(25, 32, 27, .38); }
.piece.art-print { box-shadow: calc(.2 * var(--u)) calc(.4 * var(--u)) calc(.8 * var(--u)) rgba(25, 32, 27, .22); }

/* A product photo (public/img/front-<material>.jpg, 3:4) with the art laid into its measured window (productPhoto() in shop.js). */
.product-photo { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; }
.product-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-photo .window { position: absolute; overflow: hidden; }

/* Example art. A painted swatch for each style until public/styles/<id>.jpg exists; the picture covers it once it loads. */
.art { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--art, var(--blank)); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-classic-oil { --art: radial-gradient(ellipse 36% 30% at 50% 44%, #c9935a, #8a5a2e 55%, transparent 74%), radial-gradient(ellipse 60% 30% at 50% 100%, #5b3b22, transparent 70%), linear-gradient(#2e231a, #17110d); }
.art-royal { --art: radial-gradient(ellipse 30% 24% at 50% 36%, #dcbf94, #a77b4f 60%, transparent 76%), radial-gradient(ellipse 70% 42% at 50% 100%, #7a1f2b 0 62%, transparent 63%), radial-gradient(ellipse 26% 8% at 50% 60%, #e9e2d0 0 60%, transparent 62%), linear-gradient(#253229, #121a15); }
.art-pop-art { --art: conic-gradient(from 90deg at 50% 50%, #f2c230 0 25%, #e8457a 0 50%, #2fb5c8 0 75%, #f08a24 0); }
.art-cartoon { --art: radial-gradient(circle at 41% 40%, #222 0 3.5%, transparent 4%), radial-gradient(circle at 59% 40%, #222 0 3.5%, transparent 4%), radial-gradient(ellipse 7% 4.5% at 50% 50%, #222 0 95%, transparent 100%), radial-gradient(ellipse 34% 30% at 50% 44%, #fff 0 96%, #222 97% 100%, transparent 101%), radial-gradient(ellipse 11% 20% at 21% 50%, #7a4a2a 0 94%, #222 95% 100%, transparent 101%), radial-gradient(ellipse 11% 20% at 79% 50%, #7a4a2a 0 94%, #222 95% 100%, transparent 101%), radial-gradient(ellipse 30% 22% at 50% 100%, #fff 0 96%, #222 97% 100%, transparent 101%), #f5a35c; }
.art-watercolor { --art: radial-gradient(circle at 42% 44%, rgba(110, 150, 196, .5), transparent 38%), radial-gradient(circle at 60% 58%, rgba(214, 132, 146, .42), transparent 40%), radial-gradient(circle at 48% 70%, rgba(150, 190, 140, .38), transparent 36%), #f7f6f1; }

/* Home: hero */
.hero { padding: 48px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 5fr 7fr; gap: 56px; } }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 20px; }
.from { margin-top: 20px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; padding: 9px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 .94rem/1 var(--text); }
.chip:hover { background: var(--paper); border-color: var(--ink); }

/* Home: the hero portrait. A stand-in at 3:4 until the first finished portraits are photographed. */
.hero-art { display: grid; justify-items: center; gap: 10px; margin: 0; }
.hero-art img { width: min(100%, calc(80vh * 3 / 4)); height: auto; border-radius: var(--radius-card); }
/* On a phone the portrait comes first: proof before the first choice. */
@media (max-width: 899px) { .hero-art { order: -1; } }
.hero-art figcaption { max-width: 28rem; font-size: .86rem; text-align: center; color: var(--ink-muted); }
.portrait { display: block; width: min(68%, 440px); aspect-ratio: 3 / 4; padding: 14px; background: var(--frame); box-shadow: 4px 8px 16px rgba(25, 32, 27, .3); }
.portrait.small { width: 100%; padding: 6px; box-shadow: none; }
.card .portrait { margin-bottom: 8px; }

/* Home: sections */
.section { padding: 72px 0; }
.band { background: var(--sage); }
.section-head { display: grid; gap: 8px; margin-bottom: 32px; }
.section-head p { max-width: 36rem; color: var(--ink-muted); }
.hometown { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .hometown { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }
.hometown figure { display: grid; gap: 10px; max-width: 360px; margin: 0; }
.hometown img { width: 100%; height: auto; border-radius: var(--radius-card); }
.hometown figcaption { font-size: .86rem; color: var(--ink-muted); }
.hometown > div { display: grid; gap: 14px; max-width: 36rem; }
.hometown p { color: var(--ink-muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 40%), 1fr)); gap: 32px 16px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; } }
.card { display: grid; align-content: start; gap: 6px; text-decoration: none; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card p { font-size: .9rem; color: var(--ink-muted); }
.card .price-from { color: var(--ink); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; display: grid; align-content: start; gap: 6px; max-width: 24rem; }
.steps li::before { content: counter(step); font: 600 2.4rem/1 var(--display); color: var(--cedar); margin-bottom: 6px; }
.steps strong { font-weight: 600; }
.steps span { color: var(--ink-muted); }
.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cedar); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { max-width: 40rem; padding-bottom: 18px; color: var(--ink-muted); }

/* Terms, privacy and refunds: one readable column. */
.legal { max-width: 40rem; padding: 48px 0 72px; }
.legal .updated { margin: 8px 0 28px; color: var(--ink-muted); }
.legal h2 { margin: 40px 0 12px; font-size: 1.5rem; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--cedar); font-weight: 600; overflow-wrap: anywhere; }

/* Product page and order page: the picture on the left (sticky), heading and form on the right */
.product { padding-top: 20px; padding-bottom: 72px; }
.crumbs { margin-bottom: 20px; font-size: .88rem; color: var(--ink-muted); }
.product-grid { display: grid; gap: 28px; grid-template-areas: "head" "view" "form"; }
@media (min-width: 900px) {
  .product-grid { grid-template-columns: 7fr 5fr; grid-template-areas: "view head" "view form"; grid-template-rows: auto 1fr; column-gap: 56px; }
  .product-view { position: sticky; top: 20px; align-self: start; }
}
.product-head { grid-area: head; display: grid; gap: 10px; }
.product-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.product-view { grid-area: view; }
.product-form { grid-area: form; display: grid; align-content: start; gap: 28px; min-width: 0; }
.price { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-size: .9rem; font-weight: 400; color: var(--ink-muted); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 10px; padding: 0; font-weight: 600; }
legend span { font-weight: 400; color: var(--ink-muted); }

/* Style swatches */
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.swatch { position: relative; display: grid; gap: 8px; font-size: .8rem; text-align: center; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch .art { height: auto; aspect-ratio: 3 / 4; border-radius: 4px; outline: 1.5px solid var(--line); outline-offset: 2px; }
.swatch:hover .art { outline-color: var(--line-strong); }
.swatch:has(input:checked) .art { outline: 2px solid var(--cedar); outline-offset: 3px; }
.swatch:has(input:checked) { font-weight: 600; }
.swatch:has(input:focus-visible) .art { outline: 3px solid var(--cedar); outline-offset: 4px; }

/* Size chips: radios drawn as pills */
.chip input { position: absolute; opacity: 0; }
.chip:has(input:checked) { border-color: var(--cedar); background: var(--cedar-tint); box-shadow: inset 0 0 0 1px var(--cedar); }
.chip:has(input:focus-visible) { outline: 3px solid var(--cedar); outline-offset: 2px; }

/* Photo upload */
.drop {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--cedar); background: var(--cedar-tint); }
.drop:has(input:focus-visible) { outline: 3px solid var(--cedar); outline-offset: 2px; }
.drop .thumb { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 4px; background: var(--sage); color: var(--cedar); font: 400 2rem/1 var(--text); }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.drop .hint { display: block; font-size: .86rem; color: var(--ink-muted); }
.tips { display: grid; gap: 2px; margin: 12px 0 0; padding-left: 1.1em; font-size: .9rem; color: var(--ink-muted); }

.checkout { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout button { width: 100%; }
.assurances { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-muted); }
.assurances li::before { content: "\2713"; margin-right: 8px; font-weight: 600; color: var(--cedar); }

/* Delivery: the two clocks under the button */
.clocks { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--sage); font-size: .92rem; }
.clocks p:last-child { color: var(--ink-muted); }

/* Frame finish swatches */
.finishes { display: flex; flex-wrap: wrap; gap: 12px; }
.finish { position: relative; cursor: pointer; }
.finish input { position: absolute; opacity: 0; }
.finish .dot { display: block; width: 32px; height: 32px; border-radius: 50%; outline: 1.5px solid var(--line); outline-offset: 2px; box-shadow: inset 0 0 0 1px rgba(25, 32, 27, .18); }
/* Unframed: a bare paper dot with a dashed edge, unlike the white frame. */
.finish .dot.none { border: 1.5px dashed var(--line-strong); background: var(--paper); box-shadow: none; }
.finish:has(input:checked) .dot { outline: 2px solid var(--cedar); outline-offset: 3px; }
.finish:has(input:focus-visible) .dot { outline: 3px solid var(--cedar); outline-offset: 4px; }

/* Product gallery: one 3:4 stage, five thumbnails. The main picture is the print, and where the photo goes. */
.gallery { display: grid; gap: 12px; justify-items: center; }
.stage, .thumbs { width: min(100%, calc(74vh * 3 / 4)); }
.stage { container-type: inline-size; position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-card); background: var(--room-wall); }
.slot { position: absolute; inset: 0; display: grid; place-items: center; }
.slot.over { outline: 3px dashed var(--cedar); outline-offset: -10px; }
.frame-fill { position: absolute; inset: 0; }
img.slot { width: 100%; height: 100%; object-fit: cover; }
.before-after { grid-template-columns: 1fr 1fr; gap: 3px; }
.before-after img { width: 100%; height: 100%; object-fit: cover; }
.camera, .change { position: absolute; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--paper); color: var(--cedar); font-weight: 600; cursor: pointer; box-shadow: 0 2px 10px rgba(25, 32, 27, .25); }
.camera { top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 14px 22px; white-space: nowrap; }
.change { right: 14px; bottom: 14px; padding: 8px 14px; border: 0; font: 600 .88rem/1.2 var(--text); }
.camera:hover, .change:hover { background: var(--cedar-tint); }
/* On the room: the camera and Change photo sit just under the hung print, so the print and its frame colour stay in view. */
.piece .camera, .piece .change { top: calc(100% + 10px); right: auto; bottom: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.room-slot { align-content: center; }
/* The room leads the gallery, so the stage takes the room's 4:3 shape and the column's width while it shows. */
.stage:has(> #slot-room:not([hidden])) { width: min(100%, calc(74vh * 4 / 3)); aspect-ratio: 4 / 3; }
.room-slot .room { width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumbs button { aspect-ratio: 3 / 4; padding: 4px; overflow: hidden; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--blank); color: var(--ink-muted); font: 500 .72rem/1.2 var(--text); }
.thumbs button:hover { background: var(--blank); border-color: var(--ink); }
.thumbs button[aria-pressed="true"] { border-color: var(--cedar); box-shadow: inset 0 0 0 1px var(--cedar); color: var(--ink); }
.thumbs .art, .thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.view-caption { min-height: 1.5em; font-size: .9rem; text-align: center; color: var(--ink-muted); }

/* Other materials: small links under the buy box, never an equal choice */
.others { display: grid; gap: 10px; }
.others-head { font-weight: 600; }
.other-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.other { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .86rem; text-decoration: none; }
.other:hover { border-color: var(--ink); }
.other .product-photo { width: 48px; }
.other strong { display: block; font-weight: 600; }
.other .detail { color: var(--ink-muted); }

/* Product page below the fold */
.below { display: grid; gap: 20px; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
/* A surface close-up: the corner render, enlarged on the art. */
.zoom { display: block; overflow: hidden; border-radius: var(--radius-card); }
.zoom img { transform: scale(2.2); transform-origin: 35% 30%; }
.below .intro { max-width: 36rem; color: var(--ink-muted); }
.below .note { font-size: .86rem; color: var(--ink-muted); }
/* Feature blocks: a 3:4 picture, a title and one sentence. Two across on a phone, four from 900px. */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }
.feature, .story { display: grid; align-content: start; gap: 6px; }
.feature p, .story p { font-size: .9rem; color: var(--ink-muted); }
.feature-pic { display: block; aspect-ratio: 3 / 4; margin-bottom: 6px; overflow: hidden; border-radius: var(--radius-card); background: var(--blank); }
.feature-pic > img, .feature-pic > .zoom, .feature-pic > .zoom img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Every frame colour's front view, four across and two down. */
.frame-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: center; gap: 4px; height: 100%; padding: 8px; }
/* Story pictures: stacked on a phone, two across from 900px. */
.stories { display: grid; gap: 28px 20px; }
@media (min-width: 900px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.story img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 6px; border-radius: var(--radius-card); }
.crafted { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }
.crafted div { display: grid; gap: 8px; max-width: 36rem; }

/* Sticky buy bar: bottom on a phone, top on desktop, once the main button scrolls away */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 -2px 12px rgba(25, 32, 27, .1); }
.buy-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.buy-bar-name { font-variant-numeric: tabular-nums; }
.buy-bar button { padding: 13px 20px; }
@media (max-width: 899px) { body:has(.buy-bar:not([hidden])) { padding-bottom: 76px; } }
@media (min-width: 900px) {
  .buy-bar { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(25, 32, 27, .1); }
  body:has(.buy-bar:not([hidden])) .product-view { top: 92px; }
}

/* Holiday order-by banner, dismissible */
.holiday { background: var(--cedar-tint); font-size: .92rem; }
.holiday .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.holiday button { padding: 4px 10px; border: 0; background: transparent; color: var(--ink); font-size: 1.4rem; font-weight: 400; }
.holiday button:hover { background: var(--sage); }

/* Order page: the preview, shown whole in its frame */
.proof { container-type: inline-size; display: grid; place-items: center; margin: 0; padding: 9% 0; border-radius: var(--radius-card); background: var(--room-wall); }
.proof .piece { --u: 2.4cqw; width: 62%; aspect-ratio: var(--ratio, 3 / 4); }
.proof .art { display: grid; place-items: center; padding: 12px; background: var(--blank); text-align: center; font-size: .9rem; color: var(--ink-muted); }
.proof .art img { object-fit: contain; background: var(--blank); }
#decide { display: grid; gap: 28px; }
#revise { display: grid; gap: 10px; }
textarea { width: 100%; padding: 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); font: inherit; color: var(--ink); background: var(--paper); }
#tracking a { font-weight: 600; }
/* Where the order is: a line through five stops, filled up to the current one. */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: .8rem; color: var(--ink-muted); }
.track li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.track li::before { content: ""; position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); }
.track li + li::after { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.track li.done::before { background: var(--cedar); border-color: var(--cedar); }
.track li.done::after { background: var(--cedar); }
.track li[aria-current] { color: var(--ink); font-weight: 600; }
.track li[aria-current]::before { box-shadow: 0 0 0 4px var(--cedar-tint); }

/* Dashboard */
.admin-head .wordmark { margin-right: auto; }
.admin-head button { padding: 10px 16px; }
.admin-signin { display: grid; justify-items: start; gap: 20px; padding-top: 48px; padding-bottom: 32px; }
.admin-error { margin-top: 16px; }
.desk { max-width: 1280px; margin: 0 auto; padding: 32px 20px 64px; display: grid; gap: 40px; }
@media (min-width: 960px) { .desk { grid-template-columns: 22rem 1fr; } }
.order-list h2 { margin: 24px 0 8px; font: 600 .9rem/1.3 var(--text); color: var(--ink-muted); }
.order-list .group:first-child h2 { margin-top: 0; }
.order-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.row { display: grid; gap: 2px; padding: 10px 12px; border: 1.5px solid transparent; border-radius: var(--radius); font-size: .9rem; text-decoration: none; }
.row:hover { border-color: var(--line); }
.row.current { border-color: var(--cedar); background: var(--cedar-tint); }
.order-detail { display: grid; align-content: start; gap: 20px; min-width: 0; }
.order-detail h2 { font-size: 1.78rem; }
.order-detail h3 { margin: 0; font: 600 1rem/1.3 var(--text); }
.status { font-weight: 600; }
blockquote { margin: 0; padding: 12px 16px; border-radius: var(--radius); background: var(--sage); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; font-size: .9rem; }
.facts dt { color: var(--ink-muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.pictures { display: flex; flex-wrap: wrap; gap: 20px; }
.pictures figure { display: grid; gap: 6px; margin: 0; font-size: .84rem; }
.pictures img { max-width: 260px; max-height: 320px; object-fit: contain; background: var(--blank); }
.work { display: grid; justify-items: start; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.work input[type="file"] { max-width: 100%; font: inherit; }
.checks ul { margin: 0; padding-left: 1.2em; }
.ok { margin: 0; color: var(--ok); }
.ok:empty { display: none; }
.bad { color: var(--error); }
.warn { color: var(--warn); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
