/* Medium design system · 2026-09-11 · skin yi · used by index.html */

:root {
  /* Colour — Medium Light (yi) · 2026-09-11 */
  --color-paper:      #FFFFFF;
  --color-paper-2:    #F9F9F9;
  --color-paper-3:    #F2F2F2;
  --color-rule:       #E6E6E6;
  --color-rule-2:     #242424;
  --color-muted:      #6B6B6B;
  --color-neutral:    #757575;
  --color-ink-2:      #242424;
  --color-ink:        #242424;
  --color-accent:     #1A8917;
  --color-accent-ink: #1A8917;
  --color-focus:      #1A8917;
  --color-mark:       #E8F3E8;
  --color-selection:  #E8F3E8;

  /* Type — Medium: sans headings · serif long-read body */
  --font-display: Inter, "Source Sans 3", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:    Inter, "Source Sans 3", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Source Serif 4", "Noto Serif SC", "Source Han Serif SC", Georgia, ui-serif, serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --display-weight: 700;
  --display-style: normal;

  --text-xs:   0.75rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.625rem;
  --text-3xl:  1.875rem;
  --text-display:   clamp(1.75rem, 2.8vw + 1rem, 2rem);
  --text-display-s: 1.5rem;

  --lh-tight:   1.2;
  --lh-snug:    1.3;
  --lh-normal:  1.55;
  --lh-relaxed: 1.65;

  --tracking-display: -0.015em;
  --tracking-tight:   -0.01em;
  --tracking-normal:  0;
  --tracking-label:   0.06em;
  --tracking-wide:    0.08em;

  /* Space — 4pt scale */
  --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:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --section-gap: var(--space-3xl);
  --section-head-gap: var(--space-lg);

  --page-max:    42rem;
  --page-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure:     40rem;
  --rule-hair:   1px;
  --rule-fine:   1px;

  --radius-card: 0;
  --radius-pill: 999px;
  --radius-input: 4px;
  --rule-card: 1px;
  --shadow-card: none;

  --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;
  --dur-long:  420ms;

  --z-base:     1;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    400;
  --z-toast:    500;
  --z-tooltip:  600;
}
