/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #0f1115;
  --bg-alt: #161922;
  --cream: #f6f4ef;
  --text: #eceae4;
  --text-dim: #a8aab2;
  --accent: #c9a961;
  --accent-2: #7c8cff;
  --border: rgba(255,255,255,0.1);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1120px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
::selection { background: var(--accent); color: #1a1712; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: #1a1712;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), opacity .25s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: #1a1712;
}
.btn-primary:hover { transform: translateY(-2px); opacity: .92; }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,17,21,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  padding-block: 4rem 3rem;
  text-align: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.6rem, 10vw, 5.5rem);
  max-width: 16ch;
  margin-inline: auto;
}
.hero-sub {
  margin: 1.25rem auto 0;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-placeholder {
  margin: 3rem auto 0;
  max-width: var(--container);
  margin-inline: 1.25rem;
  aspect-ratio: 16 / 7;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--bg-alt), #1f2330 60%, var(--bg-alt));
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: .95rem;
}
@media (min-width: 720px) {
  .hero-placeholder { margin-inline: auto; }
}

/* =============================================================
   7. Sections
   ============================================================= */
.section { padding-block: 4rem; }
.section-alt { background: var(--bg-alt); }
.section-kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2rem;
}
.section-text {
  color: var(--text-dim);
  max-width: 50ch;
  margin-bottom: 1.5rem;
}
.cta-inner { text-align: center; }
.cta-inner .section-title { margin-bottom: .75rem; }
.cta-inner .section-text { margin-inline: auto; }

/* =============================================================
   8. Cards / grid
   ============================================================= */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--text-dim); font-size: .95rem; }
.card-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, #23283a, #171a22);
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: .85rem;
  margin-bottom: 1rem;
}

/* =============================================================
   9. Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
}
.footer-inner {
  display: flex; flex-direction: column; gap: .35rem;
  color: var(--text-dim);
  font-size: .85rem;
  text-align: center;
}

/* =============================================================
   10. Responsive (mobile-first breakpoints)
   ============================================================= */
@media (min-width: 540px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: 6rem 4rem; }
}
