@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-variable.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Typography */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --type-display-xl-size: clamp(2.75rem, 6vw, 4.75rem);
  --type-display-xl-line: 1.04;
  --type-heading-xl-size: clamp(2.25rem, 4.4vw, 3.5rem);
  --type-heading-xl-line: 1.08;
  --type-heading-lg-size: clamp(1.75rem, 3.2vw, 2.5rem);
  --type-heading-lg-line: 1.15;
  --type-heading-md-size: 1.5rem;
  --type-heading-md-line: 1.25;
  --type-body-lg-size: 1.125rem;
  --type-body-lg-line: 1.65;
  --type-body-size: 1rem;
  --type-body-line: 1.7;
  --type-body-sm-size: 0.875rem;
  --type-body-sm-line: 1.55;
  --type-label-size: 0.8125rem;
  --type-label-line: 1.4;
  --type-button-size: 1rem;
  --type-button-line: 1.25;
  --measure-reading: 68ch;

  /* Brand and surfaces */
  --color-brand-coral: #fa6d3f;
  --color-brand-ivory: #fffeef;
  --color-background: #f6faf8;
  --color-surface: #ffffff;
  --color-surface-soft: #e8f3ef;
  --color-surface-warm: #fff0ea;
  --color-surface-strong: #173042;
  --color-text: #1f3038;
  --color-text-strong: #173042;
  --color-muted: #617078;
  --color-border: #d7e3de;
  --color-border-strong: #a9bbb4;

  /* Interaction and semantics */
  --color-action: #fa6d3f;
  --color-action-hover: #ff805a;
  --color-action-active: #f56a43;
  --color-action-disabled: #f2c4b4;
  --color-on-action: #173042;
  --color-link: #0d6b78;
  --color-link-hover: #084f5a;
  --color-focus: #0b6874;
  --color-success: #2e7d5b;
  --color-warning: #985700;
  --color-error: #b93432;
  --color-overlay: rgb(23 48 66 / 0.72);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shape and depth */
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 999px;
  --shadow-subtle: 0 1px 2px rgb(23 48 66 / 0.08);
  --shadow-raised: 0 18px 46px rgb(23 48 66 / 0.14);
  --shadow-focus: 0 0 0 3px rgb(11 104 116 / 0.24);

  /* Layout */
  --container-wide: 74rem;
  --container-reading: 46rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(4.5rem, 9vw, 8rem);
  --section-space-compact: clamp(3rem, 6vw, 5rem);

  /* Motion */
  --duration-fast: 160ms;
  --duration-base: 280ms;
  --duration-slow: 520ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);

  /* Component contracts */
  --button-height: 3rem;
  --button-padding-inline: 1.25rem;
  --control-height: 3.25rem;
  --control-padding-inline: 1rem;
  --icon-button-size: 2.75rem;
  --media-radius: var(--radius-lg);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-background: #10242e;
    --color-surface: #17313d;
    --color-surface-soft: #1d3b43;
    --color-surface-warm: #3a2d2a;
    --color-surface-strong: #e8f3ef;
    --color-text: #f6fbf8;
    --color-text-strong: #ffffff;
    --color-muted: #bed0cb;
    --color-border: #31505a;
    --color-border-strong: #57727a;
    --color-action: #ff805a;
    --color-action-hover: #ff8a68;
    --color-action-active: #fa6d3f;
    --color-action-disabled: #704b40;
    --color-on-action: #10242e;
    --color-link: #82d6dc;
    --color-link-hover: #ace9ed;
    --color-focus: #82d6dc;
    --color-success: #76c99f;
    --color-warning: #ffc370;
    --color-error: #ff9a96;
    --color-overlay: rgb(4 15 20 / 0.82);
    --shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.22);
    --shadow-raised: 0 18px 46px rgb(0 0 0 / 0.3);
    --shadow-focus: 0 0 0 3px rgb(130 214 220 / 0.26);
  }
}
