/* ============================================
   gueringreen.com — Design System
   Hand-set typography. Warm paper. Restraint.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: Georgia, Palatino, 'Palatino Linotype', 'Book Antiqua', serif;
  color: #1a1a1a;
  background-color: #fafaf8;
  line-height: 1.7;
  padding: 0;
  margin: 0;
}

/* --- Layout --- */
.page-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: Georgia, Palatino, 'Palatino Linotype', 'Book Antiqua', serif;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid #e2e0dc;
  color: #444;
  font-style: italic;
}

blockquote p {
  margin-bottom: 0.75rem;
}

/* --- Links --- */
a {
  color: #2c5282;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: #2c5282;
}

/* --- Site Header / Nav --- */
.site-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e0dc;
}

.site-name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.site-name a {
  color: #1a1a1a;
  border-bottom: none;
}

.site-name a:hover {
  color: #2c5282;
}

.site-nav {
  margin-top: 0.5rem;
}

.site-nav a {
  font-size: 0.85rem;
  color: #718096;
  margin-right: 1.25rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: #2c5282;
  border-bottom-color: #2c5282;
}

/* --- Homepage --- */
.home-subtitle {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 0;
  margin-bottom: 0;
  font-style: italic;
}

.recent-writing {
  margin-top: 2.5rem;
}

.recent-writing h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  margin-top: 0;
}

.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e2e0dc;
}

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

.article-list a {
  font-size: 1rem;
  color: #1a1a1a;
  border-bottom: none;
  line-height: 1.4;
}

.article-list a:hover {
  color: #2c5282;
}

.article-list .article-date {
  display: block;
  font-size: 0.78rem;
  color: #718096;
  font-family: 'SFMono-Regular', Menlo, Monaco, 'Courier New', monospace;
  margin-top: 0.15rem;
}

/* --- Section Index Pages --- */
.section-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.section-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e0dc;
}

.section-links h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.section-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.section-links li a {
  font-size: 0.95rem;
  color: #1a1a1a;
}

.section-links li a:hover {
  color: #2c5282;
}

/* --- Article Pages --- */
.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.article-meta {
  font-size: 0.8rem;
  color: #718096;
  font-family: 'SFMono-Regular', Menlo, Monaco, 'Courier New', monospace;
}

.article-body {
  margin-bottom: 3rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body a {
  border-bottom-color: rgba(44, 82, 130, 0.3);
}

.article-body a:hover {
  border-bottom-color: #2c5282;
}

.article-end {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e0dc;
  font-size: 0.85rem;
  color: #718096;
}

.article-end a {
  color: #718096;
}

.article-end a:hover {
  color: #2c5282;
}

/* --- About Pages --- */
.about-body {
  margin-bottom: 2rem;
}

.about-body h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.about-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.about-body li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.contact-info {
  margin-top: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.6rem;
}

.contact-info .label {
  font-family: 'SFMono-Regular', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.8rem;
  color: #718096;
  display: inline-block;
  min-width: 5rem;
}

/* --- Footer --- */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e0dc;
  text-align: center;
  font-size: 0.8rem;
  color: #718096;
}

.site-footer .footer-name {
  margin-bottom: 0.25rem;
}

.site-footer a {
  color: #718096;
  font-size: 0.75rem;
}

.site-footer a:hover {
  color: #2c5282;
}

/* --- Utility --- */
.mono {
  font-family: 'SFMono-Regular', Menlo, Monaco, 'Courier New', monospace;
}

.muted {
  color: #718096;
}

.small {
  font-size: 0.85rem;
}

.rule {
  border: none;
  border-top: 1px solid #e2e0dc;
  margin: 2rem 0;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .page-wrapper {
    padding: 2rem 1.25rem 1.5rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .site-name {
    font-size: 1.4rem;
  }

  .site-nav a {
    margin-right: 1rem;
    font-size: 0.8rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .section-links ul {
    flex-direction: column;
    gap: 0.4rem;
  }
}
