/* ==========================================================================
   main.css — reset, design tokens, base typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors — dark & moody */
  --color-bg:          #0b0a09;
  --color-bg-elevated: #131110;
  --color-surface:     #171412;
  --color-border:      rgba(255, 255, 255, 0.08);
  --color-border-hi:   rgba(255, 255, 255, 0.16);
  --color-text:        #ece7e1;
  --color-text-dim:    #c9c2b8;
  --color-muted:       #8a8177;
  --color-accent:      #d99a4e;
  --color-accent-dim:  #8a6636;

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-sans:    'Outfit', system-ui, -apple-system, sans-serif;

  /* Spacing / layout */
  --space-section: clamp(5rem, 12vw, 9rem);
  --max-width:     1280px;
  --gutter:        clamp(1.5rem, 5vw, 3rem);
  --radius:        0.5rem;
  --radius-lg:     1rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.2s;
  --duration:      0.4s;
  --duration-slow: 0.7s;
}

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

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

input, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); font-weight: 400; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p {
  max-width: 65ch;
  color: var(--color-text-dim);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

::selection {
  background: var(--color-accent);
  color: #0b0a09;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border-hi);
  border-radius: 10px;
}
