:root {
  --bg: #f1ede6;
  --surface: #e7e1d7;
  --ink: #1d1c1a;
  --muted: #6f6a62;
  --line: #d6cfc3;
  --accent: #2c4560;
  --night: #141210;
  --night-ink: #efe8dc;
  --glow: #f3d9a6;
  /* Proxima Nova and Chaparral are Adobe fonts: used where installed, otherwise the closest free Google fonts */
  --font-head: "Proxima Nova", "Montserrat", system-ui, sans-serif;
  --font-body: "Chaparral Pro", "Chaparral", "Bitter", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --top: 104px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--top); }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-promo { --top: 72px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Wide interior shots: keep the lamp in frame when cropped */
img[src*="cube-bedroom"] { object-position: 64% 50%; }
img[src*="cube-living"] { object-position: 76% 50%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 700; letter-spacing: -.03em; }
.wrap { padding: 0 var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.page { padding-top: calc(var(--top) + clamp(24px, 4vw, 48px)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border: 1px solid currentColor; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }

/* Header */
.promo { position: fixed; inset: 0 0 auto; z-index: 51; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0 16px; background: var(--accent); color: var(--night-ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.header { position: fixed; inset: 32px 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; padding: 0 var(--gutter); color: var(--night-ink); transition: background .3s, color .3s, border-color .3s; border-bottom: 1px solid transparent; }
body.no-promo .header { top: 0; }
/* Over the dark first screen: a dark backing once the hero text starts scrolling under the header */
.header.is-scrolled:not(.is-solid) { background: rgba(20, 18, 16, .82); backdrop-filter: blur(10px); }
.header.is-solid { background: rgba(241, 237, 230, .94); backdrop-filter: blur(10px); color: var(--ink); border-color: var(--line); }
/* The logo is light on a transparent background: as is over the photo, turned dark on the light header */
.logo { display: block; flex: none; }
.logo img { width: auto; height: 34px; object-fit: contain; transition: filter .3s; }
.header.is-solid .logo img { filter: brightness(0); }
.nav { display: flex; gap: clamp(24px, 2.6vw, 40px); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { opacity: .85; } .nav a:hover { opacity: 1; }
.header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
/* Contact email in the header: icon plus address on wide screens, icon only on narrower ones */
.mail-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; opacity: .9; transition: opacity .2s; }
.mail-link:hover { opacity: 1; }
.mail-link svg { flex: none; }
.cart-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid currentColor; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; transition: background .25s, color .25s; }
.cart-link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.header:not(.is-solid) .cart-link:hover { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--glow); color: var(--night); font: 600 11px/20px var(--font-head); text-align: center; letter-spacing: 0; }
.cart-count:empty { display: none; }

/* Floating cart button, shown once something is in the cart */
.cart-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 64px; height: 64px; border-radius: 50%; background: var(--bg); box-shadow: 0 6px 24px rgba(20,18,16,.18); display: grid; place-items: center; transform: scale(0); transition: transform .3s ease; }
.cart-fab.is-on { transform: scale(1); }
.cart-fab svg { width: 26px; height: 26px; }
.cart-fab .cart-count { position: absolute; top: 2px; right: 2px; background: #c0392b; color: #fff; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100% - 32px); padding: 14px 20px; background: var(--ink); color: var(--bg); font-size: 15px; transform: translate(-50%, 20px); opacity: 0; transition: .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; color: var(--night-ink); background: var(--night); overflow: hidden; }
.hero img { position: absolute; inset: 0; object-position: 72% 50%; }
/* The evening shot sits over the day one and simply fades in and out */
.hero .night { opacity: 0; transition: opacity 1.6s ease-in-out; }
.hero.is-night .night { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,9,8,.72) 0%, rgba(10,9,8,.25) 55%, rgba(10,9,8,0) 100%), linear-gradient(0deg, rgba(10,9,8,.55), transparent 45%), linear-gradient(180deg, rgba(10,9,8,.45), transparent 18%); }
/* Text block centred on the screen height; equal padding keeps it clear of the header */
.hero__text { position: absolute; z-index: 2; inset: 0 var(--gutter); padding-block: var(--top); max-width: 680px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
/* The small line above the slogan is the page's H1 (what people search for); the big slogan is styled text */
.hero .hero__title { font-family: var(--font-head); line-height: 1.1; max-width: none; color: inherit; font-size: clamp(38px, 5.4vw, 76px); font-weight: 700; letter-spacing: -.03em; margin: 18px 0 22px; }
.hero .hero__title em { color: var(--glow); }
.hero p { max-width: 500px; font-size: 18px; color: rgba(239,232,220,.8); margin-bottom: 34px; }
.hero .eyebrow { font-size: 14px; color: rgba(239,232,220,.7); }
.hero h1.eyebrow { font-family: var(--font-body); font-weight: 400; line-height: 1.6; letter-spacing: .14em; }
.switch { display: inline-flex; border: 1px solid rgba(239,232,220,.55); padding: 4px; gap: 4px; background: rgba(10,9,8,.25); backdrop-filter: blur(6px); }
.switch button { padding: 13px 28px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(239,232,220,.8); transition: background .3s, color .3s; }
.switch button:hover { color: var(--night-ink); }
.switch button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }

/* Product cards: day photo, the evening one fades in on hover */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.section-head p { color: var(--muted); max-width: 360px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px clamp(16px, 2.4vw, 32px); }
.tile { display: block; text-align: center; }
.tile__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.tile__img img { position: absolute; inset: 0; transition: opacity .7s ease, transform 1.2s ease; }
.tile__img .on { opacity: 0; }
.tile:hover .on, .tile.is-on .on { opacity: 1; }
.tile:hover img { transform: scale(1.03); }
.tile__meta { padding: 22px 12px 0; }
.tile__meta h3 { font-size: 22px; font-weight: 400; letter-spacing: 0; line-height: 1.25; }
.tile__sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.tile__price { margin-top: 12px; font-size: 16px; }

/* Product page */
.back { display: inline-block; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.slider { position: relative; transition: opacity .2s; }
/* Brief fade while the gallery switches to another base colour */
.slider.is-switching { opacity: 0; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--surface); }
.slider__track::-webkit-scrollbar { display: none; }
/* Photo plus thumbnails fit the screen under the header; the whole photo stays visible, with the surface colour at the sides */
.slider__track figure { flex: 0 0 100%; aspect-ratio: 4 / 5; max-height: max(320px, calc(100svh - var(--top) - 200px)); scroll-snap-align: start; }
.slider__track img { object-fit: contain; }
.slider__arrow { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(241,237,230,.92); display: grid; place-items: center; font-size: 22px; line-height: 1; transition: opacity .2s; }
.slider__arrow:disabled { opacity: 0; pointer-events: none; }
.slider__arrow--prev { left: 14px; } .slider__arrow--next { right: 14px; }
.slider__thumbs { display: flex; gap: 4px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.slider__thumbs button { flex: 0 0 72px; height: 72px; opacity: .5; transition: opacity .2s; }
.slider__thumbs button[aria-current="true"], .slider__thumbs button:hover { opacity: 1; }
.product__info { position: sticky; top: calc(var(--top) + 24px); }
.product__info h1 { font-size: clamp(40px, 4.6vw, 64px); margin: 12px 0 6px; }
.product__sku { font-size: 13px; color: var(--muted); }
.product__price { font-size: 24px; margin: 18px 0 24px; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.buy .btn { flex: 1 1 180px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--bg); }
.qty button { width: 44px; height: 50px; font-size: 20px; color: var(--muted); }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 28px; text-align: center; }
.product__text { color: var(--muted); margin-bottom: 32px; white-space: pre-line; }
.specs { border-top: 1px solid var(--line); margin-bottom: 36px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { text-align: right; }
.story { font-family: var(--font-head); font-style: italic; font-size: 21px; line-height: 1.4; margin: 0 0 32px; padding-left: 18px; border-left: 2px solid var(--accent); white-space: pre-line; }
.story cite { display: block; margin-top: 8px; font: 400 13px/1.4 var(--font-body); font-style: normal; color: var(--muted); }
.colors { margin-bottom: 24px; }
.colors__label { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.colors__label span { color: var(--ink); }
.colors__list { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); outline: 1px solid transparent; outline-offset: 4px; transition: outline-color .2s; }
.swatch:hover { outline-color: var(--line); }
.swatch[aria-pressed="true"] { outline-color: var(--ink); }
.more { margin-top: clamp(72px, 10vw, 120px); }
.more h2 { margin-bottom: 40px; font-size: clamp(32px, 4vw, 48px); }

/* Articles */
/* Articles carousel: 3 cards on desktop, 2 on tablet, one and a bit on phones */
.posts { --gap: clamp(16px, 2.4vw, 32px); display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); column-gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.posts::-webkit-scrollbar { display: none; }
.posts .post { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.carousel-nav[hidden] { display: none; }
.carousel-btn { width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; font-size: 20px; line-height: 1; transition: background .25s, color .25s, opacity .25s; }
.carousel-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.carousel-btn:disabled { opacity: .25; cursor: default; }
.post { display: block; }
.post__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.post__img img { transition: transform 1.2s ease; }
.post:hover .post__img img { transform: scale(1.04); }
.post__date { margin-top: 18px; font-size: 13px; color: var(--muted); }
.post h3 { margin-top: 6px; font-size: 24px; font-weight: 400; letter-spacing: 0; line-height: 1.25; }
.post p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.post__more { display: inline-block; margin-top: 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(36px, 5vw, 60px); margin: 10px 0 18px; }
.article__cover { aspect-ratio: 16 / 9; margin: 32px 0 40px; overflow: hidden; }
.article__body { font-size: 18px; line-height: 1.75; }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.8em; }
.article__body h3 { font-size: 22px; font-weight: 400; margin-top: 1.5em; }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li + li { margin-top: .4em; }
.article__body a { color: var(--accent); border-bottom: 1px solid currentColor; }
.article__body figure { margin-block: 2em; }
.article__body figure img { height: auto; }

/* Craft */
.craft { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; margin-top: 56px; }
.craft div { background: var(--surface); padding: 36px 30px 40px; }
.craft b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 52px; line-height: 1; color: var(--accent); margin-bottom: 18px; }
.craft h3 { font-weight: 700; letter-spacing: -.03em; }
.craft h3 { font-size: 28px; margin-bottom: 12px; }
.craft p { color: var(--muted); font-size: 18px; line-height: 1.55; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--font-head); font-size: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 26px; max-width: 680px; white-space: pre-line; }

/* Cart and checkout: a full-height panel over the page */
.cart { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; visibility: hidden; }
.cart.is-open { visibility: visible; }
.cart__shade { position: absolute; inset: 0; background: rgba(20,18,16,.55); opacity: 0; transition: opacity .35s; }
.cart.is-open .cart__shade { opacity: 1; }
.cart__panel { position: relative; width: min(600px, 100%); height: 100%; background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s ease; }
.cart.is-open .cart__panel { transform: none; }
.cart__top { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 64px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.cart__top h2 { font-size: 20px; font-weight: 400; letter-spacing: 0; text-align: center; }
.cart__top button { width: 48px; height: 48px; font-size: 26px; line-height: 1; }
.cart__back[hidden] { visibility: hidden; display: block; }
.cart__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px clamp(16px, 4vw, 40px) 40px; }
.cart__empty { padding: 48px 0; text-align: center; color: var(--muted); }
.cart__empty .btn { margin-top: 24px; }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__img { width: 80px; height: 80px; }
.line__name { font-family: var(--font-head); font-size: 17px; line-height: 1.3; }
.line__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.line__row { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.line .qty button { width: 34px; height: 34px; font-size: 17px; }
.line__remove { align-self: start; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1; }
.line__remove:hover { color: var(--ink); border-color: var(--ink); }
.total { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--font-head); font-size: 19px; }
.total--small { padding: 6px 0; font-size: 15px; font-family: var(--font-body); color: var(--muted); }
.cart__body > .btn { width: 100%; margin-top: 8px; }
.checkout { display: grid; gap: 18px; }
.checkout h3 { font-size: 22px; font-weight: 400; letter-spacing: 0; margin-top: 12px; }
label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { font: 400 16px/1.4 var(--font-body); color: var(--ink); background: #fbf9f5; border: 1px solid var(--line); padding: 14px 16px; border-radius: 0; outline: none; transition: border-color .2s; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
input.is-invalid { border-color: #b03a2e; }
textarea { resize: vertical; min-height: 90px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: #fbf9f5; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.choice input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.choice__price { margin-left: auto; white-space: nowrap; }
.choices { display: grid; gap: 8px; }
/* Spam trap: kept out of sight and out of the tab order */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; gap: 12px; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.agree input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.agree.is-invalid { color: #b03a2e; }
.summary { margin-top: 8px; padding: 20px; background: var(--surface); }
.summary .line { grid-template-columns: 56px 1fr auto; padding: 10px 0; }
.summary .line__img { width: 56px; height: 56px; }
.form__note { font-size: 13px; color: var(--muted); }
.done { text-align: center; padding: 48px 0; }
.done h3 { font-size: 36px; margin-bottom: 12px; }
.done p { color: var(--muted); }
.done .btn { display: flex; width: 100%; }
.done__text { margin-top: 12px; font-size: 14px; text-align: left; }

/* Footer */
.footer { background: var(--night); color: rgba(239,232,220,.7); padding: 56px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; }
.footer .logo img { height: 30px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--night-ink); }
.footer__contacts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 15px; color: var(--night-ink); }
.footer__contacts a { border-bottom: 1px solid rgba(239,232,220,.3); }
.footer__seller { margin-top: 8px; font-size: 12px; color: rgba(239,232,220,.5); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Medium screens: the menu takes the room, so the email shows as an icon */
@media (min-width: 901px) and (max-width: 1239px) {
  .mail-link__text { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-auto-columns: calc((100% - var(--gap)) / 2); }
  .product { grid-template-columns: 1fr; }
  .product__info { position: static; }
  .section-head { flex-direction: column; align-items: start; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: 44px; }
  .posts { grid-auto-columns: 85%; }
  .logo img { height: 28px; }
  .cart-link__text { display: none; }
  .cart-link { padding: 9px 12px; }
  .mail-link__text { display: none; }
  .mail-link { padding: 9px 4px; }
  .header__actions { gap: 10px; }
  /* Long promo text wraps to two lines */
  body { --top: 116px; }
  .promo { height: 44px; font-size: 11px; line-height: 1.35; letter-spacing: .06em; }
  .header { top: 44px; }
  /* Wide photo on a tall screen: picture on top, text below it on the dark background, however long the text is */
  .hero { height: auto; min-height: 100svh; }
  .hero img { height: 56svh; object-position: 72% 50%; }
  .hero::after { inset: 0 0 auto; height: 56svh; background: linear-gradient(0deg, var(--night) 0%, rgba(20,18,16,.6) 18%, transparent 40%), linear-gradient(180deg, rgba(10,9,8,.5), transparent 25%); }
  .hero__text { position: relative; inset: auto; padding: calc(56svh - 32px) var(--gutter) 48px; }
  .hero .hero__title { margin: 14px 0 18px; }
  .faq summary { font-size: 22px; }
  .slider__arrow { display: none; }
  .slider__thumbs button { flex-basis: 56px; height: 56px; }
  .article__body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
