/* ============================================================
   VSPOKE — Design System
   Ink, fingerprint gold, ivory. Luxury-science.
   ============================================================ */

:root {
  /* Color */
  --ink:        #141210;   /* warm near-black */
  --ink-soft:   #211E1A;   /* raised surfaces on dark */
  --ivory:      #FFFFFF;   /* white ground */
  --ivory-deep: #F7F5F1;   /* recessed panels on light */
  --gold:       #A87C33;   /* fingerprint gold — accents, actions */
  --gold-burnish: #C9A15C; /* burnished highlight on dark */
  --gold-pale:  #E4CFA4;   /* faint gold, large glyphs on dark */
  --umber:      #6B6257;   /* secondary text on light */
  --stone:      #A39B8D;   /* secondary text on dark */
  --hairline:   #E9E5DE;   /* rules on light */
  --hairline-dark: #35302A;/* rules on dark */

  /* Type */
  --f-display: 'Marcellus', 'Times New Roman', serif;
  --f-sans:    'Jost', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --f-body:    'EB Garamond', Georgia, serif;

  /* Scale */
  --w-content: 1120px;
  --w-narrow: 720px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, canvas, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; margin: 0; }

a { color: inherit; }

::selection { background: var(--gold); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Utility type roles ---------- */

/* Small tracked-out label, the Jost voice of the logo */
.label {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.label--stone { color: var(--stone); }
.label--umber { color: var(--umber); }

/* Data / dosage voice */
.data {
  font-family: var(--f-sans);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ---------- Wordmark (rebuilt in code) ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-sans);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  gap: 0;
}

.wordmark .fp-o {
  display: inline-block;
  height: 1.18em;
  width: auto;
  margin: 0 0.18em 0 0.04em;
  transform: translateY(-0.04em);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid currentColor;
  background: transparent;
  padding: 18px 44px;
  transition: background-color 0.35s var(--ease-out),
              color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
}

.btn--gold {
  color: var(--gold);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold);
  color: var(--ivory);
}

.btn--solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory);
}
.btn--solid:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn--ivory {
  color: var(--ink);
  border-color: rgba(20, 18, 16, 0.4);
}
.btn--ivory:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

/* ---------- Layout helpers ---------- */

.shell {
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: var(--w-narrow); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Real logo artwork ---------- */

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 22px; width: auto; display: block; }
.brand--lg img { height: 26px; }
