:root {
  --ivory: #F7F2EA;
  --ink: #2B2320;
  --rust: #B5573B;
  --sage: #8A9A7E;
  --line: #DDD3C4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--rust); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rust);
  transform: translateY(-2px);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

nav.site-nav {
  margin-top: 10px;
}

nav.site-nav a {
  color: var(--ink);
  margin-right: 22px;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

nav.site-nav a:hover { border-bottom-color: var(--rust); text-decoration: none; }

/* Hero (home page) */
.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 0 0 18px;
  max-width: 14ch;
}

.hero p {
  max-width: 52ch;
  font-size: 1.05rem;
  color: #4a4038;
}

.thread-rule {
  border: none;
  border-top: 1px dashed var(--sage);
  width: 90px;
  margin: 20px 0 0;
}

/* Main content sections */
main { padding: 48px 0 64px; }

main h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 1.9rem;
  margin-bottom: 6px;
}

main .updated {
  color: #8a7f72;
  font-size: 0.88rem;
  margin-bottom: 34px;
}

main h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 1.25rem;
  margin-top: 34px;
  margin-bottom: 10px;
}

main p, main li { color: #3c342d; font-size: 0.98rem; }

main ul { padding-left: 20px; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 40px;
  font-size: 0.92rem;
  color: #4a4038;
}

footer.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

footer.site-footer h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--ink);
}

footer.site-footer address { font-style: normal; }

footer.site-footer .legal-links a {
  display: block;
  margin-bottom: 6px;
}

footer.site-footer .copyright {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #8a7f72;
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.9rem; }
  nav.site-nav a { margin-right: 14px; display: inline-block; margin-bottom: 6px; }
}
