/* ============================================
   DESIGN TOKENS
   All colours, fonts, and spacing are defined here.
   To change the accent colour or fonts, edit only this section.
   ============================================ */
:root {
  /* Colours */
  --color-accent: #6B153D;
  --color-bg: #FAFAFA;
  --color-text: #111111;
  --color-text-light: #555555;

  /* Fonts */
  --font-display: 'IBM Plex Mono', monospace;
  --font-body: 'Inter', sans-serif;

  /* Spacing — used for consistent padding/margins across the site */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;

  /* Layout */
  --max-width: 48rem;
}

/* ============================================
   RESET & BASE
   A minimal reset so browsers render things consistently.
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* makes width/height include padding + border */
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6; /* comfortable reading line height */
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   LAYOUT
   A simple centered container used on every page.
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;          /* centers the container horizontally */
  padding: var(--space-sm); /* small gutter on mobile */
}

/* ============================================
   NAVIGATION
   Styled by main.js which injects components/nav.html.
   ============================================ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid #E0E0E0;
  margin-bottom: var(--space-md);
}

/* The site name in the nav */
nav .nav-home {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

nav .nav-home:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* The links on the right side of the nav */
nav .nav-links {
  display: flex;
  gap: var(--space-sm); /* space between nav items */
  list-style: none;     /* removes bullet points from the <ul> */
}

nav .nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

nav .nav-links a:hover {
  color: var(--color-accent);
}
