:root {
  --bg: #0e0e0e;
  --bg2: #161616;
  --border: #2a2a2a;
  --text: #e8e4dc;
  --muted: #6b6760;
  --accent: #c9a96e;
  --accent2: #7eb8a4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  padding: 32px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Page header */
.page-header {
  padding: 64px 0 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.page-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
}

/* Section label */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 32px 0 0;
}

/* List items */
.list-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  gap: 16px;
  transition: all 0.15s;
}

.list-item:last-child {
  border-bottom: 1px solid var(--border);
}

.list-item:hover .list-title {
  color: var(--accent);
}

.list-title {
  font-size: 15px;
  color: var(--text);
  transition: color 0.15s;
  flex: 1;
}

.list-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Collection cards */
.collection-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
  gap: 16px;
}

.collection-link:last-child {
  border-bottom: 1px solid var(--border);
}

.collection-link:hover .collection-name {
  color: var(--accent);
}

.collection-link:hover .collection-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.collection-left {
  flex: 1;
}

.collection-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.15s;
  margin-bottom: 4px;
}

.collection-desc {
  font-size: 13px;
  color: var(--muted);
}

.collection-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.collection-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.collection-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: color 0.15s, transform 0.2s;
}

/* Quote items */
.quote-item {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.quote-item:last-child {
  border-bottom: 1px solid var(--border);
}

.quote-text {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.quote-attribution {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.quote-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Book items */
.book-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.book-item:last-child {
  border-bottom: 1px solid var(--border);
}

.book-body {
  flex: 1;
}

.book-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 3px;
}

.book-author {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.book-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.book-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 2px;
}

.book-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.book-rating {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent);
}

/* Link items */
.link-entry {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
  gap: 4px;
}

.link-entry:last-child {
  border-bottom: 1px solid var(--border);
}

.link-entry:hover .link-entry-title {
  color: var(--accent);
}

.link-entry-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.link-entry-title {
  font-size: 15px;
  color: var(--text);
  transition: color 0.15s;
}

.link-entry-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.link-entry-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.link-entry-url {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Prose (for notes) */
.prose {
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin: 32px 0 12px;
}

.prose h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  margin: 24px 0 8px;
}

.prose p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.prose a {
  color: var(--accent2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.prose a:hover {
  border-color: var(--accent2);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Now page */
.now-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.now-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
}

.now-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 12px;
}

.now-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.now-section li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.now-section li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
  font-family: 'DM Mono', monospace;
}

.now-section li strong {
  color: var(--text);
  font-weight: 400;
}

/* Footer */
footer {
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s, gap 0.2s;
}

.back-link:hover {
  color: var(--accent);
  gap: 10px;
}

.footer-right {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

/* Animations */
.anim {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.anim-1 {
  animation-delay: 0.1s;
}

.anim-2 {
  animation-delay: 0.2s;
}

.anim-3 {
  animation-delay: 0.3s;
}

.anim-4 {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .book-item {
    flex-direction: column;
    gap: 8px;
  }

  .book-meta {
    flex-direction: row;
    align-items: center;
  }
}