/* Campfire Library website: the look Ronny approved (docs/drafts/website-look.html), dark by default and light
   when the visitor's system prefers it. Fonts are served from this site (no requests to other sites). */
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/AtkinsonHyperlegible-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/AtkinsonHyperlegible-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Lexend; src: url(fonts/Lexend-Variable.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #17120e; --surface: #211913; --surface-2: #2b2119; --line: #3a2d22;
  --text: #f2e8da; --muted: #bba994; --ember: #e8893a; --ember-soft: #f2c46d; --note: #e9a37a;
  --radius: 10px; --gap: 16px;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f7f1e8; --surface: #fffaf3; --surface-2: #f1e7d9; --line: #e1d3c0;
    --text: #2a1f16; --muted: #6f5d4b; --ember: #b8561a; --ember-soft: #9a6a14; --note: #a24a1f; }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0 auto; max-width: 980px; background: var(--bg); color: var(--text);
  font: 17px/1.55 "Atkinson Hyperlegible", system-ui, sans-serif; }
h1, h2, h3, .brand, .nav a, .button { font-family: Lexend, system-ui, sans-serif; }
a { color: var(--ember-soft); }

header.site { display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
  padding: 14px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 600; font-size: 20px; letter-spacing: .01em; color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a.on { color: var(--text); border-bottom: 2px solid var(--ember); padding-bottom: 2px; }
.body { padding: 32px 24px; }
footer.site { border-top: 1px solid var(--line); padding: 16px 24px; color: var(--muted); font-size: 14px; }

h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; font-weight: 600; }
h2 { font-size: 24px; margin: 32px 0 12px; font-weight: 600; }
.lede { color: var(--muted); margin: 0; }
code { font: 15px/1 ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }

/* Home */
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); margin: 8px 0 32px; }
.shot { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.shot.missing { aspect-ratio: 4 / 3; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted);
  text-align: center; padding: 16px; background: var(--surface-2); }
ol.steps { margin: 0; padding-left: 1.4em; }
ol.steps li { margin: 0 0 10px; padding-left: 4px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); margin: 8px 0 0; }
.pack { display: block; text-decoration: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; }
.pack:hover { border-color: var(--ember); }
.pack-name { font-family: Lexend, system-ui, sans-serif; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 12px; }
.pack-count { color: var(--muted); font-weight: 400; font-size: 15px; white-space: nowrap; }
.pack-intro { display: block; color: var(--muted); margin: 6px 0 0; font-size: 15px; }

/* Shelf */
.genre { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 32px; }
.genre-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; }
.genre-head h2 { margin: 16px 0 4px; }
.genre-intro { color: var(--muted); margin: 8px 0 12px; }
.button { display: inline-block; background: var(--ember); color: #1a1009; text-decoration: none; font-weight: 600;
  font-size: 15px; padding: 9px 16px; border-radius: 8px; white-space: nowrap; }
ul.books { list-style: none; margin: 0; padding: 0; }
.book { padding: 14px 0; border-bottom: 1px solid var(--line); }
.book:last-child { border-bottom: 0; }
.book-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.book-title { font-weight: 700; font-size: 18px; }
.book-author { color: var(--muted); }
.book-blurb { margin: 4px 0 0; }
.book-note { margin: 6px 0 0; color: var(--note); font-size: 15px; }

/* About and Help */
.prose h2:first-child { margin-top: 16px; }
.prose p, .prose ul { max-width: 40em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 0 0 8px; }

@media (max-width: 600px) {
  .body { padding: 24px 16px; }
  header.site { padding: 12px 16px; }
  .hero h1 { font-size: 30px; }
}
