@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:wght@400&display=swap');

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

:root {
  --bg: #0e0d0c;
  --fg: #d9d4c7;
  --accent: #b89462;
  --muted: #4d4843;
  --border: #222120;
  --font: 'EB Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --measure: 640px;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --pad-y: clamp(2.5rem, 7vw, 5rem);
}

html {
  font-size: 18px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── back link ── */
.back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.back:hover {
  color: var(--accent);
}

/* ── section page layout ── */
.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}

.page-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.page-desc {
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 46ch;
}

/* ── items list ── */
.items {
  list-style: none;
  margin-top: 3.5rem;
}

.item {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

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

.item-title {
  font-size: 1.1rem;
}

.item-title a {
  transition: color 0.15s;
}

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

.item-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── entrance animation ── */
@keyframes appear {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page,
.home-inner {
  animation: appear 0.35s ease-out both;
}
