:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --surface: #ffffff;
  --stage: #eeede7;
  --ink: #24251f;
  --muted: #63665b;
  --line: #d2d5cb;
  --card-line: #aeb2a5;
  --accent: #30382b;
  --accent-ink: #f5f5f2;
  --accent-soft: #e8ebe3;
  --error: #a3321f;
  --radius: 4px;
  --sans: Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2 { font-weight: 400; line-height: 1.05; letter-spacing: -0.045em; }
h1 { font-size: clamp(2.4rem, 3.6vw, 3.5rem); margin: 0 0 24px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 28px; }
a { color: inherit; text-underline-offset: 5px; }
img { max-width: 100%; height: auto; }
.wrap { width: 91.4%; max-width: 1440px; margin: 0 auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

/* Shared navigation */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; }
.brand { font-size: 29px; line-height: 1; letter-spacing: -1.6px; font-weight: 600; text-decoration: none; }
.header-links { display: flex; align-items: center; gap: 36px; font-size: 12px; }
.header-links a { text-decoration: none; padding: 12px 0; }
.header-links a:hover { text-decoration: underline; }

/* Collection: every card is one native link. */
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 60px; align-items: end; padding: 58px 0 52px; }
.home-intro h1 { max-width: 850px; font-size: clamp(3.5rem, 6.5vw, 5.875rem); line-height: 0.99; letter-spacing: -0.058em; margin: 0; text-wrap: balance; white-space: pre-line; }
.home-intro .lede { font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0 0 4px; }
.products { padding-bottom: 65px; }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; margin-bottom: 30px; border-block: 1px solid var(--line); }
.collection-toolbar h2 { font-size: 16px; line-height: 1.4; letter-spacing: 0; margin: 0; }
.collection-toolbar p { font-size: 12px; color: var(--muted); margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 0; border: 1px solid var(--card-line); text-decoration: none; }
.card:hover { border-color: var(--ink); }
.card:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card > img, .card > .photo-placeholder, .card-media { display: block; width: 100%; aspect-ratio: 1; background: var(--stage); }
.card > img { object-fit: cover; }
.card-media { position: relative; display: flex; align-items: center; overflow: hidden; }
.card-media img { width: 100%; height: auto; mix-blend-mode: multiply; }
.card-badge { position: absolute; right: 10px; bottom: 10px; font-size: 10px; color: var(--muted); background: var(--bg); padding: 3px 6px; }
.card .card-meta { font-size: 11px; color: var(--muted); margin: 19px 0 10px; }
.card h2 { font-size: 25px; letter-spacing: -0.8px; line-height: 1.15; margin: 0 0 12px; }
.card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 20px; overflow-wrap: anywhere; }
.card .card-price { border-top: 1px solid var(--line); padding: 17px 0; margin: auto 0 0; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.made-to-order { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 60px; padding: 45px 0 50px; border-top: 1px solid var(--line); }
.made-to-order h2 { font-size: 30px; margin: 0; }
.made-to-order p { max-width: 400px; justify-self: end; margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

.card h2, .panel h1 { overflow-wrap: anywhere; }

/* Product: interactive model on the left, existing options on the right. */
.product { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 64px; }
.stage { position: relative; background: var(--stage); height: min(62vh, 440px); overflow: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage-status { position: absolute; left: 16px; bottom: 12px; margin: 0; max-width: calc(100% - 32px); font-size: 0.85rem; color: var(--muted); }
.stage-status:empty { display: none; }
.stage[data-state="error"] .stage-status, .stage[data-webgl="off"] .stage-status { color: var(--ink); background: var(--surface); padding: 10px 12px; }
.stage-caption { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.panel { min-width: 0; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.lede { margin: 0 0 28px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.price { margin: 0; font-size: 28px; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.price-note { margin: 0; color: var(--muted); font-size: 12px; }

/* Customisation controls */
.form { display: grid; gap: 24px; margin-bottom: 28px; }
.form:empty { display: none; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend, .field label { font-weight: 500; padding: 0; margin-bottom: 8px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.label-row label { margin: 0; }
.legend-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; }
.legend-value, .char-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.char-count.over { color: var(--error); font-weight: 600; }
.field-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; min-height: 60px; font: inherit; text-align: left; color: var(--ink); background: transparent; border: 1px solid var(--card-line); border-radius: var(--radius); cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice-label { font-weight: 500; }
.choice-price { font-size: 12px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; padding: 0; cursor: pointer; background: var(--swatch); border: 1px solid rgba(0, 0, 0, 0.2); box-shadow: 0 0 0 3px var(--bg); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.field input[type="text"], .field input[type="number"] { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--radius); }
.field input[type="text"]:focus, .field input[type="number"]:focus { border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-message { margin: 8px 0 0; color: var(--error); font-size: 14px; }
.field-message:empty { display: none; }

/* Purchase and checkout */
.button { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 15px; padding: 13px 22px; min-height: 48px; border-radius: var(--radius); cursor: pointer; color: var(--accent); background: var(--surface); border: 1px solid var(--accent); text-decoration: none; }
.button-primary { color: var(--accent-ink); background: var(--accent); }
.button-primary:hover:not(:disabled) { background: #242a20; }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button-link { font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; min-height: 44px; padding: 8px 4px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.add-row .add { width: 100%; padding: 15px 22px; }
.add-message { margin: 10px 0 0; font-size: 14px; }
.add-message:empty { display: none; }
.add-message[data-tone="error"] { color: var(--error); }
.assurances { list-style: none; padding: 20px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.details, .photos, .cart { padding-top: 45px; padding-bottom: 50px; border-top: 1px solid var(--line); }
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; color: var(--muted); font-size: 15px; }
.detail-list strong { display: block; color: var(--ink); font-weight: 500; font-size: 19px; margin-bottom: 12px; }
.photo-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-grid figure { margin: 0; }
.photo-grid img { display: block; width: 100%; }
.photo-placeholder { aspect-ratio: 4 / 3; background: var(--stage); border: 1px dashed var(--card-line); }
.photo-grid figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.cart-lines { list-style: none; padding: 0; margin: 0 0 20px; max-width: 800px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line-text { min-width: 0; overflow-wrap: anywhere; }
.cart-line-price { font-variant-numeric: tabular-nums; }
.cart-line .button-link { grid-column: 1; justify-self: start; padding-left: 0; }
.cart-stale { grid-column: 1 / -1; margin: 0; color: var(--error); font-size: 14px; }
.cart-empty { color: var(--muted); font-size: 14px; }
.cart-summary { max-width: 800px; }
.cart-total { font-size: 22px; margin: 0 0 8px; letter-spacing: -0.5px; }
.cart-note { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.cart-lead { margin: 12px 0 0; padding: 12px 14px; background: var(--accent-soft); }
.cart-lead[hidden] { display: none; }
.checkout { margin-top: 22px; min-width: 200px; }
.checkout-message { color: var(--error); font-size: 14px; }
.checkout-message ul { margin: 4px 0 0; padding-left: 20px; }
.notice { padding-top: 60px; padding-bottom: 80px; max-width: 720px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; padding: 24px 0; }
.site-footer p { margin: 0; }
.site-footer .business { margin-top: 6px; }
.site-footer a { color: inherit; }
[hidden] { display: none !important; }

@media (min-width: 720px) { .detail-list { grid-template-columns: 1fr 1fr; gap: 32px 64px; } }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr); gap: 64px; align-items: start; }
  .stage-col { position: sticky; top: 24px; }
  .stage { height: min(78vh, 720px); }
}
@media (max-width: 1000px) {
  .home-intro { grid-template-columns: 1fr; gap: 28px; }
  .home-intro h1 { max-width: 740px; }
  .home-intro .lede { max-width: 420px; }
}
@media (max-width: 850px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 599px) {
  .header-inner { min-height: 72px; gap: 16px; }
  .brand { font-size: 24px; }
  .header-links { gap: 24px; }
  .home-intro { padding: 40px 0 38px; }
  .home-intro h1 { font-size: clamp(2rem, 9.4vw, 3.625rem); }
  .home-intro .lede { font-size: 14px; }
  .collection-toolbar { padding: 17px 0; margin-bottom: 23px; }
  .card-grid { grid-template-columns: 1fr; gap: 26px; }
  .card { padding: 12px 12px 0; }
  .card > img, .card > .photo-placeholder, .card-media { aspect-ratio: 1.15; }
  .card h2 { font-size: 28px; }
  .card .card-meta { margin-top: 14px; }
  .products { padding-bottom: 40px; }
  .made-to-order { grid-template-columns: 1fr; gap: 24px; padding: 35px 0; }
  .made-to-order p { justify-self: start; }
  .product { padding-top: 24px; padding-bottom: 40px; }
  .photo-grid { grid-template-columns: 1fr; }
  .details, .photos, .cart { padding-block: 35px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
