
:root {
    --navy: #151c29;
    --navy-light: #1d2635;
    --navy-deep: #101621;
    --burgundy: #702c42;
    --burgundy-hover: #8c3953;
    --gold: #c8a56b;
    --ivory: #f4e9dc;
    --muted: #b7b6b9;
    --border: rgba(200,165,107,.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--navy);
    color: var(--ivory);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

    a:focus-visible, button:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 5px;
    }

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    gap: 32px;
}

.site-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-name, .footer-brand {
    color: var(--gold);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 27px;
    letter-spacing: 2px;
}

.brand-subtitle {
    color: var(--ivory);
    font-size: 10px;
    letter-spacing: 5px;
    margin-top: 6px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

    .primary-nav a {
        font-size: 13px;
        color: #ddd9d4;
        transition: color .2s ease;
    }

        .primary-nav a:hover {
            color: var(--gold);
        }

    .primary-nav .nav-join {
        padding: 10px 18px;
        border: 1px solid var(--gold);
        color: var(--gold);
        border-radius: 3px;
    }

.menu-toggle {
    display: none;
}

/* Hero */

.hero {
    position: relative;
    background: linear-gradient(90deg, rgba(10,15,24,.98) 0%, rgba(10,15,24,.92) 28%, rgba(10,15,24,.52) 52%, rgba(10,15,24,.05) 100%), url('/images/hero-literary.jpg') center center / cover no-repeat, var(--navy-deep);
}

.hero-content {
    min-height: 475px;
    display: flex;
    align-items: center;
    padding-block: 65px;
}

.hero-copy {
    max-width: 580px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: block;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.8px;
    line-height: 1.5;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 69px);
    margin: 20px 0;
    letter-spacing: -1.3px;
    line-height: 1.12;
}

    .hero h1 em {
        color: var(--gold);
        font-weight: 400;
    }

.hero-copy > p {
    max-width: 470px;
    font-size: 15px;
    color: #e1d9d1;
    margin-bottom: 25px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 13px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    transition: background .2s ease, transform .2s ease;
}

    .button:hover {
        transform: translateY(-2px);
    }

.button-primary {
    background: var(--burgundy);
    color: white;
}

    .button-primary:hover {
        background: var(--burgundy-hover);
    }

.button-small {
    padding: 10px 20px;
    margin-top: 8px;
}

/* Three-column information strip */

.quick-info {
    background: #101a28;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-block: 38px;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-info-item {
    padding: 8px 45px;
    min-width: 0;
}

    .quick-info-item:first-child {
        padding-left: 0;
    }

    .quick-info-item:last-child {
        padding-right: 0;
    }

    .quick-info-item + .quick-info-item {
        border-left: 1px solid rgba(200,165,107,.35);
    }

.quick-icon {
    color: var(--gold);
    font-size: 26px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.quick-info-item h2 {
    font-size: 25px;
    margin: 10px 0;
}

.quick-info-item p {
    color: var(--muted);
    font-size: 13px;
    max-width: 300px;
    margin-bottom: 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
}

    .text-link:hover {
        color: var(--ivory);
    }

/* Community banner */

.community-section {
    background: linear-gradient(90deg, rgba(35,14,25,.88), rgba(91,29,51,.93) 50%, rgba(35,14,25,.88)), var(--burgundy);
    text-align: center;
    padding-block: 55px;
    border-bottom: 1px solid var(--border);
}

.community-content {
    max-width: 780px;
}

    .community-content h2 {
        font-size: clamp(30px, 4vw, 42px);
        margin-bottom: 16px;
    }

.community-rule {
    width: 65px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 18px;
}

.community-content p {
    color: #e8d9dc;
    font-size: 15px;
    margin-bottom: 0;
}

/* Featured book */

.section {
    padding-block: 85px;
}

.section-heading {
    text-align: center;
    margin-bottom: 52px;
}

    .section-heading h2 {
        font-size: clamp(34px, 4vw, 47px);
        margin: 12px 0;
    }

    .section-heading p {
        color: var(--muted);
    }

.current-book-section {
    background: var(--navy);
}

.featured-book {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: center;
    max-width: 920px;
    margin-inline: auto;
}

.book-cover-placeholder {
    aspect-ratio: 2 / 3;
    padding: 24px;
    background: linear-gradient(145deg, #71364b, #281b2a 80%);
    border: 1px solid var(--gold);
    box-shadow: 15px 18px 35px rgba(0,0,0,.3);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    line-height: 1.5;
    letter-spacing: 2px;
}

    .book-cover-placeholder small {
        color: var(--gold);
        font-family: 'DM Sans', sans-serif;
        font-size: 9px;
        letter-spacing: 1.5px;
    }

.cover-ornament {
    color: var(--gold);
}

.featured-book-details h3 {
    font-size: clamp(30px, 4vw, 46px);
    margin: 15px 0 8px;
}

.book-author {
    color: var(--gold);
    font-size: 16px;
}

.gold-rule {
    width: 65px;
    height: 1px;
    background: var(--gold);
    margin: 25px 0;
}

.featured-book-details > p:not(.book-author) {
    color: var(--muted);
    max-width: 500px;
}

/* Mailing list */

.subscribe-section {
    background: radial-gradient(circle at 50% 100%, rgba(112,44,66,.3), transparent 65%), var(--navy-deep);
    border-top: 1px solid var(--border);
    text-align: center;
    padding-block: 75px;
}

.subscribe-content {
    max-width: 690px;
}

    .subscribe-content h2 {
        font-size: clamp(34px, 4vw, 48px);
        margin: 16px 0;
    }

    .subscribe-content > p {
        color: var(--muted);
        max-width: 540px;
        margin: 0 auto 25px;
    }

.signup-preview {
    display: inline-block;
    padding: 13px 25px;
    border: 1px solid var(--border);
    color: var(--gold);
    font-size: 13px;
}

/* Footer */

.site-footer {
    background: #0c111a;
    padding-top: 55px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 35px;
}

.footer-brand {
    font-size: 20px;
}

.footer-inner p {
    color: var(--muted);
    font-size: 13px;
    margin: 12px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

    .footer-links a {
        color: var(--muted);
        font-size: 12px;
    }

        .footer-links a:hover {
            color: var(--gold);
        }

.footer-bottom {
    border-top: 1px solid var(--border);
    color: #8e9198;
    padding-block: 20px;
    font-size: 12px;
}

/* Tablet */

@media (max-width: 900px) {
    .header-inner {
        min-height: 75px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: 0;
        cursor: pointer;
        padding: 10px;
    }

        .menu-toggle span {
            width: 24px;
            height: 2px;
            background: var(--gold);
        }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 22px 24px;
        background: var(--navy-deep);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 17px;
    }

        .primary-nav.is-open {
            display: flex;
        }

        .primary-nav .nav-join {
            text-align: center;
        }

    .quick-info-item {
        padding-inline: 25px;
    }

    .featured-book {
        gap: 40px;
    }
}

/* Mobile */

@media (max-width: 700px) {
    .container {
        width: min(100% - 36px, 1200px);
    }

    .hero {
        background-position: 65% center;
    }

    .hero-content {
        min-height: 500px;
        padding-block: 65px;
    }

    .hero h1 {
        font-size: clamp(38px, 9vw, 54px);
    }

    .quick-info-grid {
        grid-template-columns: 1fr;
    }

    .quick-info-item,
    .quick-info-item:first-child,
    .quick-info-item:last-child {
        padding: 25px 0;
    }

        .quick-info-item + .quick-info-item {
            border-left: 0;
            border-top: 1px solid var(--border);
        }

    .community-section {
        padding-block: 55px;
    }

    .section {
        padding-block: 65px;
    }

    .featured-book {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 45px;
    }

    .book-cover-placeholder {
        width: min(280px, 100%);
    }

    .featured-book-details {
        width: 100%;
        text-align: center;
    }

    .gold-rule {
        margin-inline: auto;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        gap: 12px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button, .primary-nav a {
        transition: none;
    }
}

/* Books Archive */

.books-intro {
    background: radial-gradient(ellipse at 70% 50%, rgba(112,44,66,.2), transparent 60%), var(--navy-deep);
    text-align: center;
    padding: 75px 20px;
    border-bottom: 1px solid var(--border);
}

    .books-intro h1 {
        font-size: clamp(42px, 5vw, 65px);
        margin: 15px 0;
    }

    .books-intro p {
        color: var(--muted);
        max-width: 580px;
        margin: 0 auto;
    }

.books-archive {
    background: var(--navy);
}

.archive-year {
    margin-bottom: 75px;
}

    .archive-year:last-child {
        margin-bottom: 0;
    }

.archive-year-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border);
}

    .archive-year-heading h2 {
        font-size: 38px;
        margin: 0;
    }

    .archive-year-heading span {
        color: var(--gold);
        font-size: 12px;
        letter-spacing: 1px;
    }

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 28px;
}

.archive-book {
    min-width: 0;
}

.archive-cover {
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #71364b, #281b2a 80%);
    border: 1px solid rgba(200,165,107,.45);
    box-shadow: 8px 12px 25px rgba(0,0,0,.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    transition: transform .2s ease;
}

.archive-book:hover .archive-cover {
    transform: translateY(-5px);
}

.archive-cover-ornament {
    color: var(--gold);
    font-size: 25px;
}

.archive-cover-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(17px, 2vw, 25px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.archive-book-info {
    padding-top: 20px;
}

    .archive-book-info .eyebrow {
        font-size: 10px;
        letter-spacing: 1.6px;
    }

    .archive-book-info h3 {
        font-size: 23px;
        margin: 10px 0 5px;
    }

    .archive-book-info p {
        color: var(--muted);
        font-size: 13px;
    }

@media (max-width: 900px) {
    .books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .books-grid {
        gap: 28px 14px;
    }

    .archive-cover {
        padding: 12px;
    }

    .archive-cover-title {
        font-size: 17px;
    }

    .archive-book-info h3 {
        font-size: 19px;
    }

    .archive-year-heading h2 {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .archive-cover {
        transition: none;
    }
}
