@font-face {
  font-family: "barlow condensed";
  src: url("assets/fonts/barlow-condensed.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: golos;
  src: url("assets/fonts/golos-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: golos;
  src: url("assets/fonts/golos-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --ground: #171411;
  --panel: #211c18;
  --panel-raised: #2b2420;
  --line: #463b34;
  --cream: #f0e5d2;
  --muted: #bcafa1;
  --rose: #e1b19e;
  --leaf: #cbd0b8;
  --gutter: clamp(1.1rem, 4.75vw, 4.5rem);
  font-family: golos, "segoe ui", sans-serif;
  color: var(--cream);
  background: var(--ground);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; isolation: isolate; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
[hidden] { display: none !important; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(100% - 2 * var(--gutter), 89rem); margin-inline: auto; }
#collection, #lookbook { scroll-margin-top: 1.5rem; }

.sakura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sakura-petal {
  position: absolute;
  left: var(--petal-left);
  top: 0;
  width: var(--petal-size);
  aspect-ratio: .83;
  opacity: 0;
  animation: sakura-fall var(--petal-time) var(--petal-delay) linear infinite;
}
.sakura-petal::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #efc4b8, #cc9097 68%, #ae747d);
  clip-path: polygon(50% 13%, 67% 2%, 79% 6%, 94% 24%, 99% 45%, 88% 65%, 68% 87%, 45% 100%, 24% 86%, 8% 68%, 2% 48%, 9% 26%, 21% 9%, 34% 5%);
  animation: sakura-turn var(--petal-turn) var(--petal-delay) ease-in-out infinite alternate;
}
@keyframes sakura-fall {
  0% { transform: translate3d(0, -1.5rem, 0); opacity: 0; }
  13% { opacity: var(--petal-opacity); }
  35% { transform: translate3d(calc(var(--petal-drift) * .35 + 1.1rem), 35vh, 0); }
  70% { transform: translate3d(calc(var(--petal-drift) * .7 - .8rem), 70vh, 0); }
  88% { opacity: var(--petal-opacity); }
  100% { transform: translate3d(var(--petal-drift), calc(100vh + 1.5rem), 0); opacity: 0; }
}
@keyframes sakura-turn {
  from { transform: rotate(-35deg) rotateY(16deg); }
  to { transform: rotate(100deg) rotateY(67deg); }
}

.site-header {
  min-height: 5rem;
  display: flex;
  align-items: center;
}

.brand { display: inline-flex; gap: .56rem; align-items: center; width: fit-content; }
.brand svg { width: 2.16rem; height: 1.85rem; color: #e3c8b1; }
.brand span { font-size: 1.65rem; font-weight: 600; letter-spacing: -.1em; line-height: 1; }
.site-header .brand span { letter-spacing: -.045em; }
.footer-top { font-size: .92rem; color: var(--muted); transition: color .2s; }
.footer-top:hover { color: var(--cream); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(32rem, 41vw, 40rem);
  overflow: hidden;
  border: 1px solid #514138;
  border-radius: .5rem;
  background: #2a211b;
}

.hero-art, .hero-art img { position: absolute; inset: 0; height: 100%; width: 100%; }
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: center 49%; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #19130ee8 0%, #1b140f85 34%, #1b140f15 56%, transparent 76%),
    linear-gradient(0deg, #15110d70, transparent 36%);
}

.hero-copy { padding: 3rem 0 3rem clamp(2.25rem, 6.55vw, 6.75rem); }
.hero h1 {
  margin: 0;
  font: 800 clamp(6.25rem, 11.5vw, 12.2rem)/.74 "barlow condensed", "arial narrow", "impact", sans-serif;
  letter-spacing: -.034em;
}
.hero h1 em { color: #edc1ad; font-style: normal; }

.leaf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.65rem;
  padding: .35rem .8rem;
  color: var(--leaf);
  border: 1px solid #5d624e;
  border-radius: .3rem;
  background: #2d3128;
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.leaf-button svg { flex: none; height: 1.25rem; width: 1.25rem; }
.leaf-button:hover { background: #3b4735; border-color: #a1a98e; }

.collection { padding-top: clamp(3rem, 5vw, 4.75rem); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.65rem); font-weight: 500; line-height: 1; letter-spacing: -.065em; }
.model-count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.tabs { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.tab {
  flex: 0 0 auto;
  min-height: 2.65rem;
  padding: .5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: #211b17;
  color: #dacaba;
  font-size: .875rem;
  transition: color .2s, border-color .2s, background-color .2s;
}
.tab:hover { border-color: #967f6f; }
.tab[aria-selected="true"] { background: #e3c6b3; color: #28201b; border-color: #e3c6b3; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 1.65vw, 1.55rem); }
.product-grid[data-switching] { animation: tab-in .3s ease both; }
@keyframes tab-in { from { opacity: .35; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
.noscript { color: var(--muted); }

.product-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--panel);
  border: 1px solid #4a3c32;
  border-radius: .48rem;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .22s ease-out, border-color .2s, box-shadow .2s;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at var(--spot-x, 50%) var(--spot-y, 50%), #fff2d118, transparent 52%);
  transition: opacity .24s;
}
.product-card[data-reflect] { z-index: 1; border-color: #967b65; box-shadow: 0 .65rem 1.9rem #0c090750; }
.product-card[data-reflect]::after { opacity: 1; }

.card-media { position: relative; }
.picture-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #302720;
  text-align: start;
}
.picture-button:focus-visible { outline-offset: -4px; }
.product-picture {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: #302720;
  container-type: size;
}
.picture-button .product-picture { aspect-ratio: 1.12; }
.picture-plane {
  position: absolute;
  width: max(100cqw, calc(100cqh * var(--photo-ratio)));
  aspect-ratio: var(--photo-ratio);
  left: 50%;
  top: 50%;
  translate: -50% -50%;
}
.product-picture img { width: 100%; height: 100%; object-fit: cover; }
.product-picture[data-tall]:not([data-detail])::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#21180e9e, #251a10c9), var(--back-art) center / cover;
  filter: blur(25px);
  scale: 1.16;
}
.picture-button .product-picture[data-tall]:not([data-detail]) .picture-plane {
  width: 65cqw;
  mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.product-colors, .product-stamp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.product-picture[data-loading] canvas { visibility: hidden; }
.card-views {
  position: absolute;
  z-index: 1;
  right: .6rem;
  bottom: .55rem;
  display: flex;
  align-items: center;
  border: 1px solid #cec2b040;
  border-radius: 2rem;
  padding: .14rem .25rem;
  background: #201914e8;
}
.view-dot { display: grid; place-items: center; height: 1.65rem; width: 1.65rem; padding: 0; border: 0; border-radius: 50%; background: none; }
.view-dot::after { content: ""; height: .38rem; width: .38rem; border-radius: 50%; border: 1px solid #e8d2be; transition: background-color .2s, scale .2s; }
.view-dot:hover::after { scale: 1.4; }
.view-dot[aria-pressed="true"]::after { background: #f2d6bd; scale: 1.2; }

.card-content { padding: clamp(.8rem, 1.6vw, 1.35rem); }
.product-type { color: var(--muted); margin: 0; font-size: .875rem; }
.card-content h3 { margin: .32rem 0 .85rem; font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.card-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .45rem; }
.swatches { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.swatch {
  position: relative;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
}
.swatch::before { content: ""; position: absolute; inset: .2rem; border-radius: 50%; border: 1px solid #e3d1bd55; background: var(--swatch); }
.swatch:hover { border-color: #a69b87; }
.swatch[aria-pressed="true"] { border-color: #edc5a8; }
.swatch:disabled { cursor: default; opacity: .52; }

.lookbook { margin-top: clamp(3.5rem, 7.5vw, 7.5rem); }
.lookbook .section-heading { align-items: center; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.lookbook-motion {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--rose);
  transition: background-color .2s, border-color .2s;
}
.lookbook-motion:hover { background: var(--panel-raised); border-color: #9a806d; }
.lookbook-motion svg { width: 1.2rem; height: 1.2rem; }
.lookbook-window {
  --lookbook-gap: clamp(.55rem, 1.35vw, 1.25rem);
  overflow: auto hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  container-type: inline-size;
  scroll-behavior: auto;
}
.lookbook-window::-webkit-scrollbar { display: none; }
.lookbook-track, .lookbook-reel { display: flex; inline-size: max-content; gap: var(--lookbook-gap); }
.lookbook-reel { flex: none; padding: 0; margin: 0; list-style: none; }
.lookbook-reel li { flex: none; width: clamp(13rem, 29.5cqw, 24rem); }
.lookbook-reel img {
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid #574438;
  border-radius: .43rem;
  background: var(--panel);
}
.site-footer { min-height: 6rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--line); }
.site-footer > span { color: var(--muted); font-size: .875rem; }

.product-dialog {
  width: min(64rem, calc(100% - 3rem));
  max-width: none;
  max-height: calc(100dvh - 2.5rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #77604e;
  border-radius: .65rem;
  color: var(--cream);
  background: var(--panel);
  box-shadow: 0 1.25rem 7rem #0b0807d9;
}
.product-dialog[open] { animation: dialog-in .22s ease-out; }
@keyframes dialog-in { from { opacity: 0; scale: .985; } to { opacity: 1; scale: 1; } }
.product-dialog::backdrop { background: #0c0907d9; backdrop-filter: blur(4px); }
.dialog-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); }
.dialog-close {
  position: absolute;
  top: .82rem;
  right: .82rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  background: #211a16eb;
  border: 1px solid #796758;
  border-radius: 50%;
}
.dialog-close:hover { background: #47342a; }
.dialog-close svg { width: 1.35rem; height: 1.35rem; }
.dialog-gallery { padding: .9rem; background: var(--ground); }
.dialog-gallery > .product-picture { aspect-ratio: 1; border-radius: .35rem; }
.detail-choice {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: .55rem 0;
}
.detail-choice button {
  min-height: 2.35rem;
  padding: .3rem .72rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
  color: var(--muted);
  font-size: .84rem;
}
.detail-choice button:hover, .detail-choice button[aria-pressed="true"] {
  border-color: #a48775;
  color: var(--cream);
}
.dialog-gallery > .product-picture:not([data-detail]) .picture-plane {
  width: min(100cqw, calc(100cqh * var(--photo-ratio)));
}
.dialog-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .6rem; }
.thumb {
  min-width: 0;
  padding: .22rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .28rem;
  background: var(--panel);
  font-size: .8rem;
}
.thumb[aria-pressed="true"] { border-color: var(--rose); color: #fff2d9; }
.thumb .product-picture { aspect-ratio: 1.9; border-radius: .14rem; }
.thumb > span:last-child { display: block; padding: .32rem .15rem .21rem; }
.dialog-settings { padding: clamp(1.35rem, 3.2vw, 2.55rem); }
.dialog-settings > .product-type { padding-right: 2rem; }
.dialog-settings h2 { margin: .37rem 0 .5rem; font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -.065em; line-height: .98; }
.product-description { color: #d5c5b6; line-height: 1.55; margin: 0 0 1.25rem; }
.option-group { margin: 0 0 .95rem; border: 0; padding: 0; min-inline-size: 0; }
.option-group legend { margin: 0 0 .42rem; padding: 0; font-size: .9rem; }
.option-group legend span { color: var(--muted); margin-inline-start: .3rem; }
.option-group .swatch { width: 2.35rem; height: 2.35rem; }
.motifs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.motif {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .32rem;
  min-height: 4.2rem;
  padding: .36rem .12rem;
  border: 1px solid var(--line);
  border-radius: .32rem;
  background: var(--ground);
  font-size: .8rem;
}
.motif:hover, .thumb:hover { border-color: #9a806d; }
.motif[aria-pressed="true"] { color: #fae8d3; background: #3b2f28; border-color: #caa48d; }
.motif-sample { display: block; width: min(100% - .3rem, 4rem); height: 2.2rem; border-radius: .15rem; object-fit: cover; }
.motif-sample-empty { width: 1.35rem; height: 1.35rem; margin: .15rem; border: 1px solid #e8c5aa; border-radius: 50%; }
.motif-sample-empty::after { display: block; width: 100%; height: 1px; background: #e8c5aa; translate: 0 .62rem; rotate: -45deg; content: ""; }
.maker-note { display: flex; align-items: center; gap: .65rem; border-top: 1px solid var(--line); margin: 1.1rem 0 0; padding-top: .85rem; color: var(--muted); font-size: .84rem; }
.maker-note svg { flex: none; width: 1.75rem; height: 1.5rem; color: #d7d2c7; }

@media (max-width: 900px) {
  .hero { min-height: 32rem; }
  .hero h1 { font-size: clamp(6rem, 13vw, 8.7rem); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .product-dialog { width: calc(100% - 1.25rem); max-height: calc(100dvh - 1.25rem); }
  .dialog-shell { grid-template-columns: minmax(0, 1fr); }
  .dialog-gallery > .product-picture { aspect-ratio: 1.25; }
  .dialog-gallery { padding: .55rem; }
  .dialog-settings { padding: 1.15rem .95rem 1.45rem; }
}

@media (max-width: 580px) {
  .site-header { min-height: 4rem; }
  .hero { min-height: 32rem; align-items: end; }
  .hero-copy { padding: 1.65rem 1.2rem 4rem; }
  .hero h1 { font-size: clamp(4.25rem, 18vw, 6.5rem); }
  .hero-art img { object-position: center 37%; }
  .hero::after { background: linear-gradient(0deg, #15100ef5 0%, #1b140fcc 20%, #1b140f4d 53%, transparent 76%); }
  .tab { padding-inline: .58rem; min-height: 2.5rem; font-size: .84rem; }
  .tabs { gap: .35rem; }
  .card-content { padding: .75rem; }
  .card-actions { gap: .4rem; }
  .card-actions .leaf-button { min-height: 2.35rem; padding-inline: .55rem; }
  .lookbook-reel li { width: min(76cqw, 19rem); }
  .sakura-petal { width: calc(var(--petal-size) * .8); }
}

@media (max-width: 385px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero { min-height: 28rem; }
  .section-heading h2 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .product-card { transform: none; }
  .sakura { display: none; }
}
