@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/DMSans-VariableFont_opsz_wght.ttf")
    format("truetype-variations");
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/DMSans-Italic-VariableFont_opsz_wght.ttf")
    format("truetype-variations");
}

@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/GoogleSansFlex-VariableFont_GRAD_ROND_opsz_slnt_wdth_wght.ttf")
    format("truetype-variations");
}

:root {
  color-scheme: light;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;

  --green: #4ade80;
  --green-deep: #16a34a;
  --amber: #fbbf24;
  --red: #f87171;

  --surface-page: #f7fafc;
  --surface-default: #ffffff;
  --surface-raised: #f3f7fc;
  --surface-elevated: #e2e8f0;
  --surface-overlay: rgba(247, 250, 252, 0.82);

  --border-default: #dbe4f0;
  --border-subtle: #ebf1f6;
  --border-strong: #c3d1e2;
  --border-accent: rgba(37, 99, 235, 0.16);

  --text-primary: #142235;
  --text-secondary: #4e6178;
  --text-muted: #8597ab;
  --text-heading: #0c1727;
  --text-wordmark: #132338;
  --text-link: var(--blue-600);
  --text-link-hover: var(--blue-700);

  --accent-default: var(--blue-600);
  --accent-strong: var(--blue-700);
  --accent-subtle: var(--blue-400);
  --accent-muted: var(--blue-300);

  --int-ghost: rgba(37, 99, 235, 0.03);
  --int-subtle: rgba(37, 99, 235, 0.05);
  --int-hover: rgba(37, 99, 235, 0.08);
  --int-active: rgba(37, 99, 235, 0.12);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 60px rgba(15, 23, 42, 0.12);
  --shadow-card:
    0 8px 30px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-button-hover: 0 10px 26px rgba(37, 99, 235, 0.22);
  --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.12);

  --font-display:
    "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --font-body:
    "DM Sans", "Google Sans Flex", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --noise-opacity: 0.012;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.125rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

a:hover {
  color: var(--text-link-hover);
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(37, 99, 235, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
