@use "../abstracts/variables" as vars;

// ------------------------------------
// Typography Settings
// ------------------------------------

// Base font family and fallback
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
  "Liberation Mono", "Courier New", monospace;

// Body font settings
body {
  font-family: $font-family-sans-serif;
  font-weight: 400;
  font-size: vars.$font-size-base;
  line-height: vars.$line-height-base;
  color: vars.$color-text;
  background-color: vars.$color-body-bg;
}

// Headings
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: $font-family-sans-serif;
  font-weight: vars.$font-weight-bold;
  line-height: 1.2;
  margin-bottom: spacer(1);
  // color: vars.$color-heading;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

// Paragraphs
p {
  margin-bottom: spacer(2);
  font-size: 1rem;
  line-height: 1.6;
}

// Links
a {
  color: theme-color("primary");
  text-decoration: none;
  transition: color 0.2s ease;

  &:hover,
  &:focus {
    color: theme-color("primary-dark");
    text-decoration: underline;
  }
}

// Small text
small {
  font-size: 0.875rem;
  // color: $color-muted;
}

// Blockquotes
blockquote {
  font-style: italic;
  // color: $color-muted;
  border-left: 4px solid theme-color("primary");
  padding-left: spacer(2);
  margin: spacer(2) 0;
}
