*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #fafaf9;
  --text: #1c1917;
  --muted: #78716c;
  --border: #e7e5e4;
  --accent: #44403c;
}

html {
  font-size: 18px;
}

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

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.wrap {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header {
  margin-bottom: 3rem;
}

.site-title {
  font-size: 1.25rem;
  font-weight: normal;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a:hover,
nav a.active {
  color: var(--text);
  text-decoration: underline;
}

main h1 {
  font-size: 1.5rem;
  font-weight: normal;
  margin: 0 0 1.5rem;
}

main h2 {
  font-size: 1.1rem;
  font-weight: normal;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

main h2:first-of-type {
  margin-top: 0;
}

main p {
  margin: 0 0 1rem;
}

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

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

.list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.list li:first-child {
  padding-top: 0;
}

.list a {
  text-decoration: none;
}

.list a:hover {
  text-decoration: underline;
}

.list .book-title {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.list .meta {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.list .thesis {
  display: block;
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  line-height: 1.5;
  font-style: italic;
}

.list .thesis--sm {
  font-size: 0.8rem;
}

.list .paper-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6b6560;
  text-decoration: none;
}

.list .paper-link:hover {
  color: #57534e;
  text-decoration: underline;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  color: var(--muted);
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.social-link:hover {
  color: var(--text);
}

.social-icon {
  width: 16px;
  height: 16px;
}

.about-container {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.about-text {
  flex: 1;
}

.about-image img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(15%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.about-image img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

@media (max-width: 600px) {
  .about-container {
    flex-direction: column-reverse;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 4px;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--text);
  text-decoration: none;
}
