/* Global typography system (modern / minimal / healing) */

:root {
  /* Font stacks */
  --font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: "Noto Serif SC", ui-serif, Georgia, "Times New Roman", Times,
    serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  /* Type scale */
  --text-size-base: 16px;
  --text-line-base: 1.65;

  --text-size-sm: 0.9375rem; /* 15px */
  --text-size-md: 1rem; /* 16px */
  --text-size-lg: 1.125rem; /* 18px */

  --heading-line: 1.2;
  --heading-letter: -0.02em;
}

html {
  font-size: var(--text-size-base);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-size-md);
  line-height: var(--text-line-base);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Make form controls follow the same font */
button,
input,
textarea,
select {
  font: inherit;
}

/* Modern, calm defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  line-height: var(--heading-line);
  letter-spacing: var(--heading-letter);
  font-weight: 650;
}

p,
li {
  font-kerning: normal;
}

small {
  font-size: var(--text-size-sm);
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

/* Links: subtle, modern */
a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
}

/* Prefer consistent emphasis styling */
strong {
  font-weight: 650;
}
