:root {
  --text: #1f2933;
  --muted: #5b6b7a;
  --accent: #2f4f4a;
  --accent-light: #e6efec;
  --border: #d9e0e6;
  --bg: #ffffff;
  --surface: #f7f9f8;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1rem;
}
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.site-title a { color: var(--text); }
.site-title a:hover { text-decoration: none; color: var(--accent); }

.main-nav {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
}
.main-nav a { color: var(--muted); font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text);
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
  max-width: 42rem;
}

h1.page-title {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin-bottom: 0.4rem; }

.article-list { list-style: none; margin-left: 0; }
.article-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
}
.article-list h3 { margin-top: 0; }
.article-list p { color: var(--muted); margin-bottom: 0.5rem; }

.button-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.button-link:hover { background: var(--accent-light); text-decoration: none; }

.next-note {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-style: italic;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem;
}
.site-footer p { margin: 0 0 0.25rem; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  h1.page-title { font-size: 1.6rem; }
  main { padding-top: 1.5rem; }
}
