* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #1a1a18;
  --panel: #221e14;
  --panel-2: #2a2418;
  --text: #e8e6e0;
  --muted: #9a8a6a;
  --faint: #6a5a3a;
  --line: #3a3428;
  --line-strong: #7a6a4a;
  --accent: #c8a46a;
  --radius: 6px;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
html { background: var(--bg); }
body { font-family: Georgia, "Times New Roman", serif; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6; }
a { color: var(--accent); }
a:hover { color: var(--text); }

header.site { border-bottom: 0.5px solid var(--line); background: var(--panel); }
header.site .wrap { display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem; }
header.site .brand { font-size: 1.35rem; letter-spacing: 0.06em; color: var(--text); text-decoration: none; margin-right: auto; }
header.site nav a { font-family: var(--sans); font-size: 14px; color: var(--muted); text-decoration: none; margin-left: 1.1rem; letter-spacing: 0.03em; }
header.site nav a:hover, header.site nav a.here { color: var(--text); }

.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
main { flex: 1; padding: 2.5rem 0 3rem; }

.intro { max-width: 640px; margin-bottom: 2.4rem; }
.intro h1 { font-weight: normal; font-size: 2rem; letter-spacing: 0.04em; margin-bottom: 0.6rem; }
.intro p { color: var(--muted); font-size: 1.02rem; }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.4rem; }
.card { display: flex; gap: 1.1rem; background: var(--panel); border: 0.5px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.card img { width: 132px; height: 132px; object-fit: cover; object-position: top; border-radius: var(--radius); border: 0.5px solid var(--line); flex-shrink: 0; background: var(--panel-2); }
.card .body { display: flex; flex-direction: column; min-width: 0; }
.card h2 { font-weight: normal; font-size: 1.3rem; letter-spacing: 0.03em; margin-bottom: 0.35rem; }
.card p { font-size: 0.95rem; color: #cfc9bc; margin-bottom: 0.7rem; }
.tags { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.actions { margin-top: auto; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.btn { font-family: var(--sans); font-size: 13px; display: inline-block; padding: 7px 16px; border-radius: var(--radius); border: 0.5px solid var(--line-strong); background: var(--panel-2); color: var(--text); text-decoration: none; letter-spacing: 0.03em; cursor: pointer; }
.btn:hover { background: #352d1e; color: var(--text); }
.btn.quiet { border-color: var(--line); color: var(--muted); background: transparent; }
.soon { opacity: 0.55; }
.soon .ph { width: 132px; height: 132px; border-radius: var(--radius); border: 0.5px dashed var(--line-strong); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 12px; color: var(--muted); }

.notice { margin-top: 2.4rem; padding: 1rem 1.2rem; border: 0.5px solid var(--line); border-radius: var(--radius); background: var(--panel); font-family: var(--sans); font-size: 14px; color: var(--muted); }

article.page { max-width: 680px; }
article.page h1 { font-weight: normal; font-size: 1.9rem; letter-spacing: 0.04em; margin-bottom: 1.2rem; }
article.page h2 { font-weight: normal; font-size: 1.25rem; letter-spacing: 0.03em; margin: 2rem 0 0.6rem; }
article.page p, article.page li { margin-bottom: 0.7rem; color: #d6d0c4; }
article.page ol, article.page ul { padding-left: 1.3rem; }
article.page code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--panel-2); border: 0.5px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--text); }

footer.site { border-top: 0.5px solid var(--line); padding: 1.3rem 0 1.6rem; font-family: var(--sans); font-size: 12px; color: var(--faint); }
footer.site .wrap { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }

/* age gate */
#age-gate { position: fixed; inset: 0; z-index: 99999; background: rgba(14,13,10,0.97); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
#age-gate .box { max-width: 440px; background: var(--panel); border: 0.5px solid var(--line-strong); border-radius: var(--radius); padding: 1.8rem 1.8rem 1.5rem; text-align: center; font-family: Georgia, serif; color: var(--text); }
#age-gate h2 { font-weight: normal; font-size: 1.4rem; letter-spacing: 0.05em; margin-bottom: 0.8rem; }
#age-gate p { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 1.3rem; }
#age-gate .row { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 520px) {
  .shelf { grid-template-columns: 1fr; }
  .card { flex-direction: column; }
  .card img, .soon .ph { width: 100%; height: 220px; }
}
