/* style.css — Selah Seminary waitlist landing page */

:root,
[data-theme='light'] {
  /* Surfaces — warm cream/olive matching brand photography */
  --color-bg: #f6f3ec;
  --color-surface: #fffdf8;
  --color-surface-2: #fbf8f1;
  --color-surface-offset: #efe9dc;
  --color-divider: rgba(31, 35, 28, 0.1);
  --color-border: rgba(31, 35, 28, 0.16);

  /* Text */
  --color-text: #211f19;
  --color-text-muted: #5c584d;
  --color-text-faint: #948e7e;
  --color-text-inverse: #fbf7ee;

  /* Primary accent — warm gold, taken from "Selah." logo + buttons */
  --color-primary: #ab8752;
  --color-primary-hover: #8f6f3e;
  --color-primary-active: #745a33;
  --color-primary-highlight: #eadfc7;

  /* Deep olive/forest — from the tree canopy in the brand photo */
  --color-accent-deep: #3c4430;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 90 / 0.08);
  --shadow-md: 0 8px 24px oklch(0.2 0.02 90 / 0.12);
  --shadow-lg: 0 24px 60px oklch(0.2 0.02 90 / 0.18);

  --content-narrow: 640px;
  --content-default: 880px;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-script: 'Petit Formal Script', 'Brush Script MT', cursive;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #191a15;
  --color-surface: #201f19;
  --color-surface-2: #24231c;
  --color-surface-offset: #2b291f;
  --color-divider: rgba(246, 243, 236, 0.1);
  --color-border: rgba(246, 243, 236, 0.16);
  --color-text: #f1eee4;
  --color-text-muted: #c3bfae;
  --color-text-faint: #8b8672;
  --color-text-inverse: #201f19;
  --color-primary: #d4b378;
  --color-primary-hover: #e3c78f;
  --color-primary-active: #b6905a;
  --color-primary-highlight: #3a331f;
  --color-accent-deep: #a9b48f;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.45);
}

/* Type scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --text-lg: clamp(1.2rem, 1.05rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.1rem);
  --text-2xl: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem);
  --text-hero: clamp(2.75rem, 1.2rem + 5.5vw, 5.75rem);

  --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 shell ---------- */

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) clamp(var(--space-5), 5vw, var(--space-12));
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-inverse);
}

.logo svg {
  height: clamp(28px, 4vw, 40px);
  width: auto;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-inverse);
  background: oklch(1 0 0 / 0.12);
  backdrop-filter: blur(6px);
}
.theme-toggle:hover {
  background: oklch(1 0 0 / 0.22);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(var(--space-24), 16vw, var(--space-32)) clamp(var(--space-5), 6vw, var(--space-12));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, oklch(0.15 0.02 120 / 0.55) 0%, oklch(0.15 0.02 120 / 0.35) 45%, oklch(0.12 0.02 120 / 0.72) 100%);
}

.hero__content {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid oklch(1 0 0 / 0.35);
  background: oklch(1 0 0 / 0.1);
  backdrop-filter: blur(6px);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-hero);
  color: var(--color-text-inverse);
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-primary);
}

.hero p.lede {
  max-width: 560px;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: oklch(0.98 0.01 90 / 0.92);
  line-height: 1.65;
}

.hero__form {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #241d0f;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--primary:active {
  transform: translateY(0);
}

.hero__note {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: oklch(0.95 0.01 90 / 0.75);
  letter-spacing: 0.02em;
}

.hero__note a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer strip ---------- */

.footer {
  position: relative;
  z-index: 2;
  padding: var(--space-6) clamp(var(--space-5), 5vw, var(--space-12));
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  justify-content: space-between;
  background: var(--color-accent-deep);
  color: oklch(0.95 0.01 90 / 0.82);
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

.footer a {
  color: inherit;
  text-decoration: none;
}
.footer a:hover {
  color: var(--color-primary);
}

.footer__socials {
  display: flex;
  gap: var(--space-4);
}
.footer__socials svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .hero {
    padding-top: var(--space-32);
  }
  .footer {
    justify-content: center;
    text-align: center;
  }
}
