/*
 * The studio: the front of the site (home, styles, custom portraits, business). Tokens from brand.css.
 * The art carries the colour: it hangs framed on an espresso wall at the top, on paper below, and the one rose
 * field belongs to businesses. No inline styles or scripts anywhere (CSP 'self').
 */

/* ---------- A framed piece ---------- */
.hang { margin: 0; container-type: inline-size; }
.hang-frame {
  --moulding: max(0.4rem, 4.4cqi);
  position: relative; display: block; background: var(--mat);
  border: var(--moulding) solid var(--frame-colour, #b58d62);
  border-image: var(--frame-image) 54 / var(--moulding) stretch;
  box-shadow: 0 1px 1px rgb(20 12 8 / 22%), 0 0.7rem 1.1rem -0.35rem rgb(20 12 8 / 34%), 0 1.8rem 2.6rem -1.4rem rgb(20 12 8 / 42%);
}
.hang-frame::after {  /* the rabbet: the frame's lip throws a soft shadow onto the print */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0.14rem 0.32rem rgb(20 12 8 / 34%), inset 0 0 0 1px rgb(20 12 8 / 16%);
}
.hang-frame img { display: block; width: 100%; height: auto; }
.hang--oak .hang-frame { --frame-image: url("../art/frames/oak.jpg?v=2"); --frame-colour: #c4a47e; }
.hang--black .hang-frame { --frame-image: url("../art/frames/black.png?v=2"); --frame-colour: #262120; }
.hang--white .hang-frame { --frame-image: url("../art/frames/white.png?v=3"); --frame-colour: #f0ebe4; outline: 1px solid rgb(43 36 32 / 14%); outline-offset: -1px; }
.st-wall .hang--white .hang-frame { outline: 0; }
.hang--print .hang-frame {
  border: 0; border-image: none;
  box-shadow: 0 1px 2px rgb(20 12 8 / 18%), 0 0.5rem 0.9rem -0.4rem rgb(20 12 8 / 28%);
}
.hang--print .hang-frame::after { box-shadow: none; }
.hang figcaption { margin-top: 0.8rem; font-size: 0.875rem; line-height: 1.35; color: var(--ink-muted); }
.hang-title { display: block; font-weight: 600; color: var(--ink); }
.hang-meta { display: block; }

/* ---------- Shared pieces ---------- */
.studio h2, .st-h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--ink);
  margin: 0 0 1rem; max-width: 20ch;
}
.studio h3 { font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem); margin: 0; }
.st-section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.st-section + .st-section { padding-top: 0; }
.st-head { margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.st-head p { margin: 0; max-width: 34rem; font-size: clamp(1.1rem, 1.05rem + 0.25vw, 1.25rem); line-height: 1.5; color: var(--ink-muted); }
.st-small { font-size: 0.95rem; color: var(--ink-muted); max-width: 30rem; }
.st-link {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--cta); text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.st-link::after { content: "→"; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.st-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.st-link:hover::after { transform: translateX(0.25rem); }
::selection { background: var(--cta); color: var(--cta-ink); }

/* ---------- Header: one line, with the way to start always in reach ---------- */
.site-nav .nav-start a {
  background: var(--cta); color: var(--cta-ink); padding: 0 1rem; border-radius: var(--radius-button); min-height: 40px;
}
.site-nav .nav-start a:hover { background: var(--cta-strong); color: var(--cta-ink); }
@media (max-width: 61.99rem) {
  .site-nav > ul > .nav-wide { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 24rem) { .site-nav .nav-start a { padding: 0 0.7rem; font-size: 0.9rem; } }

/* On the home page the header is part of the wall. */
.studio .site-header { background: var(--brand); border-bottom-color: transparent; }
.studio .site-header .brand, .studio .site-nav > ul > li > a, .studio .site-header .nav-button { color: var(--on-deep); }
.studio .site-nav > ul > li > a:hover { color: #fff; }
.studio .site-header .brand-mark { background-image: url("../brand/mark-light.svg"); }
.studio .site-header .menu-button { color: var(--on-deep); border-color: var(--on-deep-rule); }
.studio .site-header :focus-visible { outline-color: var(--on-deep); }
.studio .site-nav .nav-start a { color: var(--cta-ink); }

/* ---------- The wall ---------- */
.st-wall {
  position: relative; background: var(--brand); color: var(--on-deep); overflow: clip;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.st-wall::before {  /* a pool of gallery light on the wall, behind the hang */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 68% 42%, rgb(255 233 208 / 9%), transparent 70%);
}
.st-wall-inner { position: relative; display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.st-wall h1 {
  margin: 0; color: var(--on-deep); font-size: clamp(2.6rem, 1.15rem + 6.4vw, 5.75rem); line-height: 0.98;
  letter-spacing: -0.028em; text-wrap: balance;
}
.st-wall-lead { margin: 0 0 1.75rem; max-width: 30rem; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem); line-height: 1.5; color: var(--on-deep-muted); }

.studio .st-chooser-title, .st-chooser-title { max-width: none; margin: 0 0 0.85rem; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.005em; }
.st-chooser ul { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.st-chooser a {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.15rem; border-radius: var(--radius-button);
  border: 1px solid var(--border-strong); color: var(--ink); background: var(--surface); font-weight: 600; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.st-chooser a:hover { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); transform: translateY(-2px); }
.st-wall .st-chooser-title { color: var(--on-deep); }
.st-wall .st-chooser a { background: transparent; border-color: rgb(246 238 230 / 38%); color: var(--on-deep); }
.st-wall .st-chooser a:hover { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.st-wall :focus-visible { outline-color: var(--on-deep); }

/* The hang: one large piece and five around it, like a wall someone has added to for years. */
.st-hangs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4.5vw, 2.25rem) clamp(1rem, 3.5vw, 2rem); align-items: start; margin: 0; padding: 0; list-style: none; }
.st-hangs a { display: block; color: inherit; text-decoration: none; }
.st-hangs .hang-frame { transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 1px 1px rgb(0 0 0 / 40%), 0 0.9rem 1.4rem -0.4rem rgb(0 0 0 / 55%), 0 2.2rem 3rem -1.5rem rgb(0 0 0 / 60%); }
.st-hangs a:hover .hang-frame { transform: translateY(-0.3rem); box-shadow: 0 1px 1px rgb(0 0 0 / 40%), 0 1.4rem 1.9rem -0.5rem rgb(0 0 0 / 55%), 0 3rem 3.6rem -1.6rem rgb(0 0 0 / 65%); }
.st-hangs figcaption { color: var(--on-deep-muted); }
.st-hangs .hang-title { color: var(--on-deep); }
.st-hangs-item:nth-child(1), .st-hangs-item:nth-child(6) { grid-column: 1 / -1; }
.st-hangs-item:nth-child(3), .st-hangs-item:nth-child(5) { margin-top: 1.75rem; }
.st-hangs-item:nth-child(1) .hang-frame { --moulding: max(0.55rem, 3.4cqi); }
@media (prefers-reduced-motion: no-preference) {
  .st-hangs-item { animation: st-settle 1.1s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .st-hangs-item:nth-child(2) { animation-delay: 0.07s; }
  .st-hangs-item:nth-child(3) { animation-delay: 0.14s; }
  .st-hangs-item:nth-child(4) { animation-delay: 0.21s; }
  .st-hangs-item:nth-child(5) { animation-delay: 0.28s; }
  .st-hangs-item:nth-child(6) { animation-delay: 0.35s; }
}
@keyframes st-settle { from { transform: translateY(1.1rem); } }

@media (min-width: 40rem) {
  /* The large piece top left, two pieces stacked beside it, three along the bottom tucked up under them. */
  .st-hangs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.25rem 2rem; }
  .st-hangs-item:nth-child(1) { grid-column: 1 / span 4; grid-row: 1 / span 2; }
  .st-hangs-item:nth-child(2) { grid-column: 5 / span 2; grid-row: 1; margin: 0; }
  .st-hangs-item:nth-child(6) { grid-column: 5 / span 2; grid-row: 2; margin: 0; }
  .st-hangs-item:nth-child(3) { grid-column: 1 / span 2; grid-row: 3; margin-top: -13.5%; }
  .st-hangs-item:nth-child(4) { grid-column: 3 / span 2; grid-row: 3; margin-top: -9.5%; }
  .st-hangs-item:nth-child(5) { grid-column: 5 / span 2; grid-row: 3; margin: 0; }
}
@media (min-width: 64rem) {
  .st-wall-inner { max-width: 86rem; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); column-gap: clamp(2.5rem, 4.5vw, 4.5rem); row-gap: clamp(2rem, 4vw, 3.25rem); }
  .st-wall h1 { grid-column: 1 / -1; }
  .st-wall h1 span { display: block; }
  .st-wall-copy { align-self: start; position: sticky; top: 2rem; }
  .st-hangs { gap: 2.75rem 2.25rem; margin-top: -0.5rem; }
}

/* ---------- One photo, four ways ---------- */
.st-tabs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.st-tabs legend { padding: 0; margin: 0 0 0.6rem; font-weight: 600; font-size: 0.95rem; color: var(--ink-muted); }
.st-tabs label { position: relative; cursor: pointer; }
.st-tabs input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.st-tabs span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.05rem; border: 1px solid var(--border-strong);
  border-radius: var(--radius-button); font-weight: 600; color: var(--ink); background: transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.st-tabs label:hover span { border-color: var(--ink); }
.st-tabs input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-deep); }
.st-tabs input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.st-subjects { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.st-subjects span { font-family: var(--font-display); font-size: 1.2rem; min-height: 3rem; padding: 0 1.2rem; }

.st-way { display: none; }
.st-piece, .st-note { display: none; }
.st-switch:has(input[name="way"][value="home"]:checked) .st-way[data-way="home"],
.st-switch:has(input[name="way"][value="place"]:checked) .st-way[data-way="place"],
.st-switch:has(input[name="way"][value="vehicle"]:checked) .st-way[data-way="vehicle"],
.st-switch:has(input[name="way"][value="pet"]:checked) .st-way[data-way="pet"],
.st-switch:has(input[name="way"][value="other"]:checked) .st-way[data-way="other"] { display: grid; }
.st-way:has(input[value="watercolour"]:checked) [data-style="watercolour"],
.st-way:has(input[value="oil"]:checked) [data-style="oil"],
.st-way:has(input[value="royal"]:checked) [data-style="royal"],
.st-way:has(input[value="lineart"]:checked) [data-style="lineart"],
.st-way:has(input[value="storybook"]:checked) [data-style="storybook"] { display: block; }

.st-way { gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.st-stage { position: relative; padding: 0 0 clamp(2.75rem, 7vw, 4rem) clamp(1.25rem, 5vw, 3.5rem); max-width: 40rem; }
.st-stage--portrait { max-width: 30rem; }
.st-snap {  /* the customer's photo: a small print tucked under the corner of the frame */
  position: absolute; left: 0; bottom: 0; width: clamp(6.5rem, 30%, 12rem); margin: 0; padding: 0.4rem 0.4rem 0;
  background: #fff; transform: rotate(-4deg); transform-origin: left bottom;
  box-shadow: 0 1px 2px rgb(20 12 8 / 22%), 0 0.8rem 1.4rem -0.5rem rgb(20 12 8 / 40%);
}
.st-stage--portrait .st-snap { width: clamp(5.5rem, 28%, 9.5rem); }
.st-snap img { display: block; width: 100%; height: auto; }
.st-snap figcaption, .st-snap-label { display: block; padding: 0.3rem 0 0.4rem; font-size: 0.8125rem; font-weight: 600; text-align: center; color: var(--ink-muted); }
.st-way-side { max-width: 26rem; }
.st-note { margin: 1.25rem 0 0; font-family: var(--font-display); font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.25; color: var(--ink); }
.st-way-price { margin: 1rem 0 1.5rem; color: var(--ink-muted); }
@media (min-width: 60rem) {
  .st-way { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .st-way:has(.st-stage--portrait) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* Centred, with a width of its own: a framed piece is an inline-size container, so it gives the stage none. */
  .st-stage--portrait { justify-self: center; width: 100%; }
}
/* Browsers without :has() show every style of every subject, one after another. */
@supports not selector(:has(*)) {
  .st-subjects, .st-styles { display: none; }
  .st-way { display: grid; margin-bottom: 3rem; }
  .st-piece, .st-note { display: block; margin-bottom: 1.5rem; }
}

/* ---------- Bring us what you love: an index, not a row of cards ---------- */
.st-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-strong); }
.st-rows li { border-bottom: 1px solid var(--border-strong); }
.st-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1.25rem; align-items: center;
  padding: clamp(1.25rem, 3vw, 1.9rem) 0; color: var(--ink); text-decoration: none;
  transition: background-color 0.3s;
}
.st-row h3 { grid-column: 1 / -1; font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); line-height: 1.05; letter-spacing: -0.015em; }
.st-row p { grid-column: 1 / -1; margin: 0; max-width: 34rem; color: var(--ink-muted); }
.st-row-art { grid-column: 1; display: flex; gap: 0.6rem; align-items: center; }
.st-row-art img { display: block; width: clamp(3.6rem, 16vw, 5.5rem); height: auto; background: var(--paper-deep); box-shadow: 0 1px 2px rgb(20 12 8 / 16%), 0 0.5rem 0.8rem -0.45rem rgb(20 12 8 / 30%); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.st-row-art--wide img { width: clamp(4.4rem, 20vw, 7rem); }
.st-row-go { grid-column: 2; justify-self: end; font-weight: 600; font-size: 0; }  /* the arrow alone on phones; the words stay for screen readers */
.st-row-go::after { content: "→"; font-size: 1.5rem; display: inline-block; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.st-row--plain .st-row-go { grid-column: 1 / -1; justify-self: start; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--cta); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.st-row--plain .st-row-go::after { font-size: 1rem; margin-left: 0.5rem; }
.st-row:hover { color: var(--ink); }
.st-row:hover .st-row-go::after { transform: translateX(0.4rem); }
.st-row:hover .st-row-art img:nth-child(odd) { transform: translateY(-0.3rem) rotate(-1.5deg); }
.st-row:hover .st-row-art img:nth-child(even) { transform: translateY(-0.45rem) rotate(1.5deg); }
@media (min-width: 60rem) {
  .st-row { grid-template-columns: 17rem minmax(0, 1fr) auto 2.5rem; gap: 2.5rem; margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  .st-row h3, .st-row p { grid-column: auto; }
  .st-row p { font-size: 1.0625rem; }
  .st-row-art { grid-column: auto; }
  .st-row-go { grid-column: auto; }
  .st-row--plain { grid-template-columns: 17rem minmax(0, 1fr) auto; }
  .st-row--plain .st-row-go { grid-column: auto; justify-self: end; }
  .st-row:hover { background: var(--paper-deep); }
}

/* ---------- What arrives ---------- */
.st-formats-inner { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.st-prices { margin: 1.75rem 0 1.25rem; max-width: 26rem; border-top: 1px solid var(--border-strong); }
.st-prices > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border-strong); }
.st-prices dt { font-weight: 600; }
.st-prices dt span { display: block; font-weight: 400; font-size: 0.95rem; color: var(--ink-muted); }
.st-prices dd { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.st-frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin: 0; padding: 0; list-style: none; align-items: end; }
@media (min-width: 60rem) {
  .st-formats-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .st-frames { gap: 2.5rem 2rem; }
  .st-frames li:nth-child(even) { margin-top: 2.5rem; }
}

/* ---------- Photo beside words ---------- */
.st-split { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.st-photo { margin: 0; }
.st-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-small); }
.st-split-copy p { max-width: 32rem; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); line-height: 1.55; color: var(--ink-muted); }
.st-season { color: var(--ink) !important; font-weight: 600; }
@media (min-width: 60rem) {
  .st-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .st-split--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- Businesses that give gifts: the one rose field ---------- */
.st-trade { background: var(--cta); color: var(--cta-ink); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.st-trade h2 { color: var(--cta-ink); }
.st-trade .st-split-copy p { color: #4a3530; }
.st-facts { margin: 1.5rem 0 2rem; padding: 0; list-style: none; border-top: 1px solid rgb(46 36 32 / 28%); max-width: 30rem; }
.st-facts li { padding: 0.75rem 0; border-bottom: 1px solid rgb(46 36 32 / 28%); font-weight: 600; }
.st-trade-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin: 0; }
.st-trade .st-link { text-decoration-color: var(--cta-ink); }
.st-trade ::selection { background: var(--brand); color: var(--on-deep); }
.st-trade .st-photo img { box-shadow: 0 1.5rem 3rem -1.5rem rgb(46 36 32 / 55%); }
.st-trade + .st-section { padding-top: clamp(4rem, 9vw, 7.5rem); }
.st-gift { padding-bottom: clamp(4rem, 9vw, 7.5rem) !important; }

/* ---------- How it works ---------- */
.st-steps { display: grid; gap: 2rem; margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: step; }
.st-steps li { counter-increment: step; padding-top: 1.1rem; border-top: 1px solid var(--border-strong); }
.st-steps li::before { content: counter(step); display: block; margin-bottom: 0.5rem; font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--accent); }
.st-steps h3 { margin: 0 0 0.5rem; }
.st-steps p { margin: 0; color: var(--ink-muted); max-width: 22rem; }
@media (min-width: 52rem) { .st-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* ---------- Promise and questions ---------- */
.st-faq-inner { display: grid; gap: 2rem; }
.st-faq-inner > div > p { max-width: 28rem; color: var(--ink-muted); }
@media (min-width: 60rem) { .st-faq-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; } }

/* ---------- The last word: the same question as the first ---------- */
.st-close { background: var(--paper-deep); padding: clamp(3.5rem, 8vw, 6rem) 0 !important; }
.studio .st-close .st-chooser-title, .st-close .st-chooser-title { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 1.5rem; max-width: 22ch; }
.studio .site-footer { margin-top: 0; }

/* ---------- Order form: style and subject choices (buyer pages) ---------- */
.buy-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.buy-styles legend { padding: 0; margin-bottom: 0.5rem; }
.buy-form .buy-styles > .buy-style { position: relative; display: block; margin: 0; padding: 0; border: 0; cursor: pointer; font-weight: 600; }
.buy-style input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.buy-style img { display: block; width: 100%; height: auto; outline: 1px solid var(--border); outline-offset: -1px; }
.buy-style span { display: block; padding: 0.45rem 0 0; }
.buy-style:has(input:checked) img { outline: 3px solid var(--brand); outline-offset: 2px; }
.buy-style:has(input:focus-visible) img { outline: 3px solid var(--brand); outline-offset: 4px; }
@media (min-width: 40rem) { .buy-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Galleries on the studio's other pages ---------- */
.st-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; margin: 0; padding: 0; list-style: none; align-items: end; }
@media (max-width: 51.99rem) { .st-gallery > li:first-child:nth-last-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 52rem) { .st-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.5rem; } }
@media (min-width: 52rem) { .st-gallery--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 2rem; } }
.st-pair { position: relative; margin: 0; padding: 0 0 clamp(2.5rem, 6vw, 3.5rem) clamp(1rem, 4vw, 3rem); }
.st-pair .st-snap { width: clamp(6rem, 32%, 11rem); }
/* A tall piece beside its photo: narrower, so the page's first screen still reaches the price and the button. */
.st-pair--portrait { width: 100%; max-width: 19rem; margin-inline: auto; }  /* a width of its own, or the frame collapses */
.st-pair--portrait .st-snap { width: clamp(5.5rem, 30%, 8.5rem); }
@media (min-width: 56rem) { .st-pair--portrait { max-width: 27rem; } }
/* Every piece is the same 8×10, upright or on its side. Hung among wide pieces, a tall one is drawn at that true
   size (four fifths as wide) with the same moulding, so a mixed row steps gently instead of leaving a hole. */
.st-gallery:has(.hang:not(.hang--tall)) .hang--tall { width: 80%; margin-inline: auto; }
.st-gallery:has(.hang:not(.hang--tall)) .hang--tall .hang-frame { --moulding: max(0.4rem, 5.5cqi); }
.info-head--page + .st-style { margin-top: var(--info-gap); }
.st-style { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--border-strong); }
.st-style-copy p { max-width: 30rem; color: var(--ink-muted); }
.st-style-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; align-items: end; }
.st-style-set > :first-child { grid-column: 1 / -1; }
@media (min-width: 60rem) {
  .st-style { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); }
  .st-style-copy { position: sticky; top: 2rem; }
  .st-style-set { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 2rem 2.25rem; align-items: start; }
  .st-style-set > :first-child { grid-column: 1; grid-row: 1 / span 2; }
  .st-style-set > :nth-child(n + 2) { grid-column: 2; }
}
.st-plain { margin: 1.25rem 0 0; max-width: 40rem; font-size: 1rem; color: var(--ink-muted); }
/* A quiet onward line under an index of rows (the business page's line for aftercare providers). */
.info .st-rows + .st-plain { margin-top: 1.5rem; }
.info .st-photo img { border-radius: var(--radius-small); }
.info-media--photo img { aspect-ratio: 3 / 2; }
.info .st-gallery figcaption .hang-title { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.info .st-link { margin-top: 0.25rem; }
.info .st-row h3 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }

/* Buyer pages on phones: the heading, one sentence, then the art, before the price and the button. */
@media (max-width: 55.99rem) {
  .buy > .info-hero:first-child > .info-hero-text { display: contents; }
  .buy > .info-hero:first-child { gap: 1rem; }
  .buy > .info-hero:first-child > .info-hero-text > * { margin-bottom: 0; }
  .buy > .info-hero:first-child > .info-hero-text > h1 { order: 1; }
  .buy > .info-hero:first-child > .info-hero-text > .lead { order: 2; }
  .buy > .info-hero:first-child > figure, .buy > .info-hero:first-child > .st-pair { order: 3; }
  .buy > .info-hero:first-child > .info-hero-text > .buy-price { order: 4; }
  .buy > .info-hero:first-child > .info-hero-text > .info-actions { order: 5; }
  .buy > .info-hero:first-child > .info-hero-text > .info-note { order: 6; margin-top: 0; }
}
.info .buy-also { margin-top: var(--info-gap); padding-top: 1.5rem; }
.info-split-body > p:last-child a { display: inline-block; margin-bottom: 0.25rem; }
/* Small print under the footer columns: the pet line's deeper pages, in one quiet row. */
.footer-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1.25rem; padding: 0 0 1rem; font-size: 0.9rem; color: var(--on-deep-muted); }
.footer-more p { margin: 0; font-weight: 600; color: var(--on-deep); }
.footer-more .footer-links { flex-direction: row; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-more .footer-links a { padding: 0.5rem 0; }
@media (min-width: 44rem) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.footer-grid { padding-bottom: 1.5rem; }
.st-lettered { margin: 0; }
@media (min-width: 64rem) { .studio .site-header .container { max-width: 86rem; } }

/* Phones: the mark, the name, the way to start and the menu stay on one line down to 320px. */
@media (max-width: 40rem) {
  .site-nav .nav-start a { min-height: 40px; padding: 0 0.7rem; font-size: 0.875rem; white-space: nowrap; }
}
@media (max-width: 26rem) {
  .site-header .header-inner { gap: 0.35rem; }
  .site-nav > ul { gap: 0.35rem; flex-wrap: nowrap; }
  .brand { gap: 0.4rem; }
  .brand-name { font-size: 1.15rem; }
  .site-nav .nav-start a { padding: 0 0.5rem; font-size: 0.8125rem; }
  .menu-button { padding: 0 0.5rem; font-size: 0.875rem; }
}
@media (max-width: 23.5rem) { .brand-name { font-size: 1rem; } }
