:root {
  --wine: #5c0710;
  --wine-mid: #740d18;
  --wine-dark: #2b0307;
  --wine-black: #170204;
  --gold: #d8b568;
  --gold-light: #f0d992;
  --gold-dark: #9c7131;
  --paper: #f1e5cc;
  --paper-light: #fbf3df;
  --paper-deep: #e5d1ad;
  --ink: #371515;
  --muted: #735b4d;
  --line: rgba(137, 91, 38, .38);
  --serif: "Prata", Georgia, serif;
  --text: "PT Serif", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--wine-black); font-family: var(--text); font-size: 17px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible, input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
a { color: inherit; }
main { min-height: calc(100vh - 86px); background-color: var(--paper); background-image: radial-gradient(circle at 18% 14%,rgba(255,255,255,.68),transparent 28%), radial-gradient(circle at 88% 60%,rgba(167,118,55,.08),transparent 34%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M0 40h80M40 0v80M12 12l56 56M68 12L12 68' stroke='%23825a2f' stroke-width='.45' opacity='.08'/%3E%3C/svg%3E"); }
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; 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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; transform: translateY(-160%); padding: 10px 16px; color: var(--wine); background: var(--paper-light); border: 1px solid var(--gold); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.section-shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { margin: 0 0 15px; color: var(--gold-dark); font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }

.site-header { position: sticky; top: 0; z-index: 80; min-height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(32px, calc((100vw - 1240px)/2)); color: var(--gold-light); background: linear-gradient(180deg,#640b14 0%,#43060c 100%); border-bottom: 1px solid var(--gold); box-shadow: 0 8px 24px rgba(30,0,5,.2); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: rgba(216,181,104,.32); }
.site-header.scrolled { box-shadow: 0 10px 28px rgba(27,1,5,.42); }
.brand { display: flex; align-items: center; gap: 17px; color: var(--gold-light); text-decoration: none; }
.monogram { min-width: 58px; color: var(--gold-light); font-family: var(--serif); font-size: 2.05rem; line-height: 1; letter-spacing: -.16em; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.brand-copy { display: grid; gap: 4px; padding-left: 17px; border-left: 1px solid rgba(216,181,104,.5); }
.brand-copy b { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; letter-spacing: .01em; }
.brand-copy small { color: #cda95d; font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(19px, 2.35vw, 38px); }
.main-nav a { position: relative; padding: 32px 0 29px; color: #e3c77f; font-size: .84rem; font-weight: 700; letter-spacing: .035em; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 20px; height: 2px; background: var(--gold-light); transition: left .25s ease,right .25s ease; }
.main-nav a:hover, .main-nav a.active { color: #fff0b6; }
.main-nav a.active::after { left: 0; right: 0; }
.menu-button { display: none; width: 46px; height: 46px; padding: 0; color: var(--gold-light); background: transparent; border: 1px solid rgba(216,181,104,.45); }
.menu-button span { display: block; width: 23px; height: 1px; margin: 7px auto; background: currentColor; }

.view { display: none; min-height: calc(100vh - 86px); animation: view-in .38s ease both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }

.hero { position: relative; isolation: isolate; min-height: 650px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 64px; overflow: hidden; padding: 70px 72px; color: #fff5d6; background-image: linear-gradient(90deg,rgba(34,2,6,.97) 0%,rgba(71,5,12,.89) 47%,rgba(28,3,6,.34) 73%,rgba(20,2,4,.68) 100%),url("assets/covers/shadow-nevsky.webp"); background-position: center 47%; background-size: cover; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); box-shadow: 0 18px 45px rgba(52,4,11,.22); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero::before { inset: 18px; border: 1px solid rgba(216,181,104,.35); }
.hero::after { left: 0; right: 0; top: 50%; height: 280px; transform: translateY(-50%); background: linear-gradient(90deg,transparent,rgba(101,8,18,.25),transparent); border-top: 1px solid rgba(216,181,104,.16); border-bottom: 1px solid rgba(216,181,104,.16); }
.hero-copy, .hero-art { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { max-width: 770px; margin: 0; color: var(--gold-light); font-family: var(--serif); font-size: clamp(3rem,5vw,5.2rem); font-weight: 400; line-height: 1.09; letter-spacing: -.02em; text-shadow: 0 3px 18px rgba(0,0,0,.5); }
.hero h1 em { color: #fff6dd; font-style: normal; }
.lede { max-width: 660px; margin: 27px 0 34px; color: #eadbc1; font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 0 24px; color: var(--gold-light); background: var(--wine); border: 1px solid var(--gold); border-radius: 0; font-family: var(--text); font-size: .94rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: color .22s,background .22s,transform .22s; }
.button:hover { color: var(--wine-dark); background: var(--gold-light); transform: translateY(-2px); }
.button.primary { box-shadow: 0 9px 24px rgba(18,0,3,.28); }
.button.secondary { color: var(--gold-light); background: transparent; }
.text-button { padding: 9px 0; color: #f0d99a; background: none; border: 0; border-bottom: 1px solid rgba(240,217,154,.5); font-size: .94rem; cursor: pointer; }
.library-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 47px; color: #d6c19b; border-top: 1px solid rgba(216,181,104,.32); border-bottom: 1px solid rgba(216,181,104,.32); font-family: var(--sans); font-size: .73rem; letter-spacing: .07em; text-transform: uppercase; }
.library-stats span { display: flex; align-items: baseline; gap: 8px; padding: 15px 20px 15px 0; margin-right: 20px; }
.library-stats b { color: var(--gold-light); font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.hero-art { min-height: 390px; display: flex; align-items: flex-end; justify-content: flex-end; }
.hero-scene { width: min(100%,340px); margin-bottom: 26px; padding: 30px 30px 26px; background: rgba(30,2,6,.74); border: 1px solid rgba(216,181,104,.62); box-shadow: 0 18px 35px rgba(0,0,0,.34); }
.hero-seal { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 25px; color: var(--gold-light); border: 1px solid var(--gold); font-family: var(--serif); font-size: 1.15rem; }
.hero-scene blockquote { margin: 0; color: #f4dfab; font-size: 1.18rem; font-style: italic; line-height: 1.65; }
.hero-scene small { display: block; margin-top: 18px; color: var(--gold); font-family: var(--serif); font-size: .95rem; text-align: right; }

.home-library { padding-block: 90px 105px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 38px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-heading::after { content: "◆"; margin: 0 0 -28px 10px; color: var(--gold-dark); font-size: .72rem; }
.section-heading h2, .studio-copy h2 { margin: 0; color: var(--wine); font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.7rem); font-weight: 400; }
.section-heading a { margin-bottom: 8px; color: var(--wine); font-size: .95rem; font-weight: 700; text-decoration: none; }
.series-preview { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 17px; }
.series-card { position: relative; min-height: 310px; display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding: 30px 25px; color: #f8e8ba; background: linear-gradient(150deg,var(--series-color),#270308 86%); border: 1px solid var(--gold-dark); box-shadow: inset 0 0 0 5px rgba(216,181,104,.08),0 12px 22px rgba(66,14,18,.14); cursor: pointer; transition: transform .25s,box-shadow .25s; }
.series-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(216,181,104,.24); }
.series-card:hover { transform: translateY(-5px); box-shadow: 0 18px 30px rgba(66,14,18,.24); }
.series-card > * { position: relative; z-index: 1; }
.series-card h3 { margin: 0 0 14px; color: #fff1c7; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; line-height: 1.35; }
.series-card[data-series-link="beyond"] h3 { font-size: 1.15rem; letter-spacing: .035em; }
.series-card p { margin: 0; color: #ddcda7; font-size: .94rem; line-height: 1.55; }
.studio-teaser { min-height: 480px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; margin-bottom: 100px; padding: 62px 68px; overflow: hidden; color: #f6e9c6; background: linear-gradient(145deg,#630a14,#2a0307); border: 1px solid var(--gold-dark); box-shadow: inset 0 0 0 8px rgba(216,181,104,.06); }
.studio-copy .eyebrow { color: var(--gold); }
.studio-copy h2 { color: var(--gold-light); }
.studio-copy p:not(.eyebrow) { max-width: 470px; color: #dbcba8; font-size: 1rem; line-height: 1.75; }
.studio-copy > div { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.studio-copy a { color: #f2d990; font-size: .95rem; text-decoration: none; border-bottom: 1px solid rgba(216,181,104,.52); padding-bottom: 5px; }
.mini-gallery { position: relative; height: 360px; }
.mini-gallery i { position: absolute; display: block; width: 210px; height: 290px; background-position: center; background-size: cover; border: 8px solid #ead8b7; box-shadow: 0 18px 35px rgba(0,0,0,.42); }
.mini-gallery i:nth-child(1) { left: 0; top: 52px; transform: rotate(-8deg); background-image: url("assets/gallery/artwork-01.webp"); }
.mini-gallery i:nth-child(2) { left: 29%; top: 15px; z-index: 2; transform: rotate(2deg); background-image: url("assets/gallery/artwork-05.webp"); }
.mini-gallery i:nth-child(3) { right: 0; top: 64px; transform: rotate(9deg); background-image: url("assets/gallery/artwork-09.webp"); }

.page-intro { position: relative; isolation: isolate; overflow: hidden; min-height: 280px; padding: 66px 62px 58px; color: #f7e8bc; background: linear-gradient(120deg,#650a14,#280306); border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.page-intro::before { content: ""; position: absolute; z-index: -1; inset: 13px; border: 1px solid rgba(216,181,104,.25); }
.page-intro::after { content: "◆  ◆  ◆"; position: absolute; right: 55px; bottom: 34px; color: rgba(216,181,104,.62); letter-spacing: .55em; }
.page-intro .eyebrow { color: var(--gold); }
.page-intro h1, .about-copy h1, .contact-card h1 { margin: 0; color: var(--gold-light); font-family: var(--serif); font-size: clamp(3rem,6vw,5.4rem); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; }
.page-intro > p:last-child { max-width: 690px; margin: 20px 0 0; color: #ead9af; font-size: 1.05rem; line-height: 1.7; }
.books-view .page-intro { background-image: linear-gradient(90deg,rgba(60,3,10,.97) 0%,rgba(83,6,15,.85) 52%,rgba(31,2,5,.58) 100%),url("assets/covers/shadow-nevsky.webp"); background-position: center 42%; background-size: cover; }
.paintings-view .page-intro { background-image: linear-gradient(90deg,rgba(57,3,9,.97),rgba(72,5,13,.84) 55%,rgba(33,2,6,.45)),url("assets/gallery/artwork-07.webp"); background-position: center 38%; background-size: cover; }

.library-layout { display: grid; grid-template-columns: 265px minmax(0,1fr); gap: 28px; padding-block: 34px 100px; }
.library-sidebar { align-self: start; position: sticky; top: 112px; color: #f0ddb0; background: linear-gradient(180deg,#5c0710,#2d0307); border: 1px solid var(--gold-dark); box-shadow: inset 0 0 0 6px rgba(216,181,104,.055),0 13px 25px rgba(72,13,17,.14); }
.sidebar-title { margin: 0; padding: 20px 22px; color: var(--gold-light); border-bottom: 1px solid rgba(216,181,104,.45); font-family: var(--serif); font-size: 1.03rem; }
.library-controls { display: grid; gap: 20px; padding: 13px 13px 20px; }
.filter-chips { display: grid; }
.filter-chip { width: 100%; min-height: 48px; padding: 10px 13px; color: #ead9ae; background: transparent; border: 0; border-bottom: 1px solid rgba(216,181,104,.16); font-size: .94rem; text-align: left; cursor: pointer; transition: background .2s,color .2s; }
.filter-chip::after { content: "›"; float: right; color: var(--gold); font-size: 1.2rem; }
.filter-chip:hover, .filter-chip.active { color: #fff1c4; background: #8b0f1c; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 4px 10px; color: #e9d8ad; border: 1px solid rgba(216,181,104,.45); }
.search-field svg { width: 18px; flex: 0 0 auto; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.search-field input { width: 100%; min-width: 0; padding: 10px 0; color: #fff1c9; background: transparent; border: 0; outline: 0; font-size: .9rem; }
.search-field input::placeholder { color: #c4a878; }
.book-results-meta { display: grid; gap: 8px; min-height: 62px; padding: 8px 23px 18px; color: #d6bf8c; font-size: .87rem; }
.book-results-meta p { margin: 0; }
.quiet-button { justify-self: start; padding: 0; color: #f2d68d; background: none; border: 0; border-bottom: 1px solid currentColor; font-size: .87rem; cursor: pointer; }
.sidebar-quote { margin: 6px 22px 27px; padding: 23px 0 0; color: #e3cfa1; border-top: 1px solid rgba(216,181,104,.36); font-size: .98rem; font-style: italic; line-height: 1.65; }
.library-results { min-width: 0; }
.books-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px 14px; }
.book-card { min-width: 0; padding: 9px 9px 12px; background: rgba(251,243,223,.72); border: 1px solid var(--line); box-shadow: inset 0 0 0 4px rgba(255,255,255,.32); }
.book-cover { position: relative; isolation: isolate; aspect-ratio: .667; display: flex; flex-direction: column; overflow: hidden; padding: 20px 17px; color: #fff2d0; background: var(--cover); border: 1px solid #7f5929; box-shadow: 0 8px 16px rgba(57,18,17,.22); cursor: pointer; transition: transform .26s,box-shadow .26s; }
.book-cover:hover { transform: translateY(-3px); box-shadow: 0 13px 22px rgba(57,18,17,.28); }
.book-cover::before { content: ""; position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(180deg,rgba(12,2,3,.11) 0%,rgba(12,2,3,.02) 34%,rgba(22,3,7,.23) 56%,rgba(16,1,4,.95) 100%),var(--cover-image); background-position: center; background-size: cover; transition: transform .45s ease; }
.book-cover::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(226,194,122,.32); pointer-events: none; }
.book-cover:hover::before { transform: scale(1.025); }
.book-cover > * { position: relative; z-index: 1; text-shadow: 0 2px 9px rgba(0,0,0,.86); }
.cover-topline { display: flex; align-items: center; justify-content: center; margin: -5px -3px 0; padding: 10px; background: rgba(26,2,6,.72); border-top: 1px solid rgba(216,181,104,.62); border-bottom: 1px solid rgba(216,181,104,.5); text-align: center; }
.cover-author { color: #fff2c8; font-family: var(--serif); font-size: clamp(.66rem,1vw,.82rem); line-height: 1.15; letter-spacing: .035em; }
.cover-series { margin-top: auto; color: #e1c995; font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.book-cover h2 { margin: 8px 0 9px; color: #fff1c7; font-family: var(--serif); font-size: clamp(1.03rem,1.6vw,1.45rem); font-weight: 400; line-height: 1.17; }
.book-meta { padding: 12px 5px 2px; text-align: center; }
.book-number { color: var(--gold-dark); font-size: .78rem; }
.book-meta h3 { min-height: 44px; margin: 4px 0 8px; color: var(--wine); font-family: var(--serif); font-size: 1rem; font-weight: 400; line-height: 1.35; }
.book-meta p { min-height: 68px; margin: 0 0 12px; color: var(--muted); font-size: .86rem; line-height: 1.45; text-align: left; }
.book-open { width: 100%; min-height: 37px; padding: 7px 10px; color: #f3d890; background: var(--wine); border: 1px solid var(--gold-dark); font-size: .87rem; cursor: pointer; }
.book-open:hover { color: var(--wine); background: var(--gold-light); }
.empty-state { padding: 70px 0 100px; text-align: center; }
.empty-state span { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--wine); border: 1px solid var(--gold-dark); font-family: var(--serif); }
.empty-state h2 { color: var(--wine); font-family: var(--serif); font-weight: 400; }
.empty-state p { color: var(--muted); font-size: .95rem; }

.poetry-layout { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 34px; padding-block: 42px 100px; }
.poem-index { align-self: start; position: sticky; top: 110px; max-height: calc(100vh - 135px); overflow-y: auto; padding: 18px 15px 20px; color: #ead7aa; background: linear-gradient(180deg,#5a0710,#2b0307); border: 1px solid var(--gold-dark); scrollbar-width: thin; scrollbar-color: var(--gold-dark) transparent; }
.poem-index > p { margin: 0 0 13px; padding: 0 8px 14px; color: var(--gold-light); border-bottom: 1px solid rgba(216,181,104,.38); font-family: var(--serif); font-size: 1rem; }
#poem-list { border-top: 0; }
.poem-select { width: 100%; display: flex; align-items: center; gap: 13px; padding: 12px 8px; color: #dfcca0; background: none; border: 0; border-bottom: 1px solid rgba(216,181,104,.15); text-align: left; font-size: .92rem; cursor: pointer; }
.poem-select span { color: var(--gold); font-family: var(--serif); font-size: .78rem; }
.poem-select:hover, .poem-select.active { color: #fff0bd; background: #830e1a; }
.cocktail-link { width: 100%; display: grid; grid-template-columns: 1fr auto; margin-top: 18px; padding: 18px; color: #fff0bd; background: #850e1a; border: 1px solid var(--gold-dark); text-align: left; cursor: pointer; }
.cocktail-link span { grid-column: 1/-1; margin-bottom: 5px; color: #d4b76d; font-family: var(--sans); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.cocktail-link b { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.cocktail-link i { align-self: center; color: var(--gold); font-style: normal; }
.poem-reader { min-height: 720px; padding: 52px clamp(30px,8%,86px) 64px; background: rgba(251,243,223,.83); border: 1px solid var(--gold-dark); box-shadow: inset 0 0 0 8px rgba(180,132,66,.07),0 15px 34px rgba(75,31,22,.08); }
.poem-reader header { padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.poem-reader header span { color: var(--gold-dark); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.poem-reader h2 { margin: 12px 0 0; color: var(--wine); font-family: var(--serif); font-size: clamp(2rem,4vw,3.4rem); font-weight: 400; }
.poem-body { max-width: 640px; padding-top: 34px; white-space: pre-line; color: #3d2921; font-size: 1.1rem; line-height: 1.95; }
.poem-note { margin-top: 45px; padding-top: 18px; color: var(--gold-dark); border-top: 1px solid var(--line); font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 27px 22px; padding-block: 42px 100px; }
.painting-card { position: relative; padding: 11px; background: rgba(251,243,223,.78); border: 1px solid var(--line); box-shadow: inset 0 0 0 4px rgba(255,255,255,.3); }
.painting-art { position: relative; aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; background: #231014; border: 8px solid #ead8b7; outline: 1px solid var(--gold-dark); box-shadow: 0 12px 24px rgba(57,18,17,.2); cursor: pointer; transition: transform .28s,box-shadow .28s; }
.painting-art:hover { transform: translateY(-4px); box-shadow: 0 17px 28px rgba(57,18,17,.26); }
.painting-art img { width: 100%; height: 100%; display: block; object-fit: contain; }

.about-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding-block: 72px 62px; }
.author-mark { position: relative; min-height: 560px; display: grid; place-items: center; overflow: hidden; color: var(--gold-light); background: linear-gradient(150deg,#730b16,#2a0307); border: 1px solid var(--gold-dark); box-shadow: inset 0 0 0 10px rgba(216,181,104,.055); }
.author-mark::before, .author-mark::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%) rotate(45deg); border: 1px solid rgba(216,181,104,.32); }
.author-mark::before { width: 280px; height: 280px; }
.author-mark::after { width: 210px; height: 210px; }
.author-mark span { position: relative; z-index: 2; font-family: var(--serif); font-size: 6rem; letter-spacing: -.12em; }
.author-mark i { position: absolute; bottom: 30px; color: var(--gold); font-family: var(--sans); font-size: .72rem; font-style: normal; letter-spacing: .22em; text-transform: uppercase; }
.about-copy { padding-top: 28px; }
.about-copy .eyebrow { color: var(--gold-dark); }
.about-copy h1 { color: var(--wine); }
.about-lede { margin: 28px 0 24px; color: var(--wine); font-family: var(--serif); font-size: 1.35rem; line-height: 1.65; }
.about-copy > p:not(.eyebrow):not(.about-lede) { color: var(--muted); font-size: 1rem; line-height: 1.85; }
.about-copy blockquote { margin: 37px 0 0; padding: 24px 0 0 26px; color: var(--wine); border-top: 1px solid var(--line); border-left: 3px solid var(--gold-dark); font-family: var(--serif); font-size: 1.18rem; font-style: italic; line-height: 1.7; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; padding-bottom: 95px; }
.principles article { padding: 29px; background: rgba(251,243,223,.6); border: 1px solid var(--line); border-top: 4px solid var(--wine); }
.principles span { color: var(--gold-dark); font-family: var(--serif); }
.principles h2 { margin: 13px 0; color: var(--wine); font-family: var(--serif); font-size: 1.28rem; font-weight: 400; }
.principles p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.65; }

.contact-card { margin-block: 68px 95px; padding: 58px; color: #f2e2bb; background: linear-gradient(140deg,#650a14,#270306); border: 1px solid var(--gold-dark); box-shadow: inset 0 0 0 9px rgba(216,181,104,.055); }
.contact-card > div:first-child { display: grid; grid-template-columns: .8fr 1.2fr; gap: 68px; align-items: end; padding-bottom: 42px; border-bottom: 1px solid rgba(216,181,104,.28); }
.contact-card .eyebrow { color: var(--gold); }
.contact-card > div:first-child p:last-child { max-width: 540px; margin: 0; color: #dac8a3; font-size: 1rem; line-height: 1.75; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 31px; }
.contact-options article { padding: 27px; border: 1px solid rgba(216,181,104,.3); }
.contact-options span { color: var(--gold); font-family: var(--sans); font-size: .69rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-options h2 { margin: 13px 0 24px; color: #fff0bd; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.45; }
.contact-options h2 em { color: #d8bc76; font-style: normal; }
.contact-options p { color: #d2c09d; font-size: .95rem; line-height: 1.7; }
.quiet-link { color: #f0d68d; font-size: .92rem; text-decoration: none; border-bottom: 1px solid rgba(216,181,104,.5); }

.site-footer { min-height: 154px; display: flex; align-items: center; justify-content: space-between; padding: 30px max(32px,calc((100vw - 1240px)/2)); color: #e6cf94; background: linear-gradient(180deg,#380409,#1b0204); border-top: 1px solid var(--gold-dark); }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand .monogram { min-width: 50px; }
.footer-brand p { font-family: var(--serif); font-size: .95rem; }
.footer-brand small, .footer-note { color: #b99b5c; font-family: var(--sans); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
.to-top { width: 42px; height: 42px; color: var(--gold-light); background: transparent; border: 1px solid rgba(216,181,104,.45); cursor: pointer; }

dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(24,1,4,.82); backdrop-filter: blur(5px); }
.book-dialog { width: min(980px,calc(100% - 34px)); max-height: min(860px,calc(100vh - 34px)); color: var(--ink); background: var(--paper-light); border: 1px solid var(--gold-dark); }
.dialog-close { position: absolute; top: 15px; right: 15px; z-index: 3; width: 40px; height: 40px; color: var(--gold-light); background: var(--wine); border: 1px solid var(--gold); font-size: 1.35rem; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: 330px 1fr; min-height: 640px; }
.dialog-cover-wrap { padding: 65px 47px; background: #dfc9a5; border-right: 1px solid var(--gold-dark); }
.dialog-cover-wrap .book-cover { cursor: default; }
.dialog-cover-wrap .book-cover:hover { transform: none; }
.dialog-copy { padding: 62px 58px 50px; overflow: auto; }
.dialog-copy .eyebrow { margin-bottom: 11px; color: var(--gold-dark); }
.dialog-copy h2 { margin: 0 0 25px; color: var(--wine); font-family: var(--serif); font-size: 2.7rem; font-weight: 400; line-height: 1.2; }
.dialog-copy h3 { margin: 28px 0 10px; color: var(--wine); font-family: var(--serif); font-size: 1.08rem; font-weight: 400; }
.dialog-copy p { color: var(--muted); font-size: .98rem; line-height: 1.78; }
.excerpt { padding: 20px 21px; color: #4a3023 !important; background: #eee0c7; border-left: 3px solid var(--gold-dark); font-size: 1rem !important; font-style: italic; }
.dialog-actions { display: flex; gap: 12px; margin-top: 27px; }
.painting-dialog { width: min(900px,calc(100% - 34px)); max-height: calc(100vh - 34px); overflow: hidden; background: #1d070b; border: 1px solid var(--gold); }
.painting-dialog-inner { display: block; }
.painting-dialog-inner .painting-art { width: 100%; height: min(90vh,1100px); aspect-ratio: auto; background: #1d070b; border: 15px solid #ead8b7; outline: 0; cursor: default; }
.painting-dialog-inner .painting-art:hover { transform: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%,28px); padding: 12px 18px; color: var(--gold-light); background: var(--wine-dark); border: 1px solid var(--gold); opacity: 0; pointer-events: none; font-size: .9rem; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.reveal { animation: reveal .58s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1100px) {
  .section-shell { width: min(100% - 40px,900px); }
  .site-header { padding-inline: 20px; }
  .brand-copy small { display: none; }
  .menu-button { display: block; }
  .main-nav { position: fixed; inset: 86px 0 auto; display: grid; gap: 0; padding: 12px 24px 24px; background: linear-gradient(180deg,#530810,#2d0307); border-bottom: 1px solid var(--gold); transform: translateY(-130%); transition: transform .28s; }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 4px; color: var(--gold-light); border-bottom: 1px solid rgba(216,181,104,.18); }
  .main-nav a::after { display: none; }
  .hero { grid-template-columns: 1fr; gap: 16px; padding: 60px 48px; }
  .hero-art { min-height: auto; justify-content: flex-start; }
  .hero-scene { margin: 12px 0 0; }
  .series-preview { grid-template-columns: repeat(2,1fr); }
  .studio-teaser { grid-template-columns: 1fr; gap: 32px; }
  .mini-gallery { width: min(100%,620px); }
  .library-layout { grid-template-columns: 230px minmax(0,1fr); }
  .books-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .poetry-layout { grid-template-columns: 270px minmax(0,1fr); }
  .about-hero { gap: 40px; }
  .dialog-layout { grid-template-columns: 285px 1fr; }
  .dialog-copy { padding: 56px 36px 42px; }
}

@media (max-width: 760px) {
  .section-shell { width: calc(100% - 28px); }
  .site-header { min-height: 76px; }
  .brand { gap: 10px; }
  .monogram { min-width: 44px; font-size: 1.6rem; }
  .brand-copy { padding-left: 11px; }
  .brand-copy b { font-size: 1.03rem; }
  .main-nav { inset: 76px 0 auto; }
  .hero { width: 100%; min-height: auto; padding: 52px 27px; border-right: 0; border-left: 0; }
  .hero::before { inset: 10px; }
  .hero h1 { font-size: clamp(2.35rem,11vw,3.45rem); }
  .lede { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .library-stats span { margin-right: 12px; padding-right: 8px; }
  .home-library { padding-block: 66px 74px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .series-preview { grid-template-columns: 1fr; }
  .series-card { min-height: 260px; }
  .studio-teaser { width: 100%; margin-bottom: 0; padding: 50px 24px; border-right: 0; border-left: 0; }
  .mini-gallery { height: 270px; transform: scale(.8); transform-origin: left top; }
  .page-intro { width: 100%; min-height: 245px; padding: 50px 28px 46px; border-right: 0; border-left: 0; }
  .page-intro h1, .about-copy h1, .contact-card h1 { font-size: clamp(2.55rem,12vw,4rem); }
  .page-intro::after { right: 25px; bottom: 22px; }
  .library-layout { grid-template-columns: 1fr; }
  .library-sidebar { position: static; }
  .filter-chips { grid-template-columns: repeat(2,1fr); }
  .filter-chip { min-height: 46px; }
  .sidebar-quote { display: none; }
  .books-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .book-card { padding: 7px 7px 10px; }
  .book-meta p { min-height: 83px; font-size: .8rem; }
  .book-meta h3 { font-size: .92rem; }
  .book-open { font-size: .8rem; }
  .poetry-layout { grid-template-columns: 1fr; }
  .poem-index { position: static; max-height: 480px; }
  .poem-reader { padding: 40px 25px 50px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; padding-block: 48px; }
  .author-mark { min-height: 390px; }
  .about-copy { padding-top: 0; }
  .principles { grid-template-columns: 1fr; }
  .contact-card { width: 100%; margin-block: 0; padding: 52px 22px; border-right: 0; border-left: 0; }
  .contact-card > div:first-child, .contact-options { grid-template-columns: 1fr; gap: 25px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 20px; padding-block: 32px; }
  .footer-note { display: none; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-cover-wrap { padding: 55px 24%; border-right: 0; border-bottom: 1px solid var(--gold-dark); }
  .dialog-copy { padding: 38px 24px; }
  .dialog-copy h2 { font-size: 2.15rem; }
}

@media (max-width: 430px) {
  .books-grid { grid-template-columns: 1fr; }
  .book-card { padding: 12px; }
  .book-cover { width: min(100%,280px); margin-inline: auto; }
  .book-meta p { min-height: auto; font-size: .9rem; }
  .filter-chips { grid-template-columns: 1fr; }
  .dialog-cover-wrap { padding-inline: 18%; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v6: минималистичные обложки — автор сверху без рамки, название снизу. */
.book-cover .cover-topline { margin: -5px -3px 0; padding: 10px 3px; background: transparent; border: 0; box-shadow: none; }
.book-cover .cover-series { display: none !important; }
.book-cover h2 { margin-top: auto; margin-bottom: 8px; font-size: clamp(1.15rem,1.8vw,1.6rem); font-weight: 500; text-wrap: balance; }

/* v8: clickable book cover links */
a.book-cover { text-decoration:none; }
a.book-open { display:inline-flex; text-decoration:none; }
