/* EB Garamond + Inter are enqueued by the theme (inc/enqueue.php) rather
   than @imported here, so the font request isn't chained behind this file. */

/* ───────────────────────────────────────────────
   Design tokens
─────────────────────────────────────────────── */
:root {
  /* Brand */
  --black:        #0B0B0B;
  --black-soft:   #0D0D0D;
  --black-card:   #111111;
  --black-deep:   #060606;
  --gold:         #D4B16A;
  --gold-hover:   #c9a55e;
  --ivory:        #F8F6F1;
  --ivory-warm:   #F4F2ED;

  /* Type */
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --max:       1440px;
  --gutter:    1.5rem;
  --gutter-lg: 4rem;
  --nav-h:     5rem;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────────────────────────────────────────────
   Reset
─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ───────────────────────────────────────────────
   Typography primitives
─────────────────────────────────────────────── */
.serif { font-family: var(--serif); }
.sans  { font-family: var(--sans); }

.section-label {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.gold-rule {
  height: 1px;
  width: 3rem;
  background: var(--gold);
  transform-origin: left;
  margin: 1.5rem 0;
}

/* ───────────────────────────────────────────────
   Layout
─────────────────────────────────────────────── */
.shell {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.section {
  padding-block: 7rem;
}

.section--light { background: var(--ivory); color: var(--black); }
.section--warm  { background: var(--ivory-warm); color: var(--black); }
.section--dark  { background: var(--black); color: var(--ivory); }

@media (min-width: 1024px) {
  .shell   { padding-inline: var(--gutter-lg); }
  .section { padding-block: 9rem; }
}

/* ───────────────────────────────────────────────
   Scroll reveal
─────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   0.75s var(--ease-soft),
    transform 0.75s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal="rule"] {
  opacity: 1;
  transform: scaleX(0);
  transition: transform 1s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="rule"].is-visible { transform: scaleX(1); }

[data-reveal="zoom"] {
  opacity: 1;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}
[data-reveal="zoom"].is-visible { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
