:root {
  --bg: #fffdf5;
  --fg: #100f0f;
  --muted: #776e63;
  --accent: #509c93;
  --border: #e6dcd1;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

h1 {
  font-size: 2rem;
  font-weight: 500;
  margin-top: 16px;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--muted);
}

p {
  margin: 12px 0;
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

nav {
  display: flex;
  align-items: center;
  /* justify-content: flex-end;
  padding: 1rem 0;
  gap: 1.5rem; */
  margin-bottom: 32px;
}

.nav-left {
  margin-right: auto;
}

.nav-right {
  display: flex;
  gap: 24px;
}

.nav-right a {
  font-size: 0.9rem;
  color: var(--muted);
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

a:hover {
  border-color: var(--muted);
}

.hero {
  text-align: center;
  margin-top: 60px;
}

.hero h1 {
  font-size: 2.2rem;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.home-icon img {
  width: 20px;
  height: 20px;
}

.grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

/* mobile first: 1 column */
.grid {
  grid-template-columns: 1fr;
}

/* tablet */
@media (min-width: 500px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* desktop */
@media (min-width: 800px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.reading-year {
  margin-top: 20px;
  font-weight: 500;
}

.book {
  margin-left: 12px;
  color: var(--muted);
}

@media (max-width: 600px) {
  body {
    padding: 20px 18px 64px;
    font-size: 1.05rem;
  }

  nav {
    margin-bottom: 28px;
  }

  nav a {
    padding: 4px 0;
  }

  .nav-right {
    gap: 16px;
  }

  .nav-right a {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 2.4rem;
    line-height: 1.2;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  p {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  em {
    font-size: 0.95rem;
  }

  .hero {
    margin-top: 40px;
  }
}

h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

h3 + p {
  margin-top: 0;
  color: #776e63;
}

/* italic status line */
em {
  display: block;
  text-align: right;
  color: #509c93;
  font-style: normal;
  font-size: 0.9rem;
}