/* Reset — every element's width includes its padding/border */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* System font stack: uses each OS's native UI font */
  font-family:
    system-ui,
    -apple-system,
    sans-serif;

  /* 1rem = browser default (usually 16px). Body text at 1.125rem (18px) is
     easier to read on screens than 16px */
  font-size: 1.125rem;

  /* Space between lines — 1.6x the font size. Tight text is hard to read,
     too loose feels disconnected */
  line-height: 1.6;

  color: light-dark(#1a1a1a, #f5f5f5);
  background-color: light-dark(#fafafa, #1a1a1a);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1:first-child,
h2:first-child,
h3:first-child {
  margin-top: 0;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}

p {
  /* Space between paragraphs */
  margin-bottom: 1em;
}

ol,
ul {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

main {
  /* Center the main content and add some padding */
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

nav {
  width: 100%;
}

nav ul {
  padding-left: 0;
  display: flex;
  gap: 1rem;
  justify-content: start;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: light-dark(#1a1a1a, #f5f5f5);
}

nav a[aria-current="page"] {
  font-weight: bold;
}

.index-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.index-item a {
  font-size: 1.35rem;
  font-weight: 600;
}

.index-item time,
.index-item-meta {
  display: block;
  font-size: 0.875rem;
  color: light-dark(#666, #999);
  margin-top: 0.25rem;
}

.index-item-description {
  margin-top: 0.25rem;
  margin-bottom: 0;
  color: light-dark(#444, #bbb);
}

.home-intro p:last-child {
  margin-bottom: 0;
}

.home-latest {
  margin-top: 3rem;
}
