:root {
  --bg: #f8f7f4;
  --text: #181818;
  --muted: #66625c;
  --line: rgba(24, 24, 24, 0.12);
  --card: rgba(255, 255, 255, 0.55);
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

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

.page {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.compact-hero {
  padding-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  margin-bottom: 0.6rem;
}

p:last-child {
  margin-bottom: 0;
}

h1 {
  margin-bottom: 0.4rem;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.thesis {
  margin-bottom: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.links a,
.text-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 24, 24, 0.4);
  padding-bottom: 0.05rem;
}

.links a:hover,
.text-link:hover {
  border-bottom-color: var(--text);
}

.section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: none;
}

.work-title {
  font-style: italic;
}

.library-list {
  display: grid;
  gap: 1rem;
}

.book-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
}

.book-title {
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.book-author {
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.book-note {
  margin-bottom: 0;
}

.button-row {
  margin-top: 1.2rem;
}

.button-link {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: 0.62rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.button-link:hover {
  background: rgba(255, 255, 255, 1);
}

.empty-note {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .page {
    width: min(calc(100% - 1.4rem), var(--max-width));
    padding-top: 2.3rem;
  }
}
