/* ═══════════════════════════════════════════════════════════════════════
   Design tokens — the "Classical" system from the Janes Journal Redesign.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
    --color-bg: #f3f2f2;
    --color-surface: #eae9e9;
    --color-text: #201f1d;
    --color-accent: #b68235;
    --color-divider: color-mix(in srgb, #201f1d 16%, transparent);

    /* The JTS brick red, from the logo mark. Carries white text at 5.36:1. */
    --color-hero: #bf3d2c;

    --color-neutral-100: #f8f4f4;
    --color-neutral-200: #eae7e7;
    --color-neutral-300: #d7d3d3;
    --color-neutral-400: #bab6b6;
    --color-neutral-500: #9b9797;
    --color-neutral-600: #7d7979;
    --color-neutral-700: #605d5d;
    --color-neutral-800: #444141;
    --color-neutral-900: #2d2b2b;

    --color-accent-100: #fff3e4;
    --color-accent-200: #ffe3bf;
    --color-accent-300: #facb8d;
    --color-accent-400: #e1ad66;
    --color-accent-500: #c28d41;
    --color-accent-600: #a06f24;
    --color-accent-700: #7d5411;
    --color-accent-800: #5a3b0a;
    --color-accent-900: #3a270d;

    --font-heading: "Cormorant Garamond", Georgia, serif;
    --font-heading-weight: 600;
    --font-body: "Lora", Georgia, serif;

    --space-1: 4.6px;
    --space-2: 9.2px;
    --space-3: 13.8px;
    --space-4: 18.4px;
    --space-6: 27.6px;
    --space-8: 36.8px;

    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 7px;

    --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
    --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
    --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);

    /* Aliases — the volume/article pages and the PDF.js viewer chrome below
       are written against the original token names. Pointing them at the new
       palette re-skins those pages without touching their rules. */
    --bg-color: var(--color-bg);
    --text-primary: var(--color-text);
    --text-secondary: var(--color-neutral-700);
    --border-color: var(--color-divider);
    --accent: var(--color-accent);
    --font-sans: var(--font-body);
    --font-serif: var(--font-heading);
    --max-width: 900px;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

::selection {
    background: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #000;
    text-decoration: underline;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-weight: var(--font-heading-weight);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-3) 0;
    position: sticky;
    top: 0;
    z-index: 200;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}

.site-header .logo img {
    display: block;
    height: 34px;
    width: auto;
}

/* Desktop nav links */
.site-header nav a {
    margin-left: var(--space-4);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-neutral-700);
    text-decoration: none;
}

.site-header nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.site-header nav a[aria-current="page"] {
    color: var(--color-text);
    font-weight: 600;
}

/* ── Hamburger toggle — hidden on desktop ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 7px;
    background: none;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: #f2f2f2;
    border-color: var(--border-color);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform 0.24s ease,
        opacity 0.18s ease;
}

/* Animate to X when nav is open */
.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    /* Mobile nav: hidden by default, slides in when .nav-open */
    #site-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        z-index: 199;
        /* Hidden state */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }

    .site-header.nav-open #site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    #site-nav a {
        margin-left: 0;
        padding: 14px 20px;
        font-size: 0.95rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.12s;
    }

    #site-nav a:last-child {
        border-bottom: none;
    }

    #site-nav a:hover {
        background: #f7f7f7;
    }
}

.content {
    padding: 60px 20px;
    min-height: 70vh;
}

/* Lists and TOC */
.page-container {
    max-width: 850px; 
    margin: 0 auto;
}

.page-header {
    text-align: center; 
    border-bottom: 2px solid var(--border-color); 
    padding-bottom: 15px; 
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 2.8rem; 
    font-family: var(--font-serif); 
    margin-bottom: 0;
}

.meta,
.meta-year {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.toc-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.toc-item:last-child {
    border-bottom: none;
}

.article-title {
    font-size: 1.25rem;
    margin: 0 0 5px 0;
}

.article-author {
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    font-style: italic;
    font-family: var(--font-serif);
}

.author-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.author-article-list li {
    padding: 6px 0;
}

.author-article-list .article-author {
    display: block;
    margin: 0;
    font-size: 0.9rem;
}

.tag {
    display: inline-block;
    background: #eee;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Volume group (on /volumes/ index) ── */
.volume-group {
    margin-bottom: 52px;
}

.volume-group:last-child {
    margin-bottom: 0;
}

.volume-group-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.volume-group-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.volume-group-year {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* ── Issue list inside a volume group ── */
.issue-list {
    display: flex;
    flex-direction: column;
}

/* ── Issue card — the whole card is a clickable <a> ── */
.issue-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 14px;
    margin: 0 -14px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    border-radius: 5px;
    transition: background 0.14s ease;
}

.issue-card:last-child {
    border-bottom: none;
}

.issue-card:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: inherit;
}

.issue-card:hover .issue-card-cta {
    transform: translateX(4px);
    color: var(--text-primary);
}

.issue-card-body {
    flex: 1;
    min-width: 0;
}

.issue-card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: var(--text-primary);
    line-height: 1.35;
}

.issue-card-desc {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    /* Clamp to two lines */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.issue-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    transition:
        transform 0.14s ease,
        color 0.14s ease;
}

.submission-guidelines {
    border: 1px solid var(--color-divider);
    border-left: 4px solid var(--color-accent);
    padding: var(--space-4);
    margin: var(--space-8) 0 0;
    background-color: var(--color-neutral-100);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-neutral-700);
}
.submission-guidelines p {
    margin: 0;
}
.submission-guidelines a {
    color: var(--color-accent-700);
    text-decoration: underline;
    font-weight: 600;
}
.submission-guidelines a:hover {
    color: var(--color-accent-900);
}

/* Article Hero Background */
.article-hero {
    width: 100%;
    padding: 100px 20px;
    margin-bottom: 0;
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
}

.hero-content-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.article-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.article-hero .author {
    font-size: 1.25rem;
    font-style: italic;
    color: #eaeaea;
    font-family: var(--font-serif);
    margin-bottom: 15px;
}

.article-hero .meta {
    color: #cccccc;
    font-size: 1rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    font-family: var(--font-body);
}

.article-hero .article-issue {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 1px;
}

.article-hero .article-issue:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-decoration: none;
}

.article-hero .article-year {
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
}

.hero-tag {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-body {
    font-size: 1.15rem; 
    line-height: 1.8; 
    color: var(--text-primary);
}

/* ─── PDF Viewer ──────────────────────────────────────────────────────────── */

.pdf-section {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

/* ── Outer shell ── */
.pdf-viewer {
    display: flex;
    flex-direction: column;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

/* ── Toolbar ── */
.pdf-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    height: 44px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    font-family: var(--font-sans);
    flex-shrink: 0;
    /* subtle inset top highlight */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pdf-tb-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pdf-tb-sep {
    width: 1px;
    height: 18px;
    background: #e0e0e0;
    margin: 0 6px;
    flex-shrink: 0;
}

.pdf-tb-spacer {
    flex: 1;
}

/* ── Toolbar buttons (base) ── */
.pdf-tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    height: 28px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    color: #3a3a3a;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.1s,
        border-color 0.1s,
        color 0.1s;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.pdf-tb-btn:hover {
    background: #efefef;
    border-color: #d8d8d8;
    color: #111;
    text-decoration: none;
}

.pdf-tb-btn:active {
    background: #e3e3e3;
}

.pdf-tb-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* Icon-only: square */
.pdf-tb-btn--icon {
    width: 30px;
    padding: 0;
}

/* Labeled: icon + text */
.pdf-tb-btn--labeled {
    gap: 5px;
}

/* ── Zoom select ── */
.pdf-zoom-select {
    height: 28px;
    padding: 0 6px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    background: #fff;
    color: #3a3a3a;
    cursor: pointer;
    outline: none;
    transition: border-color 0.1s;
    min-width: 90px;
}

.pdf-zoom-select:hover {
    border-color: #b0b0b0;
}

.pdf-zoom-select:focus {
    border-color: #888;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.07);
}

/* ── Page display ── */
.pdf-page-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdf-page-input {
    width: 40px;
    height: 28px;
    padding: 0 4px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-align: center;
    color: #3a3a3a;
    outline: none;
    background: #fff;
    transition: border-color 0.1s;
}

.pdf-page-input:focus {
    border-color: #888;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.07);
}

.pdf-page-input::-webkit-inner-spin-button,
.pdf-page-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pdf-page-sep,
.pdf-page-total {
    font-size: 0.78rem;
    color: #888;
    font-family: var(--font-sans);
}

/* ── Segmented view-mode toggle ── */
.pdf-seg {
    display: flex;
    align-items: center;
    background: #ebebeb;
    border-radius: 6px;
    padding: 2px;
    gap: 1px;
}

.pdf-seg-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    height: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: #777;
    background: transparent;
    transition:
        background 0.15s,
        color 0.15s,
        box-shadow 0.15s;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.pdf-seg-btn:hover:not(.pdf-seg-btn--active) {
    color: #333;
}

.pdf-seg-btn--active {
    background: #fff;
    color: #111;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.15),
        0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

/* ── Pages area ── */
.pdf-pages {
    overflow-y: auto;
    max-height: 80vh;
    background: #404040;
    padding: 28px 24px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    /* Smooth scroll */
    scroll-behavior: smooth;
}

/* Single-page mode: center vertically, no gap needed */
.pdf-pages--single {
    justify-content: center;
    padding: 32px 24px;
    gap: 0;
}

/* ── Page wrapper (placeholder + canvas container) ── */
.pdf-page-wrapper {
    position: relative;
    background: #d8d8d8;
    flex-shrink: 0;
    border-radius: 1px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.25);
}

.pdf-page-wrapper canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pdf-page-wrapper canvas.pdf-canvas-ready {
    opacity: 1;
}

/* ── Loading state ── */
.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 60px 20px;
    letter-spacing: 0.01em;
}

.pdf-loading svg {
    animation: pdf-spin 1.4s linear infinite;
    opacity: 0.6;
}

@keyframes pdf-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ── Error state ── */
.pdf-error {
    color: rgba(255, 160, 160, 0.9);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 48px 20px;
    text-align: center;
    line-height: 1.7;
}

.pdf-error small {
    display: block;
    margin-top: 6px;
    opacity: 0.65;
    font-size: 0.75rem;
}

/* ── Fullscreen ── */
.pdf-viewer:fullscreen,
.pdf-viewer:-webkit-full-screen {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.pdf-viewer:fullscreen .pdf-pages,
.pdf-viewer:-webkit-full-screen .pdf-pages {
    max-height: calc(100vh - 44px);
}

/* ── Legacy helper ── */
.btn-small {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.site-footer {
    margin-top: var(--space-8);
    border-top: 1px solid var(--color-divider);
    background: var(--color-neutral-100);
    padding: var(--space-6) 0;
    color: var(--color-neutral-700);
    font-size: 12.5px;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.site-footer .footer-mark {
    display: block;
    height: 28px;
    width: auto;
    opacity: 0.85;
}

.site-footer .footer-meta {
    text-align: right;
}

.site-footer .footer-meta p {
    margin: 0;
}

@media (max-width: 600px) {
    .site-footer .container {
        justify-content: center;
    }
    .site-footer .footer-meta {
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Cover plates — a JANES cover, composed from its parts (see
   layouts/partials/cover.html). .cover is a container-query root and all of
   its type is sized in cqw, so one partial renders correctly at any width.
   ═══════════════════════════════════════════════════════════════════════ */
.plate {
    box-sizing: border-box;
    border: 6px solid var(--color-surface);
    outline: 1px solid var(--color-divider);
    filter: sepia(0.22) saturate(0.82) contrast(1.05);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cover {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    aspect-ratio: 5 / 7;
    background: var(--cover-color, var(--color-neutral-500));
    color: #fff;
}

.cover-band {
    display: block;
    width: 100%;
    height: 38%;
    object-fit: cover;
    flex: none;
}

.cover-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4cqw;
    padding: 5cqw;
    text-align: center;
    min-height: 0;
}

.cover-title {
    margin: 0;
    color: #1a1a1a;
    line-height: 1.15;
}

.cover-title-lead {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13cqw;
}

.cover-title-rest {
    display: block;
    margin-top: 1.5cqw;
    font-family: var(--font-body);
    font-size: 5.2cqw;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cover-mark {
    display: block;
    width: 42cqw;
    height: auto;
    margin-top: auto;
}

.cover-vol {
    margin: 0;
    font-family: var(--font-body);
    font-size: 4.6cqw;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

/* ═══════════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    font-size: 15px;
    line-height: 1.2;
    padding: calc(var(--space-2) * 0.85) var(--space-3);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

/* On the accent-colored hero plate */
.btn-on-accent {
    color: #fff;
    border-color: #fff;
}

.btn-on-accent:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn-ghost-on-accent {
    color: #fff;
}

.btn-ghost-on-accent:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════
   Homepage
   ═══════════════════════════════════════════════════════════════════════ */
.hero-band {
    height: 150px;
    overflow: hidden;
}

.hero-band img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(12%) contrast(1.02);
}

.hero-plate {
    background: var(--color-hero);
    padding: var(--space-6) var(--space-6) var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
}

.hero-eyebrow {
    margin: 0;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.hero-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    max-width: 24ch;
    color: #fff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.section {
    max-width: 980px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.section-archive {
    padding-top: 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    border-bottom: 1px solid var(--color-divider);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-6);
}

.section-head h2 {
    margin: 0;
    font-size: 26px;
    color: var(--color-text);
}

.section-head a {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-accent-700);
}

/* Latest issue */
.latest-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--space-6);
    align-items: start;
}

.latest-plate {
    display: block;
    padding: 0;
}

.latest-plate:hover .plate {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.toc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.toc-item {
    border-bottom: 1px solid var(--color-divider);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-3);
}

.toc-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.toc-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: var(--color-text);
    text-decoration: none;
}

.toc-title:hover {
    color: var(--color-accent-700);
    text-decoration: underline;
}

.toc-author {
    margin: 4px 0 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-neutral-700);
}

/* Archive plate grid */
.plate-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-6);
}

.plate-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-decoration: none;
}

.plate-link:hover {
    text-decoration: none;
}

.plate-link:hover .plate {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.plate-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--color-text);
}

.plate-year {
    color: var(--color-neutral-700);
}

/* Pull quote */
.pullquote {
    border-top: 1px solid var(--color-divider);
    background: var(--color-neutral-100);
}

.pullquote blockquote {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: var(--color-text);
}

@media (max-width: 640px) {
    .latest-body {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .latest-plate {
        width: 180px;
    }
    .toc {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plate {
        transition: none;
    }
    .plate-link:hover .plate,
    .latest-plate:hover .plate {
        transform: none;
    }
}
/* ═══════════════════════════════════════════════════════════════════════
   Archive + issue pages (layouts/volumes/list.html)
   ═══════════════════════════════════════════════════════════════════════ */
.page {
    max-width: 980px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.page-wide {
    max-width: 1080px;
}

.page-narrow {
    max-width: 820px;
}

.crumbs {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-neutral-700);
    margin-bottom: var(--space-4);
}

.crumbs a {
    color: var(--color-accent-700);
    text-decoration: none;
}

.crumbs a:hover {
    text-decoration: underline;
}

.page-title {
    margin: 0 0 var(--space-2);
    font-size: 36px;
    color: var(--color-text);
}

.page-lede {
    margin: 0 0 var(--space-8);
    font-family: var(--font-body);
    font-size: 15px;
    max-width: 64ch;
    color: var(--color-neutral-700);
}

.page-body {
    font-family: var(--font-body);
    color: var(--color-neutral-800);
}

/* Larger plates on the archive page than on the homepage strip */
.plate-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* Volume / issue masthead */
.issue-head {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    border-bottom: 1px solid var(--color-divider);
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-6);
}

.issue-head-plate {
    flex: none;
    width: 140px;
}

.issue-head-year {
    margin: 0;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-700);
}

.issue-head-title {
    margin: 6px 0 0;
    font-size: 32px;
    color: var(--color-text);
}

.issue-head-meta {
    margin: 8px 0 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-neutral-700);
}

/* Issue table of contents — the homepage .toc, plus a Read PDF action */
.toc-issue .toc-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) 0 var(--space-4);
    margin-bottom: 0;
}

.toc-item-text {
    min-width: 0;
}

.toc-issue .toc-title {
    font-size: 19px;
}

.toc-issue .btn {
    flex: none;
    font-size: 13px;
}

.btn-secondary {
    color: var(--color-text);
    border-color: var(--color-divider);
}

.btn-secondary:hover {
    background: color-mix(in srgb, var(--color-text) 7%, transparent);
    color: var(--color-text);
}

/* Issue picker (volumes 1–4, which have two issues each) */
.issue-picker {
    list-style: none;
    margin: 0;
    padding: 0;
}

.issue-picker a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-divider);
    text-decoration: none;
}

.issue-picker a:hover {
    text-decoration: none;
}

.issue-picker a:hover .issue-picker-title {
    color: var(--color-accent-700);
}

.issue-picker-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 19px;
    color: var(--color-text);
}

.issue-picker-meta {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-neutral-700);
}

@media (max-width: 640px) {
    .issue-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .toc-issue .toc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}

/* ─── Submission Guidelines page ──────────────────────────────────────────── */

/* Gray "▸ instruction" boxes from the print guide, restyled as the site's
   gold-left-border callout (echoes .submission-guidelines). */
.instruction-box {
    background-color: var(--color-neutral-100);
    border: 1px solid var(--color-divider);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: var(--space-6) 0;
}
.instruction-box .box-title {
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    color: var(--color-accent-700);
    margin: 0 0 var(--space-2);
    font-size: 1.05rem;
}
.instruction-box p:last-child,
.instruction-box ul:last-child,
.instruction-box pre:last-child {
    margin-bottom: 0;
}
/* Citation / title-block examples: preserve line breaks without shouting. */
.instruction-box pre,
.guide-example {
    font-family: var(--font-body);
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.55;
    background: none;
    margin: var(--space-2) 0 0;
}

/* Submission checklist — no bullet markers, checkbox glyph instead. */
.guide-checklist {
    list-style: none;
    padding-left: 0;
    margin: var(--space-4) 0;
}
.guide-checklist li {
    position: relative;
    padding-left: 1.9em;
    margin-bottom: var(--space-2);
    line-height: 1.5;
}
.guide-checklist li::before {
    content: "\2610";               /* ☐ ballot box */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-size: 1.1em;
}

/* Manuscript-preview demos — white panels set in Times New Roman that actually
   render the described house-style formatting instead of merely listing it, so
   each example demonstrates what it describes (like the Word guide does). Sizes
   are in rem off the 16px root so point-size proportions (16/14/12) read right. */
.ms-demo {
    font-family: "Times New Roman", Times, serif;
    background: #fff;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    margin: var(--space-3) 0 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
}
.ms-demo p {
    margin: 0 0 var(--space-2);
}
.ms-demo p:last-child {
    margin-bottom: 0;
}

/* Title block: centered, with the 16 / 14 / 12pt size hierarchy. */
.title-block-demo {
    text-align: center;
}
.title-block-demo p {
    line-height: 1.3;
}
.title-block-demo .tb-title {
    font-size: 1.33rem;   /* 16pt */
    font-weight: 700;
}
.title-block-demo .tb-author {
    font-size: 1.17rem;   /* 14pt */
}
.title-block-demo .tb-affil {
    font-size: 1rem;      /* 12pt */
}

/* Section heading: bold flush-left head; first paragraph flush left, the next
   with the standard half-inch first-line indent. */
.heading-demo .hd-heading {
    font-weight: 700;
}
.heading-demo .hd-indent {
    text-indent: 2.2em;   /* ≈ 0.5" first-line indent */
}

/* Citations: small gold label + the actual formatted footnote line. */
.citation-demo .cite-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent-700);
    margin: var(--space-3) 0 var(--space-1);
}
.citation-demo .cite-label:first-child {
    margin-top: 0;
}
.citation-demo .cite {
    margin: 0 0 var(--space-1);
}

/* Block quotation: indented from both margins, no quotation marks, justified. */
.bq-demo {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
    text-align: justify;
}

/* Table: flush-left caption above, simple top/header/bottom rules, no fills. */
.table-demo .table-caption {
    margin-bottom: var(--space-2);
}
.table-demo table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.92rem;
    border-top: 1px solid var(--color-text);
}
.table-demo th,
.table-demo td {
    padding: 4px 14px 4px 0;
    text-align: left;
}
.table-demo thead th {
    border-bottom: 1px solid var(--color-text);
}
.table-demo tbody tr:last-child td {
    border-bottom: 1px solid var(--color-text);
}

/* Figure: image placeholder with the caption below it. */
.figure-demo {
    text-align: center;
}
.figure-demo .figure-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto var(--space-2);
    border-radius: var(--radius-sm);
}
.figure-demo .figure-caption {
    font-size: 0.95rem;
}

/* Inline Hebrew / Greek script samples in an SBL/serif stack, slightly larger. */
.hebrew-example {
    font-family: "SBL BibLit", "SBL Hebrew", "Ezra SIL", Georgia, serif;
    font-size: 1.15em;
}
