/* Hallmark · genre: modern-minimal · theme: Coral · tokens
 * Paper band: light (dark-mode variant below) · display: system sans (Segoe UI Variable) · accent hue: warm coral (35°)
 * Every colour and font in the site comes from here. Pages use the names, never raw values.
 */
:root {
  color-scheme: light dark;

  /* Paper and ink: warm grey, tinted toward the accent (hue 50–70). */
  --color-paper:       oklch(97.6% 0.006 70);
  --color-paper-2:     oklch(95%   0.008 70);
  --color-paper-3:     oklch(92%   0.010 70);
  --color-surface:     oklch(98.8% 0.004 70);
  --color-rule:        oklch(88.5% 0.008 70);
  --color-rule-strong: oklch(62%   0.010 70);
  --color-ink:         oklch(21%   0.012 50);
  --color-ink-2:       oklch(37%   0.012 50);
  --color-ink-3:       oklch(47%   0.010 50);

  /* The one accent: coral. Focus rings, link underlines, ticks. Never a fill. */
  --color-accent:      oklch(62%   0.170 35);
  --color-accent-deep: oklch(49%   0.150 35);
  --color-focus:       oklch(56%   0.170 35);

  /* Buttons: the primary is ink-filled (the genre's canonical pair). */
  --color-btn:         oklch(21%   0.012 50);
  --color-btn-hover:   oklch(30%   0.014 50);
  --color-btn-ink:     oklch(97.6% 0.006 70);

  /* Brand (the app's tray glyph). Only in the logo files, listed here for reference. */
  --color-brand-from:  oklch(65.5% 0.156 262.5);  /* #5B8DEF */
  --color-brand-to:    oklch(70.9% 0.159 293.5);  /* #A78BFA */

  /* Hero illustration: a desktop wallpaper with the board on it. Same in light and dark. */
  --ill-sky-top:       oklch(44%   0.090 258);
  --ill-sky-bottom:    oklch(82%   0.070 60);
  --ill-sun:           oklch(94%   0.050 85);
  --ill-hill-far:      oklch(58%   0.060 285);
  --ill-hill-mid:      oklch(42%   0.060 272);
  --ill-hill-near:     oklch(28%   0.040 262);
  --ill-panel:         oklch(17%   0.013 271 / 0.55);
  --ill-panel-edge:    oklch(97%   0.005 270 / 0.20);
  --ill-column:        oklch(97%   0.005 270 / 0.06);
  --ill-card:          oklch(97%   0.005 270 / 0.14);
  --ill-text:          oklch(97%   0.005 270 / 0.82);
  --ill-text-dim:      oklch(97%   0.005 270 / 0.42);
  --ill-blue:          oklch(68.5% 0.148 266);    /* the app's "today" mark */
  --ill-amber:         oklch(80%   0.130 78);
  --ill-green:         oklch(74%   0.130 155);
  --ill-icon-folder:   oklch(83%   0.120 85);
  --ill-icon-bin:      oklch(80%   0.030 250);
  --ill-icon-doc:      oklch(95%   0.010 250);

  /* Type: system faces only (no font files, no requests). On Windows this is the app's and the OS's own type. */
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs:      0.8125rem;                                  /* 13px  captions, meta */
  --text-sm:      0.9375rem;                                  /* 15px  tables, nav, footer */
  --text-md:      1.0625rem;                                  /* 17px  body */
  --text-lg:      1.25rem;                                    /* 20px  lede */
  --text-xl:      1.5rem;                                     /* 24px  h3 */
  --text-2xl:     clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem);    /* h2 */
  --text-display: clamp(2.5rem, 1.55rem + 3.4vw, 4rem);       /* h1 */

  --leading-tight: 1.06;
  --leading-snug:  1.22;
  --leading-body:  1.62;

  --weight-body:   400;
  --weight-strong: 600;

  --tracking-display: -0.028em;
  --tracking-heading: -0.018em;
  --measure: 62ch;

  /* Space: 4pt scale, named by role. */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  --page-max:    72rem;
  --page-gutter: clamp(1.25rem, 4vw, 3rem);

  /* Shape and depth. */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-pill: 999px;
  --rule-hair:   1px;
  --shadow-art:  0 30px 60px -34px oklch(25% 0.04 262 / 0.55);

  /* Motion: buttons only. */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro:   120ms;
  --dur-short:   220ms;

  --z-base: 1;
  --z-raised: 10;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-paper:       oklch(17%   0.008 60);
    --color-paper-2:     oklch(20.5% 0.009 60);
    --color-paper-3:     oklch(24%   0.010 60);
    --color-surface:     oklch(21.5% 0.009 60);
    --color-rule:        oklch(31%   0.010 60);
    --color-rule-strong: oklch(52%   0.010 60);
    --color-ink:         oklch(94%   0.006 70);
    --color-ink-2:       oklch(81%   0.008 70);
    --color-ink-3:       oklch(70%   0.008 70);

    --color-accent:      oklch(72%   0.140 35);
    --color-accent-deep: oklch(76%   0.120 38);
    --color-focus:       oklch(74%   0.140 35);

    --color-btn:         oklch(94%   0.006 70);
    --color-btn-hover:   oklch(86%   0.008 70);
    --color-btn-ink:     oklch(17%   0.008 60);

    --weight-body:       380;
    --shadow-art:        none;
  }
}
