/* ============================================================
   79 RATIO — DESIGN SYSTEM
   styles.css — Tokens, typography, base, utilities
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Color palette */
  --gold:          #d4af37;
  --gold-light:    #e5c158;
  --gold-soft:     #f0d48a;
  --gold-dim:      #c9a961;
  --gold-muted:    rgba(212, 175, 55, 0.15);
  --gold-border:   rgba(212, 175, 55, 0.25);
  --gold-glow:     rgba(212, 175, 55, 0.12);

  --black:         #000000;
  --surface-1:     #080808;
  --surface-2:     #0f0f0f;
  --surface-3:     #161616;
  --surface-4:     #1e1e1e;

  --white:         #ffffff;
  --text-primary:  #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted:    rgba(255, 255, 255, 0.38);
  --text-gold:     #d4af37;

  --border:        rgba(212, 175, 55, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.07);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Type scale */
  --text-xs:   0.6875rem;   /* 11px */
  --text-sm:   0.8125rem;   /* 13px */
  --text-base: 1rem;        /* 16px */
  --text-lg:   1.125rem;    /* 18px */
  --text-xl:   1.25rem;     /* 20px */
  --text-2xl:  1.5rem;      /* 24px */
  --text-3xl:  2rem;        /* 32px */
  --text-4xl:  2.75rem;     /* 44px */
  --text-5xl:  3.75rem;     /* 60px */
  --text-6xl:  5rem;        /* 80px */

  /* Spacing scale */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --container:      1200px;
  --container-wide: 1440px;
  --container-text: 720px;

  /* Radius */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Transitions */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --duration:  240ms;
  --duration-slow: 480ms;

  /* Shadows */
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.08);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
}

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

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

body {
  background-color: var(--black);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover { color: var(--gold-light); }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */

/* Display — Cormorant Garamond for hero headings */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, var(--text-6xl));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, var(--text-5xl));
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* Section headings — Inter */
.heading-1 {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3.5vw, var(--text-4xl));
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--white);
}

.heading-2 {
  font-family: var(--font-body);
  font-size: clamp(1.375rem, 2.5vw, var(--text-3xl));
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
}

.heading-3 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* Body text */
.body-lg {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

.body-base {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-secondary);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Label / eyebrow */
.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Gold accent text */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ── LAYOUT UTILITIES ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--text {
  max-width: var(--container-text);
}

/* Section spacing */
.section {
  padding-block: var(--space-24);
}

.section--lg {
  padding-block: var(--space-32);
}

.section--sm {
  padding-block: var(--space-16);
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* Flex helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── SURFACE / BACKGROUND VARIANTS ───────────────────────── */
.bg-black    { background-color: var(--black); }
.bg-surface  { background-color: var(--surface-1); }
.bg-surface-2 { background-color: var(--surface-2); }
.bg-surface-3 { background-color: var(--surface-3); }

/* Subtle gold-tinted section bg */
.bg-gold-wash {
  background: linear-gradient(
    180deg,
    var(--surface-1) 0%,
    rgba(212, 175, 55, 0.03) 50%,
    var(--surface-1) 100%
  );
}

/* Full bleed divider line */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.divider--subtle {
  background: var(--border-subtle);
}

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── RESPONSIVE BREAKPOINTS ───────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-32: 5rem;
    --space-16: 3rem;
  }

  .container { padding-inline: var(--space-5); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-16); }
  .section--lg { padding-block: var(--space-20); }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
}
