/* ==========================================================================
   Philo-Lib (哲学藏经阁) Design Tokens — Archival Paper × Pop-Up Room Book
   Matched seamlessly to the 8 Pop-Up Room Book corner paper tone (#EDE7DB)
   Fonts: LXGW ZhenKai (中文正文) · Alegreya (全站西文/希腊文) · Fahua Wenkai (点缀)
   ========================================================================== */

@font-face {
  font-family: "Fahua Wenkai";
  src: url("../assets/fonts/FahuaWenkai.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LXGW ZhenKai";
  src: url("../assets/fonts/LXGWZhenKaiSlabGB-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya";
  src: url("../assets/fonts/Alegreya-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-024F, U+0370-03FF, U+1E00-1FFF, U+2010-2027;
}

@font-face {
  font-family: "Alegreya";
  src: url("../assets/fonts/Alegreya-Italic-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020-024F, U+0370-03FF, U+1E00-1FFF, U+2010-2027;
}

:root {
  color-scheme: light only;
  /* Fonts — Alegreya automatically styles all Western/Greek inside mixed CJK */
  --font-home: "Alegreya", "Fahua Wenkai", "LXGW ZhenKai", serif;
  --font-folio: "Fahua Wenkai", "LXGW ZhenKai", serif;
  --font-zh: "Alegreya", "LXGW ZhenKai", "Kaiti SC", "Songti SC", serif;
  --font-western: "Alegreya", "Georgia", "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

  /* Archival Paper Surface Palette (exact match to 8 Pop-Up Room Book assets) */
  --bg-page: #ede7db;
  --bg-paper: #f6f2ea;
  --bg-paper-soft: #f2ece2;
  --bg-inset: #e7dfd1;

  /* Deep Architectural Ink */
  --ink-primary: #222932;
  --ink-secondary: #535c66;
  --ink-muted: #848b92;

  /* Refined Book-Cloth Accents */
  --accent: #445a71;        /* Aegean slate blue — matches hardcover book cloth */
  --accent-warm: #9a5b42;   /* Archival terracotta — inline Stephanus codes & highlights */
  --accent-soft: rgba(68, 90, 113, 0.08);
  --accent-warm-soft: rgba(154, 91, 66, 0.1);

  /* Crisp Architectural Hairlines & Soft Paper Shadows */
  --line: rgba(34, 41, 50, 0.12);
  --line-strong: rgba(34, 41, 50, 0.24);
  --shadow-paper: 0 1px 2px rgba(34, 41, 50, 0.04), 0 8px 24px rgba(34, 41, 50, 0.05);
  --shadow-float: 0 12px 36px rgba(34, 41, 50, 0.12), 0 2px 6px rgba(34, 41, 50, 0.06);

  /* Radii */
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
