@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/BodoniModa-variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ivory: #faf7f1; /* lighter on 9 Nov (founder: the first ivory read as dark); every copy of it below follows */
  --ink: #251f1b;
  --muted: #62584e;
  --rule: #d3c8ba;
  --edge: #8a8175; /* an ink tint for the borders that set a box apart (A2): 3.6:1 on the ivory and 3.1:1 on the #efe7da band, so at least 3:1 as a non-text contrast */
  --serif: "Bodoni Moda", "Bodoni MT", Didot, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

* { box-sizing: border-box; }
html { background: var(--ivory); }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
/* A short page (privacy) keeps its footer at the bottom. */
body { display: flex; flex-direction: column; min-height: 100vh; container: page / inline-size; } /* the layout switches below measure this box, in rem */
main { flex: 1; }
img { max-width: 100%; }
img[hidden] { display: none; }
a { color: inherit; text-underline-offset: 0.4em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
a:focus-visible, [tabindex="-1"]:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
p a:focus-visible { outline-offset: 2px; } /* inside a sentence the ring would cover neighbouring words */
p, h1, h2, h3, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
p { font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; overflow-wrap: break-word; hyphens: auto; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 85rem); margin-inline: auto; }
.eyebrow { font-size: 0.8125rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; }
.skip-link { position: absolute; z-index: 10; top: 1rem; left: 1rem; padding: 0.875rem 1.25rem; background: var(--ink); color: var(--ivory); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 1.75rem; border-bottom: 1px solid var(--rule); }
.brand-link { display: flex; align-items: center; min-height: 44px; max-width: 100%; flex-shrink: 0; }
.wordmark { display: block; width: 15rem; height: auto; }
/* Links have 0.4375rem padding a side (44px boxes, F5); the gap and negative margin take it back: equal gaps, words at the page edge. */
nav { display: flex; flex-wrap: wrap; align-items: center; max-width: calc(100% + 0.875rem); margin-inline: -0.4375rem; gap: calc(clamp(1.25rem, 3vw, 3rem) - 0.875rem); }
nav a, .site-footer a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; text-decoration: none; font-size: 0.9375rem; line-height: 1.5; }
nav a { min-width: 0; padding-inline: 0.4375rem; }

.hero { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: 2.5rem; padding-bottom: 6.5rem; }
.hero-copy { padding-block: 2.5rem 3rem; }
.hero .eyebrow { margin-bottom: 2rem; }
h1 { max-width: 8.7em; font-size: clamp(3rem, 5.5vw, 5.25rem); line-height: 1.05; letter-spacing: -0.045em; }
h1 span { display: block; }
.intro { max-width: 21.5rem; color: var(--muted); margin-top: 2rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.75rem; font-size: 0.9375rem; }
.hero-figure { min-width: 0; }
.image-frame { position: relative; width: 100%; aspect-ratio: 5 / 6; max-height: 43rem; background: #e6ded1; isolation: isolate; }
.image-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; color: var(--ink); font-family: var(--serif); font-size: 1.5rem; }
.image-fallback img { width: 7.5rem; height: 7.5rem; }
.atmosphere { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
figcaption { margin-top: 0.875rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }

.story { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 2.5rem; padding-top: 4rem; padding-bottom: 7.5rem; border-top: 1px solid var(--rule); scroll-margin-top: 2rem; }
.story > .eyebrow { grid-column: 1 / -1; }
/* Figure and copy share one row: the photo fills its column, the copy pins its principles to the bottom, so both columns align. */
.story-figure { display: flex; flex-direction: column; min-width: 0; }
.story-figure[hidden] { display: none; }
.story-media { position: relative; flex: 1 0 auto; aspect-ratio: 1 / 1; background: #e6ded1; }
.story-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 12% 45%; }
.story-copy { display: flex; flex-direction: column; }
.story-copy > .principles { margin-top: auto; }
.story-copy > p { margin-bottom: 3.5rem; }
.story h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -0.025em; }
.story-copy > p { max-width: 30rem; margin-top: 1.5rem; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.principles h3, .card h3 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em; }
.principles p { margin-top: 0.625rem; color: var(--muted); font-size: 0.9375rem; }

.collection { padding-top: 5rem; padding-bottom: 6.5rem; background: #efe7da; scroll-margin-top: 1.5rem; }
.collection-heading { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 1rem; align-items: end; padding-bottom: 3rem; }
.collection-heading .eyebrow { grid-column: 1 / -1; }
.collection-heading h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -0.025em; }
.collection-intro { max-width: 30rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #e6ded1; }
.card-media > img { display: block; width: 100%; height: 100%; object-fit: cover; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.media-label { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.25rem 0.625rem; background: rgba(250, 247, 241, 0.92); color: var(--ink); font-family: var(--sans); font-size: 0.75rem; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; }
.card-media > img[hidden] { display: none; }
.card-media.is-unavailable { background: #e6ded1 url("assets/knotkala-monogram-ink.svg") center 40% / 5rem no-repeat; }
.media-missing { position: absolute; left: 0; right: 0; top: 62%; padding-inline: 1rem; color: var(--muted); font-size: 0.875rem; text-align: center; }
.card-status { margin-top: 1.25rem; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.card h3 { margin-top: 0.5rem; hyphens: manual; } /* break between words, not inside "handle" (F9) */
/* Card as a column: "Ask about" at the bottom, the 0.5rem gap above it the description's bottom margin. */
.card { display: flex; flex-direction: column; padding: 0.875rem; border: 1px solid var(--edge); } /* A2: a soft ink-tint border and an inset, so the card stands off the band */
.card h3 + p { margin-bottom: 0.5rem; }
.card .text-link { align-self: flex-start; margin-top: auto; }
.card h3 + p { margin-top: 0.5rem; max-width: 22rem; color: var(--muted); font-size: 0.9375rem; }
.collection-note { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; }

.next, .site-footer { background: var(--ink); color: var(--ivory); }
.next { padding-top: 4.5rem; }
.next-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 1rem; padding-bottom: 2.5rem; }
.quiet-note { color: #c6bbaf; font-size: 0.8125rem; }
.coming-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3rem; align-items: center; padding-block: 3rem; border-top: 1px solid #655a50; scroll-margin-top: 1.5rem; }
.coming-title { display: flex; flex-wrap: wrap; align-items: baseline; min-width: 0; column-gap: 2rem; row-gap: 0.75rem; }
.coming-title h2 { max-width: 100%; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -0.025em; }
.status { font-size: 0.875rem; line-height: 1.5; color: #d9cbb9; }
.coming-description { color: #ded5cb; max-width: 26rem; }
.site-footer { padding-top: 3rem; padding-bottom: 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-top: 2rem; border-top: 1px solid #655a50; }
.footer-brand { display: flex; align-items: center; gap: 0.875rem; font-size: 0.9375rem; }
.footer-brand img { display: block; width: 2.5rem; height: 2.5rem; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
.footer-inner > p { font-size: 0.8125rem; color: #d9cbb9; }

/* Privacy page: one readable column, left-aligned with the header. */
.privacy { padding-block: 4rem 7rem; }
.privacy > * { max-width: 40rem; }
.privacy h1 { margin-bottom: 2rem; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -0.025em; }
.privacy p + p { margin-top: 1.25rem; }
.privacy .updated { color: var(--muted); font-size: 0.875rem; }

/* Container queries in rem (62.5rem = 1000px, 47.4375rem = 759px): enlarged text gets the narrow layout sooner. */
@container page (max-width: 62.5rem) {
  h1 { font-size: clamp(3rem, 6.2vw, 4rem); }
  .hero { gap: 2rem; }
  .story { column-gap: 2rem; }
  .hero .eyebrow { margin-bottom: 1.5rem; }
  .coming-row { grid-template-columns: 1fr 1fr; }
  .coming-title { flex-direction: column; }
  .cards { gap: 2rem; } /* keep all three in one row; gap matches the hero and story */
  .principles { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

@container page (max-width: 47.4375rem) {
  .site-header { display: block; padding-block: 1.25rem 0.75rem; }
  .brand-link { width: fit-content; }
  .wordmark { width: 12.5rem; }
  nav { margin-top: 0.625rem; justify-content: space-between; gap: 0.625rem 0.125rem; }
  nav a { font-size: 0.875rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 4rem; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { margin-bottom: 1.5rem; }
  h1 { max-width: 7.8em; font-size: clamp(3.25rem, 10vw, 4.5rem); line-height: 1.06; }
  .intro { margin-top: 1.5rem; max-width: 24rem; }
  .text-link { margin-top: 1.25rem; }
  .image-frame { aspect-ratio: 4 / 5; max-height: none; }
  figcaption { max-width: 25rem; }
  .story { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; padding-top: 2.5rem; padding-bottom: 4rem; }
  .story-media { flex: none; aspect-ratio: 4 / 5; }
  .story h2 { font-size: clamp(2.25rem, 7.8vw, 3rem); }
  .story-copy > p { margin-top: 1.25rem; margin-bottom: 2.5rem; }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; }
  .collection { padding-top: 3rem; padding-bottom: 4rem; }
  .collection-heading { grid-template-columns: minmax(0, 1fr); padding-bottom: 2rem; }
  .collection-heading h2 { font-size: clamp(2.25rem, 7.8vw, 3rem); }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .collection-note { margin-top: 2.5rem; }
  .next { padding-top: 3rem; }
  .next-heading { padding-bottom: 2rem; }
  .quiet-note { display: none; }
  .coming-row { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-block: 2rem; }
  .coming-title { row-gap: 0.625rem; }
  .coming-title h2 { font-size: 2.5rem; }
  .wide-only { display: none; }
  .privacy { padding-block: 2.5rem 4rem; }
  .site-footer { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .footer-inner { flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; }
  .footer-brand { flex-basis: 100%; }
}

/* No container queries (Safari 15, Chrome 104 and older): the same blocks in pixels (R1); hygiene.py keeps them equal. */
@supports not (container-type: inline-size) {
@media (max-width: 1000px) {
  h1 { font-size: clamp(3rem, 6.2vw, 4rem); }
  .hero { gap: 2rem; }
  .story { column-gap: 2rem; }
  .hero .eyebrow { margin-bottom: 1.5rem; }
  .coming-row { grid-template-columns: 1fr 1fr; }
  .coming-title { flex-direction: column; }
  .cards { gap: 2rem; } /* keep all three in one row; gap matches the hero and story */
  .principles { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 759px) {
  .site-header { display: block; padding-block: 1.25rem 0.75rem; }
  .brand-link { width: fit-content; }
  .wordmark { width: 12.5rem; }
  nav { margin-top: 0.625rem; justify-content: space-between; gap: 0.625rem 0.125rem; }
  nav a { font-size: 0.875rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 4rem; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { margin-bottom: 1.5rem; }
  h1 { max-width: 7.8em; font-size: clamp(3.25rem, 10vw, 4.5rem); line-height: 1.06; }
  .intro { margin-top: 1.5rem; max-width: 24rem; }
  .text-link { margin-top: 1.25rem; }
  .image-frame { aspect-ratio: 4 / 5; max-height: none; }
  figcaption { max-width: 25rem; }
  .story { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; padding-top: 2.5rem; padding-bottom: 4rem; }
  .story-media { flex: none; aspect-ratio: 4 / 5; }
  .story h2 { font-size: clamp(2.25rem, 7.8vw, 3rem); }
  .story-copy > p { margin-top: 1.25rem; margin-bottom: 2.5rem; }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; }
  .collection { padding-top: 3rem; padding-bottom: 4rem; }
  .collection-heading { grid-template-columns: minmax(0, 1fr); padding-bottom: 2rem; }
  .collection-heading h2 { font-size: clamp(2.25rem, 7.8vw, 3rem); }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .collection-note { margin-top: 2.5rem; }
  .next { padding-top: 3rem; }
  .next-heading { padding-bottom: 2rem; }
  .quiet-note { display: none; }
  .coming-row { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-block: 2rem; }
  .coming-title { row-gap: 0.625rem; }
  .coming-title h2 { font-size: 2.5rem; }
  .wide-only { display: none; }
  .privacy { padding-block: 2.5rem 4rem; }
  .site-footer { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .footer-inner { flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; }
  .footer-brand { flex-basis: 100%; }
}
}

/* Text at about 200 % in a narrow window (under 20rem): smaller type keeps each word and the e-mail address whole. */
@container page (max-width: 19.9375rem) {
  .coming-description, .privacy p { font-size: 0.8125rem; }
  h1 { font-size: clamp(1.5rem, 12cqw, 3.25rem); }
  .privacy h1 { font-size: clamp(1.25rem, 12cqw, 2.5rem); }
  .story h2, .collection-heading h2 { font-size: clamp(1.25rem, 10cqw, 2.25rem); }
  .coming-title h2 { font-size: clamp(1.25rem, 10cqw, 2.5rem); }
}

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

/* Collection, category, product and set pages (WEB-26): C2 tile grid, P1 picture left and details right, N1 text links.
   Sizes, grids and container queries are in rem, so enlarged text gets the narrow layout sooner; with no container queries: single column. */
nav a[aria-current="page"] { text-decoration: underline; }
nav.breadcrumb { display: block; margin-top: 0; padding-top: 1.25rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 0 -0.4375rem; padding: 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; list-style: none; }
.breadcrumb li { display: flex; align-items: center; min-height: 44px; }
.breadcrumb li:not(:first-child)::before { content: "/"; content: "/" / ""; margin-inline: 0.0625rem; } /* before each item but the first, so a line never ends in "/" (V R2) */
.breadcrumb a { font-size: 0.8125rem; }
.breadcrumb [aria-current="page"] { color: var(--ink); }
.breadcrumb li[aria-current="page"]::before { margin-inline-end: 0.5rem; } /* a link has 0.4375rem of padding after its "/" plus the 0.0625rem margin; the current page is plain text, so its "/" gets 0.5rem as margin: the same on both sides (PR S1) */

.listing { padding-block: 1rem 3rem; }
.listing h1, .product h1 { max-width: none; font-size: clamp(1.5rem, 10.5vw, 2.5rem); font-size: clamp(1.5rem, 10cqw, 2.5rem); line-height: 1.15; letter-spacing: -0.025em; hyphens: manual; }
.listing-intro { max-width: 36rem; margin-top: 1.25rem; color: var(--muted); }
/* Category buttons (A3): bordered, padded, at least 44px high. Narrow: two by two, one column when enlarged text leaves no room, never one alone; wider: a wrapping row. */
nav.category-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); align-items: stretch; gap: 0.75rem; max-width: 100%; margin: 1.5rem 0 0; }
nav.category-links a { justify-content: center; min-height: 44px; padding: 0.5rem 1rem; border: 1px solid var(--edge); text-align: center; line-height: 1.3; }
nav.category-links a:hover { border-color: var(--ink); }
nav.category-links a:focus-visible { outline-color: var(--ink); outline-offset: 3px; } /* the ring is ink: the current button is filled ink, where a currentColor ring would vanish into the page */
/* The current one is marked by more than colour: a filled box, bolder text and a dot. */
nav.category-links a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--ivory); font-weight: 600; text-decoration: none; }
nav.category-links a[aria-current="page"]::before { content: ""; flex: none; width: 0.4375rem; height: 0.4375rem; margin-right: 0.5rem; border-radius: 50%; background: currentColor; }
/* As many columns as fit at 9rem+, at most four; the 1px stops the fourth rounding away. */
.tiles { --tile-gap: clamp(1rem, 3vw, 2.5rem); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(9rem, calc((100% - 3 * var(--tile-gap)) / 4 - 1px))), 1fr)); gap: 2rem var(--tile-gap); margin-top: 1.5rem; }
.tile { display: flex; } /* the bordered link fills the grid cell, so a row of tiles has equal heights */
.tile-link { display: block; flex: 1; min-width: 0; padding: 0.625rem; border: 1px solid var(--edge); text-decoration: none; } /* A2: the border and inset are the whole link, so the hover below shows on it */
.tile-link:focus-visible { outline-offset: 4px; }
.tile-link:hover { border-color: var(--ink); }
.tile-link:hover .card-media { outline: 1px solid var(--ink); }
.tile-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.tile .card-status { margin-top: 0.875rem; }
.tile h2 { margin-top: 0.375rem; font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.01em; hyphens: manual; overflow-wrap: normal; }
.set-line { max-width: 36rem; margin-top: 2.5rem; color: var(--muted); text-wrap: balance; }
.page-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; }
.page-note + .page-note { margin-top: 1.25rem; padding-top: 0; border-top: 0; }

.product { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 2rem; align-items: start; padding-block: 1.5rem 3rem; }
.product-pictures { display: grid; gap: 2.5rem; min-width: 0; } /* one figure per colourway, stacked */
.product-figure { min-width: 0; }
.colourway { color: var(--ink); font-weight: 500; }
.product-media { aspect-ratio: auto; }
.product-media.is-unavailable { min-height: 14rem; } /* F8: no band under a loaded picture */
.product-media > img { height: auto; }
.product-details { min-width: 0; }
.product-details .card-status { margin-top: 0; }
.product h1 { margin-top: 0.75rem; }
.product-description { max-width: 30rem; margin-top: 1.25rem; color: var(--muted); }
.facts { margin: 2rem 0 0; padding-inline: 1rem; border: 1px solid var(--edge); } /* A2: the facts box; the rows inside keep the lighter rule */
/* Term and value side by side while 5rem + 9rem fit, else stacked (N5). */
.facts div:last-child { border-bottom: 0; }
.facts div { display: flex; flex-wrap: wrap; column-gap: 1rem; padding-block: 0.875rem; border-bottom: 1px solid var(--rule); }
.facts dt { flex: 0 0 5rem; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.12em; line-height: 1.65; text-transform: uppercase; }
.facts dd { flex: 1 1 9rem; min-width: 0; margin: 0; font-size: 0.9375rem; line-height: 1.65; }
.product-order { max-width: 30rem; margin-top: 1.5rem; color: var(--muted); font-size: 0.9375rem; }
.product .page-note { grid-column: 1 / -1; margin-top: 0; }

.set-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.set-tile { display: flex; flex-direction: column; min-width: 0; padding: 1.25rem 1rem; border: 1px solid var(--edge); background: #efe7da; } /* 1rem a side: "Burgundy" at 200 % text must fit a one-column tile */
.set-tile h2 { font-size: clamp(1.25rem, 6.5cqw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; hyphens: manual; overflow-wrap: normal; }
.set-tile p { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.set-tile .text-link { align-self: flex-start; margin-top: auto; padding-top: 1rem; line-height: 1.6; }
.set > * { max-width: 40rem; }
.set h2 { margin-top: 2.5rem; font-size: 1.5rem; line-height: 1.25; }
.set p { margin-top: 0.75rem; }
.set .page-note { margin-top: 2.5rem; }
.card .text-link ~ .text-link { margin-top: 0; } /* the two links of a home card sit together at its foot */
.card .text-link { padding-block: 0.375rem; line-height: 1.5; } /* a link that wraps (about 768px) keeps clear of the next one (V R1); one line is still 44px */

/* Narrow: the details follow the first picture (F6); the pictures become items of .product so `order` works. */
@container page (max-width: 47.4999rem) {
  .product-pictures { display: contents; }
  .product-figure:first-child { order: 1; }
  .product-details { order: 2; }
  .product-figure:not(:first-child) { order: 3; }
  .product .page-note { order: 4; }
}

/* Wide: rem, so 47.5rem is 760px at the default text size and twice that at 200 %. */
@container page (min-width: 26rem) {
  nav.category-links { display: flex; flex-wrap: wrap; }
}

@container page (min-width: 47.5rem) {
  .listing { padding-block: 2rem 4rem; }
  .listing h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
  .tile h2 { font-size: 1.375rem; }
  .set-tile { padding: 1.5rem; }
  .page-note { margin-top: 3rem; }
  .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 1rem; padding-bottom: 4rem; }
  .product h1 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.1; letter-spacing: -0.03em; }
  .product .page-note { margin-top: 1.5rem; }
  .set .page-note { margin-top: 2.5rem; }
}

@container page (min-width: 47.5rem) { /* details stay beside a tall stack of pictures, where the window is tall enough */
  @media (min-height: 700px) { .product-details { position: sticky; top: 1.5rem; } }
}
