/* Persistence Ventures — skeleton stylesheet. Tokens from the Website Theme Spec, section 8. */

:root {
  --ink: #0A0A0A; --ink-raised: #161514; --ink-line: #2A2826;
  --cream: #F1E6D2; --bone: #FAF7F1; --sand: #E9DCC6;
  --ember: #FF6A00; --flare: #FFA040; --rust: #C4561F;
  --tortoise: #6B3A1E; --gold: #B8924A;
  --beat: 1.2s; --ease-in: cubic-bezier(.22,.61,.36,1);
  --ease-loop: cubic-bezier(.65,0,.35,1);
  --glow: 0 0 6px var(--flare), 0 0 18px var(--ember), 0 0 42px rgba(255,106,0,.45);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink); color: var(--cream);
  font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6;
}
a { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
img { max-width: 100%; display: block; }

/* Grid: 12 columns, 1280px max, 120–160px section padding */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.section { padding: 140px 0; }
.section--bone { background: var(--bone); color: var(--ink); }
.section--sand { background: var(--sand); color: var(--ink); }

/* Typography roles */
.display-pulse { font-family: "Anton", "Bebas Neue", Impact, sans-serif; font-style: italic; text-transform: uppercase; font-weight: 400; letter-spacing: 0.01em; line-height: 0.95; }
.display-atelier { font-family: "Playfair Display SC", "Bodoni Moda", Georgia, serif; font-stretch: condensed; font-weight: 400; letter-spacing: 0.08em; line-height: 1.05; }
.subhead { font-family: Montserrat, Outfit, sans-serif; text-transform: uppercase; letter-spacing: 0.3em; font-weight: 600; font-size: 13px; }
.tagline-pulse { font-family: "Anton", sans-serif; font-style: italic; text-transform: uppercase; }
.tagline-atelier { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }

/* Glow: Pulse only, one glowing element per screen */
.glow { text-shadow: var(--glow); }

/* Heartbeat divider: 1px rust line, single ECG spike at center */
.beat-divider { width: 100%; height: 24px; display: block; }
.beat-divider path { fill: none; stroke: var(--rust); stroke-width: 1; }
.beat-divider .spike { stroke: var(--ember); }

/* Buttons: ember fill, 2px radius; secondary is cream outline */
.btn { display: inline-block; padding: 16px 32px; border-radius: 2px; font: 600 13px/1 Montserrat, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 250ms var(--ease-in), color 250ms var(--ease-in); }
.btn--primary { background: var(--ember); color: var(--ink); border: 0; }
.btn--primary:hover { animation: heartbeat var(--beat) var(--ease-loop) 1; }
.btn--secondary { background: transparent; color: var(--cream); border: 1px solid var(--cream); }
.btn--secondary:hover { background: var(--cream); color: var(--ink); }

/* Navigation: ink-raised bar, wordmark centered, rust underline once scrolled */
.nav { background: var(--ink-raised); position: sticky; top: 0; z-index: 10; }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav__links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; font: 600 12px Montserrat, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.nav__links a { text-decoration: none; }
.nav__wordmark { font-family: "Playfair Display SC", serif; letter-spacing: 0.08em; color: var(--cream); text-decoration: none; }
.nav__tools { justify-self: end; display: flex; gap: 20px; align-items: center; }
.nav.is-scrolled { border-bottom: 1px solid var(--rust); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { font: 600 12px Montserrat, sans-serif; }

/* Product cards: 12px corners, lift on hover */
.card { border-radius: 12px; background: var(--ink-raised); overflow: hidden; transition: transform 250ms var(--ease-in), box-shadow 250ms var(--ease-in); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.card__title { position: relative; }
.card__title::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--rust); transition: width 250ms var(--ease-in); }
.card:hover .card__title::after { width: 100%; }

/* Product grid (shop row and featured) */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-grid .card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card__body { padding: 20px; display: grid; gap: 8px; }
.card__body .subhead { margin: 0; color: var(--flare); }

/* Badge: oval sticker */
.badge { display: inline-block; border-radius: 999px; padding: 6px 14px; font: 600 11px Montserrat, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid var(--gold); color: var(--gold); }

/* Animations */
@keyframes heartbeat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.04); } 28% { transform: scale(1); } 42% { transform: scale(1.02); } }
@keyframes ecg-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes neon-ignite { 0% { opacity: 0; } 20% { opacity: .6; } 40% { opacity: .2; } 60% { opacity: 1; } 100% { opacity: 1; } }
@keyframes grain-drift { from { background-position: 0 0; } to { background-position: 200px 200px; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

.ecg-draw { stroke-dasharray: var(--len); animation: ecg-draw 1.6s var(--ease-in) both; }
.neon-ignite { animation: neon-ignite 600ms linear both; }
.fade-in { animation: page-in 200ms ease both; }

/* Pulse-only grain overlay at 4% */
.grain { position: relative; }
.grain::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .04; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 3px 3px; animation: grain-drift 20s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  .fade-in, .neon-ignite { opacity: 1; }
}
