:root {
    --blue: #04aef0;
    --green: #a7c226;
    --ink: #17313b;
    --muted: #64747a;
    --paper: #f7f8f3;
    --white: #fff;
    --line: #dce6e2;
    --shadow: 0 18px 50px rgba(23, 49, 59, .09);
    --ease: cubic-bezier(.23, 1, .32, 1)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6
}

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

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

.site-header {
    background: rgba(247, 248, 243, .9);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(16px)
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 78px;
    gap: 28px
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    line-height: .9;
    display: flex;
    flex-direction: column
}

.brand strong {
    color: var(--blue);
    font-style: italic;
    font-weight: 700
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: .9rem
}

.site-header nav a {
    transition: color .18s ease
}

.site-header nav a:hover {
    color: var(--blue)
}

.nav-pill {
    border: 1px solid var(--blue);
    border-radius: 99px;
    padding: 7px 14px
}

.hero {
    padding: 90px 0 70px;
    background: linear-gradient(120deg, #eef8f7 0%, var(--paper) 65%);
    border-bottom: 1px solid var(--line)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 90px;
    align-items: end
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    color: var(--blue);
    font-weight: 700;
    margin: 0 0 14px
}

.hero h1,
.about-hero h1 {
    font: 700 clamp(3rem, 7vw, 6.5rem)/.95 'Playfair Display', serif;
    letter-spacing: -.055em;
    margin: 0;
    max-width: 720px
}

.hero h1 em,
.about-hero h1 em {
    color: var(--green);
    font-style: italic
}

.hero-copy {
    font-size: 1.1rem;
    max-width: 470px;
    color: var(--muted);
    margin: 26px 0 30px
}

.hero-note {
    border-left: 3px solid var(--green);
    padding: 15px 0 15px 24px;
    max-width: 250px;
    transform: rotate(3deg);
    color: var(--muted)
}

.note-mark {
    font-size: 2.4rem;
    color: var(--green)
}

.button {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    padding: 13px 19px;
    border-radius: 4px;
    font: 600 .88rem 'DM Sans';
    transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s ease
}

.button:active {
    transform: scale(.97)
}

.button.primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 8px 20px rgba(4, 174, 240, .2)
}

.button.primary:hover {
    background: #008fd0;
    box-shadow: 0 12px 28px rgba(4, 174, 240, .3)
}

.button.secondary {
    background: var(--ink);
    color: white
}

.catalogue-section {
    padding: 75px 0
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px
}

.section-heading h2 {
    font: 700 3rem/1 'Playfair Display';
    margin: 0
}

.book-count {
    color: var(--muted);
    font-size: .85rem
}

.access-panel,
.member-banner {
    background: var(--ink);
    color: white;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.access-panel p,
.member-banner {
    margin: 0
}

.access-panel strong {
    font-size: 1.05rem
}

.access-panel p {
    color: #b9cdd0;
    font-size: .86rem
}

.inline-form {
    display: flex;
    gap: 8px
}

.inline-form input {
    width: 220px
}

.access-panel .button {
    padding: 11px 15px
}

.book-list {
    border-top: 1px solid var(--line)
}

.book-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    transition: padding .2s var(--ease)
}

.book-card:hover {
    padding-left: 10px
}

.book-index {
    font: 700 1rem 'Playfair Display';
    color: var(--green)
}

.book-info h3 {
    margin: 0;
    font: 700 1.45rem 'Playfair Display'
}

.author,
.detail-author {
    color: var(--muted);
    margin: 2px 0 12px;
    font-size: .9rem
}

.summary-preview {
    margin: 0 0 7px;
    color: var(--muted);
    max-width: 650px
}

.text-button,
.book-detail-link,
.back-link,
.whatsapp-link {
    border: 0;
    background: none;
    color: var(--blue);
    font: 600 .83rem 'DM Sans';
    cursor: pointer;
    padding: 0
}

.book-detail-link {
    white-space: nowrap
}

.locked-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted)
}

.member-banner {
    background: #edf5d5;
    color: var(--ink);
    font-size: .9rem
}

.member-banner a {
    color: #688100;
    text-decoration: underline
}

.summary-dialog {
    border: 0;
    border-radius: 10px;
    padding: 42px;
    max-width: 520px;
    width: calc(100% - 32px);
    box-shadow: var(--shadow);
    color: var(--ink)
}

.summary-dialog::backdrop {
    background: rgba(23, 49, 59, .4);
    backdrop-filter: blur(4px)
}

.summary-dialog h2 {
    font: 700 2rem 'Playfair Display';
    margin: 0
}

.summary-dialog #dialog-summary {
    color: var(--muted);
    margin: 22px 0
}

.dialog-close {
    position: absolute;
    right: 18px;
    top: 14px;
    border: 0;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--muted)
}

.detail-page {
    padding: 60px 0 100px
}

.back-link {
    display: inline-block;
    margin-bottom: 55px
}

.detail-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    max-width: 840px;
    margin: auto
}

.detail-number {
    font: 700 2rem 'Playfair Display';
    color: var(--green)
}

.detail-layout h1 {
    font: 700 clamp(2.7rem, 7vw, 5.8rem)/.95 'Playfair Display';
    letter-spacing: -.05em;
    margin: 0
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 99px;
    padding: 7px 14px;
    font-size: .82rem;
    font-weight: 700;
    margin: 15px 0 32px
}

.availability span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor
}

.available {
    background: #edf5d5;
    color: #607a00
}

.borrowed {
    background: #ffe6e1;
    color: #b03d29
}

.long-summary {
    border-top: 1px solid var(--line);
    padding-top: 28px;
    max-width: 650px
}

.long-summary h2 {
    font: 700 1.5rem 'Playfair Display'
}

.long-summary p {
    color: var(--muted)
}

.book-facts {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--line);
    padding: 20px 0;
    margin: 28px 0
}

.book-facts div {
    display: grid;
    gap: 3px
}

.book-facts dt {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted)
}

.book-facts dd {
    margin: 0
}

.form-page {
    padding: 80px 0 110px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start
}

.form-intro h1 {
    font: 700 clamp(2.8rem, 5vw, 5.2rem)/.95 'Playfair Display';
    letter-spacing: -.05em;
    margin: 0 0 24px
}

.form-intro>p:not(.eyebrow) {
    color: var(--muted);
    max-width: 430px
}

.whatsapp-link {
    display: inline-block;
    margin-top: 20px
}

.card-form {
    background: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px
}

.card-form label {
    font-size: .84rem;
    font-weight: 600;
    display: grid;
    gap: 7px
}

.card-form input {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 13px;
    font: inherit;
    width: 100%
}

.card-form input:focus {
    outline: 2px solid rgba(4, 174, 240, .35);
    border-color: var(--blue)
}

.card-form small {
    font-weight: 400;
    color: var(--muted)
}

.honeypot {
    position: absolute;
    left: -9999px
}

.form-error {
    margin: 0;
    background: #fff0ed;
    color: #a33120;
    padding: 11px;
    border-radius: 4px;
    font-size: .85rem
}

.about-hero {
    padding: 90px 0 75px
}

.about-content {
    padding-bottom: 110px
}

.about-block {
    border-top: 1px solid var(--line);
    padding: 34px 0
}

.big-copy {
    font: 700 clamp(1.7rem, 3vw, 3rem)/1.1 'Playfair Display';
    max-width: 900px;
    margin: 0
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 70px;
    border-top: 1px solid var(--line);
    padding: 45px 0
}

.values-grid h2,
.vision h2 {
    font: 700 2.6rem 'Playfair Display';
    margin: 0
}

.value-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.value-list article {
    border-top: 3px solid var(--green);
    padding-top: 13px
}

.value-list span {
    color: var(--blue);
    font-size: .75rem
}

.value-list h3 {
    font: 700 1.35rem 'Playfair Display';
    margin: 8px 0
}

.value-list p,
.vision p {
    color: var(--muted)
}

.vision {
    max-width: 760px
}

.site-footer {
    background: var(--ink);
    color: white;
    padding: 30px 0
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center
}

.footer-credit {
    margin: 0;
    color: #cfdddd;
    font-size: .82rem
}

.footer-credit a {
    color: var(--green);
    position: relative
}

.footer-credit a:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--ease)
}

.footer-credit a:hover:after {
    transform: scaleX(1);
    transform-origin: left
}

.footer-meta {
    margin: 0;
    color: #8da5a8;
    font-size: .75rem
}

.alert {
    margin-top: 20px;
    padding: 13px 16px;
    border-radius: 4px;
    font-size: .88rem
}

.alert.success {
    background: #edf5d5;
    color: #607a00
}

.alert.error {
    background: #fff0ed;
    color: #a33120
}

.empty-state {
    padding: 35px 0;
    color: var(--muted)
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

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

    .nav-wrap {
        align-items: flex-start;
        padding: 15px 0;
        flex-direction: column
    }

    .site-header nav {
        gap: 12px;
        flex-wrap: wrap
    }

    .hero {
        padding: 60px 0
    }

    .hero-grid,
    .form-page {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .hero-note {
        justify-self: end
    }

    .section-heading {
        align-items: start;
        gap: 10px;
        flex-direction: column
    }

    .access-panel {
        align-items: stretch;
        flex-direction: column
    }

    .inline-form {
        flex-direction: column
    }

    .inline-form input {
        width: 100%
    }

    .book-card {
        grid-template-columns: 35px 1fr;
        gap: 12px
    }

    .book-card .book-detail-link,
    .book-card .locked-label {
        grid-column: 2
    }

    .book-info h3 {
        font-size: 1.25rem
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .detail-number {
        font-size: 1.5rem
    }

    .values-grid,
    .value-list {
        grid-template-columns: 1fr
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important
    }
}