/*
  Site stylesheet.
  Loaded by the <link> tag in src/_includes/layouts/base.njk, so it applies
  to every page. Eleventy copies this file to _site/css/ without changing it.
*/

/* Custom properties (variables). Change a color here and it updates
   everywhere it is used below with var(--name). */
:root {
  --text: #1a1a1a;   /* main text */
  --muted: #666;     /* quieter text, used in the footer */
  --link: #0b5fff;   /* links */
  --border: #e5e5e5; /* thin divider lines */
}

/* Make width and height include padding and borders, which keeps
   sizing predictable. */
* {
  box-sizing: border-box;
}

/* The page itself: a single centered column that is comfortable to read. */
body {
  margin: 0 auto;      /* center the column */
  max-width: 42rem;    /* cap the line length */
  padding: 0 1rem;     /* breathing room on small screens */
  color: var(--text);
  /* Use the font of whatever device the visitor is on. No font files to load. */
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

/* Header: site name on the left, navigation on the right. */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

/* The site name link: bold, and styled like text rather than a link. */
.site-name {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

/* Space between the navigation links. */
.site-header nav a {
  margin-left: 1rem;
}

/* The page content area. */
main {
  padding: 2rem 0;
}

/* Footer: smaller, quieter text with a divider line above it. */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}
