:root {
  color-scheme: dark;
  --ink: #0b0b0b;
  --paper: #f4f2ee;
  --line: #343434;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--ink);
  color: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .3em; }
a:hover { color: #d3d0ca; }
a:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 1rem var(--gutter);
}
.wordmark {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: .13em;
  text-decoration: none;
}
nav { display: flex; gap: clamp(1rem, 4vw, 3rem); }
nav a, footer a:not(.wordmark), .label, .action {
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero {
  display: flex;
  align-items: end;
  min-height: clamp(32rem, 70svh, 54rem);
  border-block: 1px solid var(--line);
  background: var(--ink);
}
.hero-copy { padding: clamp(2rem, 8vh, 6rem) var(--gutter); }
.label { margin: 0 0 1rem; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.7rem, 10vw, 10rem);
  font-weight: 900;
  line-height: .83;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.tagline { margin-bottom: 1.7rem; }
.action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid currentColor;
  text-decoration: none;
}
.action:hover { background: var(--paper); color: var(--ink); }
.shop { padding: clamp(2.25rem, 7vw, 6rem) var(--gutter); }
h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.empty {
  padding: 2rem 0;
  border-block: 1px solid var(--line);
  color: #c7c5c1;
  line-height: 1.65;
}
.status { margin-bottom: .35rem; font-size: 1.25rem; color: var(--paper); }
.empty p[lang] { margin-bottom: .7rem; }
.products:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 17rem));
  gap: 2rem 1.25rem;
}
.product img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #181818; }
.product h3 { margin: .8rem 0 .35rem; font-size: 1.125rem; }
.product p { line-height: 1.5; white-space: pre-line; }
footer { border-top: 1px solid var(--line); }
@media (max-width: 30rem) {
  .hero { min-height: 32rem; }
  .bar { min-height: 4rem; }
  nav a, footer a:not(.wordmark) { letter-spacing: .04em; }
}

.product > a { display: block; text-decoration: none; }
.product > a:hover h3 { text-decoration: underline; }
.product p { margin-bottom: .35rem; }
#item-detail {
  width: min(calc(100% - 2rem), 65rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}
#item-detail::backdrop { background: #000b; }
.detail-bar {
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  padding: .75rem 1rem;
}
.detail-bar button { background: transparent; color: inherit; cursor: pointer; }
.detail-bar button:hover { background: var(--paper); color: var(--ink); }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1rem, 4vw, 3rem);
}
.gallery:not([hidden]) { display: grid; gap: .75rem; }
.gallery[hidden] + .detail-copy { grid-column: 1 / -1; }
.gallery img { display: block; width: 100%; height: auto; }
.detail-copy h2 { font-size: clamp(1.75rem, 4vw, 3rem); overflow-wrap: anywhere; }
.detail-copy p { line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.detail-copy p:empty, .detail-copy [hidden] { display: none; }
@media (max-width: 44rem) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-copy { grid-row: 1; }
}
