*{box-sizing:border-box} :root{color-scheme:light;--ink:#351b12;--gold:#b88b39;--wine:#5b2425;--paper:#efe5d9}body{margin:0;color:var(--ink);background:var(--paper) url('assets/parchment.jpg') repeat;font-family:Georgia,'Times New Roman',serif}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:6px}.site-header{height:120px;padding:14px 5.95%;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(100deg,#f6f0e87a,#f9f4ec55);border-bottom:1px solid #fff6}.brand{display:flex;align-items:center;text-decoration:none;color:var(--ink);gap:30px}.brand img{height:90px;width:53px;object-fit:contain}.brand-rule{width:1px;height:68px;background:var(--gold);margin-left:1px}.wordmark{font-size:54px;letter-spacing:8px;font-weight:400;line-height:1}nav{display:flex;align-items:center;gap:56px}.nav-link{border:0;background:none;color:var(--ink);font-size:30px;padding:10px 5px 14px;position:relative}.nav-link.active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--gold)}.nav-link:hover{color:#8c6028}.search-button{width:38px;height:42px;padding:0;margin-left:7px;border:0;background:none;color:var(--ink)}svg{stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.search-button svg{width:36px;height:36px}.hero-art{width:100%;aspect-ratio:1448/680;overflow:hidden}.hero-art img{display:block;width:100%;height:100%;object-fit:cover}.hero-content{padding:10px 24px 44px;text-align:center}.hero h1{font-weight:400;font-size:clamp(44px,6.08vw,100px);line-height:1.15;letter-spacing:-1.7px;margin:4px 0 22px;text-shadow:0 1px #fff9}.gold-rule{display:block;width:136px;height:3px;background:#c19948;margin:0 auto 33px}.read-button{display:inline-flex;align-items:center;justify-content:center;gap:30px;min-height:80px;padding:14px 42px;background:linear-gradient(110deg,var(--wine),color-mix(in srgb,var(--wine) 92%,#000));border:1px solid #f7eee7;border-radius:9px;box-shadow:0 0 0 1px #4b24251a;color:#fff4e5;font-size:32px;transition:background .2s,transform .2s,box-shadow .2s}.read-button:hover{background:color-mix(in srgb,var(--wine) 84%,#fff);transform:translateY(-2px);box-shadow:0 6px 20px #58242424}.read-button svg{width:52px;height:40px;stroke-width:1.7}dialog{color:var(--ink);border:1px solid #bd9c70;border-radius:5px;background:var(--paper) linear-gradient(var(--tint),var(--tint)),url('assets/parchment.jpg');box-shadow:0 24px 100px #21100866;padding:36px;max-height:85dvh;width:min(850px,calc(100% - 32px));overscroll-behavior:contain}dialog::backdrop{background:#231a166b;backdrop-filter:blur(5px)}body:has(dialog[open]){overflow:hidden}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.eyebrow{font-family:Georgia,serif;font-size:11px;letter-spacing:2.5px;color:#8a6639;margin:0 0 12px}h2{font-size:40px;font-weight:400;margin:0}.close-button{border:0;background:none;color:var(--ink);font:32px/1 Georgia;padding:0 3px}.intro{font-size:17px;color:var(--muted);line-height:1.6}.search-field{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid #c6ad8e;margin:24px 0;background:#fff7}.search-field svg{width:22px;height:22px;flex-shrink:0}.search-field input{width:100%;border:0;background:none;font-size:17px;color:var(--ink);outline-offset:3px}.volume-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.volume{border:1px solid #baa38677;background:#fff3;padding:18px;display:flex;align-items:flex-start;gap:15px}.volume-number{background:var(--book-color,#5b2425);color:#e8cc8e;border-radius:2px;min-width:38px;height:54px;display:grid;place-items:center;box-shadow:inset 3px 0 #0002;flex-shrink:0}.volume h3{font-size:18px;font-weight:400;margin:0 0 7px}.volume p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}.catalogue-note{font-size:12px;line-height:1.5;color:var(--muted);margin:24px 0 0}.empty-results{text-align:center;padding:30px 10px;color:var(--muted)}.about-dialog{text-align:center;width:min(590px,calc(100% - 32px));padding:36px 44px}.about-dialog .dialog-heading{text-align:left}.about-cross{display:block;margin:16px auto 25px}.about-dialog .gold-rule{width:70px;margin:20px auto}.about-dialog p:not(.eyebrow){font-size:18px;line-height:1.8;color:var(--muted)}.compact{font-size:19px;min-height:52px;padding:12px 22px;gap:20px;margin-top:10px}@media(min-width:1600px){.hero-content{padding-top:16px}}@media(max-width:900px){.site-header{height:95px;padding:10px 5%}.brand{gap:20px}.brand img{height:70px;width:41px}.brand-rule{height:52px}.wordmark{font-size:39px;letter-spacing:6px}nav{gap:25px}.nav-link{font-size:23px}.search-button{margin-left:0}.hero-content{padding-top:23px}.hero h1{letter-spacing:-1px}.read-button{font-size:26px;min-height:68px;padding:12px 30px;gap:22px}.gold-rule{margin-bottom:27px}.hero-art{aspect-ratio:1448/730}.hero-art img{object-fit:cover}}@media(max-width:560px){.site-header{height:82px;padding:10px 20px}.brand{gap:12px}.brand img{height:57px;width:34px}.brand-rule{height:40px}.wordmark{font-size:27px;letter-spacing:4px}nav{gap:15px}.nav-link{font-size:18px;padding:9px 0}.search-button{width:24px;height:30px}.search-button svg{width:25px;height:25px}.hero-art{aspect-ratio:1200/680}.hero-books{width:120.67%;height:auto;aspect-ratio:1448/680;margin-left:-10%}.hero-content{padding:27px 20px 40px}.hero h1{font-size:clamp(36px,9vw,50px);line-height:1.12;margin-bottom:24px}.gold-rule{width:90px;height:2px}.read-button{font-size:23px;gap:17px;padding:12px 25px}.read-button svg{width:39px;height:32px}dialog{padding:25px 20px}.volume-list{grid-template-columns:1fr}h2{font-size:31px}.about-dialog{padding:28px}.compact{font-size:17px}.eyebrow{font-size:10px;letter-spacing:1.8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Keep the parchment continuous and the navigation comfortable on small screens. */
/* Reserve room for the title and action before sizing the desktop artwork. */
@media(min-width:561px){
  .hero{height:calc(100dvh - 120px);min-height:420px;display:flex;flex-direction:column}
  .hero-art{flex:1;min-height:0;aspect-ratio:auto}
  .hero-art img{object-fit:contain}
  .hero-content{flex:none;padding:12px 24px 24px}
  .hero h1{font-size:clamp(40px,min(6.08vw,9dvh),88px);margin:0 0 16px}
  .hero-content .gold-rule{margin-bottom:22px}
  .hero-content .read-button{min-height:64px;font-size:28px;padding:12px 36px}
}
@media(min-width:561px) and (max-width:900px){.hero{height:calc(100dvh - 95px)}}
/* Feather the artwork itself, including its edges inside a wide viewport. */
body{background-image:linear-gradient(var(--tint),var(--tint)),url('assets/parchment.jpg')}
.site-header{border-bottom:0;background:linear-gradient(180deg,#f6f0e84d,transparent)}
.hero-art{
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 6%,#000 85%,transparent);
  mask-image:linear-gradient(to bottom,transparent,#000 6%,#000 85%,transparent);
}
@media(max-width:560px){
  .hero-art{
    -webkit-mask-image:linear-gradient(to bottom,transparent,#000 6%,#000 85%,transparent),linear-gradient(to right,transparent,#000 4%,#000 96%,transparent);
    mask-image:linear-gradient(to bottom,transparent,#000 6%,#000 85%,transparent),linear-gradient(to right,transparent,#000 4%,#000 96%,transparent);
    -webkit-mask-composite:source-in;
    mask-composite:intersect;
  }
}
@media(min-width:561px){
  .hero-art{container-type:size;display:flex;align-items:center;justify-content:center}
  .hero-books{
    width:min(100cqw,212.9412cqh);
    height:min(100cqh,46.9613cqw);
    flex:none;
    -webkit-mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);
    mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);
  }
}
body,dialog{background-size:cover;background-repeat:no-repeat}body{min-height:100dvh}@media(max-width:560px){.site-header{padding-inline:16px}.brand{gap:10px}.wordmark{font-size:25px;letter-spacing:3px}nav{gap:12px}}@media(max-width:380px){.brand-rule{display:none}.brand img{width:30px;height:52px}.nav-link{font-size:17px}}
.readable-volume{grid-column:1/-1;border-color:#b88b39;background:#fff5}.volume-read-link{display:inline-block;margin-top:12px;color:var(--wine);font-size:15px;text-underline-offset:4px}

/* Themed scrollbars: a slim gold thumb on a faint parchment track, everywhere. */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#b88b3914;border-radius:5px}
::-webkit-scrollbar-thumb{background:#b88b3999;border:2px solid transparent;border-radius:5px;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background-color:#8c6028}
::-webkit-scrollbar-thumb:active{background-color:var(--wine)}
::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-button{display:none}
@supports not selector(::-webkit-scrollbar){*{scrollbar-color:#b88b3999 #b88b3914;scrollbar-width:thin}}

/* Page themes, each a gentle hue of one volume's colored spine in the hero image.
   `--tint` washes the parchment, `--sheet` backs notes, `--wine` is the accent. */
:root{--tint:#efe5d959;--sheet:#f7efe5e8;--muted:#755f50}
:root[data-theme="rose"]{--paper:#f0e0db;--tint:#f2ddd685;--sheet:#f9ece8eb;--ink:#3a1916;--wine:#6e2f2c;--muted:#7a5550}
:root[data-theme="umber"]{--paper:#ece0cd;--tint:#eddcc285;--sheet:#f7eee0eb;--ink:#33231a;--wine:#5e4126;--muted:#76604a}
:root[data-theme="moss"]{--paper:#e2e3cf;--tint:#dfe3c88f;--sheet:#f1f2e3eb;--ink:#26291a;--wine:#454f2a;--muted:#62664a}
:root[data-theme="slate"]{--paper:#dfe3e4;--tint:#d9e1e48f;--sheet:#eef1f2eb;--ink:#1f2a30;--wine:#344a57;--muted:#5a676d}
:root[data-theme="copper"]{--paper:#efdcc6;--tint:#f2d9bc85;--sheet:#f9ecdceb;--ink:#3b2414;--wine:#7a4622;--muted:#7d5e45}
:root[data-theme="teal"]{--paper:#dce3df;--tint:#d6e2dc8f;--sheet:#ecf2efeb;--ink:#1c2b28;--wine:#2f4c47;--muted:#566a65}
:root[data-theme="sage"]{--paper:#e8e4cf;--tint:#e8e3c68f;--sheet:#f4f2e3eb;--ink:#2e2a19;--wine:#5a5332;--muted:#6c6649}
:root[data-theme="rust"]{--paper:#f0dccd;--tint:#f2d6c285;--sheet:#f9ebe0eb;--ink:#3a1c10;--wine:#7a3a1d;--muted:#7c5a48}
:root[data-theme="forest"]{--paper:#dde3d4;--tint:#d6e0cc8f;--sheet:#edf2e7eb;--ink:#1f2a1b;--wine:#3a4d2e;--muted:#5b6852}
:root[data-theme="steel"]{--paper:#dfe3ea;--tint:#d8dfe98f;--sheet:#eef1f5eb;--ink:#1e2733;--wine:#34475f;--muted:#5b6575}
:root[data-theme="taupe"]{--paper:#e9e2dc;--tint:#e8ddd48f;--sheet:#f5f0ebeb;--ink:#2f2520;--wine:#5c4a40;--muted:#73655c}

/* The colored spine of each hero volume is a theme switch. */
.hero-books{position:relative}
.book-theme{position:absolute;padding:0;border:0;border-radius:2px;background:transparent;transition:backdrop-filter .2s,box-shadow .2s}
.book-theme:hover{backdrop-filter:brightness(1.18) saturate(1.1);box-shadow:0 0 0 1px #e8cc8eb3,0 0 18px #e8cc8e66}
.book-theme:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.book-theme[aria-pressed="true"]{box-shadow:0 0 0 2px #e8cc8e}
.book-theme[aria-pressed="true"]::after{content:'';position:absolute;left:18%;right:18%;bottom:-9px;height:3px;border-radius:2px;background:var(--gold)}

/* Narrow phones: scale the wordmark and navigation with the viewport so the header never overflows. */
@media(max-width:420px){
  .site-header{gap:10px}
  .brand{gap:8px;flex:none}
  .wordmark{font-size:clamp(16px,5.2vw,25px);letter-spacing:clamp(1px,.8vw,3px)}
  nav{gap:clamp(8px,3vw,12px)}
  .nav-link{font-size:clamp(14px,4.4vw,18px)}
  .search-button{width:22px}
  .search-button svg{width:22px;height:22px}
}
.book-cover:hover{backdrop-filter:brightness(1.05)}

/* Sound picker under the hero title and echo slider pinned bottom-right. Volumes sound on hover, or on tap on touch screens. */
.sound-controls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 22px;margin-top:16px;color:var(--muted);font-size:15px}
.sound-choices{display:flex;gap:3px;padding:3px;border:1px solid #bd9c7080;border-radius:999px;background:#fff4}
.sound-choices button{padding:4px 14px;border:0;border-radius:999px;background:transparent;color:var(--ink);font-size:15px;transition:background .15s,color .15s}
.sound-choices button:hover{background:#b88b392a}
.sound-choices button[aria-pressed="true"]{background:var(--wine);color:#fff4e5}
.sound-choices button svg{display:block;width:18px;height:18px;stroke-width:1.8}
.sound-controls button:focus-visible{outline-offset:2px}
.sound-echo{position:fixed;right:20px;bottom:16px;z-index:5;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:15px}
.sound-echo input{width:150px;margin:0;accent-color:var(--wine);cursor:pointer}
.sound-echo output{min-width:3.2em;text-align:left;font-variant-numeric:tabular-nums}
.sound-echo.is-disabled{opacity:.45}
.sound-echo.is-disabled input{cursor:default}
/* On tablets and phones the slider joins the picker, centered on its own line beneath it. */
.sound-controls .sound-echo{position:static;flex-basis:100%;justify-content:center}

/* Between phones and wide desktops, scale the header with the viewport (capped at desktop sizes) so the
   wordmark and navigation always fit with a clear gap, instead of jumping between fixed breakpoint sizes. */
@media(min-width:421px) and (max-width:1180px){
  .site-header{gap:16px}
  .brand{gap:clamp(12px,2.5vw,30px);flex:none}
  .wordmark{font-size:clamp(22px,4.6vw,54px);letter-spacing:clamp(3px,.68vw,8px)}
  nav{gap:clamp(14px,4.7vw,56px)}
  .nav-link{font-size:clamp(18px,2.6vw,30px)}
}

/* Armenian hero title: hero-title.js sizes it to the English title's width. */
.hero-armenian-title{margin:4px 0 0;font-size:40px;font-weight:400;line-height:1.2;white-space:nowrap;text-shadow:0 1px #fff9}
.hero-armenian-title+h1{margin-top:0}
