:root {
  color-scheme: light;
  --paper: #faf7f0;
  --soft: #f0e5d7;
  --ink: #34251f;
  --muted: #68564d;
  --line: #dfd3c4;
  --blue: #324c61;
  --shell: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
body.cart-open, body.preview-open { overflow: hidden; }
img { display: block; max-width: 100%; }
figure, h1, h2, p { margin: 0; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 6rem; }

.shell { width: min(var(--shell), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.live-region, .swatch input, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 20; inset: .5rem auto auto .5rem; padding: .6rem 1rem; background: var(--paper); }

.topbar { position: sticky; z-index: 4; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.75rem; gap: 1.5rem; }
.brand { display: block; width: fit-content; }
.brand img { height: auto; }
.main-nav, .footer-inner nav { display: flex; align-items: center; gap: clamp(1.3rem, 3.2vw, 2.8rem); }
.main-nav a, .footer-inner a { text-decoration: none; font-size: .9375rem; }
.main-nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: .3em; }
.cart-trigger { justify-self: end; display: flex; align-items: center; gap: .55rem; background: none; border: 0; border-radius: .2rem; padding: .5rem 0 .5rem .5rem; font-size: .9375rem; }
.cart-trigger:hover > span:first-of-type { text-decoration: underline; text-underline-offset: .3em; }
.cart-count { display: grid; place-items: center; min-width: 1.55rem; height: 1.55rem; border-radius: 999px; background: var(--soft); line-height: 1; padding-inline: .35rem; }

.hero { position: relative; display: grid; isolation: isolate; aspect-ratio: 16 / 9; min-height: 24rem; margin-top: 1.15rem; overflow: hidden; border-radius: .35rem; background: #f0e2d1; }
.hero-copy { position: relative; z-index: 1; width: min(52%, 39rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2rem, 4.5vw, 5.2rem); }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.047em; }
h1 { font-size: clamp(3.35rem, 6.4vw, 6.5rem); }
h1 em, h2 em { font-weight: inherit; }
.eyebrow { font-size: .875rem; line-height: 1.35; letter-spacing: .075em; font-weight: 600; }
.hero .eyebrow { margin-bottom: 1.1rem; color: #695345; }
.hero-intro { margin-top: 1.25rem; max-width: 26rem; font-size: clamp(1.0625rem, 1.5vw, 1.2rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.3rem; margin-top: 1.8rem; }
.text-link { display: inline-block; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .27em; }
.text-link:hover { text-decoration-thickness: 2px; }
.photo-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--soft); overflow: hidden; }
.photo-button img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual { position: absolute; inset: 0; height: 100%; }
.hero-visual:focus-visible { outline-offset: -5px; }
.hero-visual img { object-position: 86% center; }
.photo-expand { position: absolute; display: grid; place-items: center; inset: auto .75rem .75rem auto; width: 2.5rem; height: 2.5rem; background: var(--paper); color: var(--ink); border-radius: 50%; box-shadow: 0 1px 5px #34251f33; }
.photo-expand::before { content: "+"; font-size: 1.4rem; line-height: 1; }
.photo-button:hover .photo-expand { background: var(--ink); color: var(--paper); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: .62rem 1.45rem; border: 1px solid transparent; border-radius: .2rem; text-decoration: none; line-height: 1.3; font-weight: 600; transition: background-color .18s ease, color .18s ease; }
.primary { background: var(--ink); color: var(--paper); }
.primary:hover, .primary:focus-visible { background: #513a30; }

.product { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2.2rem, 7vw, 7rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.5rem); }
.gallery, .product-copy { min-width: 0; }
.main-photo { overflow: hidden; border-radius: .3rem; background: var(--soft); aspect-ratio: 1; }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.main-photo img.lifestyle-photo { object-position: center 52%; }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; justify-content: center; margin-top: .8rem; }
.gallery-tabs button { background: transparent; padding: .35rem .1rem; color: var(--muted); border: 0; border-bottom: 1px solid transparent; font-size: .875rem; }
.gallery-tabs button:hover, .gallery-tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.gallery-note { margin-top: .5rem; color: var(--muted); text-align: center; font-size: .875rem; }
.product h2, .story h2, .journal h2 { font-size: clamp(2.55rem, 4.4vw, 4.1rem); }
.product-intro { margin-top: 1.125rem; color: var(--muted); max-width: 32rem; font-size: 1.0625rem; }
.capacity { width: fit-content; margin-top: 1.05rem; padding: .19rem .65rem; background: var(--soft); border-radius: .15rem; font-size: .9375rem; font-weight: 600; }
.variants { min-width: 0; margin: 1.85rem 0 0; padding: 1.1rem 0 0; border: 0; border-top: 1px solid var(--line); }
.variants legend { float: left; width: 100%; padding: 0; margin: 0 0 .8rem; font-size: .9375rem; }
.variants legend span { margin-inline: .25rem; color: var(--muted); }
.variants legend strong { font-weight: 600; }
.swatches { clear: left; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 0; border: 1px solid var(--line); border-radius: .2rem; padding: .7rem .18rem; font-size: .875rem; line-height: 1.25; text-align: center; letter-spacing: -.025em; cursor: pointer; }
.swatch:hover { border-color: var(--muted); }
.swatch:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.chip { display: block; width: 1.5rem; height: 1.5rem; border: 1px solid #34251f2b; border-radius: 50%; }
.sand { background: #f6f4e8; }
.nude { background: #c0a393; }
.butter-yellow { background: #f1e6b1; }
.arctic-sky { background: #657792; }
.ink-blue { background: #132c45; }
.chocolate { background: #443635; }
.black { background: #171717; }
.ceramic-white { background: #fff; }
.ceramic-options { margin-top: 1rem; }
.ceramic-options .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ceramic-swatch { flex-direction: row; justify-content: center; padding-inline: .5rem; }
.ceramic-swatch .chip { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; }
.purchase { display: flex; align-items: end; gap: .75rem; margin-top: 1.25rem; }
.quantity-picker label { display: inline-block; margin-bottom: .35rem; font-size: .875rem; }
.stepper { display: flex; align-items: stretch; min-height: 3.15rem; border: 1px solid var(--line); border-radius: .2rem; }
.stepper button, .stepper input { border: 0; background: none; }
.stepper button { width: 2rem; font-size: 1.15rem; }
.stepper button:not(:disabled):hover { background: var(--soft); }
.stepper input { width: 2.05rem; text-align: center; padding-inline: 0; appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { appearance: none; -webkit-appearance: none; margin: 0; }
.add-button { flex: 1; }
.order-note { color: var(--muted); font-size: .875rem; margin-top: .6rem; }

.journal { background: #34251f; color: var(--paper); padding-block: clamp(3.3rem, 6.5vw, 6rem); }
.journal h2 { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.3rem, 3.2vw, 2.8rem); }
.journal-photo { aspect-ratio: 4 / 5; border-radius: .3rem; }
.journal-photo img { object-fit: contain; }
.journal-photo-square img { object-fit: cover; }
.journal-caption { margin-top: 1rem; }
.journal-caption h3 { margin: 0 0 .25rem; font: 400 clamp(1.45rem, 2.8vw, 2rem)/1.17 var(--serif); }
.journal a:focus-visible, .journal button:focus-visible { outline-color: #e9d8bd; }

.story { background: #f1e8db; padding-block: clamp(3rem, 6vw, 6rem); }
.story-inner { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(2rem, 7vw, 7.5rem); }
.ceramic-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.55rem, 1.7vw, 1.2rem); }
.ceramic-photo { aspect-ratio: 1; border-radius: .3rem; }
.ceramic-photo img { object-fit: contain; }
.ceramic-pair figcaption { display: grid; gap: .02rem; margin-top: .55rem; font-size: .9375rem; }
.ceramic-pair figcaption span { color: var(--muted); }
.specs { margin: 1.45rem 0 1.4rem; }
.specs > div { display: flex; gap: .7rem; justify-content: space-between; padding-block: .57rem; border-bottom: 1px solid #d5c7b7; }
.specs > div:first-child { border-top: 1px solid #d5c7b7; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: end; font-weight: 600; }
.care details { border-bottom: 1px solid #d5c7b7; }
.care summary { min-height: 3.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; font-weight: 600; }
.care summary::marker, .care summary::-webkit-details-marker { display: none; content: ""; }
.care summary::after { content: "+"; font-weight: 400; font-size: 1.25rem; }
.care details[open] summary::after { content: "−"; }
.care details p { padding-bottom: .9rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 6.4rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.footer-inner > span { justify-self: end; color: var(--muted); font-size: .875rem; }

.cart { width: min(29rem, 100%); max-width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; border: 0; padding: 0; background: var(--paper); color: var(--ink); }
.cart::backdrop { background: #2e201966; }
.cart-layout { display: flex; height: 100%; flex-direction: column; }
.cart-header, .cart-footer { padding: 1.3rem 1.5rem; }
.cart-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cart-header h2 { font-size: 2.2rem; }
.close-cart { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; background: transparent; font-size: 1.9rem; line-height: 1; }
.close-cart:hover { background: var(--soft); }
.cart-body { flex: 1; overflow: auto; padding: 1.3rem 1.5rem; }
.cart-items { margin: 0; padding: 0; list-style: none; }
.cart-item { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); align-items: start; gap: .9rem; padding-bottom: 1rem; }
.cart-item + .cart-item { border-top: 1px solid var(--line); padding-top: 1rem; }
.cart-item img { width: 4.75rem; height: 4.75rem; object-fit: cover; background: var(--soft); border-radius: .2rem; }
.cart-item-name { color: var(--muted); font-size: .9375rem; }
.cart-item-actions { display: flex; align-items: center; gap: .48rem; margin-top: .4rem; }
.cart-step { border: 1px solid var(--line); border-radius: .15rem; background: transparent; width: 1.85rem; min-height: 1.85rem; line-height: 1; }
.cart-step:not(:disabled):hover { background: var(--soft); }
.cart-item-quantity { text-align: center; min-width: 1.35rem; }
.remove-item { background: transparent; border: 0; padding: .2rem .25rem; margin-left: .3rem; color: var(--muted); text-decoration: underline; text-underline-offset: .18em; }
.cart-footer { border-top: 1px solid var(--line); }
.cart-footer #cart-summary { font-weight: 600; }
.cart-footer .button { margin-top: .85rem; width: 100%; }

.image-preview { width: min(48rem, calc(100vw - 1.5rem)); max-width: none; max-height: calc(100dvh - 1.5rem); border: 0; padding: 0; background: var(--paper); color: var(--ink); border-radius: .3rem; }
.image-preview::backdrop { background: #221814af; }
.image-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .85rem; border-bottom: 1px solid var(--line); }
.image-preview-bar h2 { margin: 0; font: 600 1rem/1.3 var(--sans); letter-spacing: 0; }
.image-preview-bar button { flex: 0 0 auto; }
.image-preview img { width: 100%; max-height: calc(100dvh - 5.3rem); object-fit: contain; }

@media (max-width: 830px) {
  .topbar-inner { min-height: 4.25rem; }
  .hero-copy { padding: clamp(1.6rem, 4vw, 2.3rem); }
  .hero-actions { gap: .6rem 1rem; }
  .product { gap: clamp(1.25rem, 4vw, 2rem); }
  .story-inner { gap: clamp(1.25rem, 4vw, 2rem); }
  .swatches { gap: .35rem; }
}

@media (max-width: 740px) {
  [id] { scroll-margin-top: 5rem; }
  .topbar-inner { grid-template-columns: 1fr auto; gap: .7rem; }
  .topbar .brand img { width: 96px; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; aspect-ratio: auto; margin-top: .8rem; }
  .hero-visual { position: relative; height: auto; aspect-ratio: 1.08; }
  .hero-visual img { object-position: right center; }
  .hero-copy { width: auto; padding: 2rem clamp(1.15rem, 5vw, 2.4rem) 1.9rem; }
  h1 { font-size: clamp(3.05rem, 10.5vw, 5.2rem); }
  .hero-intro { margin-top: .9rem; }
  .hero-actions { margin-top: 1.15rem; }
  .product, .story-inner { grid-template-columns: 1fr; }
  .product { gap: 1.65rem; }
  .story-inner { gap: 1.8rem; }
  .product h2, .story h2, .journal h2 { font-size: clamp(2.55rem, 8.3vw, 3.6rem); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner nav { order: 2; grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .journal-grid { grid-template-columns: 1fr; gap: 2rem; }
}

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