@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root{
  --bg:#04080b;
  --bg-soft:#081117;
  --panel:rgba(7,15,20,.86);
  --panel-strong:rgba(4,10,14,.94);
  --text:#eee7db;
  --muted:#b7b2a8;
  --gold:#bc9154;
  --gold-bright:#d8b77f;
  --line:rgba(188,145,84,.30);
  --soft-line:rgba(255,255,255,.09);
  --serif:'Cormorant Garamond',Georgia,serif;
  --sans:'Inter',Arial,sans-serif;
  --max:1260px;
  --home-bg:url('https://i.imgur.com/Xs4A3Y9.png');
  --books-bg:url('https://i.imgur.com/0GCQ6eE.png');
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#03070a;
  color:var(--text,#eee7db);
  font-family:var(--sans);
  font-weight:300;
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
body.menu-open{overflow:hidden}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit}
button{color:inherit}
.shell{width:min(calc(100% - 48px),var(--max));margin-inline:auto}
.eyebrow{margin:0 0 10px;color:var(--gold-bright,#d8b77f);font-size:.69rem;letter-spacing:.23em;text-transform:uppercase;font-weight:500}
h1,h2,h3,strong{font-family:var(--serif);font-weight:500;color:var(--text,#eee7db)}
h1,h2,h3,p{margin-top:0}

/* Header */
.site-header{
  position:absolute;
  inset:0 0 auto;
  z-index:100;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(2,6,8,.90),rgba(2,6,8,.43));
  backdrop-filter:blur(5px);
}
.inner-page .site-header{position:relative;background:#040a0e;backdrop-filter:none}
.header-inner{
  min-height:94px;
  display:grid;
  grid-template-columns:138px 1fr 168px;
  align-items:center;
  gap:24px;
}
.brand{width:112px;height:82px;display:flex;align-items:center;position:relative;z-index:102}
.brand img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 16px rgba(76,170,216,.28))}
.main-nav{display:flex;align-items:center;justify-content:center;gap:clamp(24px,3vw,48px)}
.main-nav a{position:relative;padding:34px 0 29px;font-family:var(--serif);font-size:1.09rem;letter-spacing:.055em;color:#e0d8ca;white-space:nowrap}
.main-nav a::after{content:'';position:absolute;left:50%;right:50%;bottom:22px;height:1px;background:var(--gold);transition:.25s}
.main-nav a:hover::after,.main-nav a.active::after{left:0;right:0}
.main-nav a.active{color:var(--gold-bright)}
.mobile-order{display:none}
.header-order{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:9px 17px;
  border:1px solid var(--gold);
  color:var(--gold-bright);
  font-family:var(--serif);
  font-size:.86rem;
  letter-spacing:.065em;
  text-transform:uppercase;
  white-space:nowrap;
}
.header-order:hover{background:rgba(188,145,84,.10)}
.menu-toggle{display:none;width:46px;height:46px;padding:10px;border:1px solid var(--line);background:rgba(3,8,11,.6);cursor:pointer;position:relative;z-index:103}
.menu-toggle span{position:absolute;left:11px;right:11px;height:1px;background:var(--gold-bright);transition:.25s}
.menu-toggle span:first-child{top:17px}.menu-toggle span:last-child{top:27px}
.menu-toggle[aria-expanded="true"] span:first-child{top:22px;transform:rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:last-child{top:22px;transform:rotate(-45deg)}

/* Buttons */
.primary-button,.secondary-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 27px;
  border:1px solid var(--gold);
  font-family:var(--serif);
  font-size:1rem;
  letter-spacing:.065em;
  text-transform:uppercase;
  white-space:nowrap;
  transition:.22s;
}
.primary-button{background:linear-gradient(135deg,#d5b47e,#a87d43);color:#071014}
.primary-button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.secondary-button{color:var(--gold-bright);background:rgba(4,10,14,.38)}
.secondary-button:hover{background:rgba(188,145,84,.11)}

/* Home desktop */
.home-hero{
  position:relative;
  min-height:100svh;
  padding:106px 0 28px;
  background-image:
    linear-gradient(180deg,rgba(2,6,8,.12),rgba(2,6,8,.16) 56%,rgba(2,6,8,.70) 90%,#03070a 100%),
    linear-gradient(90deg,rgba(1,5,7,.44),transparent 32%,transparent 68%,rgba(1,5,7,.43)),
    var(--home-bg);
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
.home-hero::after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 130px rgba(0,0,0,.58);pointer-events:none}
.home-content{position:relative;z-index:2;min-height:calc(100svh - 134px);display:flex;flex-direction:column;justify-content:flex-end}
.home-title{text-align:center;margin:auto 0 28px}
.home-title h1{font-size:clamp(4.2rem,7vw,6.9rem);line-height:.84;margin:0;text-shadow:0 8px 32px rgba(0,0,0,.65)}
.role{display:flex;align-items:center;justify-content:center;gap:15px;margin:15px auto 10px;color:var(--gold-bright);font-family:var(--serif);font-size:1rem;letter-spacing:.31em;text-transform:uppercase}
.role::before,.role::after{content:'';width:58px;height:1px;background:linear-gradient(90deg,transparent,var(--gold))}.role::after{transform:scaleX(-1)}
.home-lead{margin:0;font-family:var(--serif);font-style:italic;font-size:clamp(1.15rem,1.65vw,1.48rem);text-shadow:0 3px 15px rgba(0,0,0,.8);white-space:nowrap}
.home-library{padding:8px 0 12px}
.home-books{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(14px,1.8vw,26px);align-items:end}
.home-book{min-width:0;text-align:center;transition:.25s}
.home-book:hover{transform:translateY(-6px)}
.home-book__cover{height:185px;display:flex;align-items:flex-end;justify-content:center}
.home-book__cover img{height:178px;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 15px 17px rgba(0,0,0,.65))}
.home-book__meta{margin-top:10px;padding:8px 5px 7px;background:linear-gradient(180deg,rgba(3,8,11,.74),rgba(3,8,11,.90));border-top:1px solid rgba(188,145,84,.24)}
.home-book__meta strong{display:block;font-size:1rem;line-height:1.03;white-space:normal}
.home-book__meta span{display:block;margin-top:4px;color:var(--gold-bright);font-size:.63rem;letter-spacing:.07em;text-transform:uppercase}
.home-book--sold .home-book__cover img{filter:grayscale(.15) brightness(.78) drop-shadow(0 15px 17px rgba(0,0,0,.65))}
.home-library-link{display:flex;justify-content:center;gap:10px;margin:10px auto 0;color:var(--gold-bright);font-family:var(--serif);font-size:1.08rem}
.home-library-link span{transition:.2s}.home-library-link:hover span{transform:translateX(4px)}

.home-about-section{position:relative;padding:112px 0 94px;background:radial-gradient(circle at 14% 10%,rgba(55,82,96,.15),transparent 34%),linear-gradient(180deg,#03070a,#061017 55%,#03070a)}
.home-about-section::before{content:'';position:absolute;left:0;right:0;top:-92px;height:94px;background:linear-gradient(transparent,#03070a);pointer-events:none}
.home-about-grid{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:72px;align-items:center}
.home-about-photo{position:relative;max-width:470px}
.home-about-photo::before{content:'';position:absolute;inset:15px -15px -15px 15px;border:1px solid var(--line)}
.home-about-photo img{position:relative;width:100%;max-height:620px;object-fit:cover;filter:saturate(.88) contrast(1.05)}
.home-about-copy h2{font-size:clamp(3rem,5vw,5rem);line-height:.9;margin:0 0 24px}
.home-about-copy p{max-width:700px;color:#c5c1b8;font-size:1rem;line-height:1.75}
.home-appearance{margin-top:86px;display:grid;grid-template-columns:180px minmax(0,620px);gap:36px;align-items:start}
.home-video-card{border:1px solid var(--soft-line);background:#03070a;padding-bottom:16px}
.video-frame{position:relative;aspect-ratio:16/9;background:#020506}.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.appearance-link{display:inline-block;margin:14px 18px 0;color:var(--gold-bright);font-family:var(--serif);font-size:1rem}

/* Inner pages */
.inner-hero{position:relative;min-height:260px;padding:70px 0 40px;display:flex;align-items:flex-end;background-image:linear-gradient(90deg,rgba(2,6,8,.88),rgba(2,6,8,.35)),var(--home-bg);background-size:cover;background-position:center 38%;border-bottom:1px solid var(--line)}
.inner-hero h1{font-size:clamp(3.6rem,6vw,5.7rem);line-height:.86;margin:0}
.page-section{padding:82px 0}
.section-heading h2{font-size:clamp(2.7rem,4.3vw,4rem);line-height:.95;margin:0}.compact-heading{margin-bottom:34px}
.prose{color:#c6c2b9;font-size:.97rem;line-height:1.77}.prose p{margin-bottom:1.25rem}

/* Books index */
.books-index-page{background:#03070a}
.books-index-page main{position:relative;background-image:linear-gradient(180deg,rgba(3,7,10,.30),rgba(3,7,10,.80)),var(--books-bg);background-size:cover;background-position:center top;background-attachment:fixed}
.books-index-page .inner-hero{min-height:310px;background-image:linear-gradient(180deg,rgba(2,6,8,.34),rgba(2,6,8,.76)),var(--books-bg);background-position:center 28%;justify-content:center;text-align:center;align-items:flex-end}
.books-index-page .page-section{padding-top:68px;background:linear-gradient(180deg,rgba(3,7,10,.30),rgba(3,7,10,.70))}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px}
.library-card{display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(160deg,rgba(9,20,26,.80),rgba(4,9,12,.91));border:1px solid rgba(255,255,255,.09);box-shadow:0 24px 48px rgba(0,0,0,.25);transition:.25s;backdrop-filter:blur(8px)}
.library-card:hover{transform:translateY(-5px);border-color:var(--line)}
.library-card__cover{position:relative;height:335px;display:flex;align-items:flex-end;justify-content:center;padding:28px 22px 40px;background:radial-gradient(circle at 50% 35%,rgba(81,114,130,.23),transparent 60%)}
.library-card__cover img{height:276px;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(18px 24px 24px rgba(0,0,0,.65))}
.library-card__cover span{position:absolute;left:20px;right:20px;bottom:14px;text-align:center;color:var(--gold-bright);font-size:.66rem;letter-spacing:.09em;text-transform:uppercase}
.library-card__body{display:flex;flex:1;flex-direction:column;padding:25px 25px 27px;border-top:1px solid rgba(188,145,84,.20)}
.library-card__body h2{font-size:2.15rem;line-height:.95;margin:0 0 13px}
.library-card__body p{color:#bbb7ae;font-size:.84rem;line-height:1.62;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
.library-card__body b{margin-top:auto;padding-top:15px;color:var(--gold-bright);font-family:var(--serif);font-size:1rem}

/* Personalized book pages */
.book-detail-page{background:#03070a}
.book-page-hero{position:relative;isolation:isolate;min-height:630px;padding:62px 0;background:#03070a;overflow:hidden}
.book-page-hero::before{content:'';position:absolute;inset:0;z-index:-2;background-image:var(--book-bg);background-size:cover;background-position:center}
.book-page-hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(2,6,8,.94) 0%,rgba(2,6,8,.72) 42%,rgba(2,6,8,.58) 100%),linear-gradient(180deg,rgba(2,6,8,.22),rgba(2,6,8,.84));box-shadow:inset 0 0 120px rgba(0,0,0,.45)}
.book-page-grid{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:72px;align-items:center}
.book-cover-large{display:flex;justify-content:center;align-items:center}
.book-cover-large img{height:min(455px,64vh);width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(26px 34px 35px rgba(0,0,0,.65))}
.book-page-copy{max-width:760px;padding:34px 36px;background:linear-gradient(145deg,rgba(3,8,11,.72),rgba(3,8,11,.44));border-left:1px solid var(--line);backdrop-filter:blur(5px)}
.back-link{display:inline-block;margin-bottom:16px;color:var(--gold-bright);font-size:.86rem}
.book-page-copy h1{font-size:clamp(3.5rem,5.8vw,5.8rem);line-height:.86;margin:2px 0 20px}
.book-short{max-width:720px;margin:0;color:#d1cdc4;font-family:var(--serif);font-size:1.14rem;line-height:1.48}
.book-actions-inline{display:flex;align-items:stretch;gap:15px;margin-top:28px;flex-wrap:wrap}
.book-price{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 22px;border:1px solid var(--line);background:rgba(3,8,11,.67);color:var(--gold-bright);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.book-actions-inline--sold .book-price{border-color:rgba(188,145,84,.45)}
.sold-label{display:none}.sold-text{color:var(--gold-bright);font-weight:600;letter-spacing:.13em}
.book-description{position:relative;padding:90px 0;background:radial-gradient(circle at 85% 10%,rgba(52,82,96,.13),transparent 34%),linear-gradient(180deg,#061017,#03070a)}
.prose-grid{display:grid;grid-template-columns:minmax(220px,.42fr) minmax(0,1fr);gap:64px;align-items:start}
.prose-grid h2{font-size:clamp(2.8rem,4.3vw,4.1rem);line-height:.93;margin:0}

/* Author */
.author-page-grid{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:62px;align-items:start}
.author-photo{position:sticky;top:24px;border:1px solid var(--line);background:#071014;overflow:hidden}.author-photo img{width:100%;height:auto}
.author-prose{font-size:.97rem}
.tree-story-section{background:linear-gradient(180deg,#061017,#03070a)}
.tree-story-grid{display:grid;grid-template-columns:minmax(0,.78fr) minmax(320px,1.22fr);gap:60px;align-items:center}
.tree-story-copy h2{font-size:clamp(2.7rem,4vw,4rem);line-height:.95;margin:0 0 23px}.tree-story-copy p{color:#c3bfb6;font-family:var(--serif);font-size:1.25rem;line-height:1.55}
.tree-story-image{margin:0;border:1px solid var(--line);padding:10px;background:#03070a}.tree-story-image img{width:100%;height:auto}
.appearances-section{border-top:1px solid var(--soft-line);background:linear-gradient(180deg,rgba(7,16,22,.96),#03070a)}
.appearances-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:26px}
.appearance-card{border:1px solid var(--soft-line);background:linear-gradient(145deg,rgba(12,22,28,.94),rgba(5,10,13,.95));overflow:hidden}
.appearance-card--video{padding-bottom:18px}.appearance-card--facebook{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:290px;padding:34px}
.appearance-card--facebook::after{content:'f';position:absolute;right:20px;bottom:-42px;color:rgba(188,145,84,.06);font-family:Georgia,serif;font-size:11rem;line-height:1}
.appearance-platform{margin-bottom:14px;color:var(--gold-bright);font-size:.72rem;letter-spacing:.17em;text-transform:uppercase}.appearance-card--facebook strong{max-width:260px;font-size:2rem;line-height:1.05}.appearance-card--facebook .appearance-link{position:relative;z-index:1;margin:28px 0 0}

/* Order, news, thank you */
.order-layout{max-width:820px}.order-form{display:grid;gap:18px;padding:34px;border:1px solid var(--line);background:rgba(8,15,19,.90)}
.field,.field-row{display:grid;gap:8px}.field-row{grid-template-columns:1fr 1fr;gap:18px}.field label{color:var(--gold-bright);font-size:.72rem;letter-spacing:.13em;text-transform:uppercase}
.field input,.field select,.field textarea{width:100%;padding:13px 14px;border:1px solid var(--soft-line);outline:none;background:#04090c;color:var(--text)}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold)}.field small{color:var(--gold-bright)}
.form-note,.empty-state{color:var(--muted);font-size:.86rem}.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.news-card{padding:24px;border:1px solid var(--soft-line);background:rgba(8,15,19,.84)}.news-card img{width:100%;aspect-ratio:16/9;object-fit:cover;margin-bottom:16px}.news-card span{color:var(--gold-bright);font-size:.72rem}.news-card h2{font-size:1.9rem}.news-card p{color:var(--muted)}

/* Footer */
.site-footer{padding:34px 0 18px;border-top:1px solid var(--soft-line);background:#020506}.footer-inner{display:grid;grid-template-columns:1fr auto 1fr;gap:38px;align-items:start}.footer-brand{display:grid}.footer-inner strong{font-size:1.65rem}.footer-inner span{color:var(--muted);font-size:.76rem}.footer-inner nav{display:flex;gap:20px}.footer-inner nav a,.footer-contact a{color:var(--muted);font-size:.8rem}.footer-inner nav a:hover,.footer-contact a:hover{color:var(--gold-bright)}.footer-contact{display:flex;justify-content:flex-end;gap:16px}.copyright{margin-top:22px;padding-top:14px;border-top:1px solid var(--soft-line);color:#747773;font-size:.7rem}

/* Tablet */
@media(max-width:1050px){
  .header-inner{grid-template-columns:120px 1fr 155px}.main-nav{gap:25px}
  .home-book__cover{height:155px}.home-book__cover img{height:148px}.home-book__meta strong{font-size:.88rem}
  .library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .book-page-grid{gap:45px}.book-page-copy{padding:28px 28px}
  .author-page-grid{gap:44px}
}

/* Mobile: deliberately different composition */
@media(max-width:820px){
  .shell{width:min(calc(100% - 28px),var(--max))}
  .site-header,.inner-page .site-header{position:absolute;inset:0 0 auto;background:linear-gradient(180deg,rgba(2,6,8,.93),rgba(2,6,8,.55));backdrop-filter:blur(4px)}
  .header-inner{min-height:74px;grid-template-columns:1fr auto;gap:12px}.brand{width:91px;height:66px}.header-order{display:none}.menu-toggle{display:block}
  .main-nav{position:fixed;inset:0;z-index:101;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;background:radial-gradient(circle at 50% 15%,rgba(25,51,65,.25),transparent 36%),rgba(2,6,8,.988);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px);transition:.25s}
  .main-nav.open{opacity:1;visibility:visible;pointer-events:auto;transform:none}.main-nav a{padding:8px 18px;font-size:2rem}.main-nav a::after{display:none}.main-nav .mobile-order{display:block;margin-top:18px;padding:11px 23px;border:1px solid var(--gold);color:var(--gold-bright);font-size:1.15rem}

  /* Mobile home: image panel + dark editorial content, not a cropped desktop hero */
  .home-hero{min-height:auto;padding:0;background:#03070a;overflow:visible}
  .home-hero::before{content:'';display:block;position:relative;width:100%;height:clamp(255px,62vw,430px);background-image:linear-gradient(180deg,rgba(2,6,8,.02),rgba(2,6,8,.07) 65%,#03070a 100%),var(--home-bg);background-repeat:no-repeat;background-size:100% auto;background-position:center top}
  .home-hero::after{display:none}
  .home-content{min-height:0;margin-top:-18px;display:block;padding-bottom:34px}
  .home-title{margin:0;padding:25px 0 31px;text-align:center;background:linear-gradient(180deg,transparent,#03070a 16%,#03070a)}
  .home-title h1{font-size:clamp(3.25rem,15vw,4.8rem);line-height:.86}.home-title .eyebrow{font-size:.58rem}.role{margin:12px auto 10px;font-size:.82rem;letter-spacing:.26em}.role::before,.role::after{width:34px}
  .home-lead{max-width:300px;margin:0 auto;font-size:1.05rem;line-height:1.35;white-space:normal}
  .home-library{padding:0}.home-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px;align-items:start}
  .home-book{padding:13px 8px 10px;background:linear-gradient(160deg,rgba(12,23,29,.92),rgba(4,9,12,.97));border:1px solid rgba(255,255,255,.075);box-shadow:0 14px 28px rgba(0,0,0,.28)}
  .home-book__cover{height:190px}.home-book__cover img{height:184px;max-width:100%}.home-book__meta{margin-top:11px;padding:10px 2px 4px;background:none;border-top:1px solid rgba(188,145,84,.22)}.home-book__meta strong{font-size:1.05rem}.home-book__meta span{font-size:.62rem}
  .home-library-link{margin-top:24px;font-size:1.06rem}

  .home-about-section{padding:76px 0 68px}.home-about-section::before{top:-60px;height:62px}.home-about-grid{grid-template-columns:1fr;gap:37px}.home-about-photo{width:min(100%,420px);margin:0 auto}.home-about-copy{text-align:center}.home-about-copy h2{font-size:3.2rem}.home-about-copy p{text-align:left;font-size:.92rem;line-height:1.7}.home-appearance{margin-top:63px;grid-template-columns:1fr;gap:15px}.home-appearance-heading{text-align:center}.home-video-card{width:min(100%,580px);margin:0 auto}

  .inner-page{padding-top:0}.inner-hero{min-height:230px;padding:110px 0 30px;background-position:center top}.inner-hero h1{font-size:clamp(3.05rem,13vw,4.35rem)}.page-section{padding:58px 0}

  /* Books index mobile: editorial list, not tiny cards */
  .books-index-page main{background-attachment:scroll;background-size:auto 100vh;background-position:center top}
  .books-index-page .inner-hero{min-height:270px;padding:116px 0 33px;background-size:100% auto;background-repeat:no-repeat;background-position:center top;background-color:#03070a}
  .books-index-page .page-section{padding:42px 0 64px}
  .library-grid{grid-template-columns:1fr;gap:18px}
  .library-card{display:grid;grid-template-columns:118px minmax(0,1fr);min-height:190px;backdrop-filter:blur(10px)}
  .library-card__cover{height:auto;min-height:190px;padding:18px 10px 32px}.library-card__cover img{height:148px;max-width:100%}.library-card__cover span{left:6px;right:6px;bottom:8px;font-size:.52rem;letter-spacing:.05em}
  .library-card__body{padding:20px 18px}.library-card__body h2{font-size:1.75rem;margin-bottom:9px}.library-card__body p{font-size:.77rem;line-height:1.55;-webkit-line-clamp:3}.library-card__body b{font-size:.9rem;padding-top:8px}

  /* Book detail mobile: cover art banner then clean content */
  .book-page-hero{min-height:auto;padding:102px 0 42px}
  .book-page-hero::before{background-size:100% auto;background-repeat:no-repeat;background-position:center top;background-color:#03070a}.book-page-hero::after{background:linear-gradient(180deg,rgba(2,6,8,.45),rgba(2,6,8,.86) 42%,#03070a 100%)}
  .book-page-grid{grid-template-columns:1fr;gap:24px}.book-cover-large img{height:250px;max-width:180px}.book-page-copy{max-width:none;padding:22px 18px 24px;border-left:0;border-top:1px solid var(--line);background:rgba(3,8,11,.80);text-align:center}.back-link{margin-bottom:9px}.book-page-copy .eyebrow{margin-bottom:5px}.book-page-copy h1{font-size:clamp(2.8rem,13vw,4rem);line-height:.88;margin-bottom:13px}.book-short{display:none}.book-actions-inline{justify-content:center;margin-top:19px;gap:10px}.book-price,.book-actions-inline .primary-button{min-height:48px;padding:0 16px;font-size:.68rem}.book-description{padding:58px 0}.prose-grid{grid-template-columns:1fr;gap:25px}.prose-grid h2{font-size:3rem}.prose{font-size:.92rem;line-height:1.72}

  .author-page-grid,.tree-story-grid{grid-template-columns:1fr;gap:35px}.author-photo{position:relative;top:auto;width:min(100%,430px);margin:0 auto}.author-prose{font-size:.92rem}.tree-story-copy{text-align:center}.tree-story-copy p{font-size:1.1rem}.appearances-grid{grid-template-columns:1fr}.appearance-card--facebook{min-height:230px}
  .field-row{grid-template-columns:1fr}.order-form{padding:22px 18px}.news-grid{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr;text-align:center;gap:20px}.footer-inner nav,.footer-contact{justify-content:center;flex-wrap:wrap}.copyright{text-align:center}
}

@media(max-width:430px){
  .shell{width:min(calc(100% - 22px),var(--max))}.brand{width:82px}.home-hero::before{height:clamp(235px,66vw,300px)}.home-title h1{font-size:3.5rem}.home-books{gap:16px 10px}.home-book{padding:10px 6px}.home-book__cover{height:161px}.home-book__cover img{height:156px}.home-book__meta strong{font-size:.92rem}.home-book__meta span{font-size:.55rem}
  .library-card{grid-template-columns:104px minmax(0,1fr)}.library-card__cover{min-height:176px}.library-card__cover img{height:135px}.library-card__body{padding:18px 14px}.library-card__body h2{font-size:1.55rem}.library-card__body p{font-size:.73rem}
  .book-cover-large img{height:225px;max-width:165px}.book-page-copy h1{font-size:3rem}.book-actions-inline{display:grid;grid-template-columns:1fr 1fr;width:100%}.book-actions-inline--sold{grid-template-columns:1fr}.book-price,.book-actions-inline .primary-button{width:100%}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* =========================================================
   V13 — mobile-first polish and unified book presentation
   ========================================================= */

/* Book detail: one coherent visual scene, no duplicate cover image. */
.book-detail-page main{
  background:
    radial-gradient(circle at 85% 8%,rgba(52,82,96,.13),transparent 34%),
    linear-gradient(180deg,#071118 0%,#04090d 60%,#03070a 100%);
}
.book-page-hero{
  min-height:0;
  padding:62px 0 72px;
  background:none;
  overflow:visible;
}
.book-page-hero::before,
.book-page-hero::after{display:none}
.book-page-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(390px,.82fr);
  gap:0;
  align-items:stretch;
  border:1px solid rgba(188,145,84,.24);
  background:rgba(4,10,14,.82);
  box-shadow:0 34px 72px rgba(0,0,0,.38);
}
.book-scene-art{
  margin:0;
  min-width:0;
  background:#071016;
  overflow:hidden;
}
.book-scene-art img{
  width:100%;
  height:100%;
  min-height:540px;
  object-fit:cover;
  object-position:center;
}
.book-page-copy{
  max-width:none;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:52px 48px;
  border:0;
  border-left:1px solid rgba(188,145,84,.24);
  background:
    radial-gradient(circle at 100% 0%,rgba(57,87,103,.14),transparent 40%),
    linear-gradient(150deg,rgba(8,18,24,.97),rgba(3,8,11,.98));
  backdrop-filter:none;
}
.book-page-copy h1{font-size:clamp(3.5rem,5.5vw,5.55rem)}
.book-description{
  padding:82px 0 92px;
  background:linear-gradient(180deg,#071118,#03070a);
}

/* Home books on touch devices return to an elegant horizontal shelf. */
@media(max-width:820px){
  /* Header/menu: solid, viewport-mounted and independent from the header blur. */
  .site-header,
  .inner-page .site-header{
    position:fixed;
    inset:0 0 auto;
    z-index:1000;
    background:linear-gradient(180deg,rgba(2,6,8,.97),rgba(2,6,8,.72));
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .header-inner{
    min-height:72px;
    grid-template-columns:1fr auto auto;
    gap:9px;
  }
  .brand{width:86px;height:62px}
  .header-order{
    display:inline-flex;
    position:relative;
    z-index:1003;
    min-height:38px;
    padding:7px 12px;
    font-size:.66rem;
    letter-spacing:.055em;
    background:rgba(3,8,11,.90);
    box-shadow:0 8px 24px rgba(0,0,0,.22);
  }
  .menu-toggle{
    display:block;
    position:relative;
    z-index:1004;
    width:42px;
    height:42px;
    background:#061016;
  }
  .main-nav{
    position:fixed !important;
    top:0 !important;
    right:0 !important;
    bottom:0 !important;
    left:0 !important;
    width:100vw !important;
    height:100dvh !important;
    min-height:100vh;
    z-index:1002 !important;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:3px;
    margin:0;
    padding:86px 24px 42px;
    background:#020608 !important;
    background-image:radial-gradient(circle at 50% 8%,rgba(31,67,86,.28),transparent 34%) !important;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:none;
    isolation:isolate;
  }
  .main-nav.open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  .main-nav a{
    width:min(100%,320px);
    padding:9px 16px;
    text-align:center;
    font-size:2rem;
    color:#eee7db;
  }
  .main-nav a.active{color:var(--gold-bright)}
  .main-nav .mobile-order{display:none}

  /* Account for the fixed mobile header. */
  .home-hero{padding-top:72px}
  .inner-page{padding-top:72px}
  .inner-page .inner-hero{padding-top:48px}

  .home-library{
    width:100vw;
    margin-left:calc(50% - 50vw);
    overflow:hidden;
  }
  .home-books{
    display:flex;
    grid-template-columns:none;
    gap:16px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:7vw;
    padding:5px 7vw 22px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .home-books::-webkit-scrollbar{display:none}
  .home-book{
    flex:0 0 min(68vw,248px);
    scroll-snap-align:center;
    padding:15px 12px 12px;
    background:linear-gradient(160deg,rgba(12,23,29,.90),rgba(4,9,12,.96));
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 18px 34px rgba(0,0,0,.34);
  }
  .home-book:first-child{scroll-snap-align:start}
  .home-book:last-child{scroll-snap-align:end}
  .home-book__cover{height:225px}
  .home-book__cover img{height:218px}
  .home-book__meta{padding:11px 3px 5px}
  .home-book__meta strong{font-size:1.08rem}
  .home-library-link{margin-top:12px}

  /* Book detail mobile: the scene and copy are one normal-flow card. */
  .book-detail-page{padding-top:72px}
  .book-page-hero{padding:24px 0 42px}
  .book-page-grid{
    display:block;
    border:1px solid rgba(188,145,84,.22);
    background:#071118;
    box-shadow:0 24px 46px rgba(0,0,0,.34);
  }
  .book-scene-art{background:#071118}
  .book-scene-art img{
    width:100%;
    height:auto;
    min-height:0;
    max-height:none;
    object-fit:contain;
  }
  .book-page-copy{
    padding:27px 20px 28px;
    border:0;
    border-top:1px solid rgba(188,145,84,.23);
    text-align:center;
    background:
      radial-gradient(circle at 100% 0%,rgba(51,80,95,.16),transparent 42%),
      linear-gradient(160deg,#0a1820,#050b0f);
  }
  .book-page-copy h1{font-size:clamp(2.95rem,13vw,4rem)}
  .book-short{display:none}
  .book-actions-inline{justify-content:center}
  .book-description{
    padding:53px 0 64px;
    background:linear-gradient(180deg,#071118,#03070a);
  }

  /* Author biography becomes a refined scrollable reading window on phones. */
  .author-prose{
    position:relative;
    max-height:430px;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:20px 18px 24px;
    border:1px solid rgba(188,145,84,.22);
    background:linear-gradient(160deg,rgba(10,24,32,.94),rgba(4,10,14,.98));
    box-shadow:inset 0 -34px 38px -34px rgba(188,145,84,.35);
    scrollbar-width:thin;
    scrollbar-color:var(--gold) rgba(255,255,255,.06);
  }
  .author-prose::-webkit-scrollbar{width:5px}
  .author-prose::-webkit-scrollbar-track{background:rgba(255,255,255,.05)}
  .author-prose::-webkit-scrollbar-thumb{background:var(--gold)}
  .tree-story-section{padding-top:52px}
}

@media(max-width:430px){
  .header-order{padding:7px 10px;font-size:.61rem}
  .brand{width:76px}
  .home-book{flex-basis:min(73vw,244px)}
  .home-book__cover{height:214px}
  .home-book__cover img{height:207px}
  .book-page-copy{padding:25px 16px 27px}
  .book-actions-inline{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .book-actions-inline--sold{grid-template-columns:1fr}
}

/* =========================================================
   V14 — restored book covers, simplified books page, cleaner form
   ========================================================= */

/* Home appearance: centered and visually aligned with the page. */
.home-appearance--centered{
  width:min(calc(100% - 48px),760px);
  margin:86px auto 0;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  text-align:center;
}
.home-appearance--centered .home-appearance-heading{display:flex;justify-content:center}
.home-appearance--centered .home-appearance-heading .eyebrow{margin:0;text-align:center}
.home-appearance--centered .home-video-card{width:100%;margin:0 auto;text-align:left}

/* Books index: one cover image at the top, then a clean catalogue. */
.books-index-page main{
  background:#03070a !important;
}
.books-index-page .inner-hero{
  min-height:clamp(380px,58vh,620px);
  padding:120px 0 58px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  text-align:center;
  background-image:
    linear-gradient(180deg,rgba(2,6,8,.18) 0%,rgba(2,6,8,.22) 48%,rgba(2,6,8,.72) 100%),
    var(--books-bg) !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  border-bottom:0;
}
.books-index-page .inner-hero .eyebrow{display:none}
.books-index-page .inner-hero h1{
  margin:0;
  font-size:clamp(4rem,7vw,7rem);
  line-height:.86;
  text-shadow:0 8px 28px rgba(0,0,0,.7);
}
.books-index-page .page-section{
  padding:76px 0 96px;
  background:
    radial-gradient(circle at 50% 0%,rgba(42,72,88,.12),transparent 34%),
    #03070a !important;
}
.library-grid{gap:42px 34px}
.library-card{
  overflow:visible;
  background:transparent;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
}
.library-card:hover{transform:translateY(-6px);border-color:transparent}
.library-card__cover{
  height:360px;
  padding:20px 20px 42px;
  background:
    radial-gradient(circle at 50% 40%,rgba(71,103,119,.20),transparent 58%),
    linear-gradient(180deg,rgba(8,17,22,.52),rgba(4,9,12,.12));
  border:1px solid rgba(255,255,255,.07);
}
.library-card__cover img{height:295px}
.library-card__cover span{
  position:absolute;
  left:18px;
  right:18px;
  bottom:13px;
  color:var(--gold-bright);
  font-size:.67rem;
  letter-spacing:.08em;
  text-align:center;
  text-transform:uppercase;
}
.library-card__body{
  padding:20px 4px 0;
  background:transparent;
}
.library-card__body h2{font-size:2rem;line-height:1;margin-bottom:12px}
.library-card__body p{
  color:#aaa9a3;
  font-size:.82rem;
  line-height:1.62;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.library-card__body b{
  display:inline-block;
  margin-top:8px;
  padding-top:0;
  color:var(--gold-bright);
  font-family:var(--serif);
  font-size:1rem;
  font-weight:500;
}

/* Individual book pages: personalised image is background only; real cover is foreground. */
.book-detail-page main{
  background:#03070a;
}
.book-page-hero{
  position:relative;
  isolation:isolate;
  min-height:680px;
  padding:70px 0 78px;
  overflow:hidden;
  background:#03070a;
}
.book-page-hero::before{
  content:'';
  display:block;
  position:absolute;
  inset:0;
  z-index:-2;
  background-image:var(--book-bg);
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center;
  filter:saturate(.92) contrast(1.03);
}
.book-page-hero::after{
  content:'';
  display:block;
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(90deg,rgba(2,6,8,.48) 0%,rgba(2,6,8,.34) 48%,rgba(2,6,8,.57) 100%),
    linear-gradient(180deg,rgba(2,6,8,.10) 0%,rgba(2,6,8,.28) 58%,rgba(2,6,8,.74) 100%);
  box-shadow:inset 0 0 95px rgba(0,0,0,.32);
}
.book-page-grid{
  min-height:530px;
  display:grid;
  grid-template-columns:minmax(270px,.72fr) minmax(0,1.28fr);
  gap:72px;
  align-items:center;
  border:0;
  background:transparent;
  box-shadow:none;
}
.book-cover-large{
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}
.book-cover-large img{
  width:auto;
  height:min(470px,66vh);
  max-width:100%;
  object-fit:contain;
  filter:drop-shadow(24px 30px 30px rgba(0,0,0,.72));
}
.book-page-copy{
  max-width:780px;
  padding:38px 40px;
  border:1px solid rgba(255,255,255,.08);
  border-left:1px solid rgba(188,145,84,.38);
  background:linear-gradient(145deg,rgba(3,8,11,.70),rgba(3,8,11,.47));
  box-shadow:0 24px 58px rgba(0,0,0,.25);
  backdrop-filter:blur(5px);
}
.book-page-copy h1{font-size:clamp(3.5rem,5.6vw,5.8rem)}
.book-description{
  padding:78px 0 92px;
  background:
    radial-gradient(circle at 82% 0%,rgba(46,75,90,.12),transparent 34%),
    linear-gradient(180deg,#061017,#03070a);
}

/* Dedication is only relevant when a signed copy is selected. */
.conditional-field[hidden]{display:none !important}
.conditional-field{animation:fieldReveal .2s ease}
@keyframes fieldReveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

@media(max-width:820px){
  .home-appearance--centered{
    width:min(calc(100% - 28px),620px);
    margin-top:62px;
    gap:14px;
  }

  /* One image only on the books page. */
  .books-index-page .inner-hero{
    min-height:clamp(280px,72vw,430px);
    padding:104px 0 34px;
    background-size:cover !important;
    background-position:center !important;
  }
  .books-index-page .inner-hero h1{font-size:clamp(3.7rem,17vw,5.2rem)}
  .books-index-page .page-section{padding:48px 0 68px;background:#03070a !important}
  .library-grid{grid-template-columns:1fr;gap:34px}
  .library-card{
    display:grid;
    grid-template-columns:128px minmax(0,1fr);
    min-height:198px;
    gap:18px;
    align-items:center;
    padding:16px;
    background:linear-gradient(145deg,rgba(10,22,28,.88),rgba(4,9,12,.94));
    border:1px solid rgba(255,255,255,.07);
  }
  .library-card__cover{
    height:166px;
    min-height:0;
    padding:8px 6px 28px;
    background:radial-gradient(circle at 50% 42%,rgba(72,104,120,.18),transparent 62%);
    border:0;
  }
  .library-card__cover img{height:132px;max-width:100%}
  .library-card__cover span{left:2px;right:2px;bottom:4px;font-size:.52rem;letter-spacing:.035em}
  .library-card__body{padding:0}
  .library-card__body h2{font-size:1.72rem;margin-bottom:9px}
  .library-card__body p{font-size:.74rem;line-height:1.52;-webkit-line-clamp:3}
  .library-card__body b{font-size:.91rem;margin-top:6px}

  /* Mobile book detail: background remains the scene, cover and copy scroll together. */
  .book-detail-page{padding-top:72px}
  .book-page-hero{
    min-height:0;
    padding:42px 0 48px;
  }
  .book-page-hero::before{
    background-size:cover;
    background-position:center top;
  }
  .book-page-hero::after{
    background:
      linear-gradient(180deg,rgba(2,6,8,.28) 0%,rgba(2,6,8,.40) 42%,rgba(2,6,8,.75) 100%),
      linear-gradient(90deg,rgba(2,6,8,.20),rgba(2,6,8,.20));
    box-shadow:inset 0 0 55px rgba(0,0,0,.25);
  }
  .book-page-grid{
    min-height:0;
    display:grid;
    grid-template-columns:1fr;
    gap:26px;
    border:0;
    background:transparent;
    box-shadow:none;
  }
  .book-cover-large img{
    height:285px;
    max-width:min(72vw,220px);
    filter:drop-shadow(18px 24px 24px rgba(0,0,0,.72));
  }
  .book-page-copy{
    width:100%;
    padding:25px 19px 27px;
    border:1px solid rgba(255,255,255,.08);
    border-top:1px solid rgba(188,145,84,.35);
    background:linear-gradient(155deg,rgba(5,13,17,.82),rgba(3,8,11,.68));
    text-align:center;
    backdrop-filter:blur(4px);
  }
  .book-page-copy h1{font-size:clamp(2.9rem,13vw,4rem)}
  .book-actions-inline{justify-content:center}
  .book-description{padding:54px 0 66px}
}

@media(max-width:430px){
  .library-card{grid-template-columns:112px minmax(0,1fr);gap:13px;padding:13px}
  .library-card__cover{height:153px}.library-card__cover img{height:121px}
  .library-card__body h2{font-size:1.52rem}
  .book-cover-large img{height:258px;max-width:68vw}
  .book-page-copy{padding:23px 15px 25px}
}

/* =========================================================
   V15 — mobile hero overlay, higher books title, Google Sheet news
   ========================================================= */

/* Novosti uses its own supplied cover image. */
.news-page .inner-hero{
  min-height:clamp(360px,54vh,560px);
  padding:112px 0 54px;
  align-items:flex-end;
  justify-content:center;
  text-align:center;
  background-image:
    linear-gradient(180deg,rgba(2,6,8,.18) 0%,rgba(2,6,8,.26) 54%,rgba(2,6,8,.76) 100%),
    url('https://i.imgur.com/BqYm9sw.png');
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center;
  border-bottom:0;
}
.news-page .inner-hero h1{
  margin:0;
  text-shadow:0 7px 28px rgba(0,0,0,.78);
}
.news-page .page-section{
  background:
    radial-gradient(circle at 50% 0%,rgba(42,72,88,.13),transparent 34%),
    linear-gradient(180deg,#061017,#03070a 72%);
}
.news-grid{align-items:start}
.news-card{
  position:relative;
  overflow:hidden;
  padding:0 0 24px;
  border:1px solid rgba(255,255,255,.09);
  background:linear-gradient(155deg,rgba(10,22,29,.94),rgba(4,10,14,.98));
  box-shadow:0 24px 55px rgba(0,0,0,.28);
}
.news-card--featured{border-color:rgba(188,145,84,.46)}
.news-card__image{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  margin:0;
}
.news-card__content{padding:22px 24px 0}
.news-card__date{
  display:block;
  margin-bottom:7px;
  color:var(--gold-bright);
  font-size:.68rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.news-card h2{margin:0 0 13px;font-size:2rem;line-height:1}
.news-card__summary,.news-card__full{
  color:#c3bfb6;
  font-size:.9rem;
  line-height:1.72;
  white-space:pre-line;
}
.news-card__summary{margin-bottom:0}
.news-card__full{margin:17px 0 0;padding-top:17px;border-top:1px solid rgba(255,255,255,.08)}
.news-card__actions{display:flex;align-items:center;gap:17px;flex-wrap:wrap;margin-top:20px}
.news-toggle,.news-external{
  border:0;
  padding:0;
  background:none;
  color:var(--gold-bright);
  font-family:var(--serif);
  font-size:1rem;
  cursor:pointer;
}
.news-toggle:hover,.news-external:hover{text-decoration:underline}
.news-status{
  max-width:700px;
  margin:0 auto;
  padding:22px 24px;
  border:1px solid rgba(188,145,84,.22);
  background:rgba(7,16,21,.82);
  color:var(--muted);
  text-align:center;
}

/* Put the books title slightly higher inside its single cover image. */
.books-index-page .inner-hero{
  align-items:center;
  padding-top:92px;
  padding-bottom:30px;
}
.books-index-page .inner-hero h1{transform:translateY(-7%)}

@media(max-width:820px){
  /* On phones, the title now sits directly on the visible hero image. */
  .home-hero{
    position:relative;
    padding-top:72px;
    background:#03070a;
  }
  .home-hero::before{
    height:clamp(310px,86vw,480px);
    background-image:
      linear-gradient(180deg,rgba(2,6,8,.12) 0%,rgba(2,6,8,.10) 48%,rgba(2,6,8,.58) 82%,#03070a 100%),
      var(--home-bg);
    background-size:cover;
    background-position:center;
  }
  .home-content{margin-top:0;padding-bottom:38px}
  .home-title{
    position:absolute;
    z-index:3;
    top:clamp(145px,39vw,245px);
    left:14px;
    right:14px;
    margin:0;
    padding:18px 12px 20px;
    background:radial-gradient(ellipse at center,rgba(2,6,8,.47),rgba(2,6,8,.10) 67%,transparent 76%);
    text-shadow:0 4px 22px rgba(0,0,0,.92);
  }
  .home-title h1{font-size:clamp(3rem,14vw,4.45rem)}
  .home-title .eyebrow{margin-bottom:5px;color:#ead8b8}
  .home-title .role{margin:9px auto 7px}
  .home-lead{
    max-width:355px;
    font-size:clamp(.92rem,4vw,1.08rem);
    line-height:1.25;
    color:#f1eadf;
  }
  .home-library{padding-top:15px}

  /* Keep the single books cover, with the title higher and clean. */
  .books-index-page .inner-hero{
    min-height:clamp(290px,76vw,440px);
    padding:88px 0 28px;
    align-items:center;
    background-size:cover !important;
    background-position:center !important;
  }
  .books-index-page .inner-hero h1{transform:translateY(-10%)}

  .news-page .inner-hero{
    min-height:clamp(285px,75vw,430px);
    padding:86px 0 28px;
    align-items:center;
    background-position:center;
  }
  .news-page .inner-hero h1{transform:translateY(-7%)}
  .news-card__content{padding:20px 18px 0}
  .news-card h2{font-size:1.75rem}
}

@media(max-width:430px){
  .home-hero::before{height:clamp(300px,91vw,390px)}
  .home-title{top:clamp(137px,42vw,205px);left:9px;right:9px;padding-inline:7px}
  .home-title h1{font-size:3.35rem}
  .home-lead{max-width:320px;font-size:.93rem}
  .books-index-page .inner-hero h1{font-size:4rem}
}
@media(max-width:820px){
  .home-content{position:static}
}

/* =========================================================
   V16 — dedicated mobile cover, refined news, video posters
   ========================================================= */

:root{
  --books-bg:url('https://i.imgur.com/ZwSnmND.png');
  --news-bg:url('https://i.imgur.com/uqJ6F4Y.png');
  --home-mobile-bg:url('https://i.imgur.com/SiPb7Om.png');
}

/* Keep the current desktop home image, but use the supplied portrait artwork on phones. */
@media(max-width:820px){
  .home-hero::before{
    background-image:
      linear-gradient(180deg,rgba(2,6,8,.07) 0%,rgba(2,6,8,.08) 48%,rgba(2,6,8,.52) 82%,#03070a 100%),
      var(--home-mobile-bg) !important;
    background-size:cover !important;
    background-position:center top !important;
  }
}

/* Books receives the newly supplied image only in its cover section. */
.books-index-page .inner-hero{
  background-image:
    linear-gradient(180deg,rgba(2,6,8,.24),rgba(2,6,8,.74)),
    var(--books-bg) !important;
}

/* Novosti title is vertically centred, like the Books title, and no longer sits at the bottom. */
.news-page .inner-hero{
  min-height:340px;
  padding:42px 0;
  align-items:center;
  justify-content:center;
  text-align:center;
  background-image:
    linear-gradient(180deg,rgba(2,6,8,.22),rgba(2,6,8,.56)),
    var(--news-bg) !important;
  background-size:cover;
  background-position:center;
}
.news-page .inner-hero h1{
  margin:0;
  transform:none !important;
  text-shadow:0 7px 28px rgba(0,0,0,.82);
}

/* Guaranteed YouTube thumbnail before the player is opened. */
.video-frame{overflow:hidden}
.youtube-poster{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:#020506;
  cursor:pointer;
}
.youtube-poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.015);
  filter:saturate(.88) contrast(1.04) brightness(.82);
  transition:transform .35s ease,filter .35s ease;
}
.youtube-poster::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.36));
}
.youtube-poster__play{
  position:absolute;
  z-index:2;
  left:50%;
  top:50%;
  width:68px;
  height:68px;
  border:1px solid rgba(231,207,169,.88);
  border-radius:50%;
  background:rgba(3,8,11,.76);
  transform:translate(-50%,-50%);
  box-shadow:0 12px 34px rgba(0,0,0,.48);
}
.youtube-poster__play::before{
  content:'';
  position:absolute;
  left:28px;
  top:22px;
  width:0;
  height:0;
  border-top:11px solid transparent;
  border-bottom:11px solid transparent;
  border-left:17px solid var(--gold-bright);
}
.youtube-poster:hover img{transform:scale(1.055);filter:saturate(.95) contrast(1.06) brightness(.92)}
.youtube-poster:focus-visible{outline:2px solid var(--gold-bright);outline-offset:-4px}

/* News cards: single image becomes the card background; multiple images form a collage. */
.news-page .page-section{padding-top:68px}
.news-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.news-card{
  position:relative;
  min-height:430px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:0;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(155deg,rgba(10,22,29,.95),rgba(4,10,14,.99));
  box-shadow:0 24px 55px rgba(0,0,0,.30);
  cursor:pointer;
  isolation:isolate;
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.news-card:hover,
.news-card:focus-visible{
  transform:translateY(-5px);
  border-color:rgba(188,145,84,.48);
  box-shadow:0 30px 66px rgba(0,0,0,.42);
  outline:none;
}
.news-card--featured{border-color:rgba(188,145,84,.46)}
.news-card--single{justify-content:flex-end;background:#03080b}
.news-card--single .news-card__visual{
  position:absolute;
  inset:0;
  z-index:-2;
  background-size:cover;
  background-position:center;
  transition:transform .45s ease;
}
.news-card--single:hover .news-card__visual{transform:scale(1.035)}
.news-card--single::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(2,6,8,.08) 10%,rgba(2,6,8,.36) 49%,rgba(2,6,8,.95) 83%,#03080b 100%);
}
.news-card--single .news-card__content{margin-top:auto;padding-top:145px}
.news-card__collage{
  display:grid;
  height:235px;
  gap:3px;
  background:#03080b;
}
.news-card__collage img{width:100%;height:100%;object-fit:cover;min-width:0;min-height:0}
.news-collage--2{grid-template-columns:1fr 1fr}
.news-collage--3{grid-template-columns:1.25fr .75fr;grid-template-rows:1fr 1fr}
.news-collage--3 img:first-child{grid-row:1 / 3}
.news-collage--4,.news-collage--many{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.news-collage--many img:nth-child(n+5){display:none}
.news-card__content{position:relative;z-index:1;padding:24px 25px 26px}
.news-card__date{display:block;margin-bottom:8px;color:var(--gold-bright);font-size:.68rem;letter-spacing:.12em;text-transform:uppercase}
.news-card h2{margin:0 0 13px;font-size:2.05rem;line-height:1}
.news-card__summary{margin:0;color:#d0cbc1;font-size:.89rem;line-height:1.7;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.news-card__open{display:inline-flex;align-items:center;gap:8px;margin-top:19px;color:var(--gold-bright);font-family:var(--serif);font-size:1rem}
.news-card__open::after{content:'→';transition:transform .2s ease}
.news-card:hover .news-card__open::after{transform:translateX(4px)}

/* Full news reading window. */
.news-modal[hidden]{display:none}
.news-modal{
  position:fixed;
  inset:0;
  z-index:500;
  display:grid;
  place-items:center;
  padding:30px;
}
.news-modal__backdrop{position:absolute;inset:0;padding:0;border:0;background:rgba(0,0,0,.78);backdrop-filter:blur(9px);cursor:default}
.news-modal__dialog{
  position:relative;
  z-index:1;
  width:min(920px,100%);
  max-height:min(88vh,900px);
  overflow:auto;
  border:1px solid rgba(188,145,84,.34);
  background:linear-gradient(155deg,#0a151b,#03080b 78%);
  box-shadow:0 36px 100px rgba(0,0,0,.68);
  overscroll-behavior:contain;
}
.news-modal__close{
  position:sticky;
  z-index:4;
  top:14px;
  float:right;
  margin:14px 14px -62px 0;
  width:46px;
  height:46px;
  border:1px solid rgba(231,207,169,.55);
  border-radius:50%;
  background:rgba(3,8,11,.86);
  color:var(--gold-bright);
  font-size:1.55rem;
  line-height:1;
  cursor:pointer;
}
.news-modal__gallery{display:grid;gap:4px;background:#020506}
.news-modal__gallery--1{grid-template-columns:1fr}
.news-modal__gallery--1 img{max-height:470px}
.news-modal__gallery--2{grid-template-columns:1fr 1fr}
.news-modal__gallery--3{grid-template-columns:1.25fr .75fr;grid-template-rows:230px 230px}
.news-modal__gallery--3 img:first-child{grid-row:1 / 3}
.news-modal__gallery--4,.news-modal__gallery--many{grid-template-columns:1fr 1fr;grid-auto-rows:260px}
.news-modal__gallery img{width:100%;height:100%;min-height:250px;object-fit:cover}
.news-modal__body{padding:40px clamp(24px,6vw,68px) 54px}
.news-modal__date{display:block;margin-bottom:12px;color:var(--gold-bright);font-size:.72rem;letter-spacing:.13em;text-transform:uppercase}
.news-modal__body h2{margin:0 0 24px;font-size:clamp(2.8rem,6vw,5rem);line-height:.9}
.news-modal__summary{color:#e0d8cc;font-family:var(--serif);font-size:1.22rem;line-height:1.5}
.news-modal__text{margin-top:28px;padding-top:26px;border-top:1px solid rgba(255,255,255,.09);color:#c9c4bb;line-height:1.86;white-space:pre-line}
.news-modal__external{display:inline-flex;margin-top:28px;color:var(--gold-bright);font-family:var(--serif);font-size:1.08rem}
body.news-modal-open{overflow:hidden}

@media(max-width:1050px){
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:820px){
  .news-page .inner-hero{
    min-height:clamp(280px,72vw,410px);
    padding:40px 0;
    align-items:center;
    background-position:center;
  }
  .news-page .inner-hero h1{transform:none !important}
  .news-page .page-section{padding-top:48px}
  .news-grid{grid-template-columns:1fr;gap:24px}
  .news-card{min-height:390px}
  .news-card__collage{height:220px}
  .news-card--single .news-card__content{padding-top:155px}
  .news-modal{padding:0}
  .news-modal__dialog{width:100%;height:100svh;max-height:none;border:0}
  .news-modal__gallery--1 img{max-height:42svh}
  .news-modal__gallery--2,.news-modal__gallery--4,.news-modal__gallery--many{grid-auto-rows:180px}
  .news-modal__gallery--3{grid-template-rows:180px 180px}
  .news-modal__gallery img{min-height:180px}
  .news-modal__body{padding:31px 20px 50px}
  .news-modal__body h2{font-size:clamp(2.7rem,13vw,4rem)}
  .youtube-poster__play{width:58px;height:58px}
  .youtube-poster__play::before{left:24px;top:18px}
}

/* =========================================================
   V17 — order-page covers and refined books title position
   ========================================================= */

/* Poručivanje: dedicated artwork, with a separate mobile composition. */
.order-page .inner-hero{
  min-height:clamp(390px,57vh,650px);
  padding:112px 0 56px;
  align-items:flex-end;
  justify-content:center;
  text-align:center;
  background-image:
    linear-gradient(180deg,rgba(2,6,8,.12) 0%,rgba(2,6,8,.22) 48%,rgba(2,6,8,.78) 100%),
    url('https://i.imgur.com/d1yNk0V.png');
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center;
  border-bottom:0;
}
.order-page .inner-hero h1{
  margin:0;
  text-shadow:0 8px 30px rgba(0,0,0,.82);
}
.order-page .inner-hero .eyebrow{
  text-shadow:0 3px 14px rgba(0,0,0,.9);
}

/* Desktop books cover: move the title visibly higher and make it slightly calmer. */
@media(min-width:821px){
  .books-index-page .inner-hero{
    align-items:center;
    padding:108px 0 42px;
  }
  .books-index-page .inner-hero .shell{
    transform:translateY(10%);
  }
  .books-index-page .inner-hero h1{
    font-size:clamp(3.65rem,6.25vw,6.25rem);
  }
}

@media(max-width:820px){
  .order-page .inner-hero{
    min-height:clamp(330px,111vw,560px);
    padding:96px 0 32px;
    background-image:
      linear-gradient(180deg,rgba(2,6,8,.10) 0%,rgba(2,6,8,.22) 55%,rgba(2,6,8,.78) 100%),
      url('https://i.imgur.com/Nna0vKx.png');
    background-size:cover;
    background-position:center;
  }
  .order-page .inner-hero h1{
    font-size:clamp(3.2rem,15vw,4.8rem);
  }
}


/* =========================================================
   V18 — lock the mobile viewport while keeping book carousel
   ========================================================= */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

@supports (overflow:clip){
  html,
  body{overflow-x:clip;}
}

body{
  position:relative;
  overscroll-behavior-x:none;
}

.site-header,
main,
section,
footer,
.shell{
  max-width:100%;
}

@media(max-width:820px){
  /* Full-screen menu must follow the layout viewport, not 100vw. */
  .main-nav{
    width:auto !important;
    max-width:none !important;
    inset:0 !important;
  }

  /* Keep horizontal movement inside the book rail only. */
  .home-library{
    width:100%;
    max-width:100%;
    margin-left:0;
    margin-right:0;
    overflow:hidden;
  }

  .home-books{
    width:100%;
    max-width:100%;
    overscroll-behavior-x:contain;
  }

  .home-book,
  .library-card,
  .book-page-grid,
  .book-page-copy,
  .author-page-grid,
  .tree-story-grid,
  .appearances-grid,
  .order-form,
  .news-card{
    min-width:0;
    max-width:100%;
  }

  input,
  select,
  textarea{
    max-width:100%;
  }
}


/* =========================================================
   V19 — additional YouTube appearances
   ========================================================= */
.home-appearance--centered{width:min(calc(100% - 48px),1180px)}
.home-videos-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;width:100%}
.home-videos-grid .home-video-card{min-width:0}
.appearances-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.appearance-card--video .appearance-link,
.home-video-card .appearance-link{display:inline-flex;padding:15px 18px 0;color:var(--gold-bright);font-size:.74rem;letter-spacing:.08em}
@media(max-width:900px){
  .home-videos-grid{grid-template-columns:1fr;gap:22px}
  .home-appearance--centered{width:min(calc(100% - 28px),620px)}
  .appearances-grid{grid-template-columns:1fr}
}
