:root {
  --text: #1c1c1e;
  --muted: #5b6570;
  --bg: #fbfbfa;
  --accent: #0f6e8c;
  --accent-dark: #0b4f66;
  --accent-soft: #e5f1f4;
  --border: #e2e5e8;
  --max-width: 760px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(15, 110, 140, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 250, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

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

.site-header nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  padding-bottom: 4px;
}

.site-header nav a:hover {
  color: var(--accent-dark);
}

.site-header nav a.active {
  color: var(--accent-dark);
  font-weight: 600;
}

.site-header nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

main {
  padding: 3.5rem 1.5rem;
}

section {
  margin-bottom: 3rem;
}

h1 {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 0.6rem;
}

h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: 2px;
}

h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent-dark);
  margin-top: 1.5rem;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
}

.quote {
  font-style: italic;
  color: var(--accent-dark);
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
  margin: 1.75rem 0;
}

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

.link-list li {
  margin-bottom: 0.6rem;
}

.pub-list {
  padding-left: 1.3rem;
}

.pub-list li {
  margin-bottom: 1.1rem;
  padding-left: 0.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header nav {
    gap: 1rem;
  }

  h1 {
    font-size: 1.9rem;
  }
}
