:root {
  color-scheme: light dark;
  --paper:     #F7F8F7;
  --surface:   #FFFFFF;
  --ink:       #191C17;
  --muted:     #696B68;
  --hairline:  #E1E2E1;
  --underline-rest: #C0C1BF;
  --accent:    #1C830B;
  --selection: #EEE9BE;
  --scrim:     rgb(247 248 247 / .96);
  --veil:      rgb(247 248 247 / .55);
  --grid-line: rgb(25 28 23 / .06);
  --well:      #EFF0EF;
  --font-text:    "Switzer", "Switzer Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Gambarino", "Gambarino Fallback", Georgia, serif;
  --font-ml:      "Noto Sans Malayalam", "Malayalam Sangam MN", "Nirmala UI", sans-serif;
  --weight-text: 300;
  --weight-ui:   400;
  --weight-current: 600;
  --weight-display: 400;
  --step--1: 0.75rem;   --lh--1: 1.45;
  --step-0:  1rem;      --lh-0:  1.65;
  --step-1:  1.333rem;  --lh-1:  1.35;
  --step-2:  1.777rem;  --lh-2:  1.2;
  --step-3:  2.369rem;  --lh-3:  1.15;
  --step-4:  3.157rem;  --lh-4:  1.05;
  --track--1: 0.01em;
  --track-display: -0.01em;
  --u: 8px;
  --s-1: 8px;   --s-2: 16px;  --s-3: 24px;  --s-4: 32px;
  --s-6: 48px;  --s-8: 64px;  --s-12: 96px;
  --cols: 12;
  --gutter: 24px;
  --margin: 24px;
  --page-max: 1440px;
  --page-top: 96px;
  --rail-min: 13rem;
  --measure: 34em;
  --measure-prose: 33em;
  --radius: 4px;
  --radius-sheet: 20px;
  --radius-card: 16px;
  --radius-btn: 10px;
  --hit: 40px;
  --hit-pad: 4px;
  --ease-house: cubic-bezier(.16, 1, .3, 1);
  --ease-exit:  cubic-bezier(.33, 1, .68, 1);
  --dur-micro: 105ms;
  --dur-state: 240ms;
  --dur-enter: 480ms;
  --dur-exit:  160ms;
  --dur-layout: 240ms;
  --dur-layout-out: 160ms;
  --dur-sheet: 220ms;
  --rise: 8px;    --blur: 6px;
  --rise-s: 4px;  --blur-s: 4px;
  --swap-blur: 4px;
  --press: .98;
  --press-wide: .99;
  --sheet-from: .97;
  --img-dim: none;
  --marker-x: 4px;
  --nudge: 4px;
  --nudge-ext: 2px;
  --stagger-1: 0ms; --stagger-2: 56ms; --stagger-3: 96ms; --stagger-4: 120ms;
  --copy-hold: 1600ms;
  --focus-w: 2px;
  --focus-off: 3px;
  --focus-color: var(--accent);
  --marker-w: 8px;  --marker-h: 2px;  --marker-gap: 16px;
  --lightbox-pad: 48px;
  --icon: 24px;
  --arrow: 20px;
}
@media (width >= 640px) { :root { --margin: 48px; } }
@media (width < 640px)  { :root { --page-top: 48px; --lightbox-pad: 24px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper:     #141613;
    --surface:   #1C1E1B;
    --ink:       #E0E2DF;
    --muted:     #8C8E8B;
    --hairline:  #313330;
    --underline-rest: #474946;
    --img-dim:   brightness(.88);
    --accent:    #2AB814;
    --selection: #504D27;
    --scrim:     rgb(20 22 19 / .96);
    --veil:      rgb(20 22 19 / .55);
    --grid-line: rgb(234 236 233 / .06);
    --well:      #1B1D1A;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper:     #141613;
  --surface:   #1C1E1B;
  --ink:       #E0E2DF;
  --muted:     #8C8E8B;
  --hairline:  #313330;
  --underline-rest: #474946;
  --img-dim:   brightness(.88);
  --accent:    #2AB814;
  --selection: #504D27;
  --scrim:     rgb(20 22 19 / .96);
  --veil:      rgb(20 22 19 / .55);
  --grid-line: rgb(234 236 233 / .06);
  --well:      #1B1D1A;
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-contrast: more) {
  :root { --muted: #454844; --hairline: #9EA09D; --underline-rest: #696B68; }
  :root[data-theme="dark"] { --muted: #B7B9B6; --hairline: #666865; --underline-rest: #8C8E8B; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --muted: #B7B9B6; --hairline: #666865; --underline-rest: #8C8E8B; }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --rise: 0px;  --blur: 0px;  --rise-s: 0px;  --blur-s: 0px;  --swap-blur: 0px;
    --press: 1;  --press-wide: 1;  --sheet-from: 1;  --marker-x: 0px;  --nudge: 0px;  --nudge-ext: 0px;
    --dur-state: 160ms;  --dur-enter: 160ms;  --dur-layout: 0ms;  --dur-layout-out: 0ms;
    --stagger-2: 0ms; --stagger-3: 0ms; --stagger-4: 0ms;
  }
}
