
:root {
  --paper: #f3eee6;
  --ink: #241c18;
  --muted: #5e564e;
  --line: #d9cfc3;
  --rust: #8f3d2b;
  --rust-dark: #6e2c1e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-dark); }
a:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(243, 238, 230, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav strong {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.nav a.home { color: inherit; text-decoration: none; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover { color: var(--rust); }
.shelf-intro, .story, footer, .shelf {
  width: min(1180px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}
.shelf-intro { margin-top: 2rem; }
.shelf-intro h1, .story h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.4rem;
}
.shelf-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.shelf-intro p { color: var(--muted); max-width: 40rem; }
.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem 1.15rem;
  margin: 1.2rem auto 3.5rem;
}
.cover {
  display: block;
  color: inherit;
  text-decoration: none;
}
.cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px 12px 12px 3px;
  box-shadow: 8px 14px 28px rgba(36, 28, 24, 0.18);
  background: #efe7dc;
  transition: transform 160ms ease;
}
.cover:hover img, .cover:focus-visible img { transform: translateY(-6px); }
.cover span {
  display: block;
  margin-top: 0.55rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.25;
}
.story {
  margin: 2.5rem auto 4rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.2rem;
  align-items: start;
  width: min(920px, calc(100% - 2.4rem));
}
.story h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.book {
  position: sticky;
  top: 5.2rem;
  background: #faf7f2;
  border: 1px solid var(--line);
}
.byline, .back { color: var(--muted); margin: 0 0 1.6rem; }
.back { margin: 0 0 0.8rem; }
.prose p { margin: 0 0 1.1rem; }
footer {
  width: min(920px, calc(100% - 2.4rem));
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.shelf-note {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 980px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .story { grid-template-columns: 1fr; }
  .book { position: static; max-width: 360px; }
  .nav { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .shelf { grid-template-columns: 1fr; max-width: 420px; }
}
