@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&family=Roboto+Condensed:wght@400;700&display=swap');

/* ========== BASE VARIABLES ========== */
:root {
  --font-body: 'Roboto', sans-serif;
  --font-head: 'Roboto Condensed', sans-serif;

  --bg: #ffffff;
  --text: #222;
  --text-strong: #111;
  --muted: #666;
  --border: #e0e0e0;
  --surface: #f9f9f9;
  --accent: #1565c0;
  --accent-hover: #0d47a1;

  --link: #1e90ff;
  --link-hover: #63b3ff;
  --link-visited: #9370db;



}



/* Dark mode */
[data-theme="dark"] {
  --bg: #0f1115;
  --text: #e8e8e8;
  --text-strong: #ffffff;
  --muted: #b0b0b0;
  --border: #2a2a2a;
  --surface: #181a1f;
  --accent: #80b3ff;
  --accent-hover: #a8c8ff;
}

/* ========== GLOBAL ELEMENTS ========== */
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
}



/* === Global heading styles (site-wide) === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.25;
  text-align: center;          /* if you want centered everywhere */
  margin: 2rem 0 1rem;
}

/* Optional: a consistent responsive scale */
h1 { font-size: clamp(1.6rem, 3.0vw, 2.0rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h3 { font-size: clamp(1.15rem, 2.0vw, 1.35rem); }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.95rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--accent);
    color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color .2s ease, background .2s ease;
}

a:hover,
a:focus {
  color: var(--accent-hover);
  background: rgba(21, 101, 192, 0.1);
}


[data-theme="dark"] a:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

a:visited {
  color: var(--link-visited, #9370db); /* fallback: medium purple */
}





/* Basic layout helpers */
.container {
  width: min(92%, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}

section { margin-bottom: 3rem; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
  padding: 20px;
  border: 20px;
}



/* Make <pre> readable and consistent site-wide */
pre {
  background: var(--surface);
  border-radius: 0.4rem;
  padding: 1rem;
  font-family: monospace;
  overflow-x: auto;
  font-size: 0.95rem;
  color: var(--text);
  border: 1px solid var(--border);
}

dt {
  font-weight: bold;
  margin-top: 1em;
  color: var(--text);
}
dd {
  margin-left: 1.5em;
}

