/* ==========================================================================
   main.css — Variables, reset, typography, layout system
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Inter:wght@300;400;500&display=swap");

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #000000;
  --color-fg: #fafafa;
  --color-fg-90: rgba(250, 250, 250, 0.9);
  --color-fg-80: rgba(250, 250, 250, 0.8);
  --color-fg-75: rgba(250, 250, 250, 0.75);
  --color-fg-70: rgba(250, 250, 250, 0.7);
  --color-fg-60: rgba(250, 250, 250, 0.6);
  --color-fg-50: rgba(250, 250, 250, 0.5);
  --color-fg-40: rgba(250, 250, 250, 0.4);
  --color-fg-30: rgba(250, 250, 250, 0.3);
  --color-fg-20: rgba(250, 250, 250, 0.2);
  --color-fg-15: rgba(250, 250, 250, 0.15);
  --color-fg-10: rgba(250, 250, 250, 0.1);
  --color-danger: #ef4444;

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  --radius: 0.625rem;
  --container-max: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  min-height: 100dvh;
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul {
  list-style: none;
}

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

/* ---------- Typography ---------- */
.t-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-fg-40);
}

.t-display {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(2.75rem, 6vw, 4rem);
}

.t-body {
  font-size: 1rem;
  color: var(--color-fg-75);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .t-body {
    font-size: 1.125rem;
  }
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.page {
  position: relative;
  min-height: 100dvh;
  padding: 8rem 1.5rem 6rem;
}

.page__inner {
  margin-inline: auto;
  max-width: 36rem;
}

/* ---------- Animations ---------- */
@keyframes vayn-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vayn-fade-in {
  animation: vayn-fade-in 1.6s var(--ease) both;
}

@keyframes vayn-dot {
  0%,
  20% {
    opacity: 0;
  }
  40%,
  100% {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
