/* ===========================================================
   Aneqdotes Design System — Tokens
   Source of truth: design bundle /v1/design/h/q_cx6gNvvWyjZlS4URyqEw
   Also mirrored in:
     packages/frontends/app/src/styles.scss
     packages/frontends/app/tailwind.config.js
   =========================================================== */

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/quicksand.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/lora.woff2") format("woff2");
}

@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../assets/fonts/material-symbols-outlined.woff2") format("woff2");
}

:root {
  /* ----- Brand plum ---------------------------------------- */
  --brand-purple:        #43104e;
  --brand-purple-light:  #5a1a69;
  --brand-purple-pressed:#3a0e43;
  --brand-purple-bg:     #ecdcf0;
  --brand-purple-border: #debfe6;

  /* ----- Ink / neutrals ------------------------------------ */
  --ink:  #000000;
  --fg1:  #000000;
  --fg2:  #444444;
  --fg3:  #6d6d6d;
  --fg4:  #8f8f8f;
  --fg5:  #a5a5a5;

  --line:         #ececec;
  --line-strong:  #d9d9d9;
  --surface-0:    #ffffff;
  --surface-1:    #fafafa;
  --surface-2:    #f0f0f0;
  --surface-cream:       #f3efe7;  /* warm paper, editorial sections */
  --surface-cream-hover: #faf6ee;

  /* ----- Warn / destructive -------------------------------- */
  --warn:         #bd0000;
  --warn-bg:      #f3dada;
  --warn-hover:   #ecc9c9;
  --warn-text:    #da6666;
  --warn-stroke:  #ffb5b5;

  /* ----- Categorical pastels (three only, per design) ------ */
  --shade-pink:   #ecd4ec;   /* person threads */
  --shade-green:  #d7ecd7;   /* place threads */
  --shade-cream:  #f5ecd3;   /* timeline events / periods */

  /* ----- Accent -------------------------------------------- */
  --accent-warm:  #e48900;   /* hovered memory-card border */

  /* ----- Elevation (single canonical shadow) --------------- */
  --shadow-card:  0 4px 10px 0 rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 6px 18px 0 rgba(0, 0, 0, 0.12);
  --shadow-float: 0 10px 30px 0 rgba(0, 0, 0, 0.10);

  /* ----- Radii -------------------------------------------- */
  --r-xs:   4px;
  --r-sm:   5px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-pill: 9999px;

  /* ----- Spacing (4px base) -------------------------------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;

  /* ----- Type families ------------------------------------- */
  --font-sans:  "Quicksand", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Lora", ui-serif, Georgia, serif;
  --font-mono:  ui-monospace, "SF Mono", Menlo, monospace;

  /* ----- Semantic type tokens ------------------------------ */
  --display:          700 30px/1.1  var(--font-serif);
  --chapter-title:    700 20px/1.2  var(--font-serif);
  --chapter-eyebrow:  700 15px/1    var(--font-serif);
  --h1:               500 30px/1.35 var(--font-sans);
  --h1-mobile:        500 24px/1.35 var(--font-sans);
  --h2:               700 20px/1.2  var(--font-sans);
  --h3:               700 16px/1.25 var(--font-sans);
  --body:             500 14px/24px var(--font-sans);
  --body-regular:     400 16px/1.45 var(--font-sans);
  --label:            700 14px/1    var(--font-sans);
  --label-sm:         700 12px/1    var(--font-sans);
  --label-xs:         700 10px/10px var(--font-sans);
  --caption:          500 12px/18px var(--font-sans);
  --hint:             400 12px/16px var(--font-sans);
  --mono:             500 12px/1.4  var(--font-mono);
}

/* ----- Element defaults ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font: var(--body-regular);
  color: var(--fg1);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p { margin: 0; }

a {
  color: var(--brand-purple);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover { color: var(--brand-purple-light); }

small { font: var(--caption); color: var(--fg3); }
code, kbd, samp { font: var(--mono); }

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-feature-settings: "liga";
}
