:root {
  --cream: #f8f3ec;
  --stone: #ece5da;
  --ink: #191714;
  --ink-soft: #5b554c;
  --ink-faint: #8b8478;
  --rule: #191714;
  --rule-soft: #dcd3c5;
  --pine: #1f3527;
  --pine-card: #2f4a3a;
  --pine-line: #456152;
  --on-pine: #f6f2ea;
  --on-pine-soft: #c5cfc3;
  --accent: #d9ecae;
  --tile-coffee: #e8dfcf;
  --tile-kitchen: #e2e3d8;
  --tile-home: #dde3dc;
  --tile-textile: #eadfd5;

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 20px;
  --gutter: clamp(16px, 2.4vw, 32px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

section[id] { scroll-margin-top: 72px; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

.label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.dot-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; }
.dot-label::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.dot-label b { font-family: var(--serif); font-weight: 500; }

/* Top bar */
.topbar { background: var(--pine); color: var(--on-pine); font-size: 0.8125rem; }

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .spacer { flex: 1; }

.region { display: flex; align-items: center; gap: 2px; }

.region button {
  font: inherit;
  border: 0;
  background: transparent;
  color: var(--on-pine-soft);
  min-height: 44px;
  padding: 0 8px;
  cursor: pointer;
}

.region button[aria-pressed="true"] { color: var(--on-pine); text-decoration: underline; text-underline-offset: 4px; }
.region span { color: var(--on-pine-soft); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 243, 236, 0.96);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  padding: 8px 0;
  justify-self: start;
}

.nav { display: flex; gap: 28px; }
.nav a, .header-end a {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 12px 0;
}
.nav a:hover, .header-end a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-end { justify-self: end; display: flex; gap: 24px; }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--pine);
  color: var(--on-pine);
  font: 400 0.9375rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms ease-out, transform 180ms ease-out;
}

.btn:hover { background: #2c4a37; }
.btn:active { transform: scale(0.98); }
.btn.light { background: var(--on-pine); color: var(--pine); }

.rule-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  border-top: 1px solid currentColor;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rule-link::after { content: "\2192"; font-size: 1rem; letter-spacing: 0; transition: transform 180ms ease-out; }
.rule-link:hover::after { transform: translateX(4px); }

.text-arrow { text-decoration: none; font-size: 0.875rem; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.text-arrow::after { content: "  \2192"; }
.text-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--pine);
  font-size: 0.75rem;
  font-weight: 450;
  padding: 3px 9px;
  border-radius: 4px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: min(78vh, 720px);
}

.hero-panel { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3vw, 40px); }

.hero-panel.dark { background: var(--pine); color: var(--on-pine); }

.hero-panel.dark h1 { font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 28px; }

.hero-panel.dark .rule-link { max-width: 360px; color: var(--on-pine); }

.hero-count { position: absolute; top: 24px; left: clamp(24px, 3vw, 40px); font-size: 0.8125rem; color: var(--on-pine-soft); }

.hero-panel.scene {
  background:
    radial-gradient(70% 60% at 80% 18%, rgba(255, 249, 236, 0.95), rgba(255, 249, 236, 0) 70%),
    linear-gradient(170deg, #ece2d0 0%, #dccdb4 60%, #cdbb9f 100%);
  color: var(--ink);
}

.hero-panel.scene svg {
  position: absolute;
  inset: 8% 6% auto 6%;
  width: 88%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-panel.scene.photo { background: #cdbb9f; color: var(--on-pine); }

.hero-panel.scene.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 70%;
}

.hero-panel.scene.photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(to top, rgba(20, 18, 14, 0.55), rgba(20, 18, 14, 0));
}

.hero-panel.scene.photo p { z-index: 1; }

.hero-panel.scene p {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.3;
  max-width: 34ch;
  margin: 0;
}

/* Statement */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  padding: clamp(64px, 9vw, 120px) 0;
}

.statement h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.15; max-width: 30ch; }

/* Shop */
.shop { padding-bottom: clamp(64px, 8vw, 112px); }

.shop-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-bottom: 24px;
}

.shop-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1; }

.tabs button {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  border: 0;
  background: none;
  min-height: 44px;
  padding: 0;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 180ms ease-out;
}

.tabs button:hover, .tabs button[aria-pressed="true"] { color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 12px;
}

.product { display: flex; flex-direction: column; }

.product-art {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: var(--tile-coffee);
  border-radius: 4px;
  margin-bottom: 14px;
}

.product-art[data-cat="kitchen"] { background: var(--tile-kitchen); }
.product-art[data-cat="home"] { background: var(--tile-home); }
.product-art[data-cat="textiles"] { background: var(--tile-textile); }

.product-art .tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.product-art svg {
  width: 40%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 300ms ease-out;
}

.product:hover .product-art svg { transform: translateY(-5px); }

.product h3 { font-size: 1.25rem; line-height: 1.15; margin-bottom: 10px; }

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

.meta b { font-family: var(--serif); font-weight: 500; display: block; }
.meta span:last-child { text-align: right; }

.product .desc { font-size: 0.875rem; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.45; }

.buy-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.buy-row .action { font-family: var(--serif); font-weight: 500; font-size: 0.9375rem; }
.buy-row .hint { font-size: 0.8125rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.buy-row .hint::after { content: "\2192"; color: var(--ink); transition: transform 180ms ease-out; }
.buy-row:hover .hint::after { transform: translateX(4px); }
.buy-row:hover .action { text-decoration: underline; text-underline-offset: 4px; }

.product .details { font-size: 0.8125rem; color: var(--ink-faint); margin-top: 8px; }

/* Room sets */
.rooms { background: var(--stone); padding: clamp(56px, 7vw, 96px) 0; }

.rooms-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.rooms-intro h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.15; max-width: 28ch; }

.rooms-intro ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; max-width: 640px; }
.rooms-intro li { border-top: 1px solid var(--rule); padding: 10px 0; font-size: 0.875rem; }

.room-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.room { display: flex; flex-direction: column; background: var(--cream); border-radius: 4px; overflow: hidden; }

.room-visual { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.room-visual[data-tone="coffee"] { background: linear-gradient(160deg, #e9dfcc, #d6c6a8); }
.room-visual[data-tone="textiles"] { background: linear-gradient(160deg, #eee2d7, #dbc5b3); }
.room-visual[data-tone="kitchen"] { background: linear-gradient(160deg, #e6e8dc, #cfd5c0); }
.room-visual[data-tone="dark"] { background: var(--pine); }

.room-visual .stack { display: flex; align-items: flex-end; gap: 12px; width: 70%; }
.room-visual .stack svg { flex: 1; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.room-visual .stack svg:first-child { flex: 1.5; }
.room-visual .badge { position: absolute; top: 14px; left: 14px; z-index: 1; }

.room-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease-out; }
.room:hover .room-visual img { transform: scale(1.03); }
.room-visual { overflow: hidden; }

.room-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room-body h3 { font-size: 1.625rem; line-height: 1.1; }
.room-body > p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.45; }

.room-items { list-style: none; margin: 4px 0 0; padding: 0; }
.room-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.875rem;
}
.room-items li > span { display: inline-flex; align-items: center; gap: 8px; }
.room-items li > span::before { content: ""; flex: none; width: 7px; height: 7px; border: 1px solid var(--ink); border-radius: 50%; }
.room-items .qty { color: var(--ink-faint); }
.room-items a { flex: none; white-space: nowrap; }

.room-buy { margin-top: auto; padding-top: 8px; display: grid; gap: 8px; }
.room-buy .btn { width: 100%; }
.room-buy small { color: var(--ink-faint); font-size: 0.8125rem; line-height: 1.4; }

/* Categories (pine) */
.pine { background: var(--pine); color: var(--on-pine); border-radius: var(--radius); margin: clamp(56px, 7vw, 96px) var(--gutter) 0; padding: clamp(48px, 6vw, 80px) 0; }

.pine-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.pine-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; max-width: 18ch; }
.pine-head p { margin: 0; max-width: 40ch; color: var(--on-pine-soft); }

.cat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.cat-card {
  background: var(--pine-card);
  border-radius: 14px;
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  transition: background 200ms ease-out;
}

.cat-card:hover { background: #395645; }
.cat-card h3 { font-size: 1.375rem; }
.cat-card svg { width: 44%; margin: 8px 0; fill: none; stroke: var(--on-pine); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform 260ms ease-out; }
.cat-card:hover svg { transform: translateY(-4px); }
.cat-card .count { font-size: 0.8125rem; color: var(--on-pine-soft); }

/* How it works */
.how { padding: clamp(64px, 8vw, 112px) 0; }
.how .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.how h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.1; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { border-top: 1px solid var(--rule); padding-top: 14px; }
.step h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.step p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.45; }

/* Footer */
.site-footer { background: var(--pine); color: var(--on-pine-soft); padding: clamp(48px, 6vw, 72px) 0 28px; font-size: 0.875rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 48px; }
.footer-top .big { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 9vw, 8rem); letter-spacing: -0.045em; line-height: 0.9; color: var(--on-pine); }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; font-family: var(--serif); font-weight: 500; font-size: 1rem; }
.site-footer a { color: var(--on-pine); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.disclosure { border-top: 1px solid var(--pine-line); padding-top: 20px; font-size: 0.8125rem; color: #a7b5a7; }
.disclosure p { margin: 0 0 6px; }

/* Policy page */
.policy { padding: clamp(56px, 8vw, 104px) 0 32px; }
.policy .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.policy h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; }
.policy .updated { color: var(--ink-faint); margin: 12px 0 0; font-size: 0.875rem; }
.policy article { max-width: 64ch; }
.policy article > p:first-child { margin-top: 0; }
.policy h2 { font-size: 1.5rem; margin: 40px 0 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.policy p, .policy li { color: var(--ink-soft); line-height: 1.6; }
.policy li { margin-bottom: 8px; }
.policy strong { color: var(--ink); font-weight: 500; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room-cards { grid-template-columns: 1fr; }
  .room { flex-direction: row; }
  .room-visual { aspect-ratio: auto; width: 40%; min-height: 280px; }
  .room-body { flex: 1; }
  .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel.dark { min-height: 380px; }
  .hero-panel.scene { min-height: 380px; }
  .statement, .rooms-intro, .how .wrap, .policy .wrap { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 10px; }
  .product .desc { display: none; }
  .meta { flex-direction: column; gap: 4px; }
  .meta span:last-child { text-align: left; }
  .room { flex-direction: column; }
  .room-visual { width: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr; }
  .rooms-intro ul { grid-template-columns: 1fr; }
  .topbar .msg { display: none; }
  .product-art .tags span + span { display: none; }
}

@media (max-width: 420px) {
  .header-end { gap: 16px; }
  .buy-row .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
