/* örklin shop. Gallery wall in eucalyptus grey, black type, one red dot. */

@font-face { font-family: "Spectral"; src: url(fonts/spectral-latin-200-normal.woff2) format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url(fonts/spectral-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url(fonts/spectral-latin-300-italic.woff2) format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url(fonts/spectral-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url(fonts/libre-franklin-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Mrs Saint Delafield"; src: url(fonts/mrs-saint-delafield-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --wall: #e8ece7;
  --wall-deep: #dde3dd;
  --paper: #f6f8f4;
  --ink: #000;
  --text: #26302b;
  --muted: #55625b;
  --line: #c3ccc5;
  --gum: #2e463b;
  --gum-ink: #eef2ec;
  --dot: #d4261d;
  --kraft: #c9a57f;
  --kraft-ink: #3b2b1c;
  --string: #8a6c50;

  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --script: "Mrs Saint Delafield", "Snell Roundhand", "Segoe Script", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  /* light comes from the top left, so frames cast their shadow down and to the right */
  --hang-shadow: 0 1px 1px rgba(20, 30, 25, .1), 1px 3px 4px rgba(20, 30, 25, .08), 10px 18px 28px -12px rgba(25, 38, 31, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background-color: var(--wall);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .2 0 0 0 0 .17 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.xbar :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* type */
.hero-title, .h1 { font: 200 clamp(2.6rem, 1.5rem + 4.2vw, 4.6rem)/1.04 var(--serif); letter-spacing: -.015em; color: var(--ink); margin: 0; }
/* seasonal parts: Christmas text shows only in season (the script adds html.is-xmas) */
html:not(.is-xmas) .xmas-only, html:not(.is-xmas) .xmas-block { display: none !important; }
html.is-xmas .xmas-off { display: none !important; }
.h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); line-height: 1.06; }
.h2 { font: 300 clamp(2rem, 1.55rem + 1.8vw, 2.875rem)/1.08 var(--serif); letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5em; }
.h3 { font: 300 1.5rem/1.2 var(--serif); color: var(--ink); margin: 0 0 .75em; }
.lede { font-size: 1.125rem; line-height: 1.55; max-width: 38em; }
.fine { font-size: .8125rem; line-height: 1.5; color: var(--muted); }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font: 500 .9375rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--gum); border-color: var(--gum); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.textlink { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.textlink:hover { text-decoration-thickness: 2px; }
.textbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* notices */
.note { margin: 0; padding: 8px var(--gutter); font-size: .8125rem; text-align: center; }
.note--sample { background: var(--kraft); color: var(--kraft-ink); }
.note--test { background: #fff1a8; color: #3d3400; }
.xbar { background: var(--gum); color: var(--gum-ink); font-size: .875rem; line-height: 1.45; text-align: center; padding: 9px var(--gutter); }
.xbar p { margin: 0; }
.xbar a { color: inherit; text-underline-offset: 3px; white-space: nowrap; }
.xbar .short { display: none; }
@media (max-width: 640px) { .xbar .long { display: none; } .xbar .short { display: inline; } }

/* header */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter) 6px;
}
.nav { display: flex; align-items: center; gap: 24px; font-size: .9375rem; }
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav--right { justify-content: flex-end; }
.ig { display: inline-flex; padding: 6px; margin: -6px; }
.only-small { display: none; }
.wordmark { display: flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark-name { font: 400 3.9rem/.8 var(--script); padding: .1em .3em 0; }
.wordmark-tag { font-size: .625rem; letter-spacing: .2em; color: var(--muted); margin-top: 4px; }
.nav a { white-space: nowrap; }
@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr; padding-top: 10px; }
  .nav--left, .only-large { display: none; }
  .only-small { display: inline; }
  .wordmark { align-items: flex-start; }
  .wordmark-name { font-size: 2.75rem; padding-left: 0; }
}

/* hero */
.hero { display: grid; gap: 28px; align-items: center; padding-block: clamp(20px, 5vw, 72px) clamp(40px, 7vw, 96px); }
.hero-title { max-width: 14ch; text-wrap: balance; }
.h1, .h2, .pd-title, .faq summary { text-wrap: balance; }
@media (max-width: 899px) { .hero-title { max-width: none; } }
.hero-lede { font-size: 1.125rem; line-height: 1.55; max-width: 31em; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 28px 0 0; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
}

/* the hang: frames on a common eye line, at their real relative sizes */
.hang { position: relative; height: clamp(330px, 94vw, 470px); }
@media (min-width: 900px) { .hang { height: clamp(420px, 40vw, 580px); } }
.hang-frame { position: absolute; display: block; }
.hang-frame img { display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: var(--hang-shadow); background: #fff; }
/* cut-out photos carry their own wall shadow and overhanging petals */
.hang-frame img.is-cut, .card-wall img.is-cut, .pd-slide img.is-cut { background: none; box-shadow: none; }
.hang-frame img.is-cut { object-fit: contain; }
.card-wall img.is-cut { max-width: 94%; max-height: 92%; }
.tag-wrap { position: absolute; width: 0; height: 0; transform: rotate(7deg); transform-origin: 0 0; filter: drop-shadow(3px 6px 5px rgba(30, 40, 35, .25)); }
.tag-string { position: absolute; left: -1px; top: 0; width: 1.5px; height: 30px; background: var(--string); }
.tag {
  position: absolute; left: -64px; top: 24px; width: 128px; padding: 24px 10px 12px;
  background: radial-gradient(circle at 50% 12px, transparent 3.4px, rgba(59, 43, 28, .35) 3.8px, var(--kraft) 4.6px);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%, 0 20px);
  font: italic 400 .9375rem/1.25 var(--serif); color: var(--kraft-ink); text-align: center;
}
@media (max-width: 520px) { .tag { left: -56px; width: 112px; font-size: .8125rem; padding-top: 22px; } }
@media (prefers-reduced-motion: no-preference) {
  .hang-frame { animation: hang-in 1s cubic-bezier(.2, .75, .25, 1) both; animation-delay: calc(var(--i, 0) * 150ms + 120ms); }
  .tag-wrap { animation: tag-swing 2.4s ease-out both; animation-delay: .75s; }
}
@keyframes hang-in {
  0% { opacity: 0; transform: translateY(-22px); }
  55% { opacity: 1; transform: translateY(4px); }
  78% { transform: translateY(-1.5px); }
  100% { opacity: 1; transform: none; }
}
@keyframes tag-swing {
  0% { opacity: 0; transform: rotate(28deg); }
  15% { opacity: 1; }
  35% { transform: rotate(-6deg); }
  58% { transform: rotate(12deg); }
  78% { transform: rotate(5deg); }
  100% { transform: rotate(7deg); }
}

/* collection */
.collection { padding-top: clamp(8px, 2vw, 24px); }
.collection-head { display: grid; gap: 24px; align-items: end; }
.collection-intro .lede { margin: 0; }
@media (min-width: 900px) { .collection-head { grid-template-columns: 1fr auto; gap: 48px; } }

.dotmap-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 16px); gap: 8px; }
.dot { display: block; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(38, 48, 43, .42); transition: transform .12s ease; }
a.dot:hover { transform: scale(1.25); border-color: var(--ink); }
.dot.is-sold { background: var(--dot); border-color: var(--dot); }
.dot.is-reserved { border-color: var(--dot); border-width: 2px; }
.dotmap-key { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .75rem; color: var(--muted); }
.dotmap-key .dot { width: 10px; height: 10px; border-width: 1.2px; }
.dotmap-key .dot + span { margin-right: 10px; }

.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 32px; padding-block: 16px; border-block: 1px solid var(--line); }
.chips { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; line-height: 1.2; white-space: nowrap; background: rgba(246, 248, 244, .55); }
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.selects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.select select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 34px 9px 15px; font-size: .875rem; line-height: 1.2; background: rgba(246, 248, 244, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2326302b' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer; max-width: 100%;
}
.select select:hover { border-color: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; cursor: pointer; padding-left: 4px; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
@media (max-width: 760px) {
  .controls { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .selects { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .select select { width: 100%; }
  .check { padding: 6px 0 0 4px; }
  .chips { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); width: calc(100% + 2 * var(--gutter)); }
  .chips::-webkit-scrollbar { display: none; }
}

.count { margin: 18px 0 0; font-size: .875rem; color: var(--muted); }
.grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 36px; } }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-wall { position: relative; aspect-ratio: 4 / 5; }
.card-wall img { position: absolute; inset: 0; margin: auto; display: block; max-width: 80%; max-height: 82%; width: auto; height: auto; background: #fff; box-shadow: var(--hang-shadow); }
.card-label { padding-top: 6px; }
.card-title { margin: 0; font: italic 300 1.1875rem/1.2 var(--serif); color: var(--ink); }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-meta { margin: 5px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.card-price { margin: 7px 0 0; display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.sold-dot { display: inline-block; flex: none; width: .7em; height: .7em; border-radius: 50%; background: var(--dot); }
.sold-dot--ring { background: transparent; border: 2px solid var(--dot); }
.empty { margin-top: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }

/* pre-order */
.preorder { margin-top: clamp(72px, 10vw, 128px); padding-block: clamp(56px, 8vw, 104px); background: var(--wall-deep); border-block: 1px solid var(--line); }
.preorder-inner { display: grid; gap: 36px; grid-template-areas: "head" "sizes" "how"; }
.preorder-head { grid-area: head; }
.po-sizes { grid-area: sizes; }
.preorder-how { grid-area: how; }
@media (min-width: 1000px) {
  .preorder-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head sizes" "how sizes"; column-gap: 64px; row-gap: 0; }
  .preorder-head { align-self: end; }
  .preorder-how { align-self: start; }
  .po-sizes { align-self: center; }
}
.preorder-head .lede { margin-bottom: 0; }
.po-note { margin: 20px 0 0; padding: 12px 16px; max-width: 34em; border-left: 3px solid var(--ink); background: rgba(246, 248, 244, .75); font-size: .9375rem; }
.po-steps { list-style: none; margin: 24px 0 18px; padding: 0; counter-reset: step; border-top: 1px solid var(--line); max-width: 34em; }
.po-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.po-steps li::before { content: counter(step); font: 300 1.25rem/1.25 var(--serif); color: var(--ink); }
.po-steps strong { font-weight: 500; color: var(--ink); }
.preorder .fine { max-width: 34em; }
.preorder .fine a { color: var(--ink); text-underline-offset: 3px; }
.po-sizes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 640px) { .po-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.po-size { display: flex; flex-direction: column; align-items: flex-start; }
.po-wall { position: relative; width: 100%; }
.po-canvas { position: absolute; background: #fff; box-shadow: var(--hang-shadow); }
.po-img { position: absolute; display: block; height: auto; max-width: none; }
.po-size.is-pick .po-wall::after { content: ""; position: absolute; left: 50%; bottom: 3%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--ink); }
.po-cm a { color: inherit; text-underline-offset: 3px; }
.po-cm a:hover { color: var(--ink); }
.po-dim { margin: 14px 0 0; font: italic 300 1.25rem/1.2 var(--serif); color: var(--ink); }
.po-cm { margin: 2px 0 0; font-size: .8125rem; color: var(--muted); }
.po-price { margin: 10px 0 0; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.po-ship { margin: 0; font-size: .8125rem; color: var(--muted); min-height: 1.5em; }
.po-btn { margin-top: 12px; min-height: 42px; padding: 0 18px; font-size: .875rem; }
.po-size.is-pick .po-btn { background: var(--ink); color: #fff; }

/* delivery and gifting */
.giving { padding-block: clamp(56px, 8vw, 104px); background: var(--paper); border-block: 1px solid var(--line); }
.giving-inner { display: grid; gap: 48px; }
@media (min-width: 900px) { .giving-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; } }
.facts { margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 500; color: var(--ink); }
.facts dd { margin: 0; }
.cutoffs { padding-top: 6px; }
.dates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dates th, .dates td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.dates thead th { font-size: .8125rem; font-weight: 500; color: var(--muted); border-bottom-color: var(--ink); }
.dates tbody th { font-weight: 500; color: var(--ink); width: 34%; }
.cutoffs .fine { margin-top: 14px; }
.ship-table tbody th { width: auto; font-weight: 400; color: var(--text); }
.ship-table td, .ship-table thead th:last-child { text-align: right; padding-right: 0; }
.ship-table td { font-weight: 500; color: var(--ink); }
.cutoffs .xmas-block { margin-top: 44px; }

/* about */
.about { display: grid; gap: 36px; align-items: center; padding-block: clamp(72px, 10vw, 128px); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; box-shadow: var(--hang-shadow); background: #fff; }
.about-photo figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.about-text p { max-width: 34em; }
.cv { list-style: none; margin: 4px 0 26px; padding: 0; border-top: 1px solid var(--line); max-width: 34em; }
.cv li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cv strong { font: italic 300 1.1875rem/1.3 var(--serif); color: var(--ink); }
.cv span { font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.motto { font: 400 2.75rem/1 var(--script); color: var(--ink); margin: 28px 0 24px; }

/* questions */
.faq { display: grid; gap: 8px; padding-bottom: clamp(72px, 10vw, 128px); }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-help { max-width: 22em; color: var(--muted); }
.faq-help a { color: var(--ink); text-underline-offset: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font: 300 1.25rem/1.35 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .2s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { margin: 0 0 22px; max-width: 40em; }

/* footer */
.site-footer { background: var(--gum); color: var(--gum-ink); padding: 56px var(--gutter) 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: inherit; text-underline-offset: 4px; }
.wordmark--light { color: #fff; align-items: flex-start; }
.wordmark--light .wordmark-name { padding-left: 0; }
.wordmark--light .wordmark-tag { color: rgba(238, 242, 236, .7); }
.footer-brand p { margin-top: 16px; max-width: 24em; opacity: .85; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-contact .fine { color: rgba(238, 242, 236, .7); }
.footer-legal { max-width: var(--max); margin: 48px auto 0; font-size: .8125rem; opacity: .7; }

/* piece detail */
.pd-dialog { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--wall); color: var(--text); overflow: hidden; }
.pd-dialog::backdrop { background: rgba(20, 28, 24, .6); }
@media (min-width: 900px) {
  .pd-dialog { width: min(1180px, calc(100vw - 64px)); height: min(840px, calc(100vh - 64px)); margin: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
}
@media (prefers-reduced-motion: no-preference) {
  .pd-dialog[open] { animation: pd-in .28s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes pd-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.pd { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-rows: auto 1fr auto; }
@media (min-width: 900px) {
  .pd { overflow: hidden; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: 1fr; }
  .pd-info { overflow-y: auto; overscroll-behavior: contain; }
}
.pd-close {
  position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(246, 248, 244, .92); cursor: pointer;
}
.pd-close:hover { border-color: var(--ink); }
@media (min-width: 900px) { .pd-close { position: absolute; top: 14px; right: 14px; } }
.pd-gallery { position: relative; background: var(--wall-deep); }
.pd-slides { display: flex; height: min(62vh, 560px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-slides::-webkit-scrollbar { display: none; }
.pd-slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.pd-slide img { position: absolute; inset: 56px 28px 40px; margin: auto; display: block; max-width: calc(100% - 56px); max-height: calc(100% - 96px); width: auto; height: auto; background: #fff; box-shadow: var(--hang-shadow); }
.pd-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.pd-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(38, 48, 43, .28); cursor: pointer; }
.pd-dots button.is-active { background: var(--ink); }
@media (min-width: 900px) {
  .pd-gallery { height: 100%; }
  .pd-slides { height: 100%; }
  .pd-slide img { inset: 64px 56px; max-width: calc(100% - 112px); max-height: calc(100% - 128px); }
}
.pd-info { padding: 28px var(--gutter) 8px; }
@media (min-width: 900px) { .pd-info { padding: 64px 48px 48px 44px; } }
.pd-title { margin: 0; padding-right: 48px; font: italic 300 clamp(2rem, 1.5rem + 1.6vw, 2.75rem)/1.06 var(--serif); color: var(--ink); }
.pd-meta { margin: 14px 0 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.pd-price { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font: 300 1.875rem/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.pd-buy { margin-top: 20px; }
.pd-buy .fine { margin: 12px 0 0; }
.btn-buy { min-width: 260px; min-height: 52px; font-size: 1rem; }
.pd-note { margin: 18px 0 0; }
.pd-desc { margin-top: 26px; max-width: 34em; }
.pd-desc p { margin: 0; }
.pd-points { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pd-points li { display: grid; grid-template-columns: 6.75rem 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.5; }
.pd-points strong { font-weight: 500; color: var(--ink); }
.pd-points a { color: var(--ink); text-underline-offset: 3px; }
.pd-size { display: flex; align-items: flex-end; gap: 18px; margin: 28px 0 0; }
.pd-size svg { flex: none; overflow: visible; }
.pd-size figcaption { font-size: .8125rem; line-height: 1.5; color: var(--muted); max-width: 18em; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0 0; font-size: .9375rem; }
.pd-actions a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.pd-related { margin: 44px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.pd-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
.pd-related .card-wall img { max-width: 84%; max-height: 86%; }
.pd-related .card-title { font-size: 1.0625rem; }
.pd-buybar {
  position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
}
.pd-buybar-price { font: 300 1.5rem/1 var(--serif); color: var(--ink); }
.pd-buybar .btn { flex: 1; max-width: 240px; }
@media (max-width: 899px) { .pd-buy .btn-buy { display: none; } .pd-buy .fine { margin-top: 0; } }
@media (min-width: 900px) { .pd-buybar { display: none; } }

/* thanks, 404, policies */
.thanks { display: grid; gap: 32px; align-items: center; padding-block: clamp(40px, 8vw, 112px); }
@media (min-width: 900px) { .thanks { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.thanks-piece:empty { display: none; }
.thanks-piece .card-wall { aspect-ratio: 1; }
.thanks-piece .card-wall img { max-width: 86%; max-height: 86%; }
.thanks-text .lede { margin-top: 20px; }
.thanks-actions { margin-top: 28px; }
.notfound { padding-block: clamp(56px, 10vw, 140px); }
.notfound .lede { margin: 20px 0 28px; }
.policies { padding-block: clamp(40px, 7vw, 96px); max-width: calc(820px + 2 * var(--gutter)); }
.policies > .lede { margin-top: 20px; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 8px; padding: 14px 0; border-block: 1px solid var(--line); font-size: .9375rem; }
.policy-nav a { color: var(--ink); text-underline-offset: 4px; }
.policy { padding-top: 40px; }
.policy p { max-width: 40em; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 16px);
  margin: 0; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .875rem;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

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