/* ============================================================
   StoryForge — Shared Design Tokens
   Single source of truth for the palette and fonts.
   Every page imports this before its own CSS file.
   Page-specific tokens (container colours, card colours, etc.)
   live in each page's own stylesheet.
   ============================================================ */

:root {
  /* Background */
  --bg:          #0F0D0A;

  /* Foreground scale — all contrast ratios against --bg */
  --fg:          #E8DECC;   /* ~14.5:1  body text                              */
  --fg-muted:    #A8967A;   /* ~6.75:1  secondary body text                    */
  --fg-dim:      #9A7E58;   /* ~5.5:1   small labels and dim supporting text   */
  --fg-label:    #A68C65;   /* ~6.4:1   informational metadata (section labels)*/
  --fg-faint:    #5C4A2A;   /* ~2.28:1  DECORATIVE ONLY — ornaments, dividers  */

  /* Accent */
  --gold:        #C9A055;   /* ~7.99:1  primary accent                         */

  /* Typography */
  --font-body:   'Crimson Pro', Georgia, serif;
  --font-ui:     'Inter', system-ui, sans-serif;
}

/* --- Accessible utility ----------------------------------- */

/* Used on auth-complete, account, and reader pages. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Birthdate trio component ----------------------------- */

/* Three-select birthdate picker (Month / Day / Year).
   Shared by auth-complete and account pages.
   Relies on --container-bg / --container-border / --container-border-active
   defined in each page's own CSS; --fg and --gold from this file. */

.birthdate-trio {
  display: flex;
  gap: 8px;
}

.birthdate-select {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  background: var(--container-bg);
  border: 0.5px solid var(--container-border);
  border-radius: 2px;
  padding: 10px 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  color-scheme: dark;
  transition: border-color 0.15s;
}

.birthdate-select:focus {
  border-color: var(--container-border-active);
  outline: none;
}

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

/* Year field carries 4-digit values — give it slightly more natural weight */
.birthdate-select:last-child {
  flex: 1.2;
}
