/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --fg: #1a1a1a;
  --fg-muted: #666;
  --bg: #fafaf7;
  --card: #ffffff;
  --border: #e6e6e1;
  --accent: #1a1a1a;
  --accent-hover: #444;
  --radius: 10px;
  --maxw: 720px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* Hero */
.hero { margin-bottom: 56px; }
.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.tagline {
  margin: 0 0 16px;
  color: var(--fg-muted);
  font-size: 1rem;
}
.bio {
  margin: 0;
  font-size: 1.05rem;
  max-width: 56ch;
}

/* Library */
.library-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.library-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.search {
  font: inherit;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  width: 220px;
  max-width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.search:focus {
  border-color: var(--accent);
}

.pdf-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.pdf-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.15s, transform 0.15s;
}
.pdf-item:hover {
  border-color: var(--accent);
}

.pdf-link {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
}

.pdf-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.pdf-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.pdf-date {
  font-size: 0.85rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.pdf-desc {
  margin: 0 0 8px;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.pdf-cta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.loading, .empty-state {
  color: var(--fg-muted);
  padding: 16px 0;
  list-style: none;
}

.foot {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.85rem;
}
.foot p { margin: 0; }

@media (max-width: 480px) {
  .wrap { padding: 40px 20px 64px; }
  .hero { margin-bottom: 40px; }
  .hero h1 { font-size: 1.7rem; }
  .search { width: 100%; }
}
