/* Halden: oat, bark and clay. Cormorant Garamond for display, Jost for everything else. */
:root {
  --oat: #efe9df; --paper: #f7f3ec; --stone: #e2d9cb; --bark: #2b2520; --bark-2: #574d45; --clay: #8a5a3c; --line: #d6ccbd; --sage: #6f7a63; --err: #9c3b2c;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Jost", system-ui, sans-serif;
  --pad: clamp(18px, 4vw, 56px); --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--oat); color: var(--bark); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--bark); color: var(--oat); padding: 8px 14px; z-index: 99; }
.skip:focus { top: 8px; }
.muted { color: var(--bark-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bark-2); margin: 0 0 14px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; margin: 0; }
.d1 { font-size: clamp(46px, 7.2vw, 104px); }
.d2 { font-size: clamp(36px, 4.6vw, 64px); }
.d3 { font-size: clamp(28px, 3vw, 40px); }
.lede { font-size: clamp(17px, 1.4vw, 19px); max-width: 34em; color: var(--bark-2); }

.demo { display: flex; justify-content: space-between; gap: 16px; padding: 8px var(--pad); background: var(--bark); color: #e9e2d6; font-size: 13px; }
.demo a { color: #fff; white-space: nowrap; }
.top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 14px var(--pad); background: rgba(239, 233, 223, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-size: 28px; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; margin: 0; }
.nav { display: flex; gap: 26px; justify-content: center; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: 0.04em; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--bark); }
.bag-btn { justify-self: end; display: inline-flex; gap: 8px; align-items: center; background: none; border: 1px solid var(--bark); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 14px; min-height: 40px; }
.bag-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--bark); color: var(--oat); font-size: 12px; padding: 0 6px; }
.bag-btn.bump .bag-count { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--bark); background: var(--bark); color: var(--oat); text-decoration: none; cursor: pointer; font-size: 15px; letter-spacing: 0.02em; transition: background .2s, color .2s; }
.btn:hover { background: #3d352e; }
.btn.ghost { background: transparent; color: var(--bark); }
.btn.ghost:hover { background: var(--bark); color: var(--oat); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 110px); }
.hero-copy { padding: clamp(40px, 7vw, 110px) var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hero-art { background: #d9cfbf; position: relative; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-cap { position: absolute; left: 20px; bottom: 18px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; background: rgba(247,243,236,.85); padding: 6px 12px; border-radius: 999px; }
.sec { padding: clamp(64px, 9vw, 130px) var(--pad); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.card { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1s var(--ease); }
.card-img img + img { opacity: 0; }
.card:hover .card-img img + img { opacity: 1; }
.card:hover .card-img img { transform: scale(1.025); }
.card-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; align-items: baseline; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0; }
.card p { margin: 2px 0 0; font-size: 14px; color: var(--bark-2); }
.dots { display: flex; gap: 6px; margin-top: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.materials { background: var(--paper); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.materials h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 10px; }
.materials p { margin: 0; color: var(--bark-2); }
.mat-swatch { aspect-ratio: 16 / 10; margin-bottom: 20px; overflow: hidden; background: var(--stone); }
.mat-swatch img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.4); transform-origin: 50% 58%; }
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bark); color: var(--oat); }
.feature .copy { padding: clamp(48px, 7vw, 110px) var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.feature .lede { color: #cfc6b8; }
.feature .eyebrow { color: #bdb3a4; }
.feature .btn { background: var(--oat); color: var(--bark); border-color: var(--oat); align-self: start; }
.feature img { width: 100%; height: 100%; object-fit: cover; }

/* Shop */
.shop-head { padding: clamp(48px, 6vw, 88px) var(--pad) 28px; }
.tools { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 var(--pad) 28px; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 14px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.chip[aria-current="page"] { background: var(--bark); color: var(--oat); border-color: var(--bark); }
select { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; min-height: 40px; }
.shop-grid { padding: 0 var(--pad) clamp(64px, 8vw, 110px); }

/* Product page */
.crumbs { padding: 22px var(--pad) 0; font-size: 13px; color: var(--bark-2); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); padding: 22px var(--pad) clamp(64px, 8vw, 110px); align-items: start; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: 84px; }
.thumbs { display: grid; gap: 10px; align-content: start; }
.thumb { padding: 0; border: 1px solid transparent; background: var(--stone); cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; }
.thumb[aria-pressed="true"] { border-color: var(--bark); }
.thumb.t3d { display: grid; place-items: center; font-size: 12px; letter-spacing: .1em; background: var(--paper); border-color: var(--line); }
.stage { position: relative; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.stage > img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.stage .viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.stage .viewer-canvas:active { cursor: grabbing; }
.stage-ui { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; pointer-events: none; }
.stage-ui > * { pointer-events: auto; }
.pill { background: rgba(247, 243, 236, 0.92); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; min-height: 38px; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--bark-2); }
.info h1 { margin-bottom: 6px; }
.price { font-size: 22px; margin: 6px 0 22px; }
.fin-legend { font-size: 14px; margin: 26px 0 10px; }
.fin-legend b { font-weight: 500; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.swatches span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); box-shadow: inset 0 0 0 3px var(--oat); }
.swatches input:checked + span { outline: 1px solid var(--bark); outline-offset: 3px; }
.swatches input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 3px; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 28px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--bark); border-radius: 999px; height: 50px; }
.qty button { width: 44px; height: 48px; background: none; border: 0; cursor: pointer; font-size: 18px; }
.qty output, .qty span { min-width: 28px; text-align: center; }
.note { font-size: 14px; color: var(--bark-2); margin-top: 14px; }
.acc { margin-top: 32px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; padding: 18px 0; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; line-height: 1; }
.acc details[open] summary::after { content: "–"; }
.acc details > div { padding: 0 0 20px; color: var(--bark-2); font-size: 15px; }
.acc dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; }
.acc dt { color: var(--bark); }
.acc dd { margin: 0; }

/* Bag */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(43, 37, 32, 0.36); display: flex; justify-content: flex-end; }
.drawer-in { width: min(440px, 100%); height: 100%; background: var(--paper); display: flex; flex-direction: column; padding: 22px 24px; animation: slide .3s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: .5; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-head h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 0; }
.x { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
#bag-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.lines { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.line h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0; }
.line p { margin: 0; font-size: 13.5px; color: var(--bark-2); }
.line .qty { height: 38px; margin-top: 10px; border-color: var(--line); }
.line .qty button { width: 34px; height: 36px; font-size: 15px; }
.ship-bar { margin: 6px 0 14px; font-size: 13.5px; color: var(--bark-2); }
.ship-track { height: 4px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.ship-track i { display: block; height: 100%; background: var(--sage); transition: width .4s var(--ease); }
.totals { border-top: 1px solid var(--line); padding-top: 16px; }
.trow { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; font-size: 15px; }
.trow.big { font-size: 18px; font-weight: 500; margin-top: 12px; }
.empty-bag { text-align: center; padding: 48px 0; color: var(--bark-2); }

/* Checkout */
.co { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding: clamp(36px, 5vw, 64px) var(--pad) clamp(64px, 8vw, 110px); align-items: start; }
.steps { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; font-size: 13.5px; flex-wrap: wrap; }
.steps li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--bark-2); }
.steps li[aria-current="step"] { background: var(--bark); color: var(--oat); border-color: var(--bark); }
.steps li.done { border-color: var(--sage); color: var(--bark); }
.form { display: grid; gap: 16px; }
.form h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 8px 0 4px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field input, .field select { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; font-size: 16px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--err); }
.ferr { color: var(--err); font-size: 13px; }
.ferr:empty { display: none; }
.opt { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; background: var(--paper); }
.opt:has(input:checked) { border-color: var(--bark); }
.opt input { width: 18px; height: 18px; accent-color: var(--bark); }
.opt b { font-weight: 500; }
.opt span:last-child { margin-left: auto; }
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--clay); padding: 16px 18px; border-radius: 4px; font-size: 14.5px; }
.summary { background: var(--paper); padding: 24px; position: sticky; top: 84px; }
.summary h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 8px; }
.promo { display: flex; gap: 8px; margin: 14px 0 6px; }
.promo input { flex: 1; border: 1px solid var(--line); background: var(--oat); border-radius: 999px; padding: 0 16px; min-height: 44px; }
.promo .btn { min-height: 44px; padding: 0 18px; }
.done-wrap { max-width: 720px; margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--pad); text-align: center; }
.done-wrap .lines { text-align: left; margin: 28px 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--bark); color: var(--oat); padding: 12px 20px; border-radius: 999px; opacity: 0; transition: .25s var(--ease); z-index: 70; pointer-events: none; font-size: 14px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.foot { background: var(--paper); padding: 56px var(--pad) 28px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid > div:first-child p.muted { max-width: 30em; font-size: 14px; }
.foot-grid a { display: block; text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-h { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bark-2); margin: 6px 0 10px; }
.foot-base { margin: 40px 0 0; font-size: 13px; }
.reveal { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 980px) {
  .nav { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .hero, .feature, .pdp, .co { grid-template-columns: minmax(0, 1fr); }
  .hero-art { aspect-ratio: 4 / 5; order: -1; max-height: 70vh; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .summary { position: static; order: -1; }
}
@media (max-width: 600px) {
  .demo { flex-direction: column; gap: 2px; font-size: 12px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .thumbs { grid-template-columns: repeat(4, 1fr); order: 2; }
  .frow { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .card h3 { font-size: 20px; }
  .grid { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
