:root {
  color-scheme: light;
  --paper: #f9f8f3;
  --ink: #222d25;
  --muted: #535e53;
  --accent: #355942;
  --deep: #192f24;
  --green-light: #dbe5d9;
  --line: #dce1d6;
  --gutter: clamp(1.25rem, 4.3vw, 4.5rem);
  --font: "Avenir Next", Avenir, "Segoe UI", system-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.55 var(--font); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9d5944; outline-offset: 4px; }
section[id] { scroll-margin-top: 2rem; }
.container { width: min(calc(100% - 2 * var(--gutter)), 80rem); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 3; transform: translateY(-200%); padding: .65rem 1rem; color: white; background: var(--deep); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 5.1rem; align-items: center; justify-content: space-between; gap: 1.15rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; text-decoration: none; font-size: 1.6rem; line-height: 1; font-weight: 800; letter-spacing: -.085em; }
.brand-accent { color: var(--accent); font-weight: 600; }
.brand-mark { position: relative; display: block; flex: 0 0 1.56rem; width: 1.56rem; height: 1.56rem; border-radius: .41rem .41rem .41rem .15rem; background: var(--accent); }
.brand-mark::after { content: ""; position: absolute; inset: .39rem .35rem .42rem .48rem; border: solid #edf2e8; border-width: 0 0 .13rem .13rem; border-radius: 0 0 0 .3rem; transform: skewY(-13deg); }
nav { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.85rem); }
nav a, .header-cta { text-decoration: none; font-size: .91rem; font-weight: 600; }
nav a:hover, .plain-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .23rem; }
.header-cta { display: inline-flex; align-items: center; min-height: 2.65rem; padding: .45rem 1.03rem; border: 1px solid #bfcabe; border-radius: 2rem; }
.header-cta:hover { background: #e9eee4; }

.hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5.3rem); padding-block: clamp(2rem, 5.3vw, 5.8rem); }
.eyebrow { display: flex; align-items: center; gap: .54rem; font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.eyebrow > span { display: inline-block; width: .48rem; height: .48rem; border-radius: 50%; background: currentColor; }
h1, h2 { font-weight: 690; letter-spacing: -.075em; text-wrap: balance; }
h1 { margin-top: 1.45rem; font-size: clamp(2.65rem, 4.4vw, 4.95rem); line-height: 1.01; }
h1 span { display: block; }
h1 span + span { margin-top: .16em; }
h1 span:nth-child(n + 3) { color: var(--accent); }
.hero-description { margin-top: 1.75rem; max-width: 29rem; color: var(--muted); font-size: clamp(1.03rem, 1.4vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.4rem; margin-top: 1.85rem; }
.button { display: inline-flex; min-height: 3.15rem; padding: .72rem 1.32rem; align-items: center; justify-content: center; color: white; background: var(--accent); border-radius: .45rem; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--deep); }
.plain-link { text-underline-offset: .2rem; font-weight: 650; }
h2 { font-size: clamp(2.17rem, 4.1vw, 4.05rem); line-height: 1.06; }
h3 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 760; }
.hero-film { border: 1px solid #32483a; border-radius: 1rem; overflow: hidden; background: var(--deep); color: #f4f6ed; box-shadow: 0 1.1rem 2.5rem #162a211f; }
.film-player { position: relative; }
.play-film { position: absolute; display: grid; place-items: center; inset: 0; margin: auto; width: 3.8rem; height: 3.8rem; padding: 0; border: 1px solid #fff9; border-radius: 50%; background: #192f24ec; box-shadow: 0 .3rem 1.2rem #10171165; cursor: pointer; }
.play-film:hover { background: #355942; }
.play-film::before { content: ""; width: .95rem; height: 1.15rem; margin-left: .15rem; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #14241b; }
.hero-film video:focus-visible { outline-offset: -4px; }
.hero-film figcaption { display: grid; gap: .2rem; padding: .85rem 1.2rem 1.05rem; }
.hero-film figcaption span { color: #cedbce; font-size: .9rem; }

.products { background: #edf0e8; border-block: 1px solid var(--line); }
.chair-configurator { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-areas: "gallery intro" "gallery finishes" "gallery actions"; gap: 1.2rem clamp(2rem, 5vw, 5rem); align-content: center; padding-block: clamp(2.5rem, 5.5vw, 5.5rem); }
.configure-intro { grid-area: intro; align-self: end; }
.configure-intro h2 { max-width: 13ch; }
.finish-picker { grid-area: finishes; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.finish-picker legend { padding: 0 0 .55rem; font-size: .93rem; font-weight: 740; }
.finish-choice { position: relative; display: block; cursor: pointer; }
.finish-choice + .finish-choice { margin-top: .45rem; }
.finish-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.finish-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .72rem; min-height: 4rem; padding: .62rem .75rem; border: 1px solid #cdd7ca; border-radius: .6rem; background: #f8faf6; }
.finish-option strong, .finish-option small { display: block; line-height: 1.3; }
.finish-option small { margin-top: .16rem; color: var(--muted); font-size: .77rem; }
.finish-option:hover { border-color: #77947e; }
.finish-choice input:checked + .finish-option { background: #e1eae0; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.finish-choice input:focus-visible + .finish-option { outline: 3px solid #9d5944; outline-offset: 3px; }
.finish-price { color: var(--deep); font-size: .95rem; font-weight: 760; font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatch { width: 2.25rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid #b2b9ae; }
.swatch-black { background: #242724; }
.swatch-two-tone { background: linear-gradient(135deg, #f7f7f0 49.5%, #252925 50.5%); }
.swatch-white { background: #f7f7f0; }
.configure-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.configure-actions .button { gap: .45rem; flex: 1 0 auto; border: 0; cursor: pointer; }
.quantity-label { display: grid; gap: .18rem; width: max-content; color: var(--muted); font-size: .85rem; }
.quantity-label input { width: 4.25rem; min-height: 3.15rem; padding: .55rem .6rem; border: 1px solid #bccabd; border-radius: .45rem; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.gallery { grid-area: gallery; align-self: center; min-width: 0; overflow: hidden; border: 1px solid #d6ded3; border-radius: 1rem; background: #f8faf6; }
.gallery-stage { height: clamp(17rem, 34vw, 32rem); background: radial-gradient(ellipse at 48% 37%, #fbfcf9 6%, #edf0e7 57%, #dbe2d8 100%); }
.gallery-stage img { width: 100%; height: 100%; object-fit: contain; padding: .9rem; mix-blend-mode: multiply; }
.gallery-controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; padding: .5rem; border-top: 1px solid #d6ded3; }
.gallery-controls button { display: grid; min-width: 0; justify-items: center; align-content: start; gap: .25rem; border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: .4rem; padding: .2rem .1rem .35rem; font-size: .75rem; line-height: 1.2; text-align: center; font-weight: 680; cursor: pointer; }
.gallery-controls img { width: 100%; height: 3.3rem; object-fit: contain; mix-blend-mode: multiply; }
.gallery-controls button[aria-pressed="true"] { color: var(--deep); border-color: #7a9982; background: #e1eae0; }
.gallery-controls button:not([aria-pressed="true"]):hover { background: #edf1e9; }

.cart-open { gap: .45rem; background: transparent; color: var(--ink); cursor: pointer; }
.cart-open span { display: inline-grid; min-width: 1.39rem; min-height: 1.39rem; padding-inline: .26rem; place-items: center; border-radius: 1rem; background: var(--accent); color: white; font-size: .74rem; }
.cart-dialog { position: fixed; inset: 0 0 0 auto; width: min(100%, 30rem); max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.cart-dialog::backdrop { background: #17291fd3; }
.cart-panel { min-height: 100%; padding: clamp(1rem, 4vw, 2.1rem); }
.cart-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.cart-heading h2 { font-size: 2.6rem; }
.cart-close { width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 1px solid #bfd0c0; background: #edf1e9; color: var(--ink); font-size: 1.55rem; line-height: 1; cursor: pointer; }
.cart-empty { color: var(--muted); padding-block: .8rem; }
.cart-items { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.cart-item { display: grid; grid-template-columns: 4.1rem 1fr auto; gap: .72rem; align-items: start; padding-block: .9rem; border-block-start: 1px solid var(--line); }
.cart-item:last-child { border-block-end: 1px solid var(--line); }
.cart-item img { width: 100%; height: 4.35rem; object-fit: contain; padding: .2rem; border-radius: .35rem; background: #edf0e7; mix-blend-mode: multiply; }
.cart-item-info .quantity-label { margin-top: .35rem; }
.cart-item-info input { width: 3.65rem; min-height: 2.4rem; padding: .25rem .42rem; }
.cart-item-price { text-align: right; font-weight: 750; }
.cart-item-price button, .cart-continue { padding: 0; border: 0; color: var(--accent); background: transparent; text-decoration: underline; cursor: pointer; }
.cart-item-price button { margin-top: .32rem; font-size: .84rem; }
.cart-delivery { display: grid; gap: .4rem; font-weight: 700; }
.cart-delivery select { width: 100%; min-height: 2.8rem; padding: .4rem .65rem; border: 1px solid #bccabd; border-radius: .45rem; background: #fff; color: var(--ink); font: inherit; font-weight: 500; }
.cart-delivery-detail, .cart-payment-status { color: var(--muted); font-size: .92rem; margin-top: .55rem; }
.cart-totals { margin-top: 1.2rem; }
.cart-totals div { display: flex; justify-content: space-between; gap: .7rem; padding-block: .3rem; }
.cart-totals dd { white-space: nowrap; }
.cart-totals .cart-grand-total { margin-top: .32rem; padding-block: .65rem; border-top: 1px solid var(--line); font-size: 1.22rem; font-weight: 750; }
.cart-continue { margin-top: 1.2rem; }

.seat-feature { background: var(--deep); color: #f4f6ed; }
.seat-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.6rem, 5.4vw, 5.45rem); }
.seat-inner p { margin-top: 1.05rem; max-width: 32rem; color: #e1e9dd; }
.seat-inner figure { overflow: hidden; background: #2a4133; border: 1px solid #4b5d50; border-radius: .85rem; }
.seat-inner img { width: 100%; }
.seat-inner figcaption { padding: .7rem 1rem; font-size: .88rem; }

.adjustments { padding-block: clamp(3rem, 7vw, 6.5rem); }
.adjustment-grid { margin-top: 1.9rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.45rem); }
.detail-card { overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: #fbfcf8; }
.detail-visual { height: clamp(12rem, 20vw, 17rem); padding: .9rem; background: #edf0e9; border-bottom: 1px solid var(--line); }
.detail-visual img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.detail-copy { padding: 1.1rem clamp(.9rem, 1.7vw, 1.4rem) 1.25rem; }
.detail-copy p, .delivery-card p:not(.price), .faq p { color: var(--muted); margin-top: .32rem; }

.delivery { background: #e8eee5; padding-block: clamp(2.9rem, 6vw, 5.2rem); border-block: 1px solid #d7e2d5; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; margin-top: 1.75rem; }
.delivery-card { padding: clamp(1rem, 2.5vw, 2rem); background: #f8faf6; border: 1px solid #d6e1d4; border-radius: .7rem; }
.delivery-card header { display: flex; align-items: first baseline; justify-content: space-between; gap: .7rem; }
.delivery-card .price { white-space: nowrap; color: var(--accent); font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.1; font-weight: 750; letter-spacing: -.045em; }
.delivery-assembled { border-color: #afc2ae; }
.delivery-assembled figure { margin-top: .95rem; border: 1px solid #d7e1d4; border-radius: .55rem; overflow: hidden; }
.delivery-assembled img { width: 100%; height: 10.5rem; padding: .38rem; object-fit: contain; background: #eef2ec; mix-blend-mode: multiply; }
.delivery-assembled figcaption { padding: .6rem .82rem; color: var(--muted); font-size: .87rem; }

.details-grid { padding-block: clamp(3.2rem, 6.5vw, 6.3rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); }
.details-grid h2 { font-size: clamp(2.15rem, 3.25vw, 3.35rem); margin-bottom: 1.35rem; }
.spec-list div { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; border-top: 1px solid var(--line); padding-block: .72rem; }
.spec-list div:last-child { border-bottom: 1px solid var(--line); }
.spec-list dt { font-weight: 650; }
.spec-list dd { color: var(--muted); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: .8rem; list-style: none; cursor: pointer; padding-block: .81rem; font-weight: 690; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding-bottom: .9rem; margin: 0; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

@media (max-width: 910px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.55rem; }
  .adjustment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav { gap: 1rem; }
  .header-cta:not(.cart-open) { display: none; }
}
@media (max-width: 680px) {
  .header-inner { flex-wrap: wrap; min-height: 4.1rem; gap: .5rem 1rem; padding-block: .7rem; }
  .brand { font-size: 1.36rem; gap: .45rem; }
  .brand-mark { flex-basis: 1.4rem; width: 1.4rem; height: 1.4rem; }
  nav { gap: .9rem; }
  nav a { font-size: .83rem; }
  nav a:first-child { display: none; }
  .hero, .seat-inner, .delivery-grid, .details-grid { grid-template-columns: minmax(0, 1fr); }
  .chair-configurator { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "finishes" "gallery" "actions"; gap: .85rem; }
  .configure-intro h2 { max-width: none; }
  .header-inner nav { flex: 1 0 100%; order: 1; }
  .cart-open { min-height: 2.15rem; padding: .25rem .65rem; }
  .hero { gap: 1.6rem; }
  .hero-film { grid-row: 1; }
  h1 { font-size: clamp(2.4rem, 8.6vw, 3.55rem); margin-top: .8rem; }
  .hero-description { margin-top: 1.25rem; }
  .hero-actions { margin-top: 1.4rem; }
  .gallery-stage { height: clamp(17rem, 80vw, 24rem); }
  .seat-inner h2 br { display: none; }
}
@media (max-width: 435px) {
  .adjustment-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-visual { height: 13.75rem; }
  .gallery-controls img { height: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
