*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fafaf8;
  margin: 0;
  padding: 0;
}

header, main, footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  padding-top: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e0e0d8;
  margin-bottom: 2rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.site-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

/* Homepage */
.home-intro {
  margin-bottom: 3rem;
  font-size: 1.2rem;
  color: #444;
  line-height: 1.6;
}

.home-intro p {
  margin: 0;
}

.home-section {
  margin-bottom: 3.5rem;
}

.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e0e0d8;
  padding-bottom: 0.5rem;
}

.home-section-header h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin: 0;
  font-family: system-ui, sans-serif;
  font-weight: 600;
}

.see-all {
  font-size: 0.8rem;
  font-family: system-ui, sans-serif;
  color: #888;
  text-decoration: none;
}

.see-all:hover {
  color: #1a1a1a;
}

.featured-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.featured-list li {
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid #e0e0d8;
}

.featured-list li:nth-child(even) {
  padding-left: 1.25rem;
  border-left: 1px solid #e0e0d8;
}

.featured-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a1a1a;
  text-decoration: none;
}

.featured-title:hover {
  text-decoration: underline;
}

.featured-date {
  font-size: 0.8rem;
  font-family: system-ui, sans-serif;
  color: #aaa;
  margin-left: 0.5rem;
}

.featured-list p {
  margin: 0.3rem 0 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.phrase-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0d8;
}

.phrase-list li:first-child {
  padding-top: 0;
}

.phrase-list a {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1a1a1a;
  text-decoration: none;
}

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

.phrase-list p {
  margin: 0.25rem 0 0;
  color: #444;
  font-size: 1rem;
}

/* Phrase page */
.phrase h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.phrase section {
  margin-bottom: 2rem;
}

.phrase h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin: 0 0 0.5rem;
  font-family: system-ui, sans-serif;
}

.examples ul {
  padding-left: 1.25rem;
}

.examples li {
  margin-bottom: 0.5rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0d8;
  margin-top: 2rem;
}

.tag {
  font-size: 0.8rem;
  font-family: system-ui, sans-serif;
  background: #f0f0ea;
  color: #555;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
}

a.tag:hover {
  background: #e4e4de;
  color: #1a1a1a;
}

.tag-title,
.page-title {
  font-size: 2rem;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0d8;
}

.related h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin: 0 0 1rem;
  font-family: system-ui, sans-serif;
}

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

.related-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0d8;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  font-weight: bold;
  color: #1a1a1a;
  text-decoration: none;
}

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

.related-list p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: #555;
}

/* Blog */
.post h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.post-date {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: #aaa;
  margin: 0 0 2rem;
}

.post-body {
  line-height: 1.8;
}

.post-body p {
  margin: 0 0 1.25rem;
}

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

.post-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0d8;
}

.post-list li:first-child {
  padding-top: 0;
}

.post-list a {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1a1a1a;
  text-decoration: none;
}

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

.post-list-date {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: #aaa;
  margin: 0.2rem 0 0.3rem;
}

.post-list p:last-child {
  margin: 0;
  color: #444;
  font-size: 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-family: system-ui, sans-serif;
  color: #666;
  text-decoration: none;
}

.back-link:hover {
  color: #1a1a1a;
}

#search {
  margin-top: 1rem;
}

#search .pagefind-ui__search-input {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  border: 1px solid #d0d0c8;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: #aaa;
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: #1a1a1a;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid #e0e0d8;
  font-size: 0.85rem;
  color: #aaa;
  font-family: system-ui, sans-serif;
}
