/* ============================================================
   Lumina — Website Styles
   Theme: Light (Parchment)
   Tokens sourced from: APP/src/theme/tokens.ts
                        DOCS/LUMINA_LIGHT_BRAND_SYSTEM.md
                        DOCS/LUMINA_TYPOGRAPHY_LIGHT.md
   ============================================================ */


/* ── @font-face ─────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ── Reset ───────────────────────────────────────────────────── */

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


/* ── Design tokens ───────────────────────────────────────────── */

:root {
  /* Colors — tokens.ts */
  --bg:           #F0EBE2;   /* Colors.lightBg  */
  --surface:      #FEFEFE;   /* Colors.cardSurface */
  --border:       #E5DDD4;   /* Colors.cardBorder  */
  --divider:      #E0D8D0;   /* Colors.innerDivider */
  --t1:           #1A1915;   /* Colors.lightT1  */
  --t2:           #6B6560;   /* Colors.lightT2  */
  --t3:           #7A7068;   /* Colors.lightT3Passive */
  --accent:       #7522C8;   /* Colors.accent   */
  --accent-muted: #7A3DB5;   /* Colors.accentMuted — overlines on white */

  /* Spacing — tokens.ts */
  --screen-pad:   24px;      /* Spacing.screen  */
  --card-pad:     18px;      /* Spacing.cardPad */

  /* Radii — tokens.ts */
  --r-card:       12px;      /* Radius.card     */

  /* Borders — tokens.ts */
  --hairline:     0.5px;     /* Border.hairline */

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


/* ── Base ────────────────────────────────────────────────────── */

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

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.7;
}


/* ── Layout ──────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--screen-pad);
}

/* Hairline divider — 0.5px, Colors.innerDivider */
hr.divider {
  border: none;
  border-top: var(--hairline) solid var(--divider);
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */

.hero {
  padding: 88px 0 96px;
  text-align: center;
  background: var(--bg);
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--screen-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

/* Logo wordmark -------------------------------------------- */
.site-logo {
  height: 28px;
  width: auto;
}

/* Tagline -------------------------------------------------- */
.tagline {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--t1);
}

/* Hide <br> on small screens — text wraps naturally */
.tagline br {
  display: none;
}


/* ══════════════════════════════════════════════════════════════
   SHARED SECTION WRAPPER
   ══════════════════════════════════════════════════════════════ */

.page-section {
  padding: 88px 0;
}


/* ══════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════ */

.about-para {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;    /* tokens.ts lhBody */
  color: var(--t2);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}


/* ══════════════════════════════════════════════════════════════
   VALUE PROPS (SHOWCASE)
   ══════════════════════════════════════════════════════════════ */

.showcase {
  padding: 88px 0;
}

/* Mobile: single column, left-aligned */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
}

.showcase-numeral {
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--t3);
  font-feature-settings: 'tnum';
  margin-bottom: 12px;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--t1);
}

.showcase-sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--t2);
}


/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */

.contact {
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Overline — 13px/600/uppercase/letterSpacing 1.2px
   Color: accentMuted on all surfaces per LUMINA_LIGHT_BRAND_SYSTEM.md §10 */
.contact-overline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--t2);
}

.contact-email {
  font-size: 22px;
  font-weight: 400;
  color: #1A1915;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #6B6560;
  transition: text-decoration-color 0.2s ease;
}

.contact-email:hover {
  opacity: 1;
  text-decoration-color: #1A1915;
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: var(--hairline) solid var(--divider);
  padding: 44px 0 52px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  height: 26px;
  width: auto;
  opacity: 0.65;
}

.footer-legal {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--t3);
  max-width: 420px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-sep {
  font-size: 13px;
  color: var(--divider);
  user-select: none;
}

.footer-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--t2);
  padding: 2px 0;
  transition: color 200ms ease;
}

.footer-link:hover {
  color: var(--t1);
  opacity: 1;
}


/* ══════════════════════════════════════════════════════════════
   STUB PAGES (privacy.html, terms.html)
   ══════════════════════════════════════════════════════════════ */

.stub-header {
  padding: 28px 0;
  text-align: center;
  border-bottom: var(--hairline) solid var(--divider);
}

.stub-logo-link {
  display: inline-block;
}

.stub-section {
  padding: 80px 0;
  text-align: center;
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.stub-section .container {
  width: 100%;
}

.stub-message {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--t2);
}

.stub-message a {
  color: var(--accent);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 640px  (larger about + contact)
   ══════════════════════════════════════════════════════════════ */

@media (min-width: 640px) {

  .about-para {
    font-size: 20px;
  }

  .showcase-headline {
    font-size: 48px;
  }

  .showcase-sub {
    max-width: 640px;
  }

  .contact-email {
    font-size: 24px;
  }

}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 900px  (full desktop layout)
   ══════════════════════════════════════════════════════════════ */

@media (min-width: 900px) {

  /* Hero */
  .hero {
    padding: 148px 0 160px;
  }

  .hero-inner {
    gap: 88px;
  }

  .site-logo {
    height: 36px;
  }

  .tagline {
    font-size: 66px;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  /* Show line break only on desktop where it controls wrapping */
  .tagline br {
    display: inline;
  }

  /* Sections */
  .page-section {
    padding: 140px 0;
  }

  /* About */
  .about-para {
    font-size: 22px;
    line-height: 1.6;
    max-width: 760px;
  }

  /* Showcase — editorial 2-column grid */
  .showcase {
    padding: 160px 0;
  }

  .showcase-grid {
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto;
    column-gap: 80px;
    row-gap: 0;
    align-items: start;
  }

  .showcase-numeral {
    font-size: 96px;
    margin-bottom: 0;
  }

  .showcase-content {
    gap: 24px;
  }

  .showcase-headline {
    font-size: 68px;
  }

  .showcase-sub {
    font-size: 22px;
    max-width: 640px;
  }

  /* Contact */
  .contact-email {
    font-size: 32px;
  }

  /* Footer — horizontal row */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 32px;
  }

  .footer-legal {
    max-width: none;
    flex: 1;
    display: flex;
    align-items: center;
  }

  .footer-nav {
    flex-shrink: 0;
  }

  /* Stub pages */
  .stub-section {
    padding: 128px 0;
  }

}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 1200px  (large desktop — max type scale)
   ══════════════════════════════════════════════════════════════ */

@media (min-width: 1200px) {

  .tagline {
    font-size: 72px;
  }

  .about-para {
    font-size: 24px;
    max-width: 820px;
  }

  .showcase-headline {
    font-size: 76px;
  }

  .showcase-sub {
    font-size: 24px;
    max-width: 640px;
  }

  .contact-email {
    font-size: 36px;
  }

}


/* ── Animations: CSS-first hidden state ─────────────────────── */

.tagline,
.about-para,
.showcase-grid,
.contact-inner {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.tagline.visible,
.about-para.visible,
.showcase-grid.visible,
.contact-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-trigger sections — 600ms (faster than hero's 900ms) */
.about-para,
.showcase-grid,
.contact-inner {
  transition-duration: 600ms;
}

/* Reduced motion — instant visibility */
@media (prefers-reduced-motion: reduce) {
  .tagline,
  .about-para,
  .showcase-grid,
  .contact-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
