:root {
  color-scheme: light dark;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6b6459;
  --accent: #b5482a;
  --accent-ink: #ffffff;
  --border: #e4ddd1;
  --radius: 14px;
  font-family: "Iowan Old Style", "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.page__header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.page__subtitle {
  color: var(--muted);
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

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

.status.error {
  color: var(--accent);
  font-style: normal;
}

.pdf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdf-list__item {
  margin-left: 2rem;
  margin-right: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pdf-list__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(28, 26, 23, 0.25);
}

.pdf-list__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.pdf-list__icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pdf-list__name {
  font-size: 1.05rem;
  word-break: break-word;
}

.pdf-list__arrow {
  margin-left: auto;
  color: var(--muted);
  flex: none;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

.empty-state code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
