/* ═══════════════════════════════════════════
   BASE — Reset, Typography, Utilities
═══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: var(--lh-body);
  color: var(--text-on-light);
  background-color: var(--surface-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p { max-width: 65ch; }

em { font-style: italic; }

blockquote {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  quotes: "\201C" "\201D";
}

blockquote::before { content: open-quote; }
blockquote::after  { content: close-quote; }

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

/* ── Label ── */
.label {
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent-dim);
}

.label-light {
  color: var(--accent);
}

/* ── Gold divider ── */
.divider-gold {
  width: 36px;
  height: 1px;
  background-color: var(--accent);
  margin-block: var(--sp-3);
}

/* ── Text utilities ── */
.text-light  { color: var(--text-on-dark); }
.text-muted  { color: var(--text-muted-dark); }
.body-l      { font-size: var(--text-body-l); line-height: 1.7; }

/* ── Section backgrounds ── */
.section-dark  { background-color: var(--surface-dark); }
.section-mid   { background-color: var(--surface-mid); }
.section-warm  { background-color: var(--surface-warm); }
.section-light { background-color: var(--surface-light); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  padding: 15px 32px;
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--surface-dark);
  color: var(--text-on-dark);
  border-color: var(--surface-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--surface-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-on-dark);
  border-color: rgba(240, 236, 230, 0.4);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-gold:hover,
.btn-outline-gold:focus-visible {
  background-color: var(--accent);
  color: var(--surface-dark);
}

.btn-full {
  width: 100%;
}

/* ── Links ── */
.link-subtle {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.link-subtle:hover { color: var(--text-on-light); }

.link-gold {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--accent);
  transition: color var(--dur-fast) ease;
}

.link-gold:hover { color: var(--accent-hover); }

/* ── Focus styles (accessibility) ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Section header ── */
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-header p          { margin-inline: auto; }
.section-header .label     { margin-bottom: 0; }
.section-header .divider-gold { margin-inline: auto; }

.section-sub {
  max-width: 52ch;
  margin-inline: auto;
  margin-top: var(--sp-2);
  font-size: var(--text-body-l);
  color: var(--text-secondary);
}

.section-sub.text-muted { color: var(--text-muted-dark); }

/* ── Feature list ── */
.feature-list {
  margin-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--text-body-l);
}

.feature-marker {
  color: var(--accent-dim);
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Scroll-reveal (initial state) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-item {
    opacity: 0;
    transition:
      opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out);
    transition-delay: var(--delay, 0s);
  }

  .reveal-up    { transform: translateY(28px); }
  .reveal-left  { transform: translateX(-32px); }
  .reveal-right { transform: translateX(32px); }
  .reveal-item  { transform: translateY(20px); }

  .reveal-up.is-revealed,
  .reveal-left.is-revealed,
  .reveal-right.is-revealed,
  .reveal-item.is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* Skip reduced-motion: show immediately */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
