/* The Ivy Keep — storefront styles */

:root {
  --paper: #f3eee3;
  --paper-deep: #e9e1d0;
  --card: #f9f6ef;
  --ink: #23231f;
  --ink-soft: #46433c;
  --muted: #655746;
  --ivy: #3b5040;
  --ivy-deep: #2b3a2f;
  --brass: #a4844c;
  --brass-text: #735a2c;
  --iron: #26303c;
  --rule: #d8cfbc;
  --rule-strong: #b7a98e;
  --catalog-line: #c7ced6;
  --error: #7c2d21;

  /* The hall: dark oak shelving, brass rails, vellum lettering */
  --oak: #2a2019;
  --oak-2: #382a20;
  --vellum: #efe6d2;
  --vellum-soft: #cfc2a8;
  --brass-light: #c9a86a;
  --oak-rule: rgba(201, 168, 106, .35);
  --rail: 3px double var(--brass-light);
  --hall:
    radial-gradient(ellipse 55% 75% at 70% 35%, rgba(201, 168, 106, .12), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(0, 0, 0, .18) 118px 120px),
    var(--oak);
  --arch: 999px 999px 0 0;
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8Q14.8 4.4 15.9 7.6Q18.6 6.2 21.4 8.2Q21.2 11 18.4 12.4Q20.4 14.4 19.2 17Q16.2 18.8 12.7 17.6V22.5H11.3V17.6Q7.8 18.8 4.8 17Q3.6 14.4 5.6 12.4Q2.8 11 2.6 8.2Q5.4 6.2 8.1 7.6Q9.2 4.4 12 1.8Z'/%3E%3C/svg%3E");

  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ivy-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--iron); outline-offset: 3px; }
.site-header :focus-visible, .hero--hall :focus-visible, .banner :focus-visible,
.quote--hall :focus-visible, .site-footer :focus-visible { outline-color: var(--brass-light); }

p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sprite { position: absolute; }

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ui);
  font-size: .875rem;
}
.skip:focus { top: 1rem; }

/* Layout */

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--medium { max-width: 52rem; }
.wrap--narrow { max-width: 42rem; }

.section { padding-block: var(--section); }
main > .wrap:last-child { padding-bottom: var(--section); }

/* Type */

.display, .h1, .h2, .h3, .wordmark, .card__title {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 .5em;
}
.display { font-size: clamp(3rem, 8vw, 5.75rem); letter-spacing: .005em; }
.h1 { font-size: clamp(2.25rem, 5vw, 3.4rem); }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.h3 { font-size: 1.5rem; }

.eyebrow, .label, .status, .text-link, .button, .site-nav, .room-tabs, .breadcrumb,
.catalog-card__head, .leaflet__label, .specs dt, .text-button, .signup label, .site-footer__small {
  font-family: var(--ui);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow { color: var(--muted); margin-bottom: .9rem; }
.label { color: var(--brass-text); }

.lede { font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.5; color: var(--ink-soft); }

.prose { max-width: 38rem; }
.prose--large { font-size: 1.25rem; }

.text-link {
  display: inline-block;
  padding-block: .5rem;
  color: var(--ivy-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: .2rem;
}
.text-link:hover { border-color: var(--ink); }

.empty { font-style: italic; color: var(--muted); padding-block: 2rem; }

.notice {
  padding: 1rem 1.25rem;
  background: var(--paper-deep);
  border-left: 3px solid var(--brass);
  font-family: var(--ui);
  font-size: .9rem;
}

/* Controls */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .9rem 1.75rem;
  border: 1px solid var(--ivy-deep);
  border-radius: 1px;
  background: var(--ivy-deep);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button--block { width: 100%; }

.text-button {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.text-button:hover { color: var(--ink); }

select, input[type="email"] {
  min-height: 3rem;
  padding: .6rem .8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 1px;
  background: var(--card);
  color: var(--ink);
  font: 1rem var(--ui);
}

/* Header */

.site-header { background: var(--oak); border-bottom: var(--rail); }
.site-header { position: relative; z-index: 5; }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 2rem;
  padding-block: 1rem;
}
.site-header .wordmark { margin-right: auto; }

.site-tools { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.tool {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--vellum-soft);
  border-radius: 50%;
  transition: color .2s, background-color .2s;
}
.tool:hover, .tool[aria-current] { color: var(--vellum); background: rgba(201, 168, 106, .12); }
.tool svg { width: 1.3rem; height: 1.3rem; fill: none; }
.tool--saved svg { transition: fill .25s, color .25s; }
.tool--saved.has-saved { color: var(--brass-light); }
.tool--saved.has-saved svg { fill: var(--brass-light); }
.tool__count {
  position: absolute; top: .2rem; right: .1rem;
  min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem;
  border-radius: 999px; background: var(--brass-light); color: var(--oak);
  font: 600 .65rem/1.15rem var(--ui); text-align: center;
}
.tool__count[hidden] { display: none; }
.site-tools__menu { margin-left: .25rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  color: var(--ink);
  font-size: 1.65rem;
  text-decoration: none;
  letter-spacing: .02em;
}
.site-header .wordmark { color: var(--vellum); }
.wordmark__sprig { width: .8rem; height: 1.4rem; color: var(--brass-light); }
.wordmark--small { font-size: 1.4rem; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block;
  padding-block: .6rem;
  color: var(--vellum-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--vellum); border-bottom-color: var(--brass-light); }

.menu-toggle { padding: 0; border: 1px solid var(--oak-rule); background: none; cursor: pointer; }
.menu-toggle[aria-expanded="true"] { color: var(--vellum); background: rgba(201, 168, 106, .12); }
.site-nav__phone { display: none; }

@media (max-width: 63.99rem) {
  .js .menu-toggle { display: block; }
  .site-nav { order: 3; flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-bottom: .5rem; }
  .site-nav li { border-top: 1px solid var(--oak-rule); }
  .site-nav a { display: block; padding-block: .85rem; border-bottom: 0; }
  .site-nav a[aria-current] { color: var(--brass-light); }
}
@media (min-width: 64rem) {
  .menu-toggle, .site-tools__menu { display: none; }
}
@media (max-width: 35.99rem) {
  .site-header .wordmark { font-size: 1.35rem; }
  .site-header__inner { gap: .5rem 1rem; }
  .tool { width: 2.5rem; }
  .site-tools__account { display: none; }
  .site-nav__phone { display: list-item; }
}

.flash { padding-block: .85rem; font-family: var(--ui); font-size: .95rem; border-bottom: 1px solid var(--rule); }
.flash--note { background: #e4e8dc; }
.flash--error { background: #f3e2dc; color: var(--error); }

/* Ivy leaf beside links on hover / keyboard focus (menu, Room tabs, footer) */

.site-nav a, .room-tabs a, .site-footer li a { position: relative; }
.site-nav a::before, .room-tabs a::before, .site-footer li a::before {
  content: "";
  position: absolute;
  left: -1.55em;
  top: 50%;
  width: 1.2em;
  height: 1.2em;
  margin-top: -.62em;
  background: var(--leaf-color, var(--ivy));
  -webkit-mask: var(--leaf) center / contain no-repeat;
  mask: var(--leaf) center / contain no-repeat;
  opacity: 0;
  transform: translateX(-.3em) rotate(-20deg) scale(.6);
  transition: opacity .25s ease, transform .3s ease;
  pointer-events: none;
}
.site-nav a:hover::before, .room-tabs a:hover::before, .site-footer li a:hover::before,
.site-nav a:focus-visible::before, .room-tabs a:focus-visible::before, .site-footer li a:focus-visible::before {
  opacity: 1;
  transform: none;
}
.site-header, .site-footer { --leaf-color: var(--brass-light); }

/* Figures */

.figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-deep); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--brass);
  text-align: center;
}
.figure--empty svg { width: 3rem; height: 2rem; }
.figure--empty span { color: var(--muted); font: .7rem var(--ui); letter-spacing: .16em; text-transform: uppercase; }
.figure--hero svg { width: 6rem; height: 4rem; }

/* Arched bays: product photographs and the hero sit in arched frames. */
.card .figure, .gallery > .figure, .arch, .arch > .figure { border-radius: var(--arch); }
.card .figure--empty, .gallery > .figure--empty { box-shadow: inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--rule); }
.arch { padding: .6rem; border: 1px solid var(--oak-rule); }

/* Home */

.hero { padding-block: clamp(2.5rem, 7vw, 6rem); }
.hero--hall { background: var(--hall); color: var(--vellum); border-bottom: var(--rail); }
.hero--hall .display { color: var(--vellum); }
.hero--hall .hero__statement, .hero--hall .ritual { color: var(--vellum-soft); }
.hero--hall .ritual span + span::before { color: var(--brass-light); }
.hero--hall .button { background: var(--brass-light); border-color: var(--brass-light); color: var(--oak); }
.hero--hall .button:hover { background: var(--vellum); border-color: var(--vellum); color: var(--oak); }
.hero--hall .figure--empty { background: var(--oak-2); border-color: var(--oak-rule); color: var(--brass-light); }
.hero__image { width: 100%; max-width: 27rem; justify-self: center; }
.hero__inner { display: grid; gap: 3rem; align-items: center; }
.hero__statement { font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.45; color: var(--ink-soft); max-width: 28rem; }
.hero__image .figure, .hero__image img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
@media (min-width: 60rem) {
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.ritual { display: flex; flex-wrap: wrap; gap: .1rem .45rem; font-size: clamp(.95rem, 3.6vw, 1.125rem); margin-bottom: 2.25rem; font-style: italic; color: var(--muted); }
.ritual span + span::before { content: "·"; margin-right: .45rem; font-style: normal; color: var(--brass); }

.philosophy { padding-block: var(--section) calc(var(--section) * .55); border-block: 1px solid var(--rule); text-align: center; }

.section__head { margin-bottom: 2.5rem; }

/* Latest Instagram post: an arched plate beside the caption, like a framed print on a shelf */
.gram { border-bottom: 1px solid var(--rule); }
.gram__inner { display: grid; gap: 2rem; align-items: center; justify-items: center; text-align: center; }
.gram__photo { display: block; width: min(100%, 20rem); }
.gram__photo .figure { display: block; }
.gram__photo img { transition: transform .8s ease; }
.gram__photo:hover img { transform: scale(1.03); }
.gram__text { max-width: 30rem; }
.gram__text .eyebrow { color: var(--brass-text); }
.gram__caption { margin: 0 0 1rem; }
.gram__caption p { margin: 0; font: italic 400 clamp(1.2rem, 2vw, 1.45rem)/1.5 var(--display); color: var(--ink-soft); }
.gram__date { margin: 0 0 1.5rem; font: .8rem var(--ui); letter-spacing: .08em; color: var(--muted); }
.gram__links { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; justify-content: center; margin: 0; }
@media (min-width: 48rem) {
  .gram__inner { grid-template-columns: minmax(0, 22rem) minmax(0, 30rem); justify-content: center; gap: clamp(2.5rem, 6vw, 5rem); text-align: left; }
  .gram__photo { width: 100%; }
  .gram__links { justify-content: flex-start; }
}

.rooms { text-align: center; border-top: 1px solid var(--rule); }
.rooms .section__head p { margin: .5rem auto 0; color: var(--ink-soft); }
.rooms__list { display: grid; gap: 2.75rem; margin: 0 0 2.75rem; padding: 0; list-style: none; }
.rooms__room .eyebrow { margin: 0; color: var(--brass-text); }
.rooms__icon { display: block; width: 4.5rem; height: 3.75rem; margin: 1rem auto 1.1rem; color: var(--ivy-deep); }
.rooms__room h3 { margin: 0 0 .6rem; }
.rooms__room p:last-child { max-width: 20rem; margin: 0 auto; color: var(--ink-soft); }
@media (min-width: 48rem) {
  .rooms__list { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .rooms__room { padding-inline: clamp(1rem, 3vw, 2.5rem); }
  .rooms__room + .rooms__room { border-left: 1px solid var(--rule); }
}

/* Bay plaque, after the lettered shelf-ends of an old library */
.plaque {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 4.5rem;
  margin: 0 0 1.25rem;
  padding-top: .6rem;
  border: 1px solid var(--brass);
  border-radius: var(--arch);
  color: var(--brass-text);
  line-height: 1;
}
.plaque__word { font: .55rem var(--ui); letter-spacing: .16em; text-transform: uppercase; }
.plaque__numeral { margin-top: .3rem; font: 500 1.6rem var(--display); }

.quote { padding-block: var(--section); text-align: center; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font: italic 500 clamp(1.6rem, 3.4vw, 2.5rem)/1.3 var(--display); color: var(--ivy-deep); }
.quote__sprig { width: 1rem; height: 1.75rem; margin: 0 auto 1.5rem; color: var(--ivy); }
.quote--hall { background: var(--hall); border-block: var(--rail); }
.quote--hall blockquote p { color: var(--vellum); }
.quote--hall .quote__sprig { color: var(--brass-light); }
.quote--inline { margin: 3rem 0; padding-block: 2rem; border-block: 1px solid var(--rule); }

.correspondence { padding-block: var(--section); background: var(--paper-deep); }
.signup { margin-top: 1.5rem; }
.signup label { display: block; margin-bottom: .5rem; color: var(--ink-soft); }
.signup__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.signup__row input { flex: 1 1 16rem; }
.hp { position: absolute; left: -9999px; }
.signup__sms { margin-top: 1.25rem; }
.signup__sms input[type="tel"] { width: 100%; max-width: 20rem; }
.signup__consent { display: flex !important; gap: .6rem; align-items: flex-start; margin-top: .75rem !important;
  font: .8rem/1.5 var(--ui) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-soft) !important; }
.signup__consent input { flex: 0 0 auto; margin-top: .2rem; }

/* Grids & cards */

.grid { display: grid; gap: 3rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.grid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 2rem 1.5rem; }
@media (min-width: 60rem) {
  .grid--featured { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 35.99rem) {
  .grid, .grid--small { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .grid .card__title { font-size: 1.2rem; }
  .grid .figure--empty span { font-size: .6rem; }
}

.card__link { display: block; color: inherit; text-decoration: none; }
.card__link .figure img { transition: transform .8s ease; }
.card__link:hover .figure img { transform: scale(1.02); }
.card__link:hover .card__title { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.card__title { margin: 1rem 0 .25rem; font-size: 1.45rem; }
.grid--small .card__title { font-size: 1.25rem; }
.card__descriptor { margin-bottom: .35rem; font-style: italic; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.4; }
.card__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin: 0; }
.price { font-size: 1.1rem; }
.price--large { font-size: 1.6rem; }

/* Shop */

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.banner { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); background: var(--hall); color: var(--vellum); border-bottom: var(--rail); }
.banner .h1 { color: var(--vellum); margin-bottom: .35em; }
.banner .plaque { border-color: var(--brass-light); color: var(--brass-light); }
.banner__intro { max-width: 36rem; margin: 0; color: var(--vellum-soft); font-size: 1.25rem; }
.page-head--center { text-align: center; padding-block: clamp(4rem, 10vw, 7rem); }

.room-tabs {
  margin: 1.5rem 0 2.75rem -1.7em;
  background: linear-gradient(var(--rule), var(--rule)) 1.7em 100% / calc(100% - 1.7em) 1px no-repeat;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.room-tabs::-webkit-scrollbar { display: none; }
.room-tabs ul { display: flex; gap: 2.4rem; margin: 0; padding: 0 0 0 1.7em; list-style: none; white-space: nowrap; }
.room-tabs a { display: block; padding-block: .85rem; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.room-tabs a:hover, .room-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }

.subsection { margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid var(--rule); }
.subsection__intro { color: var(--ink-soft); margin-bottom: 2.25rem; }
.card__note { margin: .35rem 0 0; font-style: italic; color: var(--muted); font-size: 1rem; line-height: 1.4; }

/* Product */

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin: 0; padding: 1.5rem 0 0; list-style: none; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .6rem; color: var(--rule-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.object { display: grid; gap: 2.5rem; padding-block: 1.75rem 4rem; }
@media (min-width: 56rem) {
  .object { grid-template-columns: 1.15fr 1fr; gap: 4.5rem; }
  .object__summary { position: sticky; top: 2rem; align-self: start; padding-top: 1rem; }
}
.object__title { overflow-wrap: anywhere; }
.object__descriptor { margin-top: -.25rem; font-size: 1.35rem; font-style: italic; color: var(--ink-soft); }
.object__price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; margin-block: 1.5rem .5rem; }
.status { color: var(--muted); }
.status--available { color: var(--ivy); }
.object__note { font-style: italic; color: var(--muted); }
.object__intro { margin-top: 1.5rem; color: var(--ink-soft); }

.buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-block: 2rem 1.25rem; }
.buy__choice { flex: 1 0 100%; }
.buy > .button { flex: 1 1 0; width: auto; }
.buy__choice select { width: 100%; }
.buy__choice select:invalid { color: var(--muted); }
.buy__choice option { color: var(--ink); }
.buy__choice label, .buy__qty label { display: block; margin-bottom: .35rem; font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.buy__qty select { width: 5rem; }

/* Gallery
   Phones: photographs swipe inside the arched frame, with a counter and leaf dots.
   Large screens: an editorial spread: the lead photograph arched, the rest as framed plates in pairs. */

.gallery__track {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--arch);
  background: var(--paper-deep);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { position: relative; display: block; flex: 0 0 100%; aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; cursor: zoom-in; }
.gallery__slide img, .gallery__slide picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__slide img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.gallery__enlarge {
  position: absolute; right: .9rem; bottom: .9rem; display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: rgba(42, 32, 25, .72); color: var(--vellum);
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.gallery__enlarge svg { width: .95rem; height: .95rem; }
.gallery__slide:hover .gallery__enlarge, .gallery__slide:focus-visible .gallery__enlarge { opacity: 1; transform: none; }

.gallery__bar { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; }
.gallery__count { font: .75rem var(--ui); letter-spacing: .16em; color: var(--muted); }
.gallery__dots { display: flex; gap: .45rem; }
.gallery__dot {
  width: .7rem; height: .7rem; padding: 0; border: 0; cursor: pointer; background: var(--rule-strong);
  -webkit-mask: var(--leaf) center / contain no-repeat; mask: var(--leaf) center / contain no-repeat;
  transition: background-color .25s, transform .25s;
}
.gallery__dot[aria-current] { background: var(--ivy); transform: scale(1.35); }

@media (min-width: 56rem) {
  .gallery--many .gallery__track {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
    overflow: visible; border-radius: 0; background: none; scroll-snap-type: none;
  }
  .gallery--many .gallery__slide {
    border-radius: 2px; background: var(--paper-deep);
    box-shadow: 0 0 0 1px var(--rule);
  }
  .gallery--many .gallery__slide::after {
    content: ""; position: absolute; inset: 7px; pointer-events: none;
    border: 1px solid rgba(249, 246, 239, .55);
  }
  .gallery--many .gallery__slide--lead { grid-column: 1 / -1; border-radius: var(--arch); box-shadow: none; }
  .gallery--many .gallery__slide--lead::after { border-radius: var(--arch); }
  .gallery--many .gallery__slide--wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .gallery--many .gallery__slide--solo { grid-column: 1 / -1; justify-self: center; width: calc(50% - .55rem); }
  .gallery--many .gallery__slide:hover img { transform: scale(1.03); }
  .gallery__bar { display: none; }
}

.object__details {
  display: grid;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 56rem) {
  .object__details { grid-template-columns: 1fr 1fr; column-gap: 4.5rem; }
}

.catalog-card {
  max-width: 30rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-top: 2px solid var(--brass);
}
.catalog-card__head { margin: 0 0 .5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule-strong); color: var(--muted); font-weight: 400; }
.catalog-card__lines { margin: 0; padding: 0; list-style: none; counter-reset: line; }
.catalog-card__lines li { display: flex; gap: 1rem; padding-block: .5rem; border-bottom: 1px solid var(--catalog-line); counter-increment: line; }
.catalog-card__lines li::before { content: counter(line, decimal-leading-zero); min-width: 1.5rem; padding-top: .2rem; color: var(--muted); font: .75rem var(--ui); }

.specs { margin: 0; }
.specs div { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; padding-block: .7rem; border-bottom: 1px dotted var(--rule-strong); }
.specs dt { flex: 0 0 7rem; padding-top: .3rem; color: var(--muted); }
.specs dd { flex: 1 1 14rem; margin: 0; }

.leaflet { align-self: start; max-width: 22rem; padding: 1.5rem 1.75rem; background: var(--card); border: 1px solid var(--rule); border-top: 2px solid var(--brass); }
.leaflet__label { margin: 0 0 .75rem; color: var(--muted); }
.leaflet__text { margin: 0; font: italic 500 1.45rem/1.35 var(--display); color: var(--ivy-deep); }

.related { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--rule); }

/* Cart */

.cart__lines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.cart__line {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  grid-template-areas: "thumb info total" "thumb qty qty";
  gap: .5rem 1.25rem;
  align-items: center;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 40rem) {
  .cart__line { grid-template-columns: 5.5rem 1fr auto 6rem; grid-template-areas: "thumb info qty total"; }
}
.cart__thumb { grid-area: thumb; }
.cart__thumb .figure--empty { padding: .5rem; }
.cart__thumb .figure--empty svg { width: 1.75rem; }
.cart__thumb .figure--empty span { display: none; }
.cart__info { grid-area: info; display: flex; flex-direction: column; }
.cart__name { font: 500 1.3rem/1.2 var(--display); color: var(--ink); text-decoration: none; }
.cart__name:hover { text-decoration: underline; }
.cart__unit { color: var(--muted); font-size: 1rem; }
.cart__qty { grid-area: qty; display: flex; align-items: center; gap: 1rem; }
.cart__total { grid-area: total; text-align: right; }
.cart__update { text-align: right; margin-top: .5rem; }
.js .cart__update { display: none; }
.cart__summary { max-width: 24rem; margin: 2rem 0 0 auto; }
.cart__subtotal { display: flex; justify-content: space-between; font: 500 1.5rem var(--display); }
.cart__fine { font: .875rem/1.5 var(--ui); color: var(--muted); }

/* Footer */

.site-footer { padding-block: 3.5rem 2rem; background: var(--oak); color: var(--vellum); border-top: var(--rail); }
.site-footer a { color: var(--vellum); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer li a:hover { text-decoration: none; color: var(--brass-light); }
.site-footer .wordmark { color: var(--vellum); }
.site-footer__inner { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--oak-rule); }
.site-footer__head { margin: 0 0 .75rem; font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); }
.site-footer__secure { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font: .8rem var(--ui); color: var(--vellum-soft); }
.site-footer__secure svg { width: 1rem; height: 1rem; color: var(--brass-light); }
.site-footer__small a { color: var(--vellum-soft); }
.site-footer__line { max-width: 22rem; font-style: italic; color: var(--vellum-soft); }
.site-footer ul { margin: 0; padding: 0; list-style: none; font-size: 1rem; }
.site-footer li { padding-block: .3rem; break-inside: avoid; }
.site-footer__small { margin: 1.5rem 0 0; color: var(--vellum-soft); }
.site-footer__social { margin: .5rem 0 0; font-size: .85rem; }
.site-footer__social a { display: inline-flex; gap: .45rem; align-items: center; color: var(--vellum-soft); }
.site-footer__social a:hover { color: var(--vellum); }
.site-footer__social svg { width: 1rem; height: 1rem; }
@media (min-width: 48rem) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Trust & reassurance */

.assurances { margin: 1.25rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--rule); font: .875rem/1.5 var(--ui); color: var(--ink-soft); }
.assurances li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .55rem; }
.assurances svg { flex: 0 0 1rem; width: 1rem; height: 1rem; margin-top: .15rem; color: var(--brass-text); }
.assurances a { color: var(--ivy-deep); }

.next-steps { max-width: 32rem; margin: 2rem auto; padding: 0; list-style: none; text-align: left; counter-reset: step; }
.next-steps li { position: relative; padding: .9rem 0 .9rem 3rem; border-bottom: 1px solid var(--rule); counter-increment: step; }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: .8rem; display: grid; place-items: center; width: 2rem; height: 2.3rem; border: 1px solid var(--brass); border-radius: var(--arch); font: 500 1.1rem var(--display); color: var(--brass-text); }
.next-steps__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: center; }

.policy h2 { margin-top: 2rem; }
.policy ul { margin: 0 0 1em; padding-left: 1.2rem; }
.policy li { margin-bottom: .4em; }

/* Forms (contact, sign-in, requests) */

.panel-form { display: grid; gap: .35rem; margin: 1.5rem 0; }
.panel-form label { margin-top: .9rem; font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.panel-form label:first-of-type { margin-top: 0; }
.panel-form input, .panel-form textarea, .panel-form select { width: 100%; }
.panel-form .button { margin-top: 1.25rem; justify-self: start; }
.panel-form .button--block { justify-self: stretch; }
.panel-form__alt { margin-top: -.5rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea {
  min-height: 3rem; padding: .6rem .8rem; border: 1px solid var(--rule-strong); border-radius: 1px; background: var(--card); color: var(--ink); font: 1rem var(--ui);
}
textarea { line-height: 1.5; resize: vertical; }
.hint { margin: 0; font: .875rem/1.5 var(--ui); color: var(--muted); }
.optional { text-transform: none; letter-spacing: 0; color: var(--muted); }
.code-input { max-width: 12rem; font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; }
.notice--error { border-left-color: var(--error); color: var(--error); background: #f3e2dc; }
.notice ul { margin: 0; padding-left: 1.2rem; }

/* Customer account */

.account-auth .page-head { padding-bottom: 0; }
.account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.account-head .h1 { margin-bottom: .2em; }
.account-head__who { margin: 0; font: .875rem var(--ui); color: var(--muted); }

.order-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.order-row__link {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline;
  padding: 1.25rem .25rem; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none;
}
.order-row__link:hover { background: var(--card); }
.order-row__ref { font: 500 1.35rem var(--display); }
.order-row__date { font: .875rem var(--ui); color: var(--muted); text-align: right; }
.order-row__items { grid-column: 1 / -1; color: var(--ink-soft); }
.order-row__total { font-size: 1.05rem; }
.order-row .badge { justify-self: end; }

.badge { display: inline-block; padding: .2rem .6rem; border: 1px solid currentColor; border-radius: 999px; font: .7rem var(--ui); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.badge--large { padding: .35rem .9rem; font-size: .75rem; }
.badge--paid, .badge--open { color: var(--brass-text); }
.badge--shipped, .badge--delivered, .badge--approved { color: var(--ivy); }
.badge--cancelled, .badge--refunded, .badge--declined { color: var(--muted); }

.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 1rem 0 2rem; padding: 0; list-style: none; }
.timeline__step { position: relative; padding-top: 1.6rem; font: .8rem var(--ui); color: var(--muted); text-align: center; }
.timeline__step::before { content: ""; position: absolute; top: .45rem; left: 0; right: 0; height: 2px; background: var(--rule); }
.timeline__step::after { content: ""; position: absolute; top: 0; left: 50%; width: 1rem; height: 1rem; margin-left: -.5rem; border: 2px solid var(--rule-strong); border-radius: 50%; background: var(--paper); }
.timeline__step.is-done { color: var(--ink); }
.timeline__step.is-done::before { background: var(--brass); }
.timeline__step.is-done::after { border-color: var(--ivy); background: var(--ivy); }
.timeline__label { display: block; letter-spacing: .08em; text-transform: uppercase; }
.timeline__date { display: block; color: var(--muted); }

.account-grid { display: grid; gap: 0 2rem; }
@media (min-width: 44rem) { .account-grid { grid-template-columns: 1.4fr 1fr; } }
.account-box { margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; background: var(--card); border: 1px solid var(--rule); border-top: 2px solid var(--brass); }
.account-box__head { margin: 0 0 .75rem; font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.account-box address { font-style: normal; }
.summary { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.summary td { padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.summary td + td { text-align: right; white-space: nowrap; }
.summary__sub td { color: var(--ink-soft); font-size: 1rem; }
.summary__total td { border-bottom: 0; font-weight: 500; font-size: 1.15rem; }
.account-links { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: -.5rem 0 1.5rem; }
.standing-intro { margin-bottom: 1.5rem; color: var(--ink-soft); }
.standing-hint { margin-top: .75rem; }
.standing-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; margin: 0 0 1.5rem; }
.choice-group { margin: 0 0 .5rem; padding: 0; border: 0; }
.choice-group legend { margin-bottom: .4rem; font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.choice { display: flex !important; align-items: center; gap: .6rem; margin: .35rem 0 !important; font: 1rem var(--serif) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink) !important; }
.choice input { width: auto !important; min-height: 0 !important; }
.address-row { display: grid; grid-template-columns: 2fr 5rem 7rem; gap: .5rem; }
.reservation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; }
.reservation p { margin: 0; }

/* Volume shelf: owned Volumes as oak-and-brass spines; released ones not yet owned as outlines */
.shelf { margin: 0 0 2.5rem; padding: 1.5rem 1.5rem 1.25rem; background: var(--hall); color: var(--vellum); border-block: var(--rail); }
.shelf__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.shelf__head .h3 { margin: 0; color: var(--vellum); }
.shelf__tally { margin: 0; font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); }
.shelf__family { margin-top: 1.25rem; }
.shelf__label { margin: 0 0 .6rem; font: .7rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--vellum-soft); }
.shelf__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .35rem; margin: 0; padding: 0 0 .5rem; list-style: none; border-bottom: 6px solid var(--board, #4a3727); }
.spine {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 10.75rem; padding: .75rem 0; text-decoration: none;
  border-radius: 3px 3px 1px 1px; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .18), inset 2px 0 0 rgba(255, 255, 255, .06);
  transition: transform .25s ease;
}
.shelf__row--a5 .spine { width: 3rem; height: 12.75rem; }
.spine:hover { transform: translateY(-.4rem); }
.spine--0 { background: #3b5040; } .spine--1 { background: #26303c; } .spine--2 { background: #5b3a2c; } .spine--3 { background: #51402f; }
.spine { padding: 1.35rem 0; }
.spine__band { position: absolute; left: 0; right: 0; top: .55rem; height: 3px; border-block: 1px solid var(--brass-light); opacity: .8; }
.spine__band--foot { top: auto; bottom: .55rem; }
.spine__title { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 .9rem/1 var(--display); letter-spacing: .03em; color: var(--brass-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%; }
.spine--empty { background: transparent; box-shadow: none; border: 1px dashed rgba(201, 168, 106, .45); }
.spine--empty .spine__title { color: var(--vellum-soft); opacity: .7; }
.account-box__head--sub { margin-top: 1.25rem; }
.gift-note { font-style: italic; color: var(--ink-soft); }
.requests { margin: 0; padding: 0; list-style: none; }
.requests li + li { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.requests__meta { font: .85rem var(--ui); color: var(--muted); }
.requests__reply { padding: .75rem 1rem; background: var(--paper); border-left: 3px solid var(--brass); }

/* Buttons with icons, icon buttons */

.button__icon { width: 1rem; height: 1rem; margin-right: .5rem; }
.icon-button {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer;
}
.icon-button:hover { background: rgba(0, 0, 0, .06); }
.icon-button svg { width: 1.1rem; height: 1.1rem; }

/* Announcement bar */

.announce { position: relative; padding: .55rem 3rem; background: var(--ivy-deep); color: var(--vellum); text-align: center; font: .85rem/1.4 var(--ui); letter-spacing: .03em; }
.announce__text { margin: 0; }
.announce a { color: var(--vellum); text-decoration-color: var(--brass-light); }
.announce__close { position: absolute; right: .5rem; top: 50%; margin-top: -1.1rem; width: 2.2rem; height: 2.2rem; border: 0; background: none; color: var(--vellum-soft); cursor: pointer; }
.announce__close svg { width: .9rem; height: .9rem; }
.announce-off .announce { display: none; }

/* Panels: search and cart drawer (native <dialog>) */

.panel { max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.panel::backdrop { background: rgba(26, 19, 14, .55); }
.panel-open { overflow: hidden; }
.panel--search { width: 100%; padding: 1.25rem var(--gutter) 1.5rem; border-bottom: var(--rail); }
.panel--drawer {
  position: fixed; inset: 0 0 0 auto; width: min(26rem, 100%); height: 100%;
  display: flex; flex-direction: column; border-left: 1px solid var(--rule);
}
.panel--drawer:not([open]) { display: none; }
.motion .panel--drawer[open] { animation: drawer-in .35s ease; }
.motion .panel--search[open] { animation: fade-down .25s ease; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-.75rem); } }

.search-form { display: flex; align-items: center; gap: .75rem; max-width: 52rem; margin: 0 auto; }
.search-form > svg { flex: 0 0 1.3rem; width: 1.3rem; height: 1.3rem; color: var(--muted); }
.search-form input { flex: 1; min-width: 0; border: 0 !important; border-bottom: 1px solid var(--rule-strong) !important; background: transparent !important; font: 1.5rem var(--display) !important; padding-inline: 0 !important; }
.search-form input:focus-visible { outline: none; border-bottom-color: var(--ivy) !important; }
.search-form--page { max-width: 36rem; margin: 0; }
.search-results { max-width: 52rem; margin: 1rem auto 0; }
.search-results ul { margin: 0; padding: 0; list-style: none; }
.search-hit { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; padding: .6rem .25rem; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.search-hit:hover, .search-hit:focus-visible { background: var(--card); }
.search-hit__thumb { display: block; width: 3rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--paper-deep); }
.search-hit__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-hit__name { display: block; font: 500 1.2rem/1.2 var(--display); }
.search-hit__kicker { display: block; font: .7rem var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.search-hit__status { font-size: 1rem; color: var(--ink-soft); }
.search-results__empty { font-style: italic; color: var(--muted); }
.search-results__all { margin-top: 1rem; }

.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem 1rem 1.5rem; background: var(--oak); color: var(--vellum); border-bottom: var(--rail); }
.drawer__title { margin: 0; font: 500 1.5rem var(--display); }
.drawer__head .icon-button:hover { background: rgba(201, 168, 106, .15); }
.drawer__message { margin: 0; padding: 0 1.5rem; font: .9rem var(--ui); color: var(--ivy); }
.drawer__message:not(:empty) { padding-block: .75rem; border-bottom: 1px solid var(--rule); background: #e4e8dc; }
.drawer__message.is-error { color: var(--error); background: #f3e2dc; }
.drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 0 1.5rem; }
[aria-busy="true"] .drawer__body { opacity: .55; transition: opacity .2s; }
.drawer__empty { margin-top: 2rem; font-style: italic; color: var(--muted); }
.drawer__lines { margin: 0; padding: 0; list-style: none; }
.drawer__line { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.drawer__thumb img, .drawer__ph { display: grid; place-items: center; width: 4rem; height: 5rem; object-fit: cover; border-radius: 999px 999px 0 0; background: var(--card); border: 1px solid var(--rule); color: var(--brass); }
.drawer__ph svg { width: 1.6rem; height: 1rem; }
.drawer__info { display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; align-content: start; }
.drawer__name { font: 500 1.2rem/1.2 var(--display); color: var(--ink); text-decoration: none; }
.drawer__name:hover { text-decoration: underline; }
.drawer__price { text-align: right; }
.cart__choice { display: block; font: .85rem var(--ui); color: var(--ink-soft); }
.drawer__tag { grid-column: 1 / -1; font: .7rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-text); }
.preorder-note { margin-top: -.5rem; }
.status--preorder { color: var(--brass-text); }
.qty { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-self: start; border: 1px solid var(--rule-strong); }
.qty button { width: 2.25rem; height: 2.25rem; border: 0; background: none; font: 1.1rem var(--ui); color: var(--ink); cursor: pointer; }
.qty button:hover:not(:disabled) { background: var(--card); }
.qty button:disabled { color: var(--rule-strong); cursor: default; }
.qty span { min-width: 1.75rem; text-align: center; font: .95rem var(--ui); }
.drawer__foot { margin-top: auto; padding-block: 1.25rem 1.5rem; }
.drawer__subtotal { display: flex; justify-content: space-between; margin-bottom: .25rem; font: 500 1.4rem var(--display); }
.drawer__foot .hint { margin-bottom: 1rem; }
.drawer__alt { margin: .75rem 0 0; text-align: center; }

/* Save (leaf) buttons */

.card { position: relative; }
.save { margin: 0; }

/* Save and share: one quiet line under the purchase controls */
.object__actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: 1.1rem; justify-content: space-between; gap: .75rem 1.5rem; }
.share { position: relative; display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); }
.share__label { font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.share__list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.share__link { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; transition: color .2s, background-color .2s; }
.share__link svg { width: 1.15rem; height: 1.15rem; }
.share__link:hover, .share__link:focus-visible { color: var(--brass-text); background: color-mix(in srgb, var(--brass) 12%, transparent); }
.share__native { display: inline-flex; align-items: center; gap: .45rem; padding: 0; border: 0; background: none; color: var(--ink-soft); font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.share__native svg { width: 1.15rem; height: 1.15rem; }
.share__status { position: absolute; right: 0; top: 100%; margin-top: .2rem; font: italic .85rem var(--serif); color: var(--brass-text); white-space: nowrap; }
.share.is-native .share__label, .share.is-native .share__list { display: none; }
.share__native[hidden] { display: none; }
.object__actions .save--inline { margin: 0; }
.save__button { display: inline-flex; align-items: center; gap: .45rem; padding: 0; border: 0; background: none; color: var(--ink-soft); font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.save__button svg { width: 1.2rem; height: 1.2rem; fill: none; transition: transform .3s ease, fill .2s; }
.save__button[aria-pressed="true"] svg { fill: var(--ivy); color: var(--ivy); }
.save__button:hover svg { transform: rotate(-12deg); }
.save__button.is-pulsing svg, .tool--saved.is-pulsing svg { animation: leaf-pulse .45s ease; }
@keyframes leaf-pulse { 50% { transform: scale(1.3) rotate(-12deg); } }
.save--inline { margin-top: 1.1rem; }
.save--inline .save__button { min-height: 2.75rem; }
.save--card { position: absolute; top: .6rem; right: .6rem; }
.save--card .save__button { justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(249, 246, 239, .9); box-shadow: 0 0 0 1px var(--rule); }
.save--card .save__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Notify me */

.notify { margin-block: 1.75rem 1rem; }
.notify label { display: block; margin-bottom: .5rem; font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.notify__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.notify__row input { flex: 1 1 12rem; }
.notify .hint { margin-top: .5rem; }

/* Sticky add-to-cart bar (phones) */

.buybar { display: none; }
@media (max-width: 55.99rem) {
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
    display: flex; align-items: center; gap: 1rem; padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
    background: var(--oak); color: var(--vellum); border-top: var(--rail);
    transform: translateY(110%); transition: transform .3s ease; visibility: hidden;
  }
  .buybar.is-visible { transform: none; visibility: visible; }
  .buybar__info { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
  .buybar__name { font: 500 1.15rem/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__price { font: .85rem var(--ui); color: var(--vellum-soft); }
  .buybar .button { background: var(--brass-light); border-color: var(--brass-light); color: var(--oak); }
}

/* Lightbox: a full-screen reel of uncropped photographs */

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 18, 13, .97); color: var(--vellum); overflow: hidden; }
.lightbox::backdrop { background: transparent; }
.motion .lightbox[open] { animation: lightbox-in .3s ease; }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox__strip {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain;
}
.lightbox__strip::-webkit-scrollbar { display: none; }
.lightbox__strip.is-locked { overflow: hidden; }
.lightbox__slide {
  flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always;
  display: grid; place-items: center; padding: 4.5rem 4.5rem 7.5rem; overflow: hidden;
}
.lightbox__slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-width: 0; min-height: 0;
  box-shadow: 0 0 0 1px rgba(201, 168, 106, .25);
  cursor: zoom-in; user-select: none; -webkit-user-drag: none; transition: transform .35s ease;
}
.lightbox__slide.is-zoomed img { transform: scale(2.2); cursor: zoom-out; }
.lightbox__count { position: absolute; top: 1.6rem; left: 1.75rem; margin: 0; font: .78rem var(--ui); letter-spacing: .2em; color: var(--vellum-soft); }
.lightbox .icon-button { position: absolute; color: var(--vellum); background: rgba(42, 32, 25, .7); box-shadow: 0 0 0 1px rgba(201, 168, 106, .3); }
.lightbox .icon-button:hover { background: rgba(201, 168, 106, .22); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; right: 1.25rem; margin-top: -3rem; }
.lightbox__nav--prev { left: 1.25rem; right: auto; transform: scaleX(-1); }
.lightbox__film {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  display: flex; gap: .55rem; max-width: calc(100% - 2rem); padding: .4rem; overflow-x: auto; scrollbar-width: none;
}
.lightbox__film::-webkit-scrollbar { display: none; }
.lightbox__thumb {
  flex: 0 0 auto; width: 3rem; height: 3.75rem; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(201, 168, 106, .25); border-radius: 999px 999px 0 0; background: none;
  opacity: .5; transition: opacity .25s, border-color .25s;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: .85; }
.lightbox__thumb[aria-current] { opacity: 1; border-color: var(--brass-light); }
@media (max-width: 47.99rem) {
  .lightbox__slide { padding: 4rem .75rem 6.5rem; }
  .lightbox__nav { display: none; }
}

/* Gentle reveals (only when motion is allowed; see site.js) */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s ease var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Cross-fade between pages in browsers that support view transitions */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

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

/* ---- Gift cards ---- */
.button--quiet { background: transparent; color: var(--ivy-deep); }
.button--quiet:hover { background: var(--ivy-deep); color: var(--paper); }
.gc-head { text-align: center; padding-bottom: 2.5rem; }
.gc-head .eyebrow { color: var(--brass-text); }
.gc-head__lede { max-width: 32rem; margin: .75rem auto 0; font: italic 1.25rem/1.5 var(--display); color: var(--ink-soft); }
.gc { display: grid; gap: 2.5rem; align-items: start; padding-bottom: var(--section); }
@media (min-width: 60rem) { .gc { grid-template-columns: 1.15fr 1fr; gap: 4rem; } .gc-preview { margin-top: 1.9rem; } }

/* Live preview: the artwork with the amount and name laid where the server draws them */
.gc-preview { position: relative; margin: 0; container-type: inline-size; box-shadow: 0 30px 60px -28px rgba(42, 32, 25, .55), 0 2px 6px rgba(42, 32, 25, .18); }
.gc-preview img { display: block; width: 100%; height: auto; }
.gc-preview__amount, .gc-preview__for { position: absolute; left: 53.33%; width: 40%; text-align: center; color: #efe6d2; line-height: 1; pointer-events: none; }
.gc-preview__amount { top: 48.6%; font: 500 11.55cqw/1 var(--display); }
.gc-preview__for { top: 70.9%; font: italic 500 3.1cqw/1 var(--display); color: #d6c9ae; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gc-form { display: grid; gap: 1rem; }
.gc-form label { display: block; font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.gc-form label input, .gc-form label textarea { display: block; margin-top: .4rem; }
.gc-form .optional { margin-left: .35rem; font-size: .8rem; }
.gc-form input, .gc-form textarea { width: 100%; }
.gc-row { display: grid; gap: 1rem; }
@media (min-width: 36rem) { .gc-row { grid-template-columns: 1fr 1fr; } }
.gc-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 0; padding: 0; border: 0; }
.gc-amounts legend { margin-bottom: .5rem; font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.gc-amount { position: relative; display: block !important; }
.gc-amount input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.gc-amount span { display: grid; place-items: center; min-height: 3.6rem; border: 1px solid var(--rule-strong); border-radius: 999px 999px 2px 2px; background: var(--card); font: 500 1.45rem var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.gc-amount input:checked + span { background: var(--oak); border-color: var(--brass); color: var(--vellum); box-shadow: inset 0 0 0 1px var(--brass); }
.gc-amount input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.gc-count { display: block; margin-top: .3rem; text-align: right; font: .75rem var(--ui); letter-spacing: 0; text-transform: none; color: var(--muted); }
.gc-points { margin: .25rem 0 0; padding: 0; list-style: none; font: .875rem/1.5 var(--ui); color: var(--ink-soft); }
.gc-points li { display: flex; gap: .55rem; margin-bottom: .35rem; }
.gc-points li::before { content: ""; flex: none; width: .45rem; height: .6rem; margin-top: .45rem; border-radius: 999px 999px 0 0; background: var(--brass); }

/* A card's own page */
.gc-view { padding-bottom: var(--section); text-align: center; }
.gc-view__card { display: block; width: 100%; height: auto; margin: 0 auto 2.5rem; box-shadow: 0 30px 60px -28px rgba(42, 32, 25, .55); }
.gc-note { max-width: 34rem; margin: 0 auto 2.5rem; padding: 1.5rem 1.75rem; border-left: 2px solid var(--brass); background: var(--paper-deep); text-align: left; }
.gc-note p { margin: 0; font: italic 1.3rem/1.55 var(--display); color: var(--ink); }
.gc-note footer { margin-top: .75rem; font: .9rem var(--ui); color: var(--brass-text); }
.gc-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 3rem; margin: 0 0 2rem; }
.gc-facts dt { font: .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gc-facts dd { margin: .35rem 0 0; font: 500 1.6rem var(--display); }
.gc-code { font-family: "Courier New", monospace !important; font-size: 1.3rem !important; letter-spacing: .12em; }
.gc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.25rem; }
.gc-print { display: none; }

/* Printed: US Letter landscape, folded down the middle (back on the left, front on the right) */
@media print {
  @page { size: letter landscape; margin: 0; }
  body:has(.gc-print) > *:not(main), body:has(.gc-print) dialog, .gc-view .no-print { display: none !important; }
  body:has(.gc-print), body:has(.gc-print) main, .gc-view { margin: 0 !important; padding: 0 !important; background: #fff; }
  .gc-print { display: grid; grid-template-columns: 1fr 1fr; width: 11in; height: 8.5in; overflow: hidden; break-inside: avoid; background: #fff; }
  .gc-print section { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: .6in .55in; text-align: center; }
  .gc-print__front { background: #241b15; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .gc-print__front img { width: 100%; height: auto; }
  .gc-print__kicker { margin: 0 0 .35in; font: 9pt Arial, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #8a6d3b; }
  .gc-print__note { max-width: 3.9in; margin: 0; font: italic 500 17pt/1.45 var(--display); color: #23231f; }
  .gc-print__from { margin: .15in 0 0; font: 11pt var(--serif); color: #735a2c; }
  .gc-print__rule { width: 1.2in; height: 4px; margin: .35in auto; border-top: 1px solid #a4844c; border-bottom: 1px solid #a4844c; }
  .gc-print__label { margin: 0; font: 9pt Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #6e6455; }
  .gc-print__code { margin: .1in 0 .15in; padding: .08in .2in; border: 1px solid #a4844c; font: 15pt "Courier New", monospace; letter-spacing: .12em; color: #23231f; }
  .gc-print__how { max-width: 3.4in; margin: 0; font: 9.5pt/1.5 Arial, sans-serif; color: #6e6455; }
}

/* Cart: a gift card code */
.cart__giftcard { margin: .75rem 0; font: .9rem var(--ui); color: var(--ink-soft); }
.cart__giftcard summary { cursor: pointer; color: var(--ivy-deep); text-decoration: underline; text-underline-offset: .2em; }
.cart__giftcard-form { display: flex; gap: .5rem; margin-top: .6rem; }
.cart__giftcard-form input { flex: 1; min-width: 0; font-family: "Courier New", monospace !important; letter-spacing: .08em; text-transform: uppercase; }
.cart__giftcard--applied { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: baseline; padding: .6rem 0; border-top: 1px solid var(--rule); }
.cart__giftcard--applied small { display: block; color: var(--muted); }
.cart__giftcard--applied .text-button { grid-column: 1; justify-self: start; }
.cart__total { display: flex; justify-content: space-between; margin: .25rem 0 .5rem; font: 500 1.25rem var(--display); }
.cart__total small { font: .8rem var(--ui); color: var(--muted); }
