:root {
    --paper: #f4ead6;
    --paper-2: #e7dcc6;
    --ink: #12151c;
    --muted: #5c554c;
    --rule: #d4c8b0;
    --night: #0b1220;
    --night-2: #152036;
    --gold: #e09a2b;
    --plum: #6d3d8a;
    --focus: #e09a2b;
    --max: 68rem;
    --narrow: 40rem;
    --space: 1.25rem;
    --font-ui: "Figtree", system-ui, sans-serif;
    --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
    --font-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 1.05rem;
    line-height: 1.55;
    min-height: 100vh;
}

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

a {
    color: var(--plum);
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3rem;
    background: var(--night);
    color: var(--paper);
    padding: 0.5rem 0.8rem;
    z-index: 20;
}

.skip-link:focus {
    top: 0.75rem;
}

.wrap {
    width: min(var(--max), calc(100% - 2rem));
    margin-inline: auto;
}

.narrow {
    width: min(var(--narrow), calc(100% - 2rem));
}

.site-header {
    background: var(--night);
    color: var(--paper);
    padding: 0.9rem 0;
    padding-top: max(0.9rem, env(safe-area-inset-top));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.logo:hover {
    color: var(--gold);
}

.logo-img {
    height: 2.75rem;
    width: auto;
    max-width: 6.5rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.logo-mark {
    color: var(--gold);
    flex: 0 0 auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.logo-tag {
    color: #cbbfa8;
    font-size: 0.78rem;
}

.site-nav-desktop {
    display: none;
    gap: 1.25rem;
}

.site-nav a {
    color: var(--paper);
    text-decoration: none;
    font-weight: 500;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
    color: var(--gold);
}

.nav-toggle {
    position: relative;
}

.nav-toggle summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid #4a4358;
    padding: 0.55rem 0.8rem;
    font-weight: 500;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-toggle summary::-webkit-details-marker {
    display: none;
}

.nav-toggle .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    background: var(--night-2);
    min-width: 11rem;
    padding: 0.6rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 10;
    box-shadow: 0 12px 30px rgb(0 0 0 / 0.25);
}

.hero {
    padding: 0 0 2rem;
    background: var(--night);
    color: var(--paper);
}

.hero-art {
    min-height: 16rem;
    background: #0b1220 url("/images/owback.png") center top / cover no-repeat;
}

.hero-copy {
    padding-top: 1.6rem;
}

.hero .eyebrow {
    color: var(--gold);
}

.hero .lede {
    color: #e4d6b8;
}

.page-header {
    padding: 2.5rem 0 2rem;
}

.hero h1,
.page-header h1,
.book-copy h1,
.article-page h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.4rem);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 0.8rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--plum);
    margin: 0 0 0.6rem;
}

.lede {
    font-family: var(--font-body);
    font-size: 1.2rem;
    max-width: 38rem;
    margin: 0;
}

.shelf-block {
    padding: 0.5rem 0 2.5rem;
}

.shelf-head h2,
.newsletter h2,
.shelf-index h2,
.related h2,
.buy-box h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin: 0 0 0.4rem;
}

.shelf-head p,
.newsletter p {
    color: var(--muted);
    margin: 0 0 0.75rem;
    max-width: 38rem;
}

.text-link {
    font-weight: 600;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.book-grid-featured,
.book-grid-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-card-link {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.book-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.25;
}

.byline,
.meta,
.isbn {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.cover {
    background: var(--night-2);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    box-shadow: 0 10px 24px rgb(28 25 21 / 0.12);
    position: relative;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-fallback {
    display: none;
    position: absolute;
    inset: 0;
    padding: 1rem;
    color: var(--paper);
    font-family: var(--font-display);
    align-items: flex-end;
}

.cover-empty .cover-fallback {
    display: flex;
}

.journal-band,
.newsletter,
.site-footer {
    background: var(--night);
    color: var(--paper);
    padding: 2.4rem 0;
}

.journal-band a,
.newsletter a,
.site-footer a {
    color: var(--gold);
}

.article-cards,
.shelf-list {
    display: grid;
    gap: 1rem;
}

.article-card,
.article-row {
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
}

.journal-band .article-card {
    border-top-color: #3a3346;
}

.article-card h3,
.article-row h2 {
    font-family: var(--font-display);
    margin: 0 0 0.35rem;
}

.shelf-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.shelf-list a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
    padding: 1rem 0;
    border-top: 1px solid var(--rule);
}

.shelf-index {
    padding: 0 0 2.5rem;
}

.newsletter-inner {
    max-width: 32rem;
}

.newsletter form,
.admin-form {
    display: grid;
    gap: 0.9rem;
}

.field-row {
    display: grid;
    gap: 0.35rem;
}

input[type="email"],
input[type="text"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="date"],
textarea,
select {
    font: inherit;
    padding: 0.7rem 0.75rem;
    border: 1px solid #4a4358;
    background: #fff;
    color: var(--ink);
    width: 100%;
}

.newsletter input[type="email"] {
    border-color: #4a4358;
}

.field-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

button,
.buy-btn {
    font: inherit;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    background: var(--gold);
    color: var(--night);
    padding: 0.85rem 1rem;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.buy-btn:hover {
    background: #d0a245;
    color: var(--night);
}

.flash {
    padding: 0.7rem 0.8rem;
    background: #2c2638;
}

.flash-error {
    background: #4a2430;
}

.book-page,
.page,
.article-page {
    padding-bottom: 3rem;
}

.book-layout {
    display: grid;
    gap: 1.5rem;
}

.cover-hero {
    max-width: 16rem;
}

.shop-note {
    font-family: var(--font-body);
    font-size: 1.15rem;
    margin: 1.1rem 0 1.4rem;
}

.buy-box {
    background: #efe4ce;
    padding: 1.1rem;
    margin: 1.4rem 0;
}

.buy-disclosure {
    font-size: 0.95rem;
    color: var(--muted);
}

.buy-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.65rem;
}

.buy-btn {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
    min-height: 44px;
    width: 100%;
}

.buy-btn small {
    font-weight: 400;
    color: var(--muted);
}

.buy-btn-primary {
    background: var(--plum);
    border-color: var(--plum);
    color: #fff;
}

.buy-btn-primary small {
    color: #f0dce6;
}

.buy-btn-primary:hover {
    background: #5a3148;
    color: #fff;
}

.also-on {
    margin-top: 1.2rem;
}

.prose {
    font-family: var(--font-body);
    font-size: 1.12rem;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    margin: 1.8rem 0 0.6rem;
}

.prose p,
.prose ul {
    margin: 0 0 1rem;
}

.related {
    margin-top: 2.5rem;
}

.footer-inner {
    display: grid;
    gap: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-disclosure,
.footer-brand {
    color: #cbbfa8;
    margin: 0;
}

.site-footer {
    padding-bottom: max(2.4rem, env(safe-area-inset-bottom));
}

@media (min-width: 720px) {
    .nav-toggle {
        display: none;
    }

    .logo-img {
        height: 3.25rem;
        max-width: 8rem;
    }

    .hero-art {
        min-height: 22rem;
        background-position: center 20%;
    }

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

    .book-grid,
    .book-grid-featured,
    .book-grid-shelf {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .book-layout {
        grid-template-columns: 16rem 1fr;
        gap: 2.5rem;
        align-items: start;
    }

    .article-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .journal-band .article-card {
        border-top: 0;
        padding-top: 0;
    }
}

@media (min-width: 1024px) {
    .book-grid-featured {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
