/* Ancient Grove — design tokens. Every colour, face and spacing step lives here. */
/* Readex Pro — the Ancestral Trees brand face (Arabic + Latin), variable weight 160–700, SIL OFL */
@font-face { font-family: "Readex Pro"; src: url("../assets/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; src: url("../assets/fonts/readex-pro-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; src: url("../assets/fonts/readex-pro-latin-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* night forest */
  --night: #18221d;
  --forest: #1f2b25;
  --canopy: #28362e;
  --moss: #33443a;
  --line: rgba(233, 222, 196, .12);
  --line-strong: rgba(233, 222, 196, .24);

  /* parchment text on dark (body text ≥ 12:1, muted ≥ 6:1 on --night) */
  --parchment: #ece3cc;
  --parchment-soft: #c9c0a8;
  --muted: #9a9783;

  /* aged gold and bark */
  --gold: #d2ae63;
  --gold-soft: #e7cf96;
  --gold-deep: #9d7a35;
  --copper: #b8693d;
  --sage: #8fae8b;
  --focus: #f2d27f;

  --display: "Readex Pro", system-ui, sans-serif;
  --body: "Readex Pro", system-ui, sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --radius: 4px;
  --radius-lg: 18px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);

  /* tints for glass panels and shading, as r, g, b so each use sets its own opacity */
  --glass-rgb: 24, 34, 29;
  --glass-hi-rgb: 36, 50, 42;
  --shade-rgb: 17, 25, 21;
  /* one frosted glass for every panel over a picture: the same blur everywhere, tinted with --shade-rgb */
  --glass-blur: blur(16px) saturate(1.1);
  --bg-top: #22392b;
  --bg-bottom: #0f1913;

  /* Art direction: moonlit emerald, old copper and soft canopy light. */
  --ambient-green: rgba(68, 119, 84, .24);
  --ambient-gold: rgba(184, 105, 61, .13);
  --ambient-ink: rgba(7, 17, 12, .72);
  --paper-glow: rgba(236, 227, 204, .055);
  --surface-highlight: rgba(244, 226, 177, .085);
  --surface-shadow: rgba(3, 10, 7, .55);
  --ornament: rgba(210, 174, 99, .2);
  --section-edge: rgba(210, 174, 99, .16);

  color-scheme: dark;
}

/* Light theme: warm parchment paper, deep forest ink, darker gold so it reads on light.
   Areas that sit on photographs keep the night palette, so their words stay light on the picture. */
html[data-theme="light"] {
  --night: #f4efe3;
  --forest: #ebe4d3;
  --canopy: #e2d9c4;
  --moss: #d4c9ad;
  --line: rgba(38, 48, 40, .13);
  --line-strong: rgba(38, 48, 40, .25);
  --parchment: #1c2a22;
  --parchment-soft: #3a483f;
  --muted: #616a5c;
  --gold: #94701f;
  --gold-soft: #7d5e19;
  --gold-deep: #6e5216;
  --copper: #9c5229;
  --sage: #4c774a;
  --focus: #7d5e19;
  --glass-rgb: 250, 246, 236;
  --glass-hi-rgb: 255, 252, 244;
  --shade-rgb: 246, 241, 229;
  --shadow: 0 30px 70px -34px rgba(60, 50, 30, .35);
  --bg-top: #f7f3ea;
  --bg-bottom: #ece4d2;
  /* Art direction: illuminated heritage paper, forest ink and clay warmth. */
  --ambient-green: rgba(77, 119, 74, .12);
  --ambient-gold: rgba(184, 105, 61, .105);
  --ambient-ink: rgba(41, 60, 48, .07);
  --paper-glow: rgba(255, 253, 247, .74);
  --surface-highlight: rgba(255, 255, 255, .72);
  --surface-shadow: rgba(72, 56, 28, .16);
  --ornament: rgba(125, 94, 25, .2);
  --section-edge: rgba(125, 94, 25, .18);
  color-scheme: light;
}
html[data-theme="light"] :is(.portraits, .tree-card, .feature, .tour-card, .tree-hero, .masonry figure, .frame, .pop-photo, .lightbox, .lb, .tour-page, .video-modal, .map-item .thumb, .experience .play, .ring-chart, .hero-seal, .site-header) {
  --night: #18221d; --forest: #1f2b25; --canopy: #28362e; --moss: #33443a;
  --line: rgba(233, 222, 196, .12); --line-strong: rgba(233, 222, 196, .24);
  --parchment: #ece3cc; --parchment-soft: #c9c0a8; --muted: #9a9783;
  --gold: #d2ae63; --gold-soft: #e7cf96; --gold-deep: #9d7a35; --copper: #b8693d;
  --glass-rgb: 24, 34, 29; --glass-hi-rgb: 36, 50, 42; --shade-rgb: 17, 25, 21;
  /* colour is inherited as a computed value, so it must be set again here */
  color: var(--parchment);
  color-scheme: dark;
}

