/* Copyright (c) 2026 geniuskey and ArtBook contributors. MIT (see LICENSE-MIT). */
/* ArtBook 전용 스타일. 공통 shelf.css(books 저장소 tools/shelf-kit) 뒤에 읽는다.
   조명이 꺼진 전시실 벽, 분홍·청록 조명, 나무 선반 */
:root { --bg:#f7f6f3; --bg-elev:#fff; --surface:#f0eeea; --border:#dcd8d0; --text:#1b1a1f; --text-dim:#5d5a66; --text-faint:#7c7886; --accent:#b5179e; --accent-2:#0f7f8a; --shadow:#1b1a1f; --font:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif; --mono:"JetBrains Mono",ui-monospace,monospace; color-scheme:light; }
@media(prefers-color-scheme:dark) {
  :root:not([data-theme=light]) { --bg:#121116; --bg-elev:#1b1a21; --surface:#22202a; --border:#33303d; --text:#ecebf0; --text-dim:#a8a4b4; --text-faint:#8a8696; --accent:#f27ad8; --accent-2:#4fd1d9; --shadow:#000; color-scheme:dark; }
}
:root[data-theme=dark] { --bg:#121116; --bg-elev:#1b1a21; --surface:#22202a; --border:#33303d; --text:#ecebf0; --text-dim:#a8a4b4; --text-faint:#8a8696; --accent:#f27ad8; --accent-2:#4fd1d9; --shadow:#000; color-scheme:dark; }
/* 머리말: 서재와 이어지도록 테마와 상관없이 어둡게 둔다 */
.top { position:sticky; top:0; z-index:20; color:#f1eff5; background:rgba(22,20,28,.94); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid #322e3c; }
.logo small { margin-left:10px; color:#aca6bb; font-weight:500; font-size:12px; letter-spacing:0; }
.top-nav a { color:#cdc8d8; font-size:13.5px; padding:6px 10px; border-radius:8px; }
.top-nav a:hover { background:#2a2634; color:#fff; text-decoration:none; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:36px; padding:0 12px; border:1px solid #403a4d; border-radius:9px; background:#221f2b; color:#ece8f3; font-size:13px; }
.btn:hover { border-color:#f27ad8; background:#2b2736; color:#fff; text-decoration:none; }
.top :focus-visible { outline-color:#f27ad8; }
/* 서재: 어두운 전시실 벽에 분홍·청록 조명 두 개 */
.library { --lib-text:#f3f0f6; --lib-dim:#c2bccd; --lib-faint:#958fa3; --gap:22px; position:relative; overflow:hidden; color:var(--lib-text); padding:22px 0 30px;
  background:
    radial-gradient(ellipse 55% 60% at 10% -14%, rgba(242,122,216,.20), transparent 72%),
    radial-gradient(ellipse 42% 55% at 94% -10%, rgba(79,209,217,.16), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px),
    linear-gradient(165deg, #1e1b26, #15131b 52%, #1a1720); }
.library .eyebrow { color:#ffb3ea; }
.library :focus-visible { outline-color:#ffb3ea; }
.welcome h1 em { font-style:normal; background:linear-gradient(100deg,#ff8fd9,#ffd166 50%,#5ee0e8 95%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.filters button { display:inline-flex; align-items:center; gap:5px; padding:6px 11px; border:1px solid #ffffff26; border-radius:999px; background:#ffffff08; color:#e0dbe8; font-size:12.5px; white-space:nowrap; transition:background .15s, border-color .15s, color .15s; }
.filters button span { color:#9c95aa; font:600 10px var(--mono); }
.filters button[aria-pressed=true] { background:#f3f0f6; border-color:#f3f0f6; color:#1b1a1f; font-weight:600; }
.filters button[aria-pressed=true] span { color:#5d5a66; }
.search>svg { position:absolute; left:11px; color:#9c95aa; pointer-events:none; }
.search input::placeholder { color:#8e88a0; }
.search input:focus { border-color:#ffb3ea; outline:none; background:#ffffff14; }
.book-stand::after { content:""; position:absolute; left:calc(var(--gap) / -2 - .5px); right:calc(var(--gap) / -2 - .5px); top:100%; height:9px; border-radius:1px; background:linear-gradient(#e2bf91 0 1px, #b98a57 1.5px, #8d6238 4px, #5e3f22 7.5px, #2e1f12 9px); box-shadow:0 7px 9px rgba(0,0,0,.45), 0 16px 24px rgba(0,0,0,.22); }
.book-cover { container-type:inline-size; position:relative; z-index:1; display:flex; flex-direction:column; width:90%; aspect-ratio:7/10; margin:0 auto; padding:11% 9% 8% 13%; overflow:hidden; color:#fff; border-radius:3px 7px 7px 3px;
  background:linear-gradient(90deg,#0006,#ffffff24 3%,#0002 5.5%,transparent 10%,#0001 94%,#ffffff1c), linear-gradient(180deg,rgba(0,0,0,.16),transparent 42%), repeating-linear-gradient(0deg,#ffffff05 0 1px,transparent 1px 3px), var(--c);
  box-shadow:1.5px 0 0 #d8d2c8, 3.5px 1.5px 0 #f4f0e8, 5.5px 2.5px 0 #b8b0a3, 7px 10px 18px -5px rgba(0,0,0,.65);
  transition:transform .2s ease, box-shadow .2s ease; -webkit-touch-callout:none; }
.book-cover:hover { text-decoration:none; transform:translateY(-6px) rotate(-.6deg); box-shadow:1.5px 0 0 #d8d2c8, 3.5px 1.5px 0 #f4f0e8, 5.5px 2.5px 0 #b8b0a3, 9px 18px 24px -6px rgba(0,0,0,.7); }
.book-cover:focus-visible { outline:2px solid #ffb3ea; outline-offset:4px; }
/* 표지 그림은 액자에 넣은 작은 그림처럼 둔다 */
.book-art { flex:1; min-height:0; display:flex; align-items:center; margin:7% 0 6%; }
.book.writing .book-cover, .book.planned .book-cover { background:linear-gradient(90deg,#0006,#ffffff24 3%,#0002 5.5%,transparent 10%,#0001 94%,#ffffff1c), repeating-linear-gradient(135deg,#ffffff09 0 6px,transparent 6px 12px), var(--c); }
.book.planned .book-cover { filter:saturate(.35) brightness(.8); cursor:default; }
.book.planned .book-cover:hover { transform:none; }
.book-meta .writing { color:#ffd166; }
.noscript a { color:#ffb3ea; }
.experiment-image { display:block; aspect-ratio:16/9; overflow:hidden; background:#faf9f6; border-bottom:1px solid var(--border); }
.foot small { width:100%; font-size:11px; line-height:1.6; }
@media (max-width:760px) {
  .filters .sep { display:none; }
}
/* 예전처럼 한 줄에 7권(좁아지면 6권)을 꽂아 한 화면에 서가를 담는다. */
@media (min-width:1101px) { .bookcase { grid-template-columns:repeat(7,minmax(0,1fr)); --gap:22px; } }
@media (min-width:1001px) and (max-width:1100px) { .bookcase { grid-template-columns:repeat(6,minmax(0,1fr)); --gap:22px; } }
