:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --text-muted: #4a4a4a;
  --rule: #0b0b0b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #f4f4f2;
    --text-muted: #b7b6b1;
    --rule: #f4f4f2;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0b;
  --text: #f4f4f2;
  --text-muted: #b7b6b1;
  --rule: #f4f4f2;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --text: #0b0b0b;
  --text-muted: #4a4a4a;
  --rule: #0b0b0b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 40px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

nav.site-nav {
  display: flex;
  gap: 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

nav.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding-bottom: 4px;
}

nav.site-nav a.active {
  border-bottom: 2px solid var(--text);
}

nav.site-nav a:hover {
  opacity: 0.7;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  color: var(--text);
  cursor: pointer;
  padding-bottom: 4px;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: " \25BE";
  font-size: 12px;
}

.nav-dropdown[open] summary {
  border-bottom: 2px solid var(--text);
}

.nav-dropdown:hover summary {
  opacity: 0.7;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 8px 0;
  background: var(--bg);
  border: 1px solid var(--rule);
}

.dropdown-menu a {
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
  opacity: 1;
}

.dropdown-menu a:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

main {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

main.home-main {
  max-width: 900px;
}

.intro {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.portrait {
  width: 150px;
  height: 197px;
  object-fit: cover;
  object-position: 85% center;
  flex-shrink: 0;
}

.intro-text {
  flex: 1;
  min-width: 0;
}

h1 {
  font-size: 34px;
  font-style: italic;
  font-weight: 400;
  margin: 0 0 32px;
}

h1 strong {
  font-weight: 700;
}

.bio p {
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 22px;
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  width: 260px;
  margin: 8px 0 40px;
}

.about p {
  font-size: 17px;
  font-style: normal;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

footer {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
}

.reports-title {
  margin-bottom: 48px;
}

.report-card {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}

.report-card:first-of-type {
  border-top: none;
}

.report-card p {
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
}

.report-card h2 {
  font-size: 20px;
  font-weight: 700;
  font-style: normal;
  margin: 0 0 18px;
}

.download-btn {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: 10px 20px;
}

.download-btn:hover {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 600px) {
  .intro { flex-direction: column; }
  .portrait { width: 120px; height: 158px; }
}

@media (max-width: 480px) {
  .site-header { padding: 20px; }
  nav.site-nav { gap: 20px; font-size: 15px; }
  main { padding: 40px 20px 72px; }
  h1 { font-size: 28px; }
  .bio p, .about p { font-size: 16px; }
}
