:root {
  --paper: #f3efe6;
  --paper-2: #e9e2d5;
  --soot: #1e201d;
  --soot-soft: #3c3d38;
  --terracotta: #a6533d;
  --terracotta-dark: #7f3e2e;
  --moss: #59634b;
  --moss-dark: #3f4737;
  --line: rgba(30, 32, 29, 0.2);
  --line-strong: rgba(30, 32, 29, 0.42);
  --focus: #1e201d;
  --max: 1440px;
  --gutter: clamp(16px, 3vw, 48px);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--soot); }
body { margin: 0; background: var(--paper); color: var(--soot); font-family: var(--sans); line-height: 1.55; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--moss); color: var(--paper); }

.skip-link { position: fixed; left: 12px; top: 12px; z-index: 1000; transform: translateY(-160%); background: var(--soot); color: var(--paper); padding: 10px 14px; }
.skip-link:focus { transform: translateY(0); }

.site-shell { width: min(100%, var(--max)); margin: 0 auto; padding-inline: var(--gutter); }
.concept-strip { border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.concept-strip .site-shell { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; }

.commerce-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(243,239,230,.96); }
.header-row { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; text-decoration: none; }
.brand-mark { width: 20px; height: 20px; border: 1px solid var(--soot); border-radius: 50% 50% 44% 56%; display: inline-block; transform: rotate(8deg); }
.desktop-nav { display: flex; justify-content: center; gap: 28px; font-size: 14px; }
.desktop-nav a, .header-actions button, .mobile-menu-toggle { text-decoration: none; background: none; border: 0; padding: 10px 4px; cursor: pointer; }
.desktop-nav a:hover, .header-actions button:hover { text-decoration: underline; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.cart-count { min-width: 23px; height: 23px; border: 1px solid var(--soot); border-radius: 999px; display: inline-grid; place-items: center; margin-left: 5px; font-size: 12px; }
.mobile-menu-toggle { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px var(--gutter) 22px; }
.mobile-nav.is-open { display: grid; gap: 4px; }
.mobile-nav a { padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }

main { min-height: 65vh; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(36px, 5vw, 72px); }
.section-rule { border-top: 1px solid var(--line); }
.eyebrow { margin: 0 0 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(42px, 7vw, 104px); letter-spacing: -.04em; }
h2 { font-size: clamp(34px, 4.6vw, 70px); letter-spacing: -.035em; }
h3 { font-size: clamp(22px, 2.3vw, 34px); letter-spacing: -.02em; }
p { margin-top: 0; }
.lede { max-width: 720px; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 32px); line-height: 1.35; }
.small-copy { font-size: 13px; color: var(--soot-soft); }
.muted { color: var(--soot-soft); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.button, .button-secondary, .icon-button { min-height: 46px; border: 1px solid var(--soot); padding: 12px 18px; background: var(--soot); color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 650; }
.button:hover { background: var(--soot-soft); }
.button-secondary { background: transparent; color: var(--soot); }
.button-secondary:hover { background: var(--paper-2); }
.icon-button { min-width: 46px; padding: 10px; background: transparent; color: var(--soot); }
.button[disabled], .button-secondary[disabled] { opacity: .45; cursor: not-allowed; }

.hero { padding-block: clamp(28px, 4vw, 54px) clamp(70px, 9vw, 120px); }
.editorial-hero { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.7fr); grid-template-rows: auto auto; gap: var(--gutter); align-items: end; }
.hero-copy { align-self: start; padding-top: clamp(18px, 3vw, 50px); }
.hero-copy h1 { max-width: 8ch; margin-bottom: 26px; }
.hero-copy p { max-width: 420px; }
.hero-visual { grid-row: 1 / span 2; grid-column: 2; position: relative; min-height: min(72vw, 790px); overflow: hidden; background: var(--paper-2); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-caption { grid-column: 1; align-self: end; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }

.split-feature { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.split-feature.reverse { grid-template-columns: .75fr 1.25fr; }
.split-feature.reverse .feature-media { order: 2; }
.feature-media { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding-top: 10%; max-width: 520px; }
.feature-copy h2 { margin-bottom: 24px; }
.feature-meta { display: grid; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }

.product-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.product-section-head h2 { margin-bottom: 0; }
.product-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); }
.product-card { grid-column: span 4; min-width: 0; }
.product-card.wide { grid-column: span 6; }
.product-card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); margin-bottom: 14px; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-media img { transform: scale(1.015); }
.product-card a { text-decoration: none; }
.product-card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.product-card-title h3 { font-family: var(--sans); font-size: 15px; font-weight: 650; margin-bottom: 3px; letter-spacing: 0; }
.product-card-price { font-size: 14px; white-space: nowrap; }
.product-card-meta { font-size: 12px; color: var(--soot-soft); }
.concept-badge { position: absolute; left: 10px; top: 10px; z-index: 2; background: var(--paper); border: 1px solid var(--line-strong); padding: 6px 8px; font-size: 10px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }

.collection-band { background: var(--moss); color: #f7f3ea; }
.collection-band .split-feature { align-items: center; }
.collection-band .feature-media { background: #45503b; }
.collection-band .button-secondary { color: #f7f3ea; border-color: #f7f3ea; }
.collection-band .button-secondary:hover { background: rgba(247,243,234,.12); }
.collection-band .feature-meta { border-color: rgba(247,243,234,.3); }

.material-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gutter); }
.material-block { border-top: 1px solid var(--line); padding-top: 16px; }
.material-block strong { display: block; margin-bottom: 8px; }

.journal-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: var(--gutter); }
.journal-card { border-top: 1px solid var(--line); padding-top: 16px; }
.journal-card:first-child h3 { font-size: clamp(28px, 3vw, 46px); }
.journal-card h3 { margin-bottom: 14px; }
.journal-card p { max-width: 44ch; }

.page-hero { padding-block: clamp(54px, 8vw, 108px) 42px; border-bottom: 1px solid var(--line); }
.page-hero .page-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--gutter); align-items: end; }
.page-hero h1 { font-size: clamp(52px, 8vw, 112px); margin-bottom: 0; }
.page-hero-copy { max-width: 520px; }
.breadcrumbs { font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.breadcrumbs a { color: var(--soot-soft); }

.shop-toolbar { display: grid; grid-template-columns: minmax(220px, 1.2fr) auto auto; gap: 14px; align-items: end; border-bottom: 1px solid var(--line); padding-block: 20px; position: sticky; top: 76px; z-index: 25; background: var(--paper); }
.field { display: grid; gap: 7px; }
.field label, .field-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); background: transparent; color: var(--soot); padding: 10px 12px; border-radius: 0; }
.field textarea { min-height: 110px; resize: vertical; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { min-height: 42px; padding: 8px 13px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.filter-chip[aria-pressed="true"] { background: var(--soot); color: var(--paper); }
.shop-results-meta { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0 28px; font-size: 13px; }
.no-results { display: none; border: 1px solid var(--line); padding: 40px; min-height: 240px; align-items: center; justify-content: center; text-align: center; }
.no-results.is-visible { display: flex; }

.product-page { padding-block: 34px clamp(68px, 9vw, 120px); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(30px, 5vw, 78px); align-items: start; }
.product-gallery { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; position: sticky; top: 110px; }
.product-main-image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: grid; align-content: start; gap: 10px; }
.thumbnail { border: 1px solid transparent; padding: 0; background: var(--paper-2); cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail[aria-current="true"] { border-color: var(--soot); }
.product-info { padding-top: 18px; }
.product-info h1 { font-size: clamp(40px, 4.4vw, 68px); margin-bottom: 14px; }
.product-price { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.product-description { font-size: 16px; max-width: 55ch; margin-block: 28px; }
.option-group { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.option-group legend { padding: 0; margin-bottom: 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.variant-button[aria-pressed="true"] { background: var(--soot); color: var(--paper); }
.quantity-row { display: inline-grid; grid-template-columns: 44px 58px 44px; border: 1px solid var(--line-strong); }
.quantity-row button, .quantity-row input { height: 44px; border: 0; background: transparent; text-align: center; }
.quantity-row button { cursor: pointer; }
.quantity-row input { width: 58px; -moz-appearance: textfield; }
.quantity-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 24px; }
.product-details { margin-top: 36px; border-top: 1px solid var(--line); }
.product-details details { border-bottom: 1px solid var(--line); }
.product-details summary { cursor: pointer; padding: 17px 0; font-weight: 650; }
.product-details details div { padding-bottom: 18px; }
.live-region { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.cart-drawer[hidden] { display: none; }
.cart-drawer { position: fixed; inset: 0; z-index: 80; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(30,32,29,.52); border: 0; width: 100%; height: 100%; cursor: default; }
.cart-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(520px, 100%); background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; padding: 20px; box-shadow: -24px 0 60px rgba(30,32,29,.15); }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.cart-drawer-head h2 { font-size: 28px; margin: 0; }
.cart-items { overflow: auto; padding-block: 16px; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 100px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.cart-item h3 { font-family: var(--sans); font-size: 14px; font-weight: 650; margin-bottom: 3px; }
.cart-item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.cart-item-actions button { border: 0; background: transparent; text-decoration: underline; padding: 5px 0; cursor: pointer; }
.cart-qty { width: 64px; min-height: 38px; border: 1px solid var(--line-strong); background: transparent; padding: 5px; }
.cart-item-total { font-size: 13px; white-space: nowrap; }
.cart-footer { border-top: 1px solid var(--line); padding-top: 16px; }
.subtotal-row { display: flex; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: 20px; margin-bottom: 14px; }
.cart-footer .button { width: 100%; }
.empty-cart { text-align: center; padding: 60px 18px; }
body.drawer-open { overflow: hidden; }

.cart-page-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.cart-page-items .cart-item { grid-template-columns: 120px 1fr auto; }
.order-summary { border: 1px solid var(--line); padding: 22px; position: sticky; top: 112px; }
.order-summary h2 { font-size: 28px; }
.summary-line { display: flex; justify-content: space-between; gap: 18px; padding-block: 12px; border-top: 1px solid var(--line); }
.summary-line.total { font-family: var(--serif); font-size: 20px; }

.checkout-notice { border: 1px solid var(--terracotta); color: var(--terracotta-dark); padding: 14px 16px; margin-bottom: 26px; font-weight: 650; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .65fr); gap: clamp(30px, 5vw, 76px); align-items: start; }
.checkout-form { display: grid; gap: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { min-height: 24px; font-size: 13px; }
.checkout-success { border: 1px solid var(--moss); padding: clamp(28px, 5vw, 60px); }
.checkout-success h2 { font-size: 42px; }

.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.collection-card { border-top: 1px solid var(--line); padding-top: 14px; }
.collection-card-media { aspect-ratio: 4 / 5; background: var(--paper-2); margin-bottom: 18px; overflow: hidden; }
.collection-card-media img { width: 100%; height: 100%; object-fit: cover; }
.collection-card a { text-decoration: none; }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 8vw, 120px); }
.about-grid .lede { max-width: 900px; }
.fact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fact { border-top: 1px solid var(--line); padding-top: 12px; }

.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.not-found h1 { font-size: clamp(100px, 18vw, 260px); margin-bottom: 0; }
.not-found p { max-width: 520px; margin-inline: auto; }

.site-footer { border-top: 1px solid var(--line); padding-block: 42px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, .6fr); gap: var(--gutter); }
.footer-brand { font-family: var(--serif); font-size: 30px; }
.footer-nav { display: grid; align-content: start; gap: 8px; font-size: 14px; }
.footer-nav strong { margin-bottom: 5px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 18px; display: flex; justify-content: space-between; gap: 18px; font-size: 12px; color: var(--soot-soft); }

@media (max-width: 1024px) {
  .editorial-hero { grid-template-columns: .9fr 1.35fr; }
  .product-card { grid-column: span 6; }
  .product-card.wide { grid-column: span 6; }
  .journal-grid { grid-template-columns: 1fr 1fr; }
  .journal-card:first-child { grid-column: 1 / -1; }
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 34px; }
  .shop-toolbar { grid-template-columns: 1fr 1fr; }
  .shop-toolbar .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .commerce-header { position: relative; }
  .header-row { min-height: 66px; grid-template-columns: auto 1fr auto; }
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; justify-self: start; }
  .brand { justify-self: center; font-size: 16px; }
  .brand-mark { width: 18px; height: 18px; }
  .header-actions .label { display: none; }
  .concept-strip .site-shell span:last-child { display: none; }
  .editorial-hero { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-copy, .hero-caption, .hero-visual { grid-column: 1; grid-row: auto; }
  .hero-visual { min-height: 112vw; }
  .hero-copy h1 { max-width: 9ch; }
  .split-feature, .split-feature.reverse { grid-template-columns: 1fr; }
  .split-feature.reverse .feature-media { order: initial; }
  .feature-copy { padding-top: 0; }
  .material-grid, .collection-grid { grid-template-columns: 1fr; }
  .product-section-head { align-items: start; flex-direction: column; }
  .page-hero .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero h1 { margin-bottom: 16px; }
  .shop-toolbar { position: static; grid-template-columns: 1fr; }
  .shop-toolbar .field:first-child { grid-column: auto; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; grid-template-columns: 1fr; }
  .product-thumbnails { grid-row: 2; grid-template-columns: repeat(3, 1fr); }
  .product-main-image { grid-row: 1; }
  .add-row { grid-template-columns: 1fr; }
  .quantity-row { width: max-content; }
  .cart-page-layout, .checkout-layout, .about-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  h1 { font-size: clamp(42px, 14vw, 68px); }
  h2 { font-size: clamp(32px, 10vw, 48px); }
  .section { padding-block: 58px; }
  .product-card, .product-card.wide { grid-column: 1 / -1; }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-card:first-child { grid-column: auto; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .cart-item, .cart-page-items .cart-item { grid-template-columns: 84px 1fr; }
  .cart-item img { width: 84px; }
  .cart-item-total { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .shop-results-meta { flex-direction: column; }
}

@media (max-width: 340px) {
  .header-actions { gap: 2px; }
  .cart-count { min-width: 21px; height: 21px; }
  .product-card-title { gap: 8px; }
  .cart-panel { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
