:root {
  --ink: #eee8dc;
  --muted: #aaa397;
  --faint: #746e64;
  --line: rgba(238, 232, 220, .14);
  --bg: #11100f;
  --panel: #1a1816;
  --gold: #d4a85d;
  --gold-soft: #edd09a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'DM Sans', sans-serif; line-height: 1.6; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
a { color: inherit; }
.site-header, main, .site-footer { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.wordmark-mark { color: var(--gold); font-size: 20px; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 12px; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible, .text-link:hover, .text-link:focus-visible { color: var(--gold-soft); }
.hero { min-height: 610px; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 110px; overflow: hidden; }
.hero::after { content: ''; position: absolute; width: 560px; height: 560px; right: -180px; top: 45px; border: 1px solid rgba(212,168,93,.17); border-radius: 50%; box-shadow: 0 0 0 42px rgba(212,168,93,.025), 0 0 0 90px rgba(212,168,93,.018); }
.eyebrow { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 600; }
.eyebrow span { width: 28px; height: 1px; display: inline-block; background: var(--gold); }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }
h1 { position: relative; z-index: 1; max-width: 720px; margin: 22px 0 22px; font-size: clamp(64px, 10vw, 126px); line-height: .83; letter-spacing: -.045em; }
em { color: var(--gold-soft); font-style: italic; }
.hero-copy { position: relative; z-index: 1; max-width: 430px; margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.text-link { position: relative; z-index: 1; width: max-content; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 7px; }
.text-link span { margin-left: 8px; color: var(--gold); font-size: 16px; }
.hero-stamp { position: absolute; right: 120px; bottom: 95px; z-index: 1; display: grid; place-items: center; width: 108px; height: 108px; border: 1px solid rgba(212,168,93,.65); border-radius: 50%; color: var(--gold); transform: rotate(13deg); font-size: 8px; line-height: 1; letter-spacing: .18em; }
.hero-stamp strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 21px; font-weight: 600; letter-spacing: .04em; }
.shelf-section { padding: 86px 0 120px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-bottom: 36px; }
h2 { margin: 16px 0 0; font-size: clamp(44px, 6vw, 70px); line-height: .87; letter-spacing: -.035em; }
.shelf-section h1 { margin: 0; font-size: clamp(42px, 5vw, 58px); line-height: 1; letter-spacing: -.035em; }
.section-note { max-width: 270px; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.book-card { background: var(--panel); border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease; }
.book-card:hover { transform: translateY(-5px); border-color: rgba(212,168,93,.55); }
.cover { position: relative; aspect-ratio: .72; display: flex; flex-direction: column; justify-content: space-between; padding: 23px 22px; overflow: hidden; color: rgba(255,248,232,.88); isolation: isolate; }
.cover::before, .cover::after { content: ''; position: absolute; z-index: -1; border: 1px solid currentColor; border-radius: 50%; opacity: .23; }
.cover::before { width: 260px; height: 260px; right: -85px; top: 18%; }
.cover::after { width: 430px; height: 430px; right: -168px; top: 5%; }
.cover-poemandres { background: linear-gradient(145deg, #24362f, #101b18 75%); }
.cover-chaldean { background: linear-gradient(145deg, #403c5c, #181628 75%); }
.cover-abramelin { background: linear-gradient(145deg, #50342b, #211613 75%); }
.cover-top, .cover-bottom { font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.cover-bottom { max-width: 150px; line-height: 1.35; }
.cover-symbol { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-family: Georgia, serif; font-size: 76px; color: var(--gold-soft); opacity: .72; }
.cover-title { position: absolute; left: 22px; bottom: 68px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(35px, 4vw, 55px); line-height: .8; letter-spacing: -.04em; }
.book-info { padding: 20px 23px 21px; }
.book-number { margin-bottom: 12px; color: var(--gold); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
h3 { margin: 0 0 2px; font-size: 31px; line-height: 1; }
.author { min-height: 0; margin: 0 0 9px; color: var(--faint); font-size: 11px; line-height: 1.35; }
.book-info > p:not(.author) { min-height: 0; margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.buy-button { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; color: var(--bg); background: var(--gold-soft); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: background .2s ease; }
.buy-button:hover, .buy-button:focus-visible { background: #fff0c7; }
.buy-button span { font-size: 17px; }
.about-section { display: grid; grid-template-columns: 150px 1fr; gap: 48px; max-width: 760px; padding: 90px 0 110px; border-top: 1px solid var(--line); }
.about-mark { display: grid; place-items: center; width: 108px; height: 108px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-size: 31px; }
.about-section p { max-width: 500px; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.site-footer p { margin: 0; }
.disclosure { max-width: 500px; text-align: right; }
@media (max-width: 800px) { .book-grid { grid-template-columns: 1fr; max-width: 520px; } .cover { aspect-ratio: 1.2; } .cover-symbol { top: 50%; } .cover-title { bottom: 48px; } .section-heading { align-items: start; flex-direction: column; gap: 22px; } .hero-stamp { right: 20px; bottom: 55px; } }
@media (max-width: 560px) { .site-header, main, .site-footer { width: min(100% - 32px, var(--max)); } .site-header { padding: 20px 0; } nav { gap: 15px; } .hero { min-height: 610px; padding: 75px 0 90px; } .hero::after { right: -250px; top: 90px; } h1 { font-size: 72px; } .hero-stamp { right: 0; bottom: 50px; transform: rotate(13deg) scale(.78); } .about-section { grid-template-columns: 1fr; gap: 28px; } .site-footer { flex-direction: column; } .disclosure { text-align: left; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .book-card { transition: none; } }
