@font-face { font-family: 'Pirata One'; src: url('/fonts/PirataOne-v16.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Departure Mono'; src: url('/fonts/DepartureMono-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/InstrumentSerif-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; src: url('/fonts/InstrumentSerif-Italic.woff2') format('woff2'); font-display: swap; }

:root {
  --paper: #f3f3f3;
  --paper-2: #e8e8e8;
  --ink: #1c1c1c;
  --ink-soft: #6a6a6a;
  --heart: #000000;
  --heart-soft: #d4d4d4;
  --mono: 'Departure Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --gothic: 'Pirata One', 'UnifrakturMaguntia', 'Old English Text MT', serif;
  --frame: clamp(20px, 5vw, 75px);
  --text-ui: 0.8125rem;
  --text-body: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--text-ui);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Paper grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 300;
  background: url('/img/grain.png'); opacity: .55; mix-blend-mode: multiply;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--heart-soft); }
:focus-visible { outline: 1.5px dashed var(--heart); outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 400; background: var(--ink); color: var(--paper); padding: 6px 10px; }
.skip:focus { left: 8px; }

/* ---------- Chrome ---------- */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--frame) * .55) var(--frame);
  transition: background .4s ease, padding .4s ease;
}
.chrome.scrolled, .menu-open .chrome { background: rgba(243,243,243,.88); backdrop-filter: blur(8px); padding-block: 16px; }
.brand, .menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
  text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer;
  opacity: 0; transition: opacity .8s ease .3s;
}
.loaded .brand, .loaded .menu-btn { opacity: 1; }
.menu-btn { padding: 8px 0 8px 12px; }
.menu-btn:hover, .brand:hover { color: var(--heart); }

.menu {
  position: fixed; inset: 0; z-index: 150; background: rgba(243,243,243,.97);
  display: grid; place-items: center;
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; text-align: center; }
.menu a {
  font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 6vw, 3.4rem);
  text-decoration: none; line-height: 1.35; display: inline-block; transition: color .2s;
}
.menu a:hover { color: var(--heart); }

/* ---------- Mar estático (WebGL, se pinta una vez) — fondo fijo de toda la web ---------- */
/* position: fixed (no background-attachment) para que funcione también en iOS */
.sky {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; display: block; pointer-events: none;
  /* Fondo de reserva si no hay WebGL: degradado del mar */
  background:
    radial-gradient(28vmax 22vmax at 50% 40%, rgba(206,206,206,.85), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, #e6e6e6 38%, #d2d2d2 56%, #c9c9c9 57%, #e0e0e0 68%, var(--paper) 96%);
}
.sky.ready { animation: fade 1.2s ease both; }
main, .footer { position: relative; z-index: 1; }
.chrome { z-index: 200; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px var(--frame) 90px; text-align: center; isolation: isolate;
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 46%, rgba(255,255,255,.75), transparent 70%),
    linear-gradient(180deg, #e4e4e4 0%, #ececec 35%, var(--paper) 78%);
}
.hero-heart { width: min(240px, 46vw); filter: drop-shadow(0 0 40px rgba(255,255,255,.6)); animation: heart-in 1.6s var(--ease) both; }
.hero-heart img { animation: beat 5.5s ease-in-out 1.6s infinite; transform-origin: 50% 60%; }
.hero-line {
  margin-top: clamp(56px, 11vh, 120px);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 0.95rem + 1.6vw, 2.5rem); line-height: 1.2; letter-spacing: -.005em;
  max-width: 40ch; text-wrap: balance; text-shadow: 0 0 18px rgba(243,243,243,.9), 0 0 2px rgba(243,243,243,.6);
}
.sweep { display: block; animation: sweep 1.4s var(--ease) both; animation-delay: calc(.7s + var(--d) * .35s); }
.scroll-cue { text-shadow: 0 0 10px var(--paper);
  position: absolute; bottom: calc(var(--frame) * .6); left: 50%; translate: -50% 0;
  text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; text-decoration: none; color: var(--ink-soft);
  animation: fade 1s ease 2s both;
}
.scroll-cue:hover { color: var(--heart); }

@keyframes heart-in { from { opacity: 0; transform: scale(.94); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.035); } 16% { transform: scale(1); } 24% { transform: scale(1.02); } 32% { transform: scale(1); } }
@keyframes sweep { from { opacity: 0; filter: blur(8px); transform: translateY(8px); clip-path: inset(0 100% 0 0); } to { opacity: 1; filter: none; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 14vw, 180px) var(--frame); max-width: 1240px; margin: 0 auto; }
.label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--ink-soft); margin-bottom: 22px; }
.serif-xl { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em; max-width: 18ch; }
.serif-xl em, .serif-md em { color: var(--heart); }
.serif-md { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); line-height: 1.2; }
.lede { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); line-height: 1.4; max-width: 40ch; margin-top: 26px; color: #444444; }
.note { font-size: .72rem; color: var(--ink-soft); margin-top: 8px; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Drop */
.drop-meta { display: flex; flex-wrap: wrap; gap: 28px 80px; margin: 56px 0 44px; padding-top: 28px; border-top: 1px solid rgba(28,28,28,.18); }
.drop-meta .label { margin-bottom: 6px; }
.mono-lg { font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); letter-spacing: .02em; }
.countdown { color: var(--heart); text-transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 999px; text-decoration: none;
  text-transform: uppercase; letter-spacing: .08em; font-size: .72rem;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--heart); border-color: var(--heart); }
.vinted .btn { margin-top: 36px; }

/* Catalog */
.grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px); margin-top: 64px; }
.card figure { position: relative; background: var(--paper-2); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.03); }
.tag {
  position: absolute; top: 12px; left: 12px; padding: 3px 8px;
  background: rgba(243,243,243,.9); border: 1px solid rgba(28,28,28,.25); border-radius: 999px;
  text-transform: uppercase; letter-spacing: .08em; font-size: .62rem;
}
.card-body { padding-top: 16px; display: grid; gap: 2px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.meta { color: var(--ink-soft); }
.price { margin-top: 6px; font-size: .9rem; }
.price span { color: var(--ink-soft); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; margin-left: 6px; }
.card-cta { margin-top: 10px; justify-self: start; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.card-cta:hover { color: var(--heart); }

/* How */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 48px clamp(28px, 4vw, 64px); margin-top: 64px; }
.steps li { border-top: 1px solid rgba(28,28,28,.18); padding-top: 22px; }
.step-n { font-family: var(--serif); font-style: italic; color: var(--heart); font-size: 1.6rem; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 4px 0 10px; }
.steps p { font-size: .85rem; max-width: 36ch; color: #444444; }

/* About */
.about-art { margin: 0 calc(var(--frame) * -0.5) 72px; }
.about-art img { width: 100%; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(70% 70% at 50% 55%, #000 55%, transparent 100%); mask-image: radial-gradient(70% 70% at 50% 55%, #000 55%, transparent 100%); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 56px; margin-top: 40px; }
.cols p { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.45; color: #444444; }
.values { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 48px; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.values span { color: var(--heart); margin-right: 6px; font-family: var(--serif); font-size: 1rem; }
.copy { font-family: var(--serif); font-size: .9rem; }

/* Vinted */
.vinted { text-align: center; display: flex; flex-direction: column; align-items: center; }
.vinted .serif-xl, .vinted .lede { margin-inline: auto; }

/* Footer */
.footer { padding: 80px var(--frame) calc(var(--frame) * .6); border-top: 1px solid rgba(28,28,28,.12); }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; margin-bottom: 80px; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--ink-soft); }
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bar a { text-decoration: none; }
.footer-bar a:hover { color: var(--heart); }

@media (max-width: 640px) {
  .drop-meta { gap: 24px 40px; }
  .about-art { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* v8: handle de Instagram (siempre en minúsculas) y elementos ocultos */
.handle, .handle-link { text-transform: none; letter-spacing: .02em; }
.handle-link { color: var(--heart); text-decoration: underline; text-underline-offset: 3px; }
[data-link][hidden], [data-needs][hidden] { display: none !important; }

/* v13: wordmark "vheart" (imagen cromada recortada), centrado */
.wordmark {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: block; line-height: 0; text-decoration: none;
  opacity: 0; transition: opacity .8s ease .3s;
}
.wordmark img { display: block; height: clamp(44px, 38px + 1vw, 56px); width: auto; }
.loaded .wordmark { opacity: 1; }
.brand img { width: 24px; height: 24px; object-fit: contain; }
@media (max-width: 760px) { .brand-name { display: none; } }

/* v14 · legibilidad sobre el mar fijo: halo claro y suave detrás del texto (sin cajas) */
.section, .footer { text-shadow: 0 0 10px rgba(243,243,243,.95), 0 0 22px rgba(243,243,243,.7); }
.section .btn, .footer .btn, .section button { text-shadow: none; }

/* ---------- v16 · Títulos en gótica textura (estilo chicano / tatuaje) ---------- */
.serif-xl {
  font-family: var(--gothic); font-weight: 400; font-style: normal;
  font-size: clamp(2.7rem, 1.7rem + 4vw, 5.2rem); line-height: .98; letter-spacing: .005em;
  max-width: 16ch;
}
.serif-xl em { font-style: normal; color: #4a4a4a; }
.steps h3, .card h3 { font-family: var(--gothic); font-weight: 400; font-size: clamp(2rem, 1.7rem + .9vw, 2.4rem); line-height: 1; letter-spacing: .01em; }
/* destello pequeño tras cada título */
.serif-xl { position: relative; }
.serif-xl::before {
  content: ""; position: absolute; left: -.42em; top: -.3em; width: .34em; height: .44em; pointer-events: none;
  background: url('/img/orn-spark-a-v16.svg') center / contain no-repeat; opacity: .55;
}
.vinted .serif-xl::before { left: auto; right: -.1em; top: -.25em; }

/* ---------- v16 · Ornamentos cybersigilism (tinta negra, sin interacción) ---------- */
.orn { position: absolute; pointer-events: none; user-select: none; height: auto; max-width: none; }
.section { position: relative; }
.hero { overflow: hidden; }
.orn-corner { width: clamp(96px, 22vw, 230px); opacity: .42; }
.hero .orn-tl { left: calc(var(--frame) * .5); top: calc(64px + 2vh); }
.hero .orn-tr { right: calc(var(--frame) * .5); top: calc(64px + 2vh); transform: scaleX(-1); }
.orn-spark { width: clamp(22px, 4vw, 40px); opacity: .6; }
/* destellos junto al corazón, sin taparlo */
.hero .orn-hs1 { left: calc(50% - min(240px, 46vw) / 2 - clamp(30px, 7vw, 70px)); top: 36%; }
.hero .orn-hs2 { left: calc(50% + min(240px, 46vw) / 2 + clamp(8px, 3vw, 34px)); top: 52%; width: clamp(18px, 3vw, 30px); opacity: .42; }
/* divisores entre secciones */
.orn-sep { display: flex; justify-content: center; padding: 0 var(--frame); margin: clamp(-30px, -3vw, -10px) 0; position: relative; z-index: 1; }
.orn-sep .orn-divider { position: static; width: min(460px, 72vw); opacity: .5; }
/* enredaderas verticales: solo en escritorio ancho, en el margen libre */
.orn-vine { display: none; width: 46px; opacity: .32; top: 12%; }
@media (min-width: 1240px) {
  .orn-vine { display: block; }
  .orn-vine-l { left: calc(12px + (1240px - 100vw) / 2); }
  .orn-vine-r { right: calc(12px + (1240px - 100vw) / 2); }
}
/* pie */
.footer .orn-corner { width: clamp(80px, 14vw, 170px); opacity: .32; top: 18px; }
.footer .orn-fl { left: calc(var(--frame) * .4); }
.footer .orn-fr { right: calc(var(--frame) * .4); transform: scaleX(-1); }
.footer-mark { display: flex; align-items: center; gap: clamp(14px, 3vw, 26px); }
.footer-mark .orn-spark { position: static; width: 22px; opacity: .5; }
@media (max-width: 600px) {
  .orn-corner { opacity: .34; }
  .hero .orn-tl, .hero .orn-tr { top: 66px; }
  .hero .orn-hs2 { display: none; }
  .footer .orn-corner { display: none; }
}
.serif-xl, .steps h3 { text-shadow: 0 0 6px rgba(243,243,243,.85), 0 0 16px rgba(243,243,243,.5); }
