/* ==========================================================================
   Hush — Nocturne theme · shared styles
   Dark, calm, editorial. Loaded on every page.
   ========================================================================== */

:root {
  /* Palette */
  --ink:      #0B1026;   /* deep midnight indigo — page base */
  --ink-2:    #131A3A;   /* raised panels */
  --ink-3:    #1B2450;   /* borders / hairlines */
  --moon:     #EDE9F5;   /* primary text, near-white */
  --haze:     #9AA4D4;   /* secondary text, muted periwinkle */
  --haze-dim: #6A74A6;   /* tertiary / captions */
  --glow:     #8FA6FF;   /* cool blue accent */
  --glow-2:   #B79BFF;   /* violet accent */
  --warm:     #E8B98A;   /* single warm dawn note */

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --sans:    "Manrope", system-ui, -apple-system, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-3:  clamp(2.6rem, 2rem + 3vw, 4.6rem);
  --step-4:  clamp(3.4rem, 2.4rem + 5vw, 6.4rem);

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max:    1180px;
  --radius: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--moon);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.05; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.serif  { font-family: var(--display); font-weight: 300; font-style: italic; }
.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--haze-dim);
  font-weight: 600;
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--step-0);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.btn:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.btn--ghost {
  border-color: var(--ink-3);
  color: var(--moon);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--glow); transform: translateY(-2px); }

/* ---- Store badges (CSS/SVG, no external images) --------------------------- */
.stores { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.35rem;
  border-radius: 14px;
  background: var(--moon);
  color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  box-shadow: 0 10px 30px -12px rgba(143, 166, 255, 0.5);
}
.store:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(143, 166, 255, 0.7); }
.store:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store__label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store__label small { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: #5b5b6b; }
.store__label span { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---- Header --------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-head.is-stuck { border-bottom-color: var(--ink-3); }
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: radial-gradient(circle at 32% 30%, var(--glow), var(--glow-2) 70%);
  box-shadow: 0 0 22px -4px var(--glow);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 6px 6px auto auto;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink);
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--haze); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; transition: color 0.25s; }
.nav__links a:hover { color: var(--moon); }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__links, .nav .btn { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav__toggle span { width: 24px; height: 2px; background: var(--moon); transition: 0.3s; }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; gap: 1.2rem;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--ink-2); padding: 1.5rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--ink-3);
  }
  .nav[data-open="true"] .btn { display: inline-flex; }
  .nav[data-open="true"] { display: flex; flex-direction: column; align-items: stretch; }
}

/* ---- Footer --------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--ink-3);
  margin-top: clamp(4rem, 10vw, 8rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.site-foot__grid {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  justify-content: space-between; align-items: flex-start;
}
.site-foot p { color: var(--haze-dim); font-size: var(--step--1); max-width: 30ch; margin-top: 0.8rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--haze); font-size: var(--step--1); font-weight: 600; transition: color 0.25s; }
.foot-links a:hover { color: var(--moon); }
.site-foot__base {
  margin-top: 2.5rem; padding-top: 1.6rem;
  border-top: 1px solid var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--haze-dim); font-size: var(--step--1);
}

/* ---- Reveal-on-scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
