/* ============================================================
   StoryForge Welcome / Threshold Page
   ============================================================ */

/* --- Custom properties (page-specific only; base palette from tokens.css) --- */

:root {
  --gold-muted:              #8A7048;
  --container-bg:            rgba(201, 160, 85, 0.03);
  --container-border:        rgba(201, 160, 85, 0.18);
  --container-bg-active:     rgba(201, 160, 85, 0.06);
  --container-border-active: rgba(201, 160, 85, 0.25);
  --inner-pill-bg:           rgba(201, 160, 85, 0.04);
  --inner-pill-border:       rgba(201, 160, 85, 0.12);
  --hairline:                rgba(201, 160, 85, 0.15);
}

/* --- Reset ------------------------------------------------ */

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

/* --- Base ------------------------------------------------- */

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.8;
  min-height: 100dvh;
}

/* --- Page layout ------------------------------------------ */

.welcome-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* --- Brand block ------------------------------------------ */

.welcome-brand {
  text-align: center;
  padding: 48px 0 64px;
}

.welcome-wordmark {
  font-family: var(--font-body);
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.03em;
  font-weight: 400;
  margin: 0 0 18px;
}

.welcome-anchor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.welcome-anchor-line {
  height: 0.5px;
  width: 110px;
  background: var(--fg-faint);
}

.welcome-anchor-diamond {
  height: 5px;
  width: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* --- Content area ----------------------------------------- */

.welcome-content {
  text-align: center;
}

.welcome-surface {
  width: 100%;
}

/* --- Greeting --------------------------------------------- */

.welcome-heading {
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 16px;
  font-weight: 400;
}

.welcome-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* --- Sign-in button --------------------------------------- */

.welcome-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--gold);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: filter 0.15s;
}

.welcome-btn:hover {
  filter: brightness(1.1);
}

.welcome-btn--outlined {
  background: transparent;
  border: 0.5px solid var(--gold);
  color: var(--gold);
}

.welcome-btn--outlined:hover {
  background: var(--container-bg);
  filter: none;
}

.welcome-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Loading state ---------------------------------------- */

.welcome-loading {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  color: var(--fg-muted);
  text-align: center;
  padding: 48px 0;
}

/* --- Responsive ------------------------------------------- */

@media (max-width: 480px) {
  .welcome-page {
    padding: 32px 20px 64px;
  }

  .welcome-wordmark {
    font-size: 36px;
  }

  .welcome-anchor-line {
    width: 80px;
  }
}
