/* ================================================================
   Walter Barnes Author Site
   Design: parchment, forest green, antique gold
   Content is controlled mainly in /content/*.js
   ================================================================ */

:root {
    --ink: #251d13;
    --muted: #6e6252;
    --paper: #f4ecd7;
    --paper-deep: #e6d8b8;
    --forest: #183327;
    --forest-2: #284d39;
    --gold: #b68b3a;
    --gold-light: #d7bd7b;
    --line: rgba(74, 57, 33, .24);
    --shadow: 0 16px 40px rgba(36, 26, 14, .18);
    --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top, rgba(255,255,255,.55), transparent 40rem),
        #e9ddc2;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.62;
}

img {
    max-width: 100%;
    display: block;
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 28, 22, .97);
    color: #f5e9c8;
    border-bottom: 1px solid rgba(214, 184, 108, .45);
    backdrop-filter: blur(10px);
}

.nav-wrap {
    width: min(var(--max), calc(100% - 32px));
    margin: auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    margin-right: auto;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 13px;
}

.monogram {
    width: 46px;
    height: 46px;
    border: 1px solid var(--gold);
    display: grid;
    place-items: center;
    color: var(--gold-light);
    font-size: 1.2rem;
    letter-spacing: .03em;
}

.brand-text strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.brand-text small {
    color: var(--gold-light);
    font-style: italic;
}

.site-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .83rem;
    padding: 28px 0 24px;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--gold-light);
    border-color: var(--gold);
}

.menu-button {
    display: none;
    border: 1px solid rgba(255,255,255,.3);
    background: transparent;
    color: white;
    padding: 8px 11px;
    font: inherit;
}

.hero {
    position: relative;
    min-height: 490px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(69, 49, 25, .35);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 25, 20, .78), rgba(18,25,20,.25) 55%, rgba(18,25,20,.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: auto;
    color: white;
    padding: 72px 0;
}

.hero-content.compact { padding: 54px 0; }

.eyebrow {
    color: #f2d791;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
}

.hero h1 {
    max-width: 760px;
    margin: 8px 0 14px;
    font-size: clamp(2.8rem, 7vw, 5.7rem);
    line-height: .98;
    font-weight: 400;
    letter-spacing: .02em;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.hero p {
    max-width: 680px;
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    color: #f5edd9;
    margin: 0;
}

.page-shell {
    width: min(var(--max), calc(100% - 32px));
    margin: 48px auto 76px;
}

.paper-panel {
    background:
        linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.1)),
        var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 34px;
    align-items: stretch;
}

.copy-card {
    padding: clamp(28px, 5vw, 58px);
}

.copy-card h2,
.section-title {
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0 0 14px;
}

.copy-card p { font-size: 1.07rem; }

.image-card {
    min-height: 360px;
    background-size: cover;
    background-position: center;
}

.button {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    background: var(--forest);
    color: #f8eccf;
    border: 1px solid var(--gold);
}

.button:hover { background: var(--forest-2); }

.section-block {
    margin-top: 42px;
    padding: clamp(28px, 5vw, 52px);
}

.section-kicker {
    color: var(--forest-2);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
}

.book-hero {
    min-height: 445px;
}

.book-hero::after {
    background: linear-gradient(90deg, rgba(15, 25, 19, .82), rgba(15,25,19,.38) 58%, rgba(15,25,19,.1));
}

.series-copy {
    margin-top: 8px;
    max-width: 760px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.book-card {
    overflow: hidden;
}

.book-image {
    aspect-ratio: 16 / 8.8;
    object-fit: cover;
    width: 100%;
    background: #d9c9a7;
}

.book-copy {
    padding: 28px 30px 32px;
}

.relationship {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem;
}

.book-copy h2 {
    margin: 6px 0 10px;
    line-height: 1.08;
    font-size: 2rem;
    font-weight: 400;
}

.badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .68rem;
    font-weight: bold;
}

.badge.seeking {
    background: #294f67;
    color: white;
}

.badge.progress {
    background: #345a28;
    color: white;
}

.badge.announced {
    background: #a67c2f;
    color: #fffaf0;
}

.journal-list {
    display: grid;
    gap: 24px;
}

.journal-entry {
    padding: clamp(24px, 4vw, 42px);
}

.journal-date {
    color: var(--forest-2);
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: .75rem;
}

.journal-entry h2 {
    font-size: 2rem;
    font-weight: 400;
    margin: 4px 0 7px;
}

.journal-summary {
    color: var(--muted);
    font-style: italic;
}

.journal-image {
    margin: 20px 0;
    max-height: 430px;
    width: 100%;
    object-fit: cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 28px;
}

.contact-email {
    font-size: 1.25rem;
    color: var(--forest);
    word-break: break-word;
}

.site-footer {
    background: #13241c;
    color: #e8dbc0;
    border-top: 1px solid rgba(214,184,108,.35);
    padding: 28px 0;
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.footer-inner small { color: #bfb49d; }

@media (max-width: 820px) {
    .menu-button { display: block; }
    .brand-text small { display: none; }

    .site-nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        padding: 14px 24px 22px;
        background: #102017;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav.open { display: flex; }

    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .hero { min-height: 420px; }

    .intro-grid,
    .contact-grid,
    .books-grid {
        grid-template-columns: 1fr;
    }

    .image-card { min-height: 280px; }
}

@media (max-width: 520px) {
    .nav-wrap { width: min(100% - 20px, var(--max)); }
    .brand-text strong { font-size: 1.05rem; }
    .monogram { width: 39px; height: 39px; }
    .hero-content,
    .page-shell,
    .footer-inner { width: calc(100% - 22px); }
}
