/* style.css — your own styles. Loaded after reset.css. */

/* ---------- Variables: change these to re-theme the whole site ---------- */
:root {
  --color-bg: #ffffff;
  --color-text: #222222;
  --color-accent: #0066cc;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: var(--font-body);
  --max-width: 800px;
  --space: 1rem;
}

/* ---------- Base ---------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--space);
}

p {
  margin-bottom: var(--space);
}

a {
  color: var(--color-accent);
}

a:hover {
  text-decoration: none;
}

/* ---------- Layout ---------- */
#site-header,
#content,
#site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space);
}

/* ---------- Header / nav ---------- */
#site-nav ul {
  display: flex;
  gap: var(--space);
}

/* ---------- Main content ---------- */
section {
  margin-bottom: calc(var(--space) * 2);
}

button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  background: var(--color-accent);
  color: #ffffff;
}

button:hover {
  opacity: 0.85;
}

/* ---------- Footer ---------- */
#site-footer {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ---------- Utility: toggle this class from JavaScript to hide things ---------- */
.hidden {
  display: none !important;
}
