:root {
  --bg: #111418;
  --bg-soft: #161a20;
  --card: #1c2128;
  --line: #2e3640;
  --text: #e9edf2;
  --muted: #8a96a6;
  --accent: #e5565f;
  --accent-2: #8a96a6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #232b36 0%, var(--bg) 60%) fixed;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
include-fragment { display: block; }
a { color: var(--accent); }

/* Navigation */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 1.6rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 20, 24, 0.85);
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.site-nav .brand {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

/* Headers */
header {
  text-align: center;
  padding: 4.5rem 1.25rem 2.5rem;
}
header.compact { padding: 3rem 1.25rem 1.5rem; }
.eyebrow {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
h1 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}
header.compact h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.lede {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}
.notice {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

/* Layout */
main { max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem 4rem; }
h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 2rem;
  text-align: center;
  margin: 0 0 2rem;
}
h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin: 0.75rem auto 0;
}
section + section { margin-top: 4.5rem; }
.back {
  display: inline-block;
  margin-bottom: 1.75rem;
  text-decoration: none;
  font-size: 0.9rem;
}
.back:hover, .back:focus-visible { text-decoration: underline; }

/* Book cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.75rem;
}
.book {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.book:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.book img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 521 / 800;
  object-fit: cover;
}
.info { padding: 1rem 1.1rem 1.3rem; }
.info h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}
.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.info p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.buy {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #c8323c;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.buy:hover, .buy:focus-visible { filter: brightness(1.1); transform: translateY(-1px); }

/* Series tiles */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem;
}
.series-tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.series-tile:hover, .series-tile:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.series-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}
.series-tile .name {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.9rem 1.1rem 0.1rem;
}
.series-tile .count {
  display: block;
  padding: 0 1.1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.about {
  max-width: 40rem;
  margin: 4rem auto 0;
  text-align: center;
  color: var(--muted);
}
.more-note {
  text-align: center;
  color: var(--muted);
  margin-top: 2.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
footer p { margin: 0; }
