/*
 * Below the buy area, on every product page (apps/builder/depth.ts): what you can make, what
 * it's for, what it's printed on, the room shots, and what else the studio makes. Plain house
 * layout — text blocks and the quiet sheet-2 cards the rest of the site uses.
 */
.depth { margin-top: var(--s12); }
/* a phone: the sections a step closer, so the depth reads as one scroll rather than a long sag */
@media (max-width: 759px) {
  .depth { margin-top: var(--s8); }
  .depth .section-title { margin-bottom: var(--s4); }
}

/* ── a custom page's pair: "how it works." beside "made for giving." (depth.ts customDepth) ──
 * Two house cards, side by side on a wide screen and stacked on a phone, the same height in a
 * row. The steps are numbered by small painted dots in the card's accent (the house tomato):
 * not perfect circles, a soft highlight, each one turned a little, as if dabbed on. */
.story-pair { display: grid; gap: var(--s4); align-items: stretch; }
@media (min-width: 760px) { .story-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); } }
.story-card { --accent: var(--tomato); background: var(--sheet-2); border-radius: var(--r-panel); padding: var(--s6); }
@media (min-width: 900px) { .story-card { padding: var(--s8); } }
.story-card .section-title { margin-bottom: var(--s4); }
.story-card > p { margin: 0; font-size: 16px; line-height: 1.65; max-width: 60ch; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.how-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.how-step p { margin: 0; font-size: 15px; line-height: 1.6; }
.how-step strong { font-weight: 700; color: var(--ink); }
.how-dot {
  width: 26px; height: 26px; margin-top: 1px; display: grid; place-items: center;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 13px; line-height: 1; color: var(--sheet);
  background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / .22), transparent 55%), var(--accent);
  border-radius: 54% 46% 51% 49% / 47% 55% 45% 53%;
  box-shadow: inset 0 -1px 2px rgb(0 0 0 / .12);
  transform: rotate(-6deg);
}
.how-step:nth-child(2) .how-dot { border-radius: 47% 53% 44% 56% / 55% 46% 54% 45%; transform: rotate(5deg); }
.how-step:nth-child(3) .how-dot { border-radius: 52% 48% 57% 43% / 44% 53% 47% 56%; transform: rotate(-2deg); }
.how-step:nth-child(4) .how-dot { border-radius: 45% 55% 49% 51% / 52% 44% 56% 48%; transform: rotate(8deg); }

/* ── a shop print's photographs (depth.ts printPhotoSections) ──────────────────
 * Three beats with different shapes so the scroll has rhythm: two big cards side by side, then a
 * deeper-cream panel with the words on the left and the picture on the right, then a plain strip.
 * Every photo is 3:4; the detail cards crop wide from the centre, the frames photos to 4:5.
 */
.closer-grid { display: grid; gap: var(--s6); }
@media (min-width: 760px) { .closer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8); } }
.closer-card { margin: 0; display: grid; gap: var(--s4); }
.closer-card img, .framed img, .lived-strip img {
  display: block; width: 100%; height: auto; object-fit: cover; background: var(--sheet-2);
  border-radius: var(--r-panel);
  box-shadow: 0 1px 2px rgba(42, 42, 40, .10), 0 18px 36px -22px rgba(42, 42, 40, .45);
}
.closer-card img { aspect-ratio: 16 / 10; object-position: 50% 50%; }
/* detail shots read at a modest size: a wide centre crop, so both cards and their captions sit
 * within about one screen (a phone: a little taller, 4:3) */
@media (max-width: 759px) { .closer-card img { aspect-ratio: 4 / 3; } }
.closer-card figcaption { font-size: 15px; line-height: 1.6; max-width: 46ch; color: var(--muted); }
.closer-card figcaption strong, .framed-text strong { color: var(--ink); font-size: 1.15em; margin-right: .2em; }

/* the panel: one shade deeper than the sheet; words + the small photo left, the big one right */
.framed {
  background: var(--sheet-2); border-radius: var(--r-panel); padding: var(--s6) var(--s4);
  display: grid; gap: var(--s6);
  grid-template-areas: "text" "big" "hang";
}
.framed-text { grid-area: text; }
.framed-text p { margin: 0; font-size: 16px; line-height: 1.65; max-width: 52ch; }
.framed-big { grid-area: big; aspect-ratio: 4 / 5; }
.framed-hang { grid-area: hang; aspect-ratio: 4 / 5; max-width: 60%; }
@media (max-width: 759px) {
  .closer-grid { gap: var(--s4); }
  .closer-card { gap: var(--s3); }
  .framed { padding: var(--s4); gap: var(--s4); }
  .framed-hang { max-width: 50%; }
}
@media (min-width: 760px) {
  .framed {
    padding: var(--s12); gap: var(--s6) var(--s12);
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "text big" "hang big";
    align-items: start;
  }
  .framed-text { align-self: end; }
  .framed-hang { max-width: 300px; }
}

/* the strip: three across; on a phone, one and an edge of the next, swiping */
.lived-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lived-strip img { aspect-ratio: 3 / 4; }
@media (min-width: 760px) { .lived-strip { gap: var(--s6); } }
@media (max-width: 759px) {
  .lived-strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); scroll-padding-inline: var(--s4);
    padding-bottom: var(--s4); scrollbar-width: none;
  }
  .lived-strip::-webkit-scrollbar { display: none; }
  .lived-strip li { scroll-snap-align: start; }
}

/* ── see it in a room. (shop prints) ── */
.room-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.room-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-tile); }

/* ── doors, lanes and the way out ─────────────────────────────────────────────
 * Shared by a print page's "not this one?" (art-views.ts rescue) and a custom page's "more like
 * this." (depth.ts crossSell). A door is the wall's poster card — the paper-tone ground, the
 * soft shadow, the lift on hover — with a tag: on a pointer it rises over the foot of the poster
 * on hover or focus (the wall's pill); on touch it sits beneath, always there. A prints door's
 * tag is only the price, as on the wall; a product door's is its name and price. A lane is one
 * row that slides — a swipe or trackpad, or its ← → (static/lanes.js) — snapping per card. */
.lane + .lane { margin-top: var(--s8); }
.lane-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin: 0 0 var(--s2); }
.lane-h { font-size: 18px; margin: 0; color: var(--forest); }
.lane-nav { display: flex; gap: var(--s2); }
.lane-arrow {
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--rule); border-radius: var(--r-pill); background: var(--sheet); color: var(--forest);
  font-size: 16px; line-height: 1; transition: background-color 140ms ease, opacity 140ms ease;
}
.lane-arrow:hover:not(:disabled) { background: var(--sheet-2); }
.lane-arrow:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.lane-arrow:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .lane-nav { display: none; } }
/* about five and an edge of the next in view; room above and below so the lift and the shadows
 * aren't cut by the scroller */
.lane-row {
  list-style: none; margin: 0 calc(-1 * var(--s2)); padding: var(--s2) var(--s2) var(--s8);
  display: grid; grid-auto-flow: column; gap: var(--s6);
  grid-auto-columns: calc((100% - var(--s4) - 4 * var(--s6)) / 5.3);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding-inline: var(--s2);
  scroll-behavior: smooth; scrollbar-width: none;
}
.lane-row::-webkit-scrollbar { display: none; }
/* the cross-sell's five fit exactly on a wide screen */
.xsell-row { grid-auto-columns: calc((100% - var(--s4) - 4 * var(--s6)) / 5); }
.door { scroll-snap-align: start; }
.door-link { position: relative; display: block; text-decoration: none; color: var(--ink); border-radius: 2px; transition: transform 220ms ease; }
.door-link:focus-visible { outline: 2px solid var(--tomato); outline-offset: 4px; }
.door-art {
  display: block; aspect-ratio: 5 / 7; background: var(--sheet-2);
  box-shadow: 0 1px 3px rgba(42, 42, 40, .08), 0 16px 34px -18px rgba(42, 42, 40, .42);
  transition: box-shadow 220ms ease;
}
.door-art img { width: 100%; height: 100%; object-fit: cover; }
.door-tag { display: block; padding-top: var(--s2); font-size: 12px; font-weight: 600; color: var(--forest); font-variant-numeric: tabular-nums; }
.door-name { display: block; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 15px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .door-tag {
    position: absolute; left: var(--s2); bottom: var(--s2); max-width: calc(100% - 2 * var(--s2));
    padding: 5px 10px; border-radius: var(--r-pill);
    background: var(--sheet); color: var(--ink); letter-spacing: .01em;
    box-shadow: 0 1px 3px rgba(42, 42, 40, .18);
    opacity: 0; transform: translateY(4px); transition: opacity 160ms ease, transform 160ms ease; pointer-events: none;
  }
  /* a name and a price: a small card rather than a pill */
  .door-tag:has(.door-name) { right: var(--s2); padding: 8px 10px; border-radius: var(--r-chip); }
  .door-tag:has(.door-name) .door-price { color: var(--forest); }
  .door-link:hover { transform: translateY(-3px); }
  .door-link:hover .door-art { box-shadow: 0 2px 4px rgba(42, 42, 40, .08), 0 22px 40px -20px rgba(42, 42, 40, .5); }
  .door-link:hover .door-tag, .door-link:focus-visible .door-tag { opacity: 1; transform: none; }
}
@media (max-width: 759px) {
  .lane-row, .xsell-row {
    grid-auto-columns: 42%; gap: var(--s4);
    margin-inline: calc(-1 * var(--s4)); padding: var(--s2) var(--s4) var(--s6); scroll-padding-inline: var(--s4);
  }
}
/* the way out: the house's solid pill, centred, most of the width */
.exit-pill {
  display: block; width: 100%; max-width: 520px; margin: var(--s8) auto 0; text-align: center;
  font-size: 15px; font-weight: 600; text-decoration: none; padding: 15px 28px;
  border-radius: var(--r-pill); background: var(--forest); color: var(--sheet);
}
.exit-pill:hover { background: var(--forest-2); }
.exit-pill span { display: inline-block; transition: transform 140ms ease; }
.exit-pill:hover span { transform: translateX(3px); }
.exit-pill:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .door-link, .door-art, .door-tag, .exit-pill span, .lane-arrow { transition: none; }
  .door-link:hover, .exit-pill:hover span { transform: none; }
  .lane-row { scroll-behavior: auto; }
}

/* ── the accordions (every product page; static/accordion.js) ──────────────────
 * Four plain rows between rules: a header in the house heading voice and a + that turns to −. The
 * body eases open (the script); without a script each is a plain <details>.
 */
.pdp-acc { max-width: 880px; }
.acc-list { border-top: 1px solid var(--rule); }
.acc { border-bottom: 1px solid var(--rule); }
.acc-h {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 18px 2px; cursor: pointer; list-style: none;
  /* the house heading voice (as .display / the section titles): Fraunces 600, lowercase */
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.2;
  text-transform: lowercase; letter-spacing: -0.02em; color: var(--ink);
}
.acc-h::-webkit-details-marker { display: none; }
.acc-h::marker { content: ''; }
.acc-h:hover .acc-t { color: var(--forest); }
.acc-h:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 6px; }
/* + and −: two strokes; the upright one turns flat when the row is open */
.acc-pm { position: relative; flex: none; width: 14px; height: 14px; }
.acc-pm::before, .acc-pm::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px;
  background: currentColor; border-radius: 1px; transition: transform 220ms ease;
}
.acc-pm::after { transform: rotate(90deg); }
.acc[open] .acc-pm::after { transform: rotate(0deg); }
.acc-in { padding: 0 2px var(--s6); max-width: 68ch; color: var(--ink); }
.acc-in p { margin: 0 0 var(--s3); line-height: 1.6; }
.acc-in p:last-child { margin-bottom: 0; }
.acc-in strong { font-weight: 600; }
.acc-in a { color: var(--forest); text-underline-offset: 2px; }
/* glass chosen: the specs lead with the glass paragraph, the frames one folds away */
.pdp-acc[data-material="glass"] .acc-frames { display: none; }
@media (prefers-reduced-motion: reduce) { .acc-pm::before, .acc-pm::after { transition: none; } }

/* the prints page's home for them: centred at a reading width under "good to know.", the rows
 * given room, the rules a shade firmer (the house rule with a little ink in it), the block's
 * top and bottom edges firmer still. A phone: the sheet's own gutters, the same room. */
.acc-home { --acc-rule: color-mix(in srgb, var(--rule), var(--ink) 14%); max-width: 760px; margin-inline: auto; }
.acc-home .acc-list { border-top: 1.5px solid var(--acc-rule); border-bottom: 1.5px solid var(--acc-rule); }
.acc-home .acc { border-bottom-color: var(--acc-rule); }
.acc-home .acc:last-child { border-bottom: 0; }
.acc-home .acc-h { padding: 26px 4px; }
.acc-home .acc-in { padding: 0 4px var(--s8); max-width: none; }
@media (max-width: 759px) { .acc-home .acc-h { padding: 22px 2px; font-size: 19px; } }
