:root {
    --ivory: #FFF4E9;
    --ivory2: #F5DFC9;
    --paper: #FFFCF8;
    --ink: #302015;
    --text: #665044;
    --muted: #927D70;
    --forest: #C7652B;
    --forest2: #8F3F19;
    --clay: #E98A45;
    --gold: #F2BE62;
    --line: rgba(48, 32, 21, .14);
    --light: rgba(255, 255, 255, .14);
    --shadow: 0 30px 80px rgba(143, 63, 25, .14);
    --font: 'DM Sans', sans-serif;
    --display: 'Marcellus', serif;
    --mono: 'IBM Plex Mono', monospace;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--ivory);
    color: var(--text);
    font-family: var(--font)
}

body.lock {
    overflow: hidden
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

.container {
    width: min(1240px, calc(100% - 40px));
    margin: auto
}

.section {
    padding: 110px 0;
    position: relative
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--clay);
    font: 600 .61rem var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase
}

.eyebrow:before {
    content: '';
    width: 34px;
    height: 1px;
    background: currentColor
}

.title {
    max-width: 960px;
    margin-top: 18px;
    color: var(--ink);
    font: 400 clamp(3.5rem, 6vw, 6.9rem)/.9 var(--display);
    letter-spacing: -.045em
}

.title em {
    font-style: normal;
    color: var(--forest)
}

.copy {
    max-width: 700px;
    margin-top: 18px;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.82
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .74rem;
    font-weight: 700;
    transition: .2s
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-forest {
    background: var(--forest);
    color: #fff
}

.btn-clay {
    background: var(--clay);
    color: #fff
}

.btn-light {
    border-color: var(--line);
    background: #fff;
    color: var(--ink)
}

.header {
    position: fixed;
    z-index: 100;
    top: 16px;
    left: 0;
    right: 0
}

.nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 9px 10px 9px 15px;
    border: 1px solid rgba(24, 35, 31, .1);
    border-radius: 18px;
    background: rgba(255, 252, 248, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 15px 45px rgba(24, 35, 31, .08)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px
}

.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--forest);
    color: #f4c595
}

.brand-name {
    color: var(--ink);
    font-weight: 700
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
    list-style: none
}

.nav-links a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #68716d;
    font-size: .8rem;
    font-weight: 600
}

.nav-links a:hover,
.nav-links a.active {
    background: #fff;
    color: var(--ink)
}

.nav .btn {
    min-height: 44px
}

.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink)
}

.mobile {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: none;
    padding: 96px 18px;
    background: rgba(13, 41, 35, .84);
    backdrop-filter: blur(14px)
}

.mobile.show {
    display: block
}

.mobile-panel {
    max-width: 560px;
    margin: auto;
    padding: 14px;
    border-radius: 22px;
    background: var(--paper)
}

.mobile-panel a {
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700
}

.hero {
    height: 850px;
    overflow: hidden;
    padding: 140px 0 60px;
    position: relative;
    background: radial-gradient(circle at 82% 16%, rgba(89, 117, 217, .13), transparent 28%), radial-gradient(circle at 10% 82%, rgba(223, 107, 79, .16), transparent 30%), linear-gradient(135deg, #faf5ee, #e9dad0)
}

.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(24, 35, 31, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 35, 31, .03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(#000, transparent 92%)
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .94fr 1.06fr;
    gap: 70px;
    align-items: center
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .66);
    color: #69726d;
    font: 600 .56rem var(--mono);
    text-transform: uppercase
}

.hero-kicker i {
    color: var(--clay);
    font-size: .45rem
}

.hero h1 {
    max-width: 820px;
    margin-top: 28px;
    color: var(--ink);
    font: 400 clamp(4.7rem, 8vw, 4.9rem)/.76 var(--display);
    letter-spacing: -.06em
}

.hero h1 span {
    display: block;
    color: var(--forest)
}

.hero-copy {
    max-width: 650px;
    margin-top: 28px;
    color: #6e7672;
    font-size: .98rem;
    line-height: 1.82
}

.hero-copy strong {
    color: var(--ink)
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 660px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--line)
}

.fact {
    padding: 0 18px;
    border-right: 1px solid var(--line)
}

.fact:first-child {
    padding-left: 0
}

.fact:last-child {
    border-right: 0
}

.fact b {
    display: block;
    color: var(--ink);
    font: 400 2.3rem/1 var(--display)
}

.fact span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .58rem;
    line-height: 1.45
}

.stage {
    position: relative;
    min-height: 620px;
    perspective: 1300px
}

.shadow {
    position: absolute;
    left: 10%;
    right: 2%;
    bottom: 58px;
    height: 34px;
    border-radius: 50%;
    background: rgba(24, 35, 31, .16);
    filter: blur(18px)
}

.stack {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 510px;
    height: 520px;
    transform: translate(-50%, -50%) rotate(-3deg);
    transform-style: preserve-3d
}

.book {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-radius: 10px 16px 16px 10px;
    color: #fff;
    box-shadow: 0 24px 55px rgba(24, 35, 31, .18)
}

.book:after {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, .3)
}

.book small {
    font: 600 .48rem var(--mono);
    text-transform: uppercase;
    opacity: .72
}

.book b {
    font: 400 1.15rem var(--display)
}

.b1 {
    top: 40px;
    width: 340px;
    height: 68px;
    background: #df6b4f;
    transform: translateX(-50%) rotate(-7deg) translateZ(90px)
}

.b2 {
    top: 113px;
    width: 410px;
    height: 72px;
    background: #5975d9;
    transform: translateX(-48%) rotate(5deg) translateZ(65px)
}

.b3 {
    top: 190px;
    width: 360px;
    height: 66px;
    background: #8c5b87;
    transform: translateX(-55%) rotate(-3deg) translateZ(45px)
}

.b4 {
    top: 260px;
    width: 455px;
    height: 80px;
    background: #2d7662;
    transform: translateX(-50%) rotate(4deg) translateZ(25px)
}

.b5 {
    top: 344px;
    width: 395px;
    height: 70px;
    background: #c39937;
    transform: translateX(-47%) rotate(-5deg)
}

.b6 {
    top: 418px;
    width: 445px;
    height: 75px;
    background: #364843;
    transform: translateX(-53%) rotate(2deg)
}

.seal {
    position: absolute;
    z-index: 8;
    left: 50%;
    top: 50%;
    width: 165px;
    height: 165px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) translateZ(135px);
    border: 8px solid rgba(255, 255, 255, .68);
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    box-shadow: 0 25px 65px rgba(23, 61, 52, .3)
}

.seal small {
    font: 600 .46rem var(--mono);
    text-transform: uppercase;
    color: #b8c9c2
}

.seal b {
    margin-top: 8px;
    font: 400 4.1rem/.86 var(--display)
}

.seal span {
    margin-top: 7px;
    color: #f2cf8a;
    font-size: .55rem;
    font-weight: 700;
    text-transform: uppercase
}

.note {
    position: absolute;
    z-index: 9;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 253, 248, .86);
    box-shadow: 0 18px 45px rgba(24, 35, 31, .12)
}

.note small {
    display: block;
    color: var(--muted);
    font-size: .47rem;
    text-transform: uppercase
}

.note b {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-size: .68rem
}

.note i {
    margin-right: 7px;
    color: var(--clay)
}

.na {
    right: -6px;
    top: 10px
}

.nb {
    left: 0;
    bottom: 22px
}

.catalog {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.25fr repeat(4, 1fr);
    margin-top: 58px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.catalog>div,
.catalog>a {
    min-height: 128px;
    padding: 23px;
    border-right: 1px solid var(--line)
}

.catalog>a:last-child {
    border-right: 0
}

.catalog .intro {
    padding-left: 0
}

.intro span {
    color: var(--clay);
    font: 600 .53rem var(--mono);
    text-transform: uppercase
}

.intro strong {
    display: block;
    max-width: 290px;
    margin-top: 12px;
    color: var(--ink);
    font: 400 1.32rem/1.05 var(--display)
}

.catalog a {
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.catalog a b {
    color: var(--ink);
    font-size: .74rem
}

.catalog a span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: .59rem;
    line-height: 1.45
}

.catalog a i {
    color: var(--clay)
}

.volumes {
    background: var(--forest2);
    color: #fff
}

.volumes .title {
    color: #fff
}

.volumes .copy {
    color: #9eb0aa
}

.library {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 22px;
    margin-top: 48px
}

.shelf {
    position: sticky;
    top: 104px;
    height: max-content;
    padding: 15px 15px 28px;
    border: 1px solid var(--light);
    border-radius: 20px;
    background: #12352d
}

.shelf:after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    height: 9px;
    border-radius: 2px;
    background: #79563b;
    box-shadow: 0 5px 0 #503624
}

.shelf-label {
    display: block;
    margin-bottom: 12px;
    color: #9eb0aa;
    font: 600 .52rem var(--mono);
    text-transform: uppercase
}

.volume-btn {
    position: relative;
    width: 100%;
    min-height: 62px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px 13px 13px 7px;
    background: var(--spine);
    color: #fff;
    text-align: left;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .14);
    transition: .2s
}

.volume-btn:hover,
.volume-btn.active {
    transform: translateX(8px)
}

.volume-btn i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-left: 7px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%
}

.volume-btn b {
    display: block;
    font-size: 1rem
}

.volume-btn small {
    display: none;
    margin-top: 3px;
    color: rgba(255, 255, 255, .66);
    font-size: .48rem;
    text-transform: uppercase
}

.volume-btn span {
    font: 600 .49rem var(--mono);
    opacity: .7
}

.reader {
    position: relative;
    min-height: 580px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 28px;
    background: #daedef;
    color: var(--ink);
    overflow: hidden;
    box-shadow: var(--shadow)
}

.page {
    position: relative;
    padding: 34px
}

.left {
    background: linear-gradient(90deg, #e9f4f8, #d4eaee)
}

.right {
    background: linear-gradient(90deg, #d4e5ee, #eff9fb);
    padding-bottom: 95px
}

.page:after {
    content: attr(data-page);
    position: absolute;
    bottom: 18px;
    color: #9b9488;
    font: 500 .48rem var(--mono)
}

.left:after {
    left: 32px
}

.right:after {
    right: 32px
}

.reader-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff
}

.reader-head {
    padding-bottom: 23px;
    border-bottom: 1px solid var(--line)
}

.reader-head small {
    display: block;
    margin-top: 18px;
    color: var(--accent);
    font: 600 .72rem var(--mono);
    text-transform: uppercase
}

.reader-head h3 {
    margin-top: 10px;
    font: 400 clamp(2.8rem, 4vw, 4.6rem)/.92 var(--display)
}

.reader-head p {
    margin-top: 13px;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.7
}

.meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px
}

.meta div {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .45)
}

.meta b {
    display: block;
    color: var(--accent);
    font: 400 1.6rem var(--display)
}

.meta span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .5rem;
    text-transform: uppercase
}

.quote {
    margin-top: 25px;
    padding: 20px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, .4);
    font: 400 1.35rem/1.2 var(--display)
}

.service-index {
    display: grid;
    gap: 9px;
    padding-bottom: 40px
}

.entry {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 11px;
    align-items: start;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    text-align: left;
    color: var(--ink);
    transition: .2s
}

.entry:hover {
    transform: translateX(5px);
    background: #fff;
    border-color: var(--accent)
}

.entry>i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--soft);
    color: var(--accent)
}

.entry h4 {
    font-size: .86rem;
    line-height: 1.35
}

.entry p {
    margin-top: 5px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.48
}

.entry span:last-child {
    align-self: center;
    color: var(--accent)
}

.reader-action {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 42px
}

.reader-action .btn {
    width: 100%
}

.path {
    background: var(--paper)
}

.ticket {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 1fr);
    margin-top: 45px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.ticket-lead {
    padding: 27px;
    background: var(--clay);
    color: #fff
}

.ticket-lead small {
    font: 600 .53rem var(--mono);
    text-transform: uppercase
}

.ticket-lead h3 {
    margin-top: 50px;
    font: 400 2.6rem/.95 var(--display)
}

.ticket-lead p {
    margin-top: 13px;
    color: rgba(255, 255, 255, .75);
    font-size: .72rem;
    line-height: 1.65
}

.ticket-step {
    position: relative;
    min-height: 320px;
    padding: 27px;
    border-left: 1px dashed var(--line)
}

.ticket-step small {
    color: var(--step);
    font: 600 .52rem var(--mono);
    text-transform: uppercase
}

.ticket-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-top: 60px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--step)
}

.ticket-step h3 {
    margin-top: 22px;
    color: var(--ink);
    font: 400 1.8rem var(--display)
}

.ticket-step p {
    margin-top: 10px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.66
}

.archive {
    background: #fff
}

.archive-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    grid-template-rows: repeat(2, 235px);
    gap: 12px;
    margin-top: 45px
}

.archive-card {
    position: relative;
    padding: 25px;
    border-radius: 24px;
    background: var(--ivory);
    overflow: hidden
}

.archive-card.large {
    grid-row: span 2;
    background: var(--forest);
    color: #fff
}

.archive-card.wide {
    grid-column: span 2;
    background: #e4e9fb
}

.archive-card i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--forest)
}

.archive-card h3 {
    margin-top: 30px;
    color: var(--ink);
    font: 400 2rem/1 var(--display)
}

.archive-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.65
}

.archive-card.large h3 {
    margin-top: 130px;
    color: #fff;
    font-size: 3.1rem
}

.archive-card.large p {
    color: #adc0b8
}

.faq {
    background: var(--ivory2)
}

.faq-grid {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 70px;
    align-items: start
}

.faq-side {
    position: sticky;
    top: 105px
}

.faq-list {
    display: grid;
    gap: 9px
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .58)
}

.faq-item.open {
    background: #fff;
    border-color: rgba(23, 61, 52, .25)
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font-size: .83rem;
    font-weight: 700
}

.faq-q i {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e7f0eb;
    color: var(--forest);
    transition: .2s
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
    background: var(--forest);
    color: #fff
}

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .24s
}

.faq-a>div {
    overflow: hidden
}

.faq-a p {
    padding: 0 19px;
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.72
}

.faq-item.open .faq-a {
    grid-template-rows: 1fr
}

.faq-item.open .faq-a p {
    padding-bottom: 19px
}

.contact {
    background: var(--forest2);
    color: #fff
}

.reading-room {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    overflow: hidden;
    border: 1px solid var(--light);
    border-radius: 30px;
    background: #15382f;
    box-shadow: var(--shadow)
}

.room-info {
    padding: 43px;
    background: linear-gradient(145deg, #1b493d, #0d2923)
}

.room-info h2 {
    margin-top: 18px;
    font: 400 clamp(3rem, 5vw, 5.1rem)/.9 var(--display)
}

.room-info h2 em {
    display: block;
    color: #f2cf8a;
    font-style: normal
}

.room-info>p {
    margin-top: 17px;
    color: #a9bbb4;
    font-size: .76rem;
    line-height: 1.72
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 29px
}

.contact-list a,
.contact-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b3c3bd;
    font-size: .69rem
}

.contact-list i {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    color: #f2cf8a
}

.contact-form {
    padding: 38px;
    background: #f4f3ef;
    color: var(--ink)
}

.contact-form h3,
.newsletter-form h3 {
    font: 400 2.1rem var(--display)
}

.contact-form>p {
    margin-top: 7px;
    color: var(--muted);
    font-size: .7rem
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.field {
    margin-top: 14px
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: #717783;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d8d9dc;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: .74rem
}

.field textarea {
    min-height: 108px;
    resize: vertical
}

.contact-form .btn,
.newsletter-form .btn {
    width: 100%;
    margin-top: 16px
}

.form-note {
    margin-top: 10px;
    color: #858b95;
    font-size: .55rem;
    line-height: 1.52;
    text-align: center
}

.newsletter {
    padding-top: 0;
    background: var(--forest2)
}

.newsletter-box {
    display: grid;
    grid-template-columns: 1fr .92fr;
    gap: 45px;
    padding: 44px;
    border-radius: 28px;
    background: linear-gradient(135deg, #e7efe9, #e6eafb 55%, #f8e6d2);
    color: var(--ink)
}

.newsletter-box .title {
    font-size: clamp(2.8rem, 4.8vw, 5.1rem)
}

.newsletter-points {
    display: grid;
    gap: 9px;
    margin-top: 23px
}

.newsletter-points span {
    display: flex;
    gap: 9px;
    color: #69707b;
    font-size: .71rem;
    line-height: 1.58
}

.newsletter-points i {
    margin-top: 3px;
    color: var(--forest)
}

.newsletter-form {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .8)
}

.consent {
    display: flex;
    gap: 8px;
    margin-top: 13px
}

.consent input {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: var(--forest)
}

.consent span {
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.52
}

.unsub-btn {
    width: 100%;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: .6rem;
    text-decoration: underline
}

footer {
    padding: 60px 0 22px;
    background: #071713;
    color: #fff
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1.15fr;
    gap: 36px;
    padding-bottom: 36px
}

.footer-copy {
    max-width: 330px;
    margin-top: 14px;
    color: #71837c;
    font-size: .68rem;
    line-height: 1.7
}

.footer-title {
    margin: 5px 0 14px;
    color: #f2cf8a;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

footer ul {
    display: grid;
    gap: 8px;
    list-style: none
}

footer li a,
footer li button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #74857e;
    font-size: .66rem;
    text-align: left
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #53645d;
    font-size: .7rem
}

.footer-bottom nav {
    display: flex;
    gap: 12px
}

.footer-bottom button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit
}

.overlay {
    position: fixed;
    z-index: 400;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(13, 41, 35, .84);
    backdrop-filter: blur(14px)
}

.overlay.show {
    display: flex
}

.dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: 86vh;
    overflow: auto;
    padding: 30px;
    border-radius: 24px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow)
}

.close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff
}

.dialog h3 {
    padding-right: 48px;
    font: 400 2.1rem var(--display)
}

.legal-meta {
    margin: 16px 0;
    padding: 12px 14px;
    border-left: 3px solid var(--clay);
    background: rgba(223, 107, 79, .08);
    font-size: .62rem
}

.legal {
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.73
}

.legal h4 {
    margin: 18px 0 6px;
    color: var(--ink)
}

.toasts {
    position: fixed;
    z-index: 500;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 8px
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 350px;
    padding: 13px 15px;
    border-radius: 13px;
    background: var(--forest);
    color: #fff;
    box-shadow: var(--shadow);
    font-size: .68rem
}

.toast i {
    color: #f2cf8a
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: .65s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

@media(max-width:1100px) {

    .nav-links,
    .nav>.btn {
        display: none
    }

    .menu-btn {
        display: block
    }

    .hero-grid,
    .faq-grid,
    .reading-room,
    .newsletter-box {
        grid-template-columns: 1fr
    }

    .library {
        grid-template-columns: 1fr
    }

    .shelf {
        position: static;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 7px
    }

    .volume-btn {
        margin: 0;
        grid-template-columns: 40px 1fr
    }

    .volume-btn span {
        display: none
    }

    .ticket {
        grid-template-columns: 1fr 1fr
    }

    .ticket-lead {
        grid-column: span 2
    }

    .archive-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto
    }

    .archive-card.large {
        grid-row: auto;
        grid-column: span 2;
        min-height: 420px
    }

    .archive-card.wide {
        grid-column: span 2
    }

    .faq-side {
        position: static
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr
    }
}

@media(max-width:760px) {
    .container {
        width: min(100% - 28px, 1240px)
    }

    .section {
        padding: 82px 0
    }

    .header {
        top: 9px
    }

    .hero {
        padding-top: 108px
    }

    .hero h1 {
        font-size: clamp(4rem, 16vw, 6rem)
    }

    .facts {
        grid-template-columns: 1fr
    }

    .fact {
        padding: 13px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .stage {
        min-height: 570px
    }

    .stack {
        width: 350px
    }

    .b1 {
        width: 260px
    }

    .b2 {
        width: 320px
    }

    .b3 {
        width: 280px
    }

    .b4 {
        width: 340px
    }

    .b5 {
        width: 300px
    }

    .b6 {
        width: 330px
    }

    .seal {
        width: 135px;
        height: 135px
    }

    .seal b {
        font-size: 3.3rem
    }

    .note {
        display: none
    }

    .catalog {
        grid-template-columns: 1fr
    }

    .catalog .intro {
        padding-left: 23px
    }

    .catalog>a {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .shelf {
        grid-template-columns: 1fr 1fr
    }

    .reader {
        grid-template-columns: 1fr
    }

    .reader:before {
        display: none
    }

    .page {
        padding: 25px 18px
    }

    .reader-action {
        left: 18px;
        right: 18px
    }

    .ticket {
        grid-template-columns: 1fr
    }

    .ticket-lead {
        grid-column: auto
    }

    .ticket-step {
        border-left: 0;
        border-top: 1px dashed var(--line)
    }

    .archive-grid {
        grid-template-columns: 1fr
    }

    .archive-card.large,
    .archive-card.wide {
        grid-column: auto;
        min-height: 310px
    }

    .archive-card.large h3 {
        margin-top: 75px;
        font-size: 2.5rem
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .room-info,
    .contact-form,
    .newsletter-box {
        padding: 25px 18px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid>:first-child {
        grid-column: span 2
    }

    .footer-bottom {
        flex-direction: column
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        transition-duration: .01ms !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}

/* ---- multi-page additions ---- */
.page-hero {
    position: relative;
    padding: 150px 0 56px;
    background: radial-gradient(circle at 82% 16%, rgba(89, 117, 217, .13), transparent 28%), radial-gradient(circle at 10% 82%, rgba(79, 169, 223, .16), transparent 30%)
}

.page-hero .title {
    font-size: clamp(2.6rem, 5.6vw, 5rem);
    margin-top: 16px
}

.page-hero .title em {
    color: var(--clay);
    font-style: normal
}

.page-hero p.sub {
    max-width: 560px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8
}

.crumbs {
    font: 600 .61rem var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px
}

.crumbs a:hover {
    color: var(--clay)
}

.legal-wrap {
    padding: 20px 0 100px
}

.legal-doc {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: clamp(26px, 4vw, 52px);
    max-width: 860px;
    margin: 0 auto;
    box-shadow: var(--shadow)
}

.legal-doc .legal-meta {
    margin-top: 0
}

.legal-doc .legal h4 {
    margin: 26px 0 8px;
    font-size: 1.05rem;
    color: var(--ink)
}

.legal-nav {
    max-width: 860px;
    margin: 22px auto 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: .8rem;
    font-weight: 700
}

.legal-nav a {
    color: var(--forest);
    text-decoration: underline;
    text-underline-offset: 4px
}

.panel-narrow {
    max-width: 520px;
    margin: 0 auto 100px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: clamp(26px, 4vw, 40px);
    box-shadow: var(--shadow)
}

#unsubDone {
    display: none;
    text-align: center
}

#unsubDone i.big {
    font-size: 2.3rem;
    color: var(--clay);
    margin-bottom: 14px
}

.cta-band {
    padding: 80px 0
}

.cta-band .row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    justify-content: space-between
}

footer li a {
    color: #74857e;
    font-size: .66rem
}

footer li a:hover {
    color: #fff
}

.footer-bottom a {
    color: inherit
}

.footer-bottom a:hover {
    color: #fff
}

a.unsub-btn {
    display: block;
    text-align: center
}