/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/* --- Base reset --- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  background-color: #faf9f7;
  color: #2e2e2e;
  line-height: 1.7;
}

/* --- Layout --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* --- Header --- */
.site-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-title {
  font-family: "Special Elite", serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.site-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #2e2e2e;
  font-size: 0.9rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* --- Hero --- */
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1rem;
  color: #6b6b6b;
}

/* --- Intro --- */
.intro {
  margin-top: 3rem;
  font-size: 1.05rem;
}

/* --- Latest posts --- */
.latest {
  margin-top: 4rem;
}

.latest h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e6e4e1;
}

.post-list a {
  text-decoration: none;
  color: #2e2e2e;
}

.post-list a:hover {
  text-decoration: underline;
}

.date {
  font-size: 0.85rem;
  color: #8a8a8a;
}

/* --- Footer --- */
.site-footer {
  max-width: 720px;
  margin: 4rem auto 2rem;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  color: #8a8a8a;
}
