:root {
  --bg: #0e0e0c;
  --surface: #151411;
  --surface-alt: #1b1915;
  --text: #f2ede3;
  --muted: #aaa397;
  --accent: #9b7452;
  --line: #40382f;
  --line-soft: rgba(242, 237, 227, .12);
  --shadow: rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: clip;
}
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(circle at 85% 8%, rgba(155,116,82,.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(155, 116, 82, .22);
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  transform: translateY(-150%);
  z-index: 20;
  background: var(--text);
  color: var(--bg);
  padding: .7rem 1rem;
}
.skip-link:focus { transform: translateY(0); }

.cover {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.3rem, env(safe-area-inset-bottom));
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.cover::before {
  content: "BLACK WOOD";
  position: absolute;
  inset: auto 0 1.2rem;
  color: rgba(242,237,227,.035);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 17vw, 12rem);
  letter-spacing: 0;
  line-height: .8;
  text-align: center;
  pointer-events: none;
}
.cover-inner {
  width: min(100%, 520px);
  position: relative;
  z-index: 1;
}
.brand-lockup {
  text-align: center;
  margin-bottom: clamp(2.2rem, 8vh, 4rem);
}
.cover-logo {
  width: clamp(96px, 28vw, 160px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}
.text-logo {
  margin: 0 0 .55rem;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 12vw, 5rem);
  line-height: .9;
}
.descriptor {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  letter-spacing: .18em;
}
.brand-lockup h1 {
  margin: .7rem 0 0;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .26em;
}
.cover-choices {
  display: grid;
  gap: .9rem;
  min-width: 0;
}
.cover-choice {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(1.4rem, 10vw, 2.4rem);
  align-items: center;
  gap: clamp(.7rem, 3vw, 1.2rem);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(21,20,17,.86);
  padding-block: clamp(.88rem, 3vw, 1rem);
  padding-inline: clamp(.82rem, 4vw, 1.15rem);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 6.15vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}
.cover-choice::after {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--accent);
  opacity: .8;
  align-self: center;
}
.cover-choice:focus-visible,
.section-nav a:focus-visible,
.search-toggle:focus-visible,
.product-open:focus-visible,
.sheet-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.cover-line {
  width: 1px;
  height: 46px;
  margin: clamp(1.4rem, 5vh, 2.5rem) auto 0;
  background: linear-gradient(var(--accent), transparent);
}

.sticky-menu {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .45rem max(.9rem, env(safe-area-inset-right)) .45rem max(.9rem, env(safe-area-inset-left));
  background: rgba(14, 14, 12, .94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  overflow: clip;
}
.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .12em;
  white-space: nowrap;
}
.mini-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.section-nav {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: .5rem .1rem;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-inline: contain;
  contain: layout paint;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--muted);
  font-size: .82rem;
  border-bottom: 1px solid transparent;
  padding-bottom: .18rem;
}
.section-nav a.is-active {
  color: var(--text);
  border-color: var(--accent);
}
.search-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.search-toggle span,
.search-toggle span::after {
  position: absolute;
  display: block;
  content: "";
}
.search-toggle span {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  top: 12px;
  left: 10px;
}
.search-toggle span::after {
  width: 10px;
  height: 1.5px;
  background: var(--text);
  transform: rotate(45deg);
  top: 15px;
  left: 13px;
}

.search-panel {
  position: sticky;
  top: 58px;
  z-index: 9;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .7rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  max-width: 100%;
}
.search-panel[hidden] { display: none; }
.search-panel label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.search-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #0f0f0d;
  color: var(--text);
  padding: .75rem .9rem;
  font: inherit;
}
.search-panel button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0 .85rem;
}

.menu-shell {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0 1rem 3rem;
  overflow: clip;
}
.section-block {
  scroll-margin-top: 74px;
  padding: clamp(3.5rem, 14vw, 7rem) 0 0;
}
.section-intro {
  margin-bottom: clamp(2rem, 8vw, 4rem);
  overflow: clip;
}
.section-intro p {
  margin: 0 0 .6rem;
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .18em;
}
.section-intro h2 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 15vw, 6rem);
  line-height: .88;
  font-weight: 500;
  text-wrap: balance;
}
.section-intro nav {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 1.4rem;
  padding-bottom: .5rem;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  contain: layout paint;
}
.section-intro nav::-webkit-scrollbar { display: none; }
.section-intro nav a {
  flex: 0 0 auto;
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
}

.category-block {
  position: relative;
  padding: clamp(1.4rem, 5vw, 2.2rem) 0 clamp(2.3rem, 9vw, 4rem);
  scroll-margin-top: 92px;
  overflow: clip;
  content-visibility: auto;
  contain-intrinsic-size: 620px;
}
.category-block::before {
  content: "";
  display: block;
  border-top: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.category-head {
  width: min(100%, 710px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
  padding-right: clamp(4.2rem, 20vw, 12rem);
}
.category-head h3 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 9vw, 4rem);
  line-height: .96;
  font-weight: 600;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.category-head h3::before {
  content: "";
  display: inline-block;
  width: .8em;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: .25em;
}
.category-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .78rem;
}
.product-list {
  position: relative;
  z-index: 1;
  width: min(100%, 710px);
  padding-right: clamp(4.2rem, 20vw, 12rem);
}
.product-row {
  border-bottom: 1px solid var(--line-soft);
}
.product-open {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.product-row:not(.has-detail) {
  padding: .8rem 0;
}
.product-open {
  padding: .8rem 0;
}
.product-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: clamp(.55rem, 2.5vw, .8rem);
  align-items: start;
}
.product-main strong {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  font-size: .98rem;
  font-weight: 650;
}
.product-main span {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.product-meta {
  display: block;
  margin-top: .22rem;
  color: var(--muted);
  font-size: .78rem;
}
.product-meta em {
  font-style: normal;
}
.product-meta small {
  display: block;
  margin-top: .12rem;
  font-size: inherit;
}
.decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: .82;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.3));
}
.decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.decor-a {
  width: clamp(72px, 22vw, 150px);
  right: 0;
  top: 3.1rem;
}
.decor-b {
  width: clamp(48px, 15vw, 92px);
  right: 2.1rem;
  top: 11.5rem;
  opacity: .68;
}
.decor-c {
  width: clamp(44px, 13vw, 86px);
  right: 0;
  bottom: 2.1rem;
  opacity: .55;
}

.empty-state {
  padding: 4rem 0;
  text-align: center;
  color: var(--muted);
}
.menu-footer {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.menu-footer p {
  margin: 0 0 .4rem;
  color: var(--text);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.sheet[hidden] { display: none; }
.sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
}
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(82dvh, 720px);
  overflow: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1rem 1rem calc(1.4rem + env(safe-area-inset-bottom));
}
.sheet-open { overflow: hidden; }
.sheet-close {
  width: 44px;
  height: 44px;
  float: right;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
}
.sheet-content img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.sheet-content h2 {
  clear: both;
  margin: .5rem 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 2rem;
}
.sheet-price {
  color: var(--accent);
  font-weight: 700;
}

.menu-error {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

@media (min-width: 768px) {
  .menu-shell, .menu-footer { width: min(100%, 1040px); }
  .cover-inner { width: min(100%, 580px); }
  .product-list,
  .category-head { padding-right: clamp(9rem, 20vw, 15rem); }
  .decor-a { right: 2rem; }
  .decor-b { right: 5.5rem; }
  .decor-c { right: 2.8rem; }
  .sheet-panel {
    left: 50%;
    right: auto;
    width: min(520px, calc(100% - 2rem));
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  .category-head,
  .product-list {
    padding-right: clamp(2.75rem, 13vw, 4.2rem);
  }
  .decor-a {
    width: clamp(46px, 14vw, 66px);
    right: 0;
    opacity: .52;
  }
  .decor-b,
  .decor-c {
    display: none;
  }
  .product-main { gap: .55rem; }
}

@media (max-width: 360px) {
  .cover {
    padding-inline: .8rem;
  }
  .cover-choice {
    min-height: 56px;
    font-size: clamp(1.05rem, 5.8vw, 1.3rem);
    padding-inline: .78rem;
    grid-template-columns: minmax(0, 1fr) 1.45rem;
  }
  .sticky-menu {
    gap: .45rem;
  }
  .mini-brand span {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .section-intro h2 {
    font-size: clamp(2.15rem, 14vw, 2.7rem);
  }
  .category-head h3 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
