/*
VOICE: quiet, literate, confident; an author's own shelf.
IDEA: a library shelf — the books stand as objects; each keeps its own colour.
PICTURE: the two covers standing on a shelf edge, lit from above.
COLOUR and TYPE: white and deep ink; plum for Absolute Truth, indigo for Subtle Anatomy; Fraunces + Instrument Sans.
LAYOUT: name and line left, shelf right; books as wide rows; short bio at the end.
*/
:root{color-scheme:light dark;--bg:light-dark(#ffffff,#111014);--ink:light-dark(#151316,#efecef);--soft:light-dark(#615c66,#aaa4ad);
--line:light-dark(#e7e3e8,#2a272e);--stage:light-dark(#f1eef2,#1a181d);--plum:#4a2160;--indigo:#16205a}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
html{scroll-behavior:smooth;scroll-padding-top:70px}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.65 "Instrument Sans",system-ui,sans-serif;overflow-x:clip}
a{color:inherit}a:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:4px}
h1,h2,h3{font-family:"Fraunces",Georgia,serif;font-weight:600;line-height:1.05;text-wrap:balance}
img{max-width:100%;height:auto;display:block}
.band{padding:clamp(48px,7vw,100px) max(5vw,18px)}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
.top{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:18px;padding:12px max(5vw,18px);background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.name{font:600 20px "Fraunces",Georgia,serif;text-decoration:none;margin-right:auto}
.links{display:flex;gap:4px}.links a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;text-decoration:none;color:var(--soft);font-weight:500}.links a:hover{color:var(--ink)}
.langs{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:999px}
.langs a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:38px;border-radius:999px;text-decoration:none;font-weight:600;font-size:13px;color:var(--soft)}
.langs a[aria-current]{background:var(--ink);color:var(--bg)}
@media(max-width:620px){.links{display:none}}

.hero{background:var(--stage)}
.hero-in{max-width:1180px;margin:auto;padding:clamp(40px,6vw,90px) max(5vw,18px) 0;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(28px,5vw,70px);align-items:end}
.htxt{padding-bottom:clamp(40px,6vw,90px)}
.hero h1{font-size:clamp(48px,7.5vw,96px);margin:0 0 20px;letter-spacing:-.02em}
.htxt p{font-size:clamp(18px,1.8vw,21px);color:var(--soft);max-width:44ch;margin:0}
.shelf{display:flex;justify-content:center;align-items:flex-end;gap:clamp(10px,2vw,24px);padding:0 4% 0;border-bottom:14px solid light-dark(#d9d3db,#2b2830);position:relative}
.shelf::after{content:"";position:absolute;left:-2%;right:-2%;bottom:-26px;height:12px;background:radial-gradient(50% 100% at 50% 0,rgb(0 0 0/.18),transparent)}
.shelf a{flex:0 1 13.5%;display:block;transition:transform .35s}
.shelf a:hover{transform:translateY(-8px)}
.shelf img{border-radius:3px 4px 4px 3px;box-shadow:0 24px 50px rgb(0 0 0/.35),inset 0 0 0 1px rgb(255 255 255/.05)}
@media(max-width:760px){.hero-in{grid-template-columns:minmax(0,1fr)}.htxt{padding-bottom:0}.shelf{max-width:440px;margin:auto;width:100%}}

.books{max-width:1180px;margin:auto}
.books>h2,.about h2{font-size:clamp(34px,4.5vw,52px);margin:0 0 clamp(24px,4vw,48px)}
.book{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:clamp(24px,5vw,64px);align-items:center;padding:clamp(28px,4vw,48px);border-radius:18px;margin-bottom:clamp(20px,3vw,32px);color:#f4f0f5}
.book.at{background:radial-gradient(110% 100% at 90% 0,#5a2f63 0,#2a1a36 45%,#1b1224 100%)}
.book.gh{background:linear-gradient(160deg,#e9bd5b 0,#c9952e 50%,#8f6218 100%);color:#22170b}
.gh .binfo h3 a{color:#1f150a}.gh .binfo .meta,.gh .readin,.gh .note{color:rgb(34 23 11/.7)}.gh .bsub{color:rgb(34 23 11/.85)}.gh .btn{background:#2b1f12;color:#f6e7c2}.gh .btn.ghost{color:#2b1f12;box-shadow:inset 0 0 0 1px rgb(43 31 18/.5)}
.book.as{background:radial-gradient(90% 100% at 20% 0,#fff3d6 0,#e6dccb 45%,#c9bca6 100%);color:#26231f}
.as .binfo h3 a{color:#1f1c18}.as .binfo .meta,.as .readin,.as .note{color:rgb(38 35 31/.68)}.as .bsub{color:rgb(38 35 31/.85)}.as .btn{background:#26231f;color:#f7f0de}.as .btn.ghost{color:#26231f;box-shadow:inset 0 0 0 1px rgb(38 35 31/.45)}
.book.ag{background:#1b2a4e;background-image:repeating-linear-gradient(135deg,rgb(255 255 255/.03) 0 2px,transparent 2px 12px)}.ag .btn{background:#d9b25a;color:#1b2a4e}
.book.mi{background:#0b0a09;box-shadow:inset 0 0 0 1px #1d1b18}.mi .btn{background:#e9c27a;color:#0b0a09}
.book.eo{background:radial-gradient(80% 70% at 70% 100%,rgb(217 105 43/.45),transparent 70%),linear-gradient(180deg,#1d3a46,#14222b)}.eo .btn{background:#ee8a4c;color:#1a1512}
.book.sa{background:radial-gradient(110% 100% at 90% 0,#2a3a86 0,#17224d 45%,#0b1230 100%)}
.bcover img{max-width:320px;margin-inline:auto;border-radius:3px;box-shadow:0 26px 60px rgb(0 0 0/.55)}
.binfo .meta{margin:0 0 10px;font-size:14px;color:rgb(255 255 255/.65)}
.binfo h3{font-size:clamp(30px,3.6vw,46px);margin:0 0 10px}.binfo h3 a{text-decoration:none;color:#fff}
.bsub{font:italic 400 clamp(18px,1.8vw,21px)/1.4 "Fraunces",Georgia,serif;margin:0 0 18px;color:rgb(255 255 255/.85)}
.binfo p{max-width:56ch}
.note{font-size:15px;color:rgb(255 255 255/.7)}
.readin{margin:22px 0 10px;font-size:14px;color:rgb(255 255 255/.65)}
.btns{display:flex;flex-wrap:wrap;gap:10px}
.btn{display:inline-flex;align-items:center;min-height:46px;padding:0 20px;border-radius:999px;background:#fff;color:#151316;font-weight:600;text-decoration:none}
.at .btn{background:#dcb06b;color:#1b1224}.sa .btn{background:#e3a83f;color:#0b1230}
.btn.ghost{background:none;color:#fff;box-shadow:inset 0 0 0 1px rgb(255 255 255/.4)}.btn:hover{filter:brightness(1.08)}
@media(max-width:760px){.book{grid-template-columns:minmax(0,1fr)}.bcover img{max-width:220px}}

.about{border-top:1px solid var(--line)}
.about-in{max-width:1080px;margin:auto;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:clamp(28px,5vw,64px);align-items:center}
.portrait{margin:0}.portrait img{width:100%;max-width:420px;margin-inline:auto;border-radius:6px;box-shadow:0 24px 60px rgb(0 0 0/.25)}
@media(max-width:760px){.about-in{grid-template-columns:minmax(0,1fr)}.portrait img{max-width:300px}}.about p{font-size:18px}
.foot{padding:30px max(5vw,18px);text-align:center;color:var(--soft);font-size:14px;border-top:1px solid var(--line)}
