/* ---- Studio Andar — tokens ----
   color: paper #F5F3EF, ink #111111, oxblood #6E1F2A, stone #C9C2B4
   type: Bodoni Moda (high-contrast editorial serif) + Archivo (grotesk body/labels)
---------------------------------------- */

:root {
  --paper: #f5f3ef;
  --ink: #111111;
  --oxblood: #6e1f2a;
  --stone: #c9c2b4;
  --font-display: "Bodoni Moda", serif;
  --font-body: "Archivo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 0.3em;
}

/* header */
.site-header {
  border-bottom: 1px solid var(--stone);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 20;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
}
nav a {
  text-decoration: none;
  color: var(--ink);
  margin-left: 32px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
}
nav a:hover { border-color: var(--oxblood); }

/* hero */
.hero { padding: 70px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: 40px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--oxblood);
  margin: 0 0 20px;
  font-weight: 600;
  font-family: var(--font-body);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 36px;
}
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 14px 30px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--oxblood); }
.hero-image img { width: 100%; height: 560px; object-fit: cover; }

/* lookbook — editorial mosaic: photography alternated with product notes */
.lookbook { padding: 110px 0; }
.lb-head { margin-bottom: 48px; }
.lookbook h2 { font-size: 2rem; margin-bottom: 8px; }
.lb-head .section-note { margin: 0; }

.lb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px 260px;
  grid-template-areas:
    "a a b c"
    "a a d e"
    "f f g h";
  gap: 20px;
}
.lb-a { grid-area: a; }
.lb-b { grid-area: b; }
.lb-c { grid-area: c; }
.lb-d { grid-area: d; }
.lb-e { grid-area: e; }
.lb-f { grid-area: f; }
.lb-g { grid-area: g; }
.lb-h { grid-area: h; }

.lb-tile { margin: 0; position: relative; }

/* photo tiles */
.lb-photo {
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}
.lb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.lb-photo:hover img { transform: scale(1.06); }
.lb-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(17,17,17,0.75), rgba(17,17,17,0));
  color: var(--paper);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lb-photo:hover figcaption { opacity: 1; transform: translateY(0); }
.lb-photo figcaption span {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 2px;
}

/* note tiles — product cards standing in for photography */
.lb-note {
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
  transition: transform 0.3s ease;
}
.lb-note:hover { transform: translateY(-4px); }
.lb-note-oxblood { background: var(--oxblood); }
.lb-note-ink { background: var(--ink); }
.lb-note-stone { background: var(--stone); color: var(--ink); }
.lb-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  opacity: 0.7;
}
.lb-note h3 { font-size: 1.15rem; margin: 10px 0 4px; }
.lb-note p { margin: 0; font-size: 0.82rem; opacity: 0.85; }
.lb-price {
  align-self: flex-start;
  margin-top: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
}

.lb-foot {
  margin: 48px 0 0;
  font-size: 1.05rem;
  color: #2a2622;
  max-width: 60ch;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(90vw, 720px); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figcaption {
  color: var(--stone);
  text-align: center;
  margin-top: 16px;
  font-style: italic;
  font-family: var(--font-display);
}
.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* guia de tallas — signature: sizing ruler */
.guia { padding: 100px 0; background: var(--ink); color: var(--paper); }
.guia h2 { font-size: 1.9rem; }
.section-note { color: var(--stone); margin: 0 0 44px; }
.ruler { border-top: 1px solid #3a3733; }
.ruler-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 0;
  border-bottom: 1px solid #3a3733;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.ruler-row span:first-child { color: var(--oxblood); font-weight: 600; }
.ruler-head {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--stone);
  border-bottom: 1px solid #55524c;
}
.ruler-row:hover:not(.ruler-head) { background: rgba(245,243,239,0.05); }
.ruler-row.ruler-activa { background: rgba(110,31,42,0.25); }
.ruler-row.ruler-activa span:first-child { color: var(--paper); }

/* tienda */
.tienda { padding: 90px 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.info-grid h3 { font-size: 1.05rem; font-style: italic; color: var(--oxblood); }
.info-grid p { margin: 0; color: #4a4640; }

/* footer */
.site-footer {
  border-top: 1px solid var(--stone);
  padding: 28px 0;
  font-size: 0.82rem;
  text-align: center;
  color: #7a766e;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image img { height: 340px; }
  .lb-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 320px repeat(2, 220px) 260px 220px;
    grid-template-areas:
      "a a"
      "b c"
      "d e"
      "f f"
      "g h";
  }
  .ruler-row { grid-template-columns: repeat(4, 1fr); font-size: 0.85rem; }
  .info-grid { grid-template-columns: 1fr; gap: 26px; }
  nav a { margin-left: 16px; font-size: 0.74rem; }
}
