@import url("https://fonts.googleapis.com/css2?family=Spectral&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital@0;1&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Set up variables for easy theming */
:root {
  /* Colors */
  --clr-text: #1d1d1f;
  --clr-background: #fbfbfb;
  --clr-primary: #007bff;
  --clr-secondary: #6c757d;
  --clr-accent: #e67e22;

  /* Typography */
  --font-body: "Spectral", system-ui, -apple-system, sans-serif;
  --font-heading: "Spectral", sans-serif;

  /* Sizing */
  --content-width: 800px;
  --spacing-unit: 1rem;
}

/* 3. Basic body styles for readability */
body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background-color: var(--clr-background);
  line-height: 1.5;
}

p {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* 4. Set up a centered, readable content column */
main {
  max-width: var(--content-width);
  margin-inline: auto; /* Centering */
  padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
}

/* 5. Basic styling for headings and links */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--spacing-unit);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 6. Make images and videos responsive by default */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Add this to your CSS to fix list indentation */

ul,
ol {
  /* Restore indentation */
  /* Add space below the entire list */
  margin-bottom: var(--spacing-unit);
}

.bullet {
  padding-left: 1.5rem;
}

li {
  /* Add space between each list item */
  margin-bottom: calc(var(--spacing-unit) / 2);
}

/* For nested lists, ensure they have some top margin */
li ul,
li ol {
  margin-top: calc(var(--spacing-unit) / 2);
}

li {
  font-size: 1.3rem;
}

blockquote {
  font-style: italic;
  margin: 1.5rem;
}

hr {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.checklist li {
  list-style-type: none;
}

.checklist label {
  padding-left: 0.5em; /* Adjust this value */
}

.page-links {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 4rem;
}

.nav-link a {
  color: var(--clr-text);
  font-size: 2rem;
}

.nav-link {
  list-style-type: none;
}

nav li {
  margin-top: 3rem;
}

h5 {
  text-decoration: underline;
}
