/* Treasure Box design tokens, shared by the site and the app (the design system: README.md has its link).
   Night is the default; data-theme="paper" on any element flips everything inside it to the light twin. */
:root, [data-theme="night"] {
  --bg: #17140F; --bg-raise: #1D1914; --surface: #221E18; --hover: #2A251E;
  --line: #332D25; --control-line: #7A6E5D;
  --text: #F3ECDF; --text-soft: #D8CEBD; --text-quiet: #B5AA98; --placeholder: #9A8F7E;
  --accent: #E9A23B; --accent-hover: #F2B458; --on-accent: #17140F; --accent-text: #E9A23B;
  --focus: #E9A23B; --danger: #F08A7A;
  color-scheme: dark;
}
[data-theme="paper"] {
  --bg: #F3ECDF; --bg-raise: #E6DBC7; --surface: #EDE4D4; --hover: #DCD0BA;
  --line: #D6CBB6; --control-line: #7A6E5D;
  --text: #17140F; --text-soft: #4E463A; --text-quiet: #645847; --placeholder: #7A6E5D;
  --accent-text: #8A5410; --focus: #17140F; --danger: #B3412F;
  color-scheme: light;
}
:root {
  /* prints look the same in every theme */
  --photo-paper: #F3ECDF; --photo-paper-back: #E6DCCB; --photo-paper-back-2: #DDD2BF; --photo-ink: #5C5142;
  --back-rose: #9A7F74; --back-sage: #71877F; --back-sand: #B39C80; --back-dusk: #5E5763;
  --night: #17140F; --cream: #F3ECDF;

  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --sans: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px;
  --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;
  --section: clamp(72px, 10vw, 136px);
  --wrap: 1200px;

  --radius-photo: 2px; --radius-tile: 3px; --radius-field: 12px; --radius-card: 16px;
  --radius-plan: 20px; --radius-sheet: 24px; --radius-pill: 999px;

  --shadow-photo: 0 24px 40px -22px rgba(0, 0, 0, .85), 0 2px 6px rgba(0, 0, 0, .35);
  --shadow-photo-back: 0 18px 30px -20px rgba(0, 0, 0, .85), 0 1px 4px rgba(0, 0, 0, .4);
  --shadow-sheet: 0 -12px 40px rgba(0, 0, 0, .5);

  --duration-quick: 180ms; --duration-screen: 240ms; --duration-fan: 350ms; --duration-land: 900ms;
  --ease-paper: cubic-bezier(.2, .7, .2, 1);
}

/* The mark (Derek, 2026-11-08: C, the chapter): one big marigold print and five small ones around it, the river's own
   shape. Drawn before every wordmark, site and app; the small prints take the text's colour, so it reads on night and
   paper alike. Same proportions as /favicon.svg (a 36-unit square: 23.2 lead, 10.3 prints, 2.5 gaps). */
.wordmark, .wm { display: inline-flex; align-items: center; gap: .36em; }
.wordmark::before, .wm::before {
  content: ""; flex: none; width: .74em; height: .74em; margin-top: .04em;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 64.4% 64.4% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 28.6% 28.6% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 50% / 28.6% 28.6% no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 28.6% 28.6% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 100% / 28.6% 28.6% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 28.6% 28.6% no-repeat;
}
