/* Survey — named values. Components use these names only; no colour is
   written anywhere else. Light: white marble, emerald, brass. Dark: black
   marble, brass. The theme is the data-theme attribute on <html>. */

:root {
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Marcellus', 'Iowan Old Style', Georgia, serif;

  --rail: 72px;
  --list: 384px;
  --panel: 520px;
  --bar: 76px;            /* phone bottom bar */
  --frame: 10px;          /* stone thickness around a panel */
  --radius: 14px;
  --radius-s: 10px;
  --tap: 44px;            /* smallest touch target */

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* the full-screen photo viewer is dark in both themes */
  --viewer-bg: #0b0c0d;
  --viewer-ink: #f1efe9;
  --viewer-btn: rgba(241, 239, 233, 0.16);
  --viewer-btn-hover: rgba(241, 239, 233, 0.28);
}

:root,
:root[data-theme='light'] {
  color-scheme: light;
  --stone: url('../img/marble-white.jpg');
  --page: #d9d7d2;
  --surface: #fbfaf8;
  --surface-2: #f1efeb;
  --surface-3: #e7e4de;
  --ink: #1d2126;
  --ink-2: #4a5058;
  --muted: #5f666e;
  --line: #dedbd6;
  --line-strong: #bdb8ae;
  --accent: #1e5c48;
  --accent-hover: #184c3b;
  --on-accent: #ffffff;
  --accent-ink: #1e5c48;       /* accent used as text or icon on a surface */
  --accent-soft: #e2eee8;      /* selected row */
  --inlay: #a8873a;            /* the brass line */
  --danger-ink: #a3261f;
  --danger: #a3261f;
  --on-danger: #ffffff;
  --ok-ink: #1e5c48;
  --photo: #cfcbc3;            /* behind a photo while it loads */
  --pin-ring: #ffffff;
  --scrim: rgba(29, 33, 38, 0.46);
  --hi: rgba(255, 255, 255, 0.9);
  --lo: rgba(60, 64, 70, 0.32);
  --shadow: rgba(29, 33, 38, 0.26);
  --focus: #1e5c48;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --stone: url('../img/marble-black.jpg');
  --page: #101113;
  --surface: #1b1d20;
  --surface-2: #24272b;
  --surface-3: #2e3237;
  --ink: #f1efe9;
  --ink-2: #c3c0b8;
  --muted: #a09d95;
  --line: #34373c;
  --line-strong: #5a5f66;
  --accent: #d2ad5c;
  --accent-hover: #dfbd73;
  --on-accent: #1b1d20;
  --accent-ink: #d2ad5c;
  --accent-soft: #37301f;
  --inlay: #b8954a;
  --danger-ink: #f19a90;
  --danger: #b5382f;
  --on-danger: #ffffff;
  --ok-ink: #8fd0ad;
  --photo: #3a3d42;
  --pin-ring: #f1efe9;
  --scrim: rgba(0, 0, 0, 0.6);
  --hi: rgba(255, 255, 255, 0.14);
  --lo: rgba(0, 0, 0, 0.6);
  --shadow: rgba(0, 0, 0, 0.55);
  --focus: #d2ad5c;
}
