/* Zodiak and Ranade, by the Indian Type Foundry. The official Fontshare files, self-hosted
   unmodified as the ITF Free Font License allows (assets/fonts/ITF-FFL.txt). */
@font-face {
  font-family: "Zodiak";
  src: url("./assets/fonts/Zodiak-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zodiak";
  src: url("./assets/fonts/Zodiak-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Ranade";
  src: url("./assets/fonts/Ranade-Variable.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

/* Think Peepal design tokens, from the Build Book v1.4 (data/tokens.json).
   Warm earth is light, Forest is dark. Token names are identical in both,
   so nothing on the page asks which theme it is in (global rule 11). */

:root,
[data-theme="warm"] {
  --canvas-hi: #f7eedd;
  --canvas: #f0e2c9;
  --canvas-deep: #e8d6b6;
  --card: #fffbf2;
  --ink: #26200f;
  --ink-soft: #5a4a31;
  --ink-mute: #6f5d3c;
  --gold: #7e560b;
  --mint: #2e8b57;
  --mint-ink: #236b43;
  --leaf: #276b2b;
  --clay: #a8452a;
  --grass: #406924;
  --withered: #8a7f63;
  --soil: #7a5330;
  --track: rgba(94, 66, 26, 0.13);
  --surface: rgba(94, 66, 26, 0.07);
  --surface-2: rgba(94, 66, 26, 0.12);
  --line: rgba(94, 66, 26, 0.17);
  --bar: rgba(247, 238, 221, 0.82);
  --sun: #efca57;
  --sun-ink: #402800;
  --star: #df9f1f;
  --highlight: rgba(239, 202, 87, 0.62);
  --cta-bg: #26200f;
  --cta-ink: #f7eedd;
  /* Sections start and end on --canvas, so the page reads as one ground, not stacked slabs. */
  --canvas-grad: linear-gradient(180deg, #f0e2c9 0%, #f7eedd 50%, #f0e2c9 100%);
  --shadow: 0 30px 80px -30px rgba(64, 40, 0, 0.35), 0 8px 24px -12px rgba(64, 40, 0, 0.18);
  color-scheme: light;
}

[data-theme="forest"] {
  --canvas-hi: #1a4d3c;
  --canvas: #073120;
  --canvas-deep: #001b0d;
  --card: rgba(245, 244, 233, 0.08);
  --ink: #f5f4e9;
  --ink-soft: #d1d7c3;
  --ink-mute: #a7b6a2;
  --gold: #deb03e;
  --mint: #8ce8b4;
  --mint-ink: #8ce8b4;
  --leaf: #48a345;
  --clay: #e08a72;
  --grass: #9ecf69;
  --withered: #8a7f63;
  --soil: #5b3e22;
  --track: rgba(245, 244, 233, 0.1);
  --surface: rgba(245, 244, 233, 0.08);
  --surface-2: rgba(245, 244, 233, 0.13);
  --line: rgba(245, 244, 233, 0.14);
  --bar: rgba(0, 27, 13, 0.72);
  --sun: #efca57;
  --sun-ink: #402800;
  --star: #efca57;
  --highlight: rgba(140, 232, 180, 0.24);
  --cta-bg: #f5f4e9;
  --cta-ink: #073120;
  --canvas-grad: linear-gradient(180deg, #073120 0%, #0d3d2b 50%, #073120 100%);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 8px 24px -12px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

:root {
  --sun-card: linear-gradient(168deg, #f4e386 0%, #efca57 55%, #e6ad2e 100%);

  /* Type from the Indian Type Foundry, served free by Fontshare: Zodiak sets the headlines and
     the big numbers, with its own italic for the words that lean; Ranade sets everything else. */
  --font-display: "Zodiak", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Ranade", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: var(--font-sans);

  /* motion, from tokens.json */
  --fast: 160ms;
  --base: 280ms;
  --slow: 700ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* radius, from tokens.json */
  --r-sm: 8px;
  --r-md: 15px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 9999px;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  /* the content column's edge, for things that sit on the screen but line up with the text */
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
