/* Chihaya Atelier design tokens.
   Watercolor is the default theme. Chalk Night is the official dark theme and applies only
   when the visitor picks it with the toggle (data-theme="dark" on <html>). Values come from the
   brand guideline v1.0. Do not use --sea, --roof or --accent for body text in Watercolor. */

@font-face {
  font-family: "IM Fell DW Pica";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/im-fell-dw-pica-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IM Fell DW Pica";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/im-fell-dw-pica-latin-400-italic.woff2") format("woff2");
}

:root {
  /* colour: Watercolor */
  --paper: #f4eedc;
  --paper-2: #e8e3d2;
  --ink: #2e3836;
  --ink-soft: #606660;
  --line: #cccabb;
  --sea: #3a8790;
  --land: #a39b62;
  --leaf: #5b8d4b;
  --roof: #b4533a;
  --accent: #e8a137;

  /* postage stamp face stays pale in both themes, like real paper */
  --stamp: #fbf8ee;
  --stamp-ink: #2e3836;
  --hole: var(--paper);

  /* section band backgrounds (washes stay pale, per the guideline) */
  --bg-paper: var(--paper);
  --bg-paper2: var(--paper-2);
  --bg-sea: color-mix(in srgb, var(--sea) 13%, var(--paper));
  --bg-night: #141a2a;
  --bg-pond: #E8EFE1;
  --bg-notebook: #EFE3C4;
  --bg-land: #5A9450;

  /* type */
  --font: "IM Fell DW Pica", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --fs-display: clamp(2.75rem, 7vw, 4.75rem);
  --fs-heading: 1.75rem;
  --fs-body: 1.125rem;
  --fs-caption: 0.875rem;
  --lh-body: 1.5;

  /* space and shape */
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1080px;
  --rule: 1px solid var(--line);

  color-scheme: light;
}

:root[data-theme="dark"] {
  /* colour: Chalk Night */
  --paper: #141a2a;
  --paper-2: #212634;
  --ink: #e7e2d2;
  --ink-soft: #b2b0a8;
  --line: #3e424c;
  --sea: #7ea2c9;
  --land: #b8a888;
  --leaf: #8eb499;
  --roof: #d89f5a;
  --accent: #f5ca5c;

  --stamp: #ece6d2;
  --stamp-ink: #2a302e;

  --bg-night: color-mix(in srgb, #141a2a 70%, #000);
  --bg-pond: #17241d;
  --bg-notebook: #1d2130;
  --bg-land: #16221b;

  color-scheme: dark;
}
