/* booknookd.com: the app's true-black look, with its purple accent. */
:root {
  --bg: #000000;
  --surface: #121212;
  --text: #f2f2f2;
  --dim: #a8a8a8;
  --muted: #8a8a8a;
  --line: #222222;
  --accent: #b9a6ff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.wordmark { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; color: var(--text); text-decoration: none; }
nav a { color: var(--dim); margin-left: 14px; text-decoration: none; font-size: 15px; }
nav a:hover, nav a:focus { color: var(--text); text-decoration: underline; }
h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 6px; letter-spacing: -0.4px; }
h2 { font-size: 20px; margin: 34px 0 8px; }
p, li { color: var(--dim); }
strong { color: var(--text); }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-weight: 600; }
td { color: var(--dim); }
footer { margin-top: 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
footer a { color: var(--muted); }

/* ── Home page (index.html): quiet, centred, few elements ─────────────────── */
.home .top { max-width: 980px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; }
.home .top .wordmark { font-size: 24px; }
.home .top nav a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-left: 22px; }
.home .top nav a:hover { color: var(--text); text-decoration: none; }
.home main { max-width: 980px; padding: 0 20px; }

.hero { text-align: center; padding: 96px 0 56px; }
.home h1 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-weight: 700; font-size: clamp(36px, 5.6vw, 56px); line-height: 1.12; letter-spacing: -.5px; margin: 0 0 18px; }
.lede { font-size: 19px; color: var(--dim); margin: 0 0 34px; }
.btn { display: inline-block; background: var(--accent); color: #111; font-weight: 700; font-size: 16px; text-decoration: none; padding: 12px 26px; border-radius: 6px; }
.btn:hover { background: #cbbcff; }
.small { font-size: 14px; color: var(--muted); margin-top: 22px; }

/* A row of made-up covers, drawn in CSS. */
.shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 8px 0 88px; }
.book { aspect-ratio: 2 / 3; border-radius: 4px; display: flex; align-items: flex-end; padding: 12px; color: rgba(255, 255, 255, .9); font: 700 14px/1.2 Georgia, serif; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.b1 { background: linear-gradient(170deg, #3d4f78, #161d30); }
.b2 { background: linear-gradient(170deg, #5b3f6e, #21162b); }
.b3 { background: linear-gradient(170deg, #4a5d43, #1a2218); }
.b4 { background: linear-gradient(170deg, #6e5537, #261d13); }
.b5 { background: linear-gradient(170deg, #34605f, #122423); }
.b6 { background: linear-gradient(170deg, #643a47, #241419); }

.features { max-width: 820px; margin: 0 auto 72px; }
.label { font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.feature-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.feature-list li { break-inside: avoid; color: #cfcfcf; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }

.plain { max-width: 820px; margin: 0 auto 80px; border-top: 1px solid var(--line); padding-top: 26px; }
.plain p { margin: 0; color: var(--dim); }

.home .bottom { max-width: 980px; margin: 0 auto; padding: 26px 20px 44px; border-top: 1px solid var(--line); }
.home .bottom nav a { margin: 0 20px 0 0; font-size: 14px; font-weight: 600; color: var(--dim); }
.home .bottom p { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .hero { padding: 64px 0 44px; }
  .home h1 br { display: none; } /* let the headline wrap naturally on phones */
  .shelf { grid-template-columns: repeat(3, 1fr); margin-bottom: 64px; }
  .feature-list { columns: 1; }
}
@media (max-width: 420px) {
  .home .top nav a:not(:last-child) { display: none; }
  .book { font-size: 12px; padding: 8px; }
}
