/*
Theme Name: Editorial Minimal
Version: 2.1.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: editorial-minimal
License: GPL-2.0-or-later
*/
:root {
    --paper: #f7f4ed;
    --ink: #182027;
    --rust: #a43d27;
    --rule: #c8c0b2;
    --rail: 45rem;
    --wide: 72rem;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1.05rem/1.72 Georgia, serif;
}
a {
    color: var(--rust);
    text-decoration-thickness: .08em;
    text-underline-offset: .2em;
}
a:focus-visible {
    outline: .2rem solid var(--rust);
    outline-offset: .25rem;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
.skip-link {
    position: fixed;
    inset: -8rem auto auto 1rem;
    z-index: 20;
    padding: .8rem 1rem;
    background: var(--ink);
    color: var(--paper);
}
.skip-link:focus {
    top: 1rem;
}
.reading-head, .colophon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--wide);
    margin: auto;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--rule);
}
.wordmark {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
}
.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.editorial-front, .archive-rail, .reading-page, .reference-index, .listing-reference {
    width: min(100% - 2rem, var(--wide));
    margin: auto;
    padding-block: clamp(2rem, 6vw, 6rem);
}
.opening-note {
    max-width: 58rem;
    padding-block: 8vh;
    border-bottom: 2px solid var(--ink);
}
.kicker, .section-number, .reference-label {
    font: 700 .74rem/1.2 system-ui, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}
h1, h2, h3 {
    line-height: 1.08;
}
h1 {
    max-width: 12ch;
    margin: .3em 0;
    font-size: clamp(2.8rem, 8vw, 6.7rem);
    font-weight: 500;
    letter-spacing: -.045em;
}
.standfirst {
    max-width: 42rem;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}
.lead-plate {
    margin: 3rem 0 5rem;
}
.lead-plate img {
    width: 100%;
    max-height: 42rem;
    object-fit: cover;
}
figcaption {
    margin-top: .5rem;
    font: .82rem/1.5 system-ui, sans-serif;
    color: #4e5559;
}
.reading-rail {
    display: grid;
    grid-template-columns: minmax(0, var(--rail)) minmax(15rem, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}
.main-copy > :first-child {
    margin-top: 0;
}
.main-copy p:first-child::first-letter {
    float: left;
    margin: .08em .12em 0 0;
    color: var(--rust);
    font-size: 4.6rem;
    line-height: .72;
}
.reference-shelf {
    border-top: 3px solid var(--ink);
}
.reference-shelf > header, .section-rule {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}
.reference-note {
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule);
}
.reference-note img {
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 1rem;
}
.reference-note h3 {
    margin: .2rem 0;
    font-size: 1.35rem;
}
.verified {
    display: inline-block;
    padding: .18rem .45rem;
    border: 1px solid currentColor;
    color: #356343;
    font: 700 .72rem/1.2 system-ui, sans-serif;
    text-transform: uppercase;
}
.margin-gallery {
    margin-block: 5rem;
    border-block: 1px solid var(--rule);
    padding-block: 2rem;
}
.margin-gallery__items, .listing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}
.chronology, .editorial-notes {
    max-width: var(--rail);
    margin-block: 6rem;
}
.chronology-entry {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule);
}
.chronology-entry time {
    font: .8rem/1.5 system-ui, sans-serif;
}
.chronology-entry h2 {
    margin: 0;
}
.chronology-entry p {
    grid-column: 2;
    margin: 0;
}
.editorial-notes dl > div {
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule);
}
.editorial-notes dt {
    font-weight: 700;
}
.editorial-notes dd {
    margin: .5rem 0 0;
}
.archive-heading, .article-header {
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--ink);
}
.archive-rail {
    max-width: var(--rail);
}
.reading-page > article, .listing-reference > article {
    max-width: var(--rail);
    margin: auto;
}
.entry-content > * {
    max-width: 68ch;
}
.reference-index ol {
    max-width: var(--rail);
    padding-left: 2rem;
}
.reference-index li {
    padding: 1rem;
    border-top: 1px solid var(--rule);
}
.listing-lead {
    margin: 2rem 0;
}
.listing-gallery {
    margin-block: 2rem;
}
.listing-meta {
    border-top: 1px solid var(--rule);
    margin-top: 3rem;
    font-family: system-ui, sans-serif;
}
.colophon {
    border-top: 1px solid var(--rule);
    border-bottom: 0;
    margin-top: 4rem;
}
.nav-links {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}
@media (max-width: 50rem) {
    .reading-head, .colophon, .reading-rail {
        display: block;
    }
    .reading-head nav {
        margin-top: 1rem;
    }
    .reference-shelf {
        margin-top: 3rem;
    }
    .chronology-entry {
        grid-template-columns: 1fr;
    }
    .chronology-entry p {
        grid-column: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
@media (forced-colors: active) {
    .verified, .reference-note, .chronology-entry {
        border-color: CanvasText;
    }
}
