/* ============================================================
   styles.css
   Page styling for Almenry landing pages.
   Mirrors the React Native app's typography and aesthetic exactly.
   ============================================================ */


/* ============================================================
   BASE
   Defaults applied to the whole document.
   ============================================================ */

html {
  font-size: 100%;
}

body {
  font-family: var(--font-serif);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background-color: var(--color-bg);

  /* Smooth color changes when dark mode toggles */
  transition: background-color var(--transition-base),
              color var(--transition-base);
}


/* ============================================================
   LINKS
   Ink-only, no accent color — matches the app's restraint.
   ============================================================ */

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}


/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}


/* ============================================================
   CARD
   ============================================================ */

.card {
  width: 100%;
  max-width: var(--max-width-default);
  text-align: center;
}

.card--narrow {
  max-width: var(--max-width-narrow);
}


/* ============================================================
   WORDMARK
   Small mono-caps brand label. Matches the app's eyebrow style.
   ============================================================ */

.wordmark {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}


/* ============================================================
   HEADLINES
   The hero text. Uses display sizing on web — larger than the
   app's mobile h1 because web has more visual real estate.
   ============================================================ */

.headline {
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

/* Variant: slightly smaller — used on the verified page */
.headline--medium {
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-h1);
}


/* ============================================================
   TAGLINE
   The italic descriptor below the headline.
   ============================================================ */

.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-bodylarge);
  line-height: var(--leading-bodylarge);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}


/* ============================================================
   BODY TEXT
   Italic paragraphs — matches the app's italic variant.
   ============================================================ */

.body-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-italic);
  line-height: var(--leading-italic);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.body-text:last-of-type {
  margin-bottom: 0;
}


/* ============================================================
   RULE
   Short horizontal divider — matches the app's section breaks.
   ============================================================ */

.rule {
  width: 60px;
  height: 1px;
  border: 0;
  background-color: var(--color-border-strong);
  margin: var(--space-8) auto;
}


/* ============================================================
   FOOTNOTE
   Small italic text — matches the app's marginalia voice.
   ============================================================ */

.footnote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.75rem;
  line-height: var(--leading-italic);
  color: var(--color-text-faint);
}


/* ============================================================
   RESPONSIVE
   At phone widths, scale type down to match the app's actual sizes.
   ============================================================ */

@media (max-width: 600px) {
  .headline {
    font-size: var(--text-h1);
    line-height: var(--leading-h1);
    letter-spacing: var(--tracking-h1);
  }

  .headline--medium {
    font-size: var(--text-h1);
    line-height: var(--leading-h1);
    letter-spacing: var(--tracking-h1);
  }

  .tagline {
    font-size: var(--text-body);
    line-height: var(--leading-body);
  }

  .wordmark {
    margin-bottom: var(--space-6);
  }

  .rule {
    margin: var(--space-6) auto;
  }
}


/* ============================================================
   ACCESSIBILITY
   Respect reduced motion preference.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}