/* Ivylistic — Design Tokens */

/*
  Site uses exactly two typefaces:
    - IvyPresto Headline (Regular only)  — every heading + the logo wordmark
    - IvyPresto Text     (Regular only)  — every body element
  Italics and bold are explicitly disabled site-wide (font-synthesis: none) so
  the browser can never fake-slant or fake-bold these glyphs.
*/
@font-face {
  font-family: "IvyPresto Headline";
  src: local("IvyPresto Headline"),
       url("../assets/fonts/IvyPrestoHeadline-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "IvyPresto Text";
  src: local("IvyPresto Text"),
       url("../assets/fonts/IvyPrestoText-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

* { font-synthesis: none; -webkit-font-synthesis: none; }

:root {
  /* Palette */
  --ink: #0F2A44;
  --ink-soft: #36475C;
  --accent: #7B3FA0;
  --accent-deep: #5C2E7A;
  --gold: #C99B3D;
  --gold-soft: #E0BE7A;
  --cream: #F2EDE3;
  --cream-deep: #E8E1D0;
  --paper: #FAF7F0;
  --muted: #6B7280;
  --emerald: #0F6B5A;
  --silver: #9AA3AD;

  /* Type — only IvyPresto Headline + IvyPresto Text. No font fallbacks (no
     Georgia, no system serif) so we can never get a Cormorant-vs-Garamond-vs-
     Times mismatch during font load. `font-display: block` on the @font-face
     declarations holds text invisible for up to 3 s while the OTF arrives. */
  --font-display: "IvyPresto Headline";
  --font-serif:   "IvyPresto Text";
  --font-sans:    "IvyPresto Text";

  /* Spacing & elevation */
  /* V1.5: master section-padding knob — drives every `<section>` element
     that doesn't override `padding`. Tightened from clamp(4rem, 8vw, 7rem)
     ≈ 64-112 px to clamp(2.5rem, 5vw, 4.5rem) ≈ 40-72 px as part of the
     site-wide whitespace reduction. Bump back up if sections start
     feeling cramped. */
  --section-y: clamp(2.5rem, 5vw, 4.5rem);
  --container: 1280px;
  --gutter: 24px;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-1: 0 8px 24px rgba(15, 42, 68, 0.08);
  --hairline: 1px solid rgba(201, 155, 61, 0.35);
  --hairline-strong: 1px solid rgba(201, 155, 61, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body { margin: 0; padding: 0; }
body {
  background: #ffffff;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* IvyPresto includes serious OpenType kerning + common ligature tables;
     turn them on so default tracking metrics actually apply. */
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  color: var(--ink);
  /* IvyPresto Headline is metrically tuned — let it breathe at its natural
     tracking. The earlier -0.01em letter-spacing was a Cormorant Garamond
     holdover and visibly cramped IvyPresto's wider, calligraphic glyphs. */
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; font-style: normal; }

/* Type utilities */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.serif-italic {
  font-family: var(--font-serif);
  font-style: normal;
}
.accent { color: var(--accent); }
.gold { color: var(--gold); }
.ink { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(123, 63, 160, 0.22);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: #B5872E; transform: translateY(-1px); }
.btn-ghost-cream {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(242, 237, 227, 0.5);
}
.btn-ghost-cream:hover { background: rgba(242, 237, 227, 0.1); }
.btn-ghost-ink {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(15, 42, 68, 0.25);
}
.btn-ghost-ink:hover { border-color: var(--ink); }

/* Gold link with underline */
.gold-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: gap .25s ease, color .25s ease;
}
.gold-link:hover { gap: 12px; color: var(--ink); border-color: var(--ink); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Section */
section { padding: var(--section-y) 0; position: relative; }

/* Gold corner frame helper */
.gold-corners {
  position: relative;
}
.gold-corners::before,
.gold-corners::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.gold-corners::before {
  top: 28px; right: 32px;
  border-left: none; border-bottom: none;
}
.gold-corners::after {
  bottom: 28px; left: 32px;
  border-right: none; border-top: none;
}

/* Compact density variant */
body.density-compact section { padding: clamp(3rem, 6vw, 5rem) 0; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
