:root {
  --cream: #f6f1ea;
  --ink: #6d534c;
  --ink-deep: #4a3732;
  --rose: #c9a399;
  --pink: #f3c9cf;
  --sand: #d8c4b4;
  --line: rgba(109, 83, 76, 0.18);
  --card: #fffdfb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; touch-action: manipulation; }
body {
  margin: 0;
  font-family: Outfit, sans-serif;
  color: var(--ink-deep);
  background: var(--cream);
  font-weight: 400;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6vw;
  background: rgba(246, 241, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
nav { display: flex; gap: 1.25rem; }
nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }

body.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.home main { flex: 1; display: flex; }
body.home .hero { flex: 1; }
.hero {
  position: relative;
  min-height: 70vh;
  padding: 10vh 8vw 6vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.eyebrow {
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  color: var(--rose);
  margin: 0 0 0.5rem;
}
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--rose);
}
.hero h1 span { display: block; font-style: italic; }
.home-brand { font-style: normal; font-weight: 700; letter-spacing: 0.04em; font-size: 1.15em; }
.hero h1 span:last-child { font-weight: 500; font-size: 0.82em; }
.lede { max-width: 34rem; font-weight: 300; line-height: 1.6; margin: 1.5rem auto 2rem; }
.lede-break { display: none; }
.lede-sizes { white-space: nowrap; }
[hidden] { display: none !important; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b98980;
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}
.btn-ghost { background: transparent; color: var(--ink-deep); border-color: var(--rose); }
.blob {
  position: absolute;
  border-radius: 50% 50% 40% 60%;
  z-index: -1;
}
.blob-pink { width: 280px; height: 220px; background: var(--pink); right: -40px; top: 18%; }
.blob-sand { width: 240px; height: 320px; background: var(--sand); left: -60px; bottom: -40px; border-radius: 140px 140px 0 0; }

.catalog, .order { padding: 3rem 6vw 4rem; }
.catalog h2 { margin-bottom: 1rem; }
@media (min-width: 721px) {
  .catalog {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 1.5rem;
  }
  .catalog h2 { margin-bottom: 0; }
  .filters { justify-content: flex-end; }
  .grid { grid-column: 1 / -1; }
}
h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 3rem;
  margin: 0;
  color: var(--rose);
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button {
  font: inherit;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #efe6de;
  cursor: zoom-in;
}
.card-body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.model { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); margin: 0; }
.card h3 { margin: 0; font-weight: 500; font-size: 1.15rem; line-height: 1.25; min-height: 2.5em; }
.meta { margin: 0; color: var(--ink); font-weight: 300; line-height: 1.3; min-height: 2.6em; }
.price { font-weight: 600; margin: 0; }
.sizes {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
}
.sizes button {
  font: inherit;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}
.sizes button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-hint { margin: 0; font-size: 0.85rem; color: #9a4d45; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.swatches button {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  padding: 0;
}
.swatches button.active { box-shadow: 0 0 0 2px var(--ink); }
.card .btn { margin-top: 0.4rem; }

.order { text-align: center; background: #b98980; color: #fff; }
.order h2, .order p { color: #fff; }
.phones { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.order .btn { background: #fff; color: var(--ink-deep); }
.order .btn-ghost { background: transparent; color: #fff; border-color: #fff; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 6vw 2rem;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ink);
}
footer a {
  color: var(--ink);
  text-decoration: none;
}

#lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: 1rem;
  padding: 0.45rem 0.45rem 0.55rem;
  width: fit-content;
  max-width: min(94vw, 720px);
  max-height: calc(100dvh - 1.25rem);
  overflow: hidden;
  box-sizing: border-box;
  background: var(--cream);
}
#lightbox::backdrop { background: rgba(74, 55, 50, 0.55); }
#lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(90vw, 680px);
  max-height: calc(100dvh - 4.2rem);
  object-fit: contain;
  border-radius: 0.55rem;
  touch-action: pinch-zoom;
}
.close {
  position: absolute;
  right: 0.7rem;
  top: 0.55rem;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 720px) {
  body.home {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }
  body.home .site-header { position: static; }
  body.home .hero {
    min-height: 0;
    padding: 0 5vw;
  }
  body.home .hero h1 { font-size: 1rem; letter-spacing: 0; width: 100%; }
  body.home .home-brand {
    font-size: 9.4vw;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
  }
  body.home .hero h1 span:last-child { font-size: 8.2vw; font-weight: 500; margin-top: 0.35rem; }
  body.home .lede {
    margin: 0.9rem auto 1.15rem;
    font-size: clamp(0.92rem, 2.4vh, 1.05rem);
    max-width: 20rem;
  }
  body.home .blob-pink { width: 48vw; height: 30vw; right: -8vw; }
  body.home .blob-sand { width: 46vw; height: 28vh; left: -10vw; bottom: 0; }
  body.home footer {
    padding: 0.65rem 6vw calc(0.85rem + env(safe-area-inset-bottom));
  }
  .lede-break { display: block; }
  .catalog { padding: 0.85rem 0.75rem 0; }
  footer { padding-top: 0.7rem; }
  .catalog h2 { font-size: 2.2rem; margin-bottom: 0.35rem; }
  .filters {
    position: sticky;
    top: 3.25rem;
    z-index: 4;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    margin: 0 -0.75rem;
    padding: 0.55rem 0.75rem;
    background: rgba(246, 241, 234, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .filters button { flex: 0 0 auto; }
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.85rem;
  }
  .card { border-radius: 0.9rem; }
  .card-body { padding: 0.55rem 0.55rem 0.7rem; gap: 0.28rem; }
  .model { font-size: 0.62rem; letter-spacing: 0.08em; }
  .card h3 { font-size: 0.92rem; }
  .meta, .size-hint { font-size: 0.75rem; }
  .price { font-size: 0.9rem; }
  .sizes button { padding: 0.2rem 0; font-size: 0.78rem; }
  .card .btn { font-size: 0.72rem; padding: 0.5rem 0.4rem; text-align: center; }
}
