/*
Theme Name: dds_millriversteeple.com
Theme URI: https://millriversteeple.com/
Author: Eleanor Vance
Description: A dark, museum-like editorial theme for an independent site about historic houses, building histories, and restoration. Anthracite surfaces, copper hairlines, high-contrast serif headings, and archival details.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mrsteep
*/

/* ---------- Hidden-state guards (must precede component styles) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Tokens ---------- */
:root {
    --bg: #14161a;
    --bg-alt: #1b1e24;
    --bg-head: #0f1114;
    --bg-foot: #0b0c0e;
    --bg-side: #181b20;
    --ink: #e8e4dc;
    --copper: #c08a4e;
    --copper-hi: #d6a26a;
    --copper-30: rgba(192, 138, 78, .3);
    --copper-50: rgba(192, 138, 78, .5);
    --moss: #7f9a8b;
    --mute: #8c8a85;
    --dark-on-copper: #121315;
    --serif: "Playfair Display", "Bodoni 72", "Didot", "Georgia", "Times New Roman", serif;
    --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.02rem;
    line-height: 1.72;
    letter-spacing: .012em;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 400' fill='none' stroke='%23c08a4e' stroke-width='1.4' opacity='0.06'%3E%3Cpath d='M80 6v30M66 20h28'/%3E%3Cpath d='M80 44 L48 170 H112 Z'/%3E%3Cpath d='M54 170 V250 H106 V170'/%3E%3Cpath d='M70 250 V212 a10 10 0 0 1 20 0 V250'/%3E%3Cpath d='M38 250 H122 V396 H38 Z'/%3E%3Cpath d='M66 396 V334 a14 14 0 0 1 28 0 V396'/%3E%3Cpath d='M20 396 H140'/%3E%3Ccircle cx='80' cy='286' r='12'/%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(232, 228, 220, .035) 0 1px, transparent 1px 24px);
    background-repeat: no-repeat, repeat;
    background-position: right 2% bottom 0, 0 0;
    background-size: 180px auto, auto;
    background-attachment: fixed, scroll;
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.18;
    margin: 0 0 .7em;
    color: var(--ink);
    letter-spacing: 0;
    overflow-wrap: break-word;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
p, li, dd, td, th, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--copper);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-thickness .2s ease, text-underline-offset .2s ease;
}
a:hover {
    color: var(--copper);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; border: 1px solid var(--copper-50); }
th, td { border: 1px solid var(--copper-30); padding: .6rem .8rem; text-align: start; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }

hr { border: 0; height: 1px; background: var(--copper-30); margin: 2.5rem 0; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem; top: -60px;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--copper);
    color: var(--dark-on-copper);
}
.skip-link:focus { top: 1rem; }

/* ---------- Containers ---------- */
.shell { width: min(92%, 1240px); margin-inline: auto; }
.shell--front { width: 85%; max-width: 1320px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .78rem 1.5rem;
    border: 1px solid var(--copper);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-position .4s ease, color .3s ease, transform .25s ease, border-color .3s ease;
}
.btn-line {
    color: var(--copper);
    background: linear-gradient(to right, var(--copper) 50%, transparent 50%);
    background-size: 201% 100%;
    background-position: 100% 0;
}
.btn-line:hover, .btn-line:focus-visible {
    color: var(--dark-on-copper);
    background-position: 0 0;
    transform: translateY(-2px);
    text-decoration: none;
}
.btn-solid {
    color: var(--dark-on-copper);
    background: linear-gradient(to right, var(--copper-hi) 50%, var(--copper) 50%);
    background-size: 201% 100%;
    background-position: 100% 0;
}
.btn-solid:hover, .btn-solid:focus-visible {
    color: var(--dark-on-copper);
    background-position: 0 0;
    border-color: var(--copper-hi);
    transform: translateY(-2px);
}

/* ---------- Eyebrows, section titles, H2 bookmarks ---------- */
.eyebrow {
    margin: 0 0 .7rem;
    color: var(--copper);
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
}
.sec-head { margin-bottom: 2.8rem; }
.sec-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem 2rem;
}
.sec-head--split > div { flex: 1 1 320px; min-width: 0; }
.sec-title { font-size: 2.35rem; font-weight: 500; margin: 0; }
.sec-title::after {
    content: "";
    display: block;
    width: 52%;
    height: 1px;
    margin-top: 1rem;
    background: linear-gradient(to right, var(--copper), rgba(192, 138, 78, .15));
}

/* copper bookmark: 3px bar with a square tip, left of every H2 */
.sec-title,
.entry-content h2,
.comments-title {
    padding-inline-start: 1.2rem;
    background:
        linear-gradient(var(--copper), var(--copper)) 3px calc(.18em + 6px) / 3px 1em no-repeat,
        linear-gradient(var(--copper), var(--copper)) 0 .18em / 9px 9px no-repeat;
}

/* ---------- Header ---------- */
.masthead {
    background: var(--bg-head);
    border-bottom: 1px solid var(--copper);
    position: relative;
}
.masthead::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 1px;
    background: rgba(192, 138, 78, .25);
}
.masthead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.15rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 520px;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-svg, .brand-logo { width: 52px; height: 52px; display: block; object-fit: contain; }
.brand-text { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.brand-name {
    font-family: var(--serif);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    max-width: 62ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-tagline {
    font-size: .76rem;
    line-height: 1.45;
    color: var(--mute);
    max-width: 78ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    border: 1px solid var(--copper-50);
    border-radius: 2px;
    background: transparent;
    color: var(--ink);
    font: 600 .75rem/1 var(--sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px; height: 1px;
    background: var(--copper);
    position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav { flex: 0 1 auto; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.9rem; }
.nav-list li { position: relative; }
.nav-list a {
    display: inline-block;
    padding: .35rem 0;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.nav-list a:hover { color: var(--copper); border-bottom-color: var(--copper); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--copper); border-bottom-color: var(--copper); }
.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: .6rem 1rem;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 200px;
    background: var(--bg-head);
    border: 1px solid var(--copper-30);
    display: none;
    z-index: 20;
}
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }

/* ---------- Section rhythm and dividers ---------- */
.front-section { padding: 5.5rem 0; }
.axis {
    position: relative;
    width: 85%;
    max-width: 1320px;
    height: 1px;
    margin-inline: auto;
    background: var(--copper-50);
    z-index: 2;
}
.axis span {
    position: absolute;
    left: 50%; top: 50%;
    width: 10px; height: 10px;
    margin: -5px 0 0 -5px;
    background: var(--bg);
    border: 1px solid var(--copper);
    transform: rotate(45deg);
}
.axis--dashed {
    background: repeating-linear-gradient(to right, var(--copper-50) 0 10px, transparent 10px 16px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(520px, 82vh, 820px);
    display: flex;
    align-items: flex-end;
    background: var(--bg-head);
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(15, 17, 20, .96) 0%, rgba(15, 17, 20, .72) 38%, rgba(15, 17, 20, .35) 75%, rgba(15, 17, 20, .55) 100%),
        linear-gradient(to right, rgba(15, 17, 20, .75), rgba(15, 17, 20, 0) 65%);
}
.hero-steeple {
    position: absolute;
    right: 3%;
    bottom: 0;
    width: clamp(70px, 9vw, 130px);
    height: auto;
    fill: none;
    stroke: var(--copper);
    stroke-width: 1.3;
    opacity: .55;
}
.hero-inner { position: relative; z-index: 1; padding: 6rem 0 5rem; }
.hero-title {
    font-size: 3.4rem;
    font-weight: 500;
    line-height: 1.08;
    max-width: 15ch;
    margin-bottom: 1.3rem;
}
.hero-lede { max-width: 58ch; color: #d4cfc6; font-size: 1.08rem; margin-bottom: 2rem; }

/* ---------- Timeline ---------- */
.timeline-section {
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(rgba(192, 138, 78, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 138, 78, .045) 1px, transparent 1px);
    background-size: 40px 40px;
}
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 1px;
    margin-left: -.5px;
    background: var(--copper);
}
.tl-item { position: relative; width: 50%; padding: 0 2.6rem 2.4rem 0; }
.tl-item:not(:first-child) { margin-top: -4.5rem; }
.tl-right { margin-left: 50%; padding: 0 0 2.4rem 2.6rem; }
.tl-node {
    position: absolute;
    top: 1.6rem;
    width: 12px; height: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--copper);
    transform: rotate(45deg);
}
.tl-left .tl-node { right: -6px; }
.tl-right .tl-node { left: -6px; }
.tl-card {
    padding: 1.5rem 1.6rem 1.2rem;
    background: rgba(20, 22, 26, .82);
    border: 1px solid var(--copper-30);
    border-radius: 3px;
    min-width: 0;
}
.tl-left .tl-card { text-align: end; }
.tl-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .7rem; }
.tl-left .tl-top { justify-content: flex-end; }
.tl-year { color: var(--copper); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; }
.tl-title { font-size: 1.22rem; margin-bottom: .45rem; }
.tl-card p { margin: 0; color: #cfcac1; font-size: .96rem; }

.roman {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .45rem;
    border: 1px solid var(--copper);
    border-radius: 0;
    color: var(--copper);
    font-family: var(--serif);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .06em;
    box-shadow: inset 0 0 0 3px var(--bg-alt), inset 0 0 0 4px var(--copper-30);
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
}
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--copper-30);
    border-radius: 3px;
    transition: border-color .25s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 14px; height: 14px;
    background: var(--copper);
    z-index: 2;
    opacity: 0;
    transition: opacity .25s ease;
}
.card:hover { border-color: var(--copper); }
.card:hover::before { opacity: 1; }
.card-thumb { position: relative; border-bottom: 1px solid var(--copper); background: var(--bg-head); }
.card-thumb a { display: block; text-decoration: none; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: brightness(.8) saturate(.85);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.35rem 1.4rem 1.5rem;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin-bottom: .85rem;
    color: var(--mute);
    font-size: .8rem;
}
.card-title { font-size: 1.3rem; font-weight: 600; margin-bottom: .6rem; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--copper); }
.card-excerpt { color: #c9c4bb; font-size: .95rem; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: .9rem;
    color: var(--copper);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tag-chip {
    display: inline-block;
    padding: .2rem .55rem;
    border: 1px solid var(--copper);
    border-radius: 1px;
    color: var(--copper);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.5;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tag-chip:hover { background: var(--moss); border-color: var(--moss); color: var(--dark-on-copper); text-decoration: none; }

/* ---------- Quote ---------- */
.quote-section {
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(rgba(192, 138, 78, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192, 138, 78, .04) 1px, transparent 1px),
        linear-gradient(160deg, #1b1e24 0%, #22262e 100%);
    background-size: 40px 40px, 40px 40px, auto;
    padding: 7rem 0;
}
.big-quote { margin: 0; max-width: 980px; }
.big-quote blockquote {
    margin: 0;
    padding: .4rem 0 .4rem 2.2rem;
    background:
        linear-gradient(var(--copper), var(--copper)) 0 12px / 3px calc(100% - 12px) no-repeat,
        linear-gradient(var(--copper), var(--copper)) -3px 0 / 9px 9px no-repeat;
}
.big-quote blockquote p {
    margin: 0;
    font-family: var(--serif);
    font-size: 2.25rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.32;
    color: var(--ink);
}
.big-quote figcaption {
    margin-top: 1.6rem;
    padding-left: 2.2rem;
    color: var(--mute);
    font-size: .9rem;
    letter-spacing: .04em;
}

/* ---------- Topic map ---------- */
.topic-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}
.topic-grid li { min-width: 0; }
.topic-tile {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    padding: 1.2rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--copper-50);
    border-radius: 2px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.topic-icon {
    width: 56px; height: 56px;
    fill: none;
    stroke: var(--copper);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition: stroke .3s ease;
}
.topic-name {
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.5;
    text-transform: uppercase;
}
.topic-tile:hover, .topic-tile:focus-visible {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--dark-on-copper);
    text-decoration: none;
}
.topic-tile:hover .topic-icon, .topic-tile:focus-visible .topic-icon { stroke: var(--dark-on-copper); }

/* ---------- Inner page layout ---------- */
.page-wrap { padding: 2.2rem 0 5rem; }
.breadcrumbs { margin-bottom: 2.2rem; color: var(--mute); font-size: .82rem; letter-spacing: .02em; }
.breadcrumbs a { color: var(--ink); text-decoration-color: var(--copper-50); }
.breadcrumbs .sep { color: var(--copper); margin: 0 .35rem; }
.breadcrumbs span:last-child { color: var(--mute); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 2.4rem; }
.page-title { font-size: 2.6rem; font-weight: 500; margin-bottom: .6rem; }
.page-lede { color: #c9c4bb; max-width: 64ch; }

.entry-head { margin-bottom: 1.8rem; }
.entry-title { font-size: 2.6rem; font-weight: 500; line-height: 1.12; }
.entry-figure { margin: 0 0 2rem; border: 1px solid var(--copper-30); border-radius: 3px; overflow: hidden; }
.entry-figure img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.05rem; }
.entry-content > * { max-width: 72ch; }
.entry-content > .alignwide, .entry-content > .alignfull, .entry-content > figure, .entry-content > table, .entry-content > .wp-block-image { max-width: 100%; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4rem; margin: 0 0 1.2em; }
.entry-content ul li::marker { color: var(--copper); }
.entry-content blockquote {
    margin: 2rem 0;
    padding: .4rem 0 .4rem 1.6rem;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-style: italic;
    background:
        linear-gradient(var(--copper), var(--copper)) 0 12px / 3px calc(100% - 12px) no-repeat,
        linear-gradient(var(--copper), var(--copper)) -3px 0 / 9px 9px no-repeat;
}
.entry-content img { display: block; height: auto; }
.entry-content figcaption, .wp-caption-text { color: var(--mute); font-size: .85rem; margin-top: .5rem; }
.entry-content pre { overflow-x: auto; background: var(--bg-head); border: 1px solid var(--copper-30); padding: 1rem 1.2rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--copper-30); }
.page-links { margin-top: 1.5rem; }
.empty-note { padding: 1.6rem 1.8rem; border: 1px dashed var(--copper-50); color: #c9c4bb; }

/* ---------- Sidebar ---------- */
.sidebar {
    min-width: 0;
    padding: 1.7rem 1.6rem;
    background: var(--bg-side);
    border: 1px solid var(--copper-30);
    border-radius: 3px;
    color: var(--ink);
}
.sidebar .widget + .widget { margin-top: 2rem; }
.sidebar .widget-title {
    font-size: 1.15rem;
    color: var(--ink);
    padding-bottom: .6rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--copper-50);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dotted rgba(192, 138, 78, .25); color: var(--ink); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration-color: var(--copper-50); }
.sidebar a:hover { color: var(--copper); }
.sidebar .post-date { display: block; color: var(--mute); font-size: .8rem; }
.sidebar p { color: #cfcac1; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 3rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .85rem;
    border: 1px solid var(--copper-50);
    border-radius: 2px;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pager a.page-numbers:hover { border-color: var(--copper); color: var(--copper); }
.pager .page-numbers.current { background: var(--copper); border-color: var(--copper); color: var(--dark-on-copper); }
.pager .page-numbers.dots { border: 0; min-width: auto; padding: 0 .3rem; color: var(--mute); }

/* ---------- Search form ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0; max-width: 560px; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .75rem .95rem;
    background: var(--bg-head);
    border: 1px solid var(--copper-50);
    border-radius: 2px;
    color: var(--ink);
    font: inherit;
}
.search-field::placeholder { color: var(--mute); }

/* ---------- 404 ---------- */
.lost { width: 85%; margin-left: auto; margin-right: auto; padding: 2rem 0; }
.lost-code { font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--copper); margin-bottom: 1rem; letter-spacing: .08em; }

/* ---------- Comments ---------- */
.comments { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--copper-30); }
.comments-title { font-size: 1.6rem; }
.note-list, .note-list .children { list-style: none; margin: 0; padding: 0; }
.note-list .children { padding-inline-start: 1.8rem; border-inline-start: 1px solid var(--copper-30); }
.note-body { padding: 1.2rem 1.3rem; margin-bottom: 1rem; background: var(--bg-alt); border: 1px solid var(--copper-30); border-radius: 3px; }
.note-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.note-head img { border-radius: 2px; display: block; }
.note-who { display: flex; flex-direction: column; line-height: 1.35; }
.note-who time { color: var(--mute); font-size: .78rem; }
.note-pending { color: var(--moss); font-size: .88rem; }
.note-reply a { color: var(--copper); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.4rem; }
.comment-reply-title small { margin-inline-start: .8rem; font-family: var(--sans); font-size: .8rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .88rem; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    background: var(--bg-head);
    border: 1px solid var(--copper-50);
    border-radius: 2px;
    color: var(--ink);
    font: inherit;
}
.comment-form-cookies-consent label { display: inline; }
.comment-notes, .logged-in-as { color: var(--mute); font-size: .88rem; }
.comment-form .req { color: var(--copper); }
.comment-form .submit {
    padding: .78rem 1.5rem;
    border: 1px solid var(--copper);
    border-radius: 2px;
    background: var(--copper);
    color: var(--dark-on-copper);
    font: 600 .8rem/1.3 var(--sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .25s ease, transform .25s ease;
}
.comment-form .submit:hover { background: var(--copper-hi); transform: translateY(-2px); }
.comments-closed { color: var(--mute); }

/* ---------- Footer ---------- */
.plinth { background: var(--bg-foot); color: #cfcac1; padding: 0 0 2rem; margin-top: 0; }
.plinth-rule { position: relative; height: 1px; background: var(--copper-50); margin-bottom: 3.5rem; }
.plinth-rule span {
    position: absolute; left: 50%; top: 50%;
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    background: var(--bg-foot);
    border: 1px solid var(--copper);
    transform: rotate(45deg);
}
.plinth-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-top: 3.5rem; }
.plinth-rule { margin-bottom: 0; }
.plinth-col { min-width: 0; }
.plinth .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 1rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--copper-30);
}
.plinth .widget, .plinth p, .plinth li { color: #cfcac1; font-size: .93rem; }
.plinth ul { list-style: none; margin: 0; padding: 0; }
.plinth li { padding: .3rem 0; }
.plinth a { color: var(--ink); text-decoration-color: var(--copper-50); }
.plinth a:hover { color: var(--copper); }
.plinth-copy {
    margin: 3rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(192, 138, 78, .18);
    color: var(--mute);
    font-size: .82rem;
    letter-spacing: .04em;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.1rem 1.4rem;
    background: var(--bg-head);
    border: 1px solid var(--copper);
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.cookie-text { flex: 1 1 320px; min-width: 0; margin: 0; color: var(--ink); font-size: .88rem; }

/* ---------- WordPress core helpers ---------- */
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky .card-title::before { content: "◆ "; color: var(--copper); font-size: .8em; }
.bypostauthor > .note-body { border-color: var(--copper-50); }
.gallery-caption { color: var(--mute); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .topic-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    h1, .page-title, .entry-title { font-size: 2.2rem; }
    .hero-title { font-size: 2.7rem; }
    .sec-title { font-size: 2rem; }
    .big-quote blockquote p { font-size: 1.8rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .layout-single .content-area, .lost { width: 100%; }
    .plinth-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .masthead-row { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .site-nav { flex: 1 1 100%; display: none; }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; padding: .6rem 0 .4rem; border-top: 1px solid var(--copper-30); }
    .nav-list a { padding: .7rem 0; }
    .nav-list .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 1rem; background: none; }
    .timeline::before { left: 7px; margin-left: 0; }
    .tl-item, .tl-right { width: 100%; margin-left: 0; padding: 0 0 1.6rem 2.4rem; }
    .tl-item:not(:first-child) { margin-top: 0; }
    .tl-left .tl-node, .tl-right .tl-node { left: 1px; right: auto; }
    .tl-left .tl-card { text-align: start; }
    .tl-left .tl-top { justify-content: flex-start; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .shell { width: 92%; }
    .shell--front { width: 90%; }
    .axis { width: 90%; }
    h1, .page-title, .entry-title { font-size: 1.85rem; }
    .hero-title { font-size: 2.15rem; }
    .sec-title { font-size: 1.65rem; }
    .front-section { padding: 3.8rem 0; }
    .quote-section { padding: 4.5rem 0; }
    .big-quote blockquote { padding-left: 1.4rem; }
    .big-quote figcaption { padding-left: 1.4rem; }
    .big-quote blockquote p { font-size: 1.4rem; }
    .hero-inner { padding: 4rem 0 3.5rem; }
    .card-grid--three { grid-template-columns: minmax(0, 1fr); }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .topic-name { font-size: .68rem; letter-spacing: .12em; }
    .topic-icon { width: 44px; height: 44px; }
    .plinth-cols { grid-template-columns: minmax(0, 1fr); }
    .brand-svg, .brand-logo { width: 42px; height: 42px; }
    .brand-tagline { display: none; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .alignleft, .alignright { float: none; margin: 0 0 1rem; }
    body { background-size: 110px auto, auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
