:root {
  --color-bg: #0b0b0d;
  --color-text: #f5f1ea;
  --color-text-dim: rgba(245, 241, 234, 0.62);
  --color-accent: #d4f24c;
  --color-accent-hover: #e0ff5c;
  --color-accent-text: #0a0a0a;

  --font-serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vh, 2.5rem) clamp(1.25rem, 4vw, 3rem);

  background-color: var(--color-bg);
  background-image: url('headerImage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  isolation: isolate;
}

/* subtle top + bottom vignettes for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(11, 11, 13, 0.55) 0%,
      rgba(11, 11, 13, 0.0)  22%,
      rgba(11, 11, 13, 0.0)  72%,
      rgba(11, 11, 13, 0.55) 100%
    );
}

.hero > * { position: relative; z-index: 1; }

/* ---------- STACK: logo + headline + CTA, equal vertical rhythm ---------- */
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2rem, 4.5vh, 3.25rem);
}

.logo {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  letter-spacing: -0.005em;
  color: var(--color-text);
  font-variation-settings: 'opsz' 14;
}

.headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.8vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--color-text);
  max-width: 24ch;

  font-variation-settings: 'opsz' 144;
  text-wrap: balance;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  background-color: var(--color-accent);
  color: var(--color-accent-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  border-radius: 999px;
  transition: background-color 180ms ease, transform 180ms ease;
  will-change: transform;
}

.cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

.cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ---------- BOTTOM: subhead ---------- */
.hero-bottom {
  margin-top: auto;
  text-align: center;
  padding-top: 2rem;
}

.subhead {
  max-width: 38rem;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.55;
  color: var(--color-text-dim);
  text-wrap: pretty;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .headline {
    font-size: clamp(1.85rem, 9vw, 2.8rem);
    max-width: 18ch;
  }

  .subhead {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
