/*
Theme Name: dds_chachamhodges.com
Theme URI: https://chachamhodges.com/
Author: Chacha M. Hodges
Description: Dark editorial theme on visual culture in real estate and architectural photography: graphite surfaces, copper accents, drafting-line background and serif headings.
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: chmhodges
*/

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

/* ---------- Tokens ---------- */
:root {
    --bg: #121417;
    --bg-alt: #1A1D21;
    --bg-head: #0E1013;
    --bg-foot: #0B0C0E;
    --bg-side: #17191C;
    --line: #2A2E33;
    --text: #E8E6E3;
    --muted: #8A8D91;
    --copper: #C89B6D;
    --copper-lt: #D9B48A;
    --slate: #6B8F9C;
    --olive: #7A8B6E;
    --plum: #8B6B7A;
    --serif: "Playfair Display", Lora, Georgia, "Times New Roman", serif;
    --sans: Inter, "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-up: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, var(--bg-alt) 0, var(--bg-alt) 1px, transparent 1px, transparent 24px);
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    right: 1.5rem;
    bottom: 0;
    width: 260px;
    height: 420px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 420' fill='none' stroke='%23C89B6D' stroke-width='3'%3E%3Cpath d='M20 410V180a110 110 0 0 1 220 0v230'/%3E%3Cpath d='M50 410V185a80 80 0 0 1 160 0v225'/%3E%3Cpath d='M5 410h250M10 400h240'/%3E%3Cpath d='M70 410V230M100 410V230M130 410V230M160 410V230M190 410V230'/%3E%3Cpath d='M60 230h140M60 220h140'/%3E%3Cpath d='M130 70v-40M100 78l-14-30M160 78l14-30'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    margin: 1.6em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; overflow-wrap: break-word; hyphens: auto; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

a { color: var(--slate); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--copper-lt); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
}

/* Animated copper underline for text links */
.entry-content a, .page-intro a, .trail a, .card-title a, .card-more, .widget a,
.fs-cta-mail a, .remark-text a, .entry-tags a, .post-navigation a, .logged-in-as a, .must-log-in a {
    background-image: linear-gradient(var(--copper), var(--copper));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.3s ease, color 0.2s;
}
.entry-content a:hover, .page-intro a:hover, .trail a:hover, .card-title a:hover, .card-more:hover, .widget a:hover,
.fs-cta-mail a:hover, .remark-text a:hover, .entry-tags a:hover, .post-navigation a:hover, .logged-in-as a:hover, .must-log-in a:hover {
    background-size: 100% 1px;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: 0.6em 0.8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }

blockquote {
    margin: 1.6em 0;
    padding: 1rem 1.4rem;
    border-left: 3px solid var(--copper);
    background: var(--bg-alt);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }
code, pre { font-size: 0.9em; }
pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--bg-foot); border: 1px solid var(--line); border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--copper);
    color: var(--bg);
    border-radius: 2px;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn--copper { background: var(--copper); color: var(--bg); border-color: var(--copper); }
.btn--copper:hover { background: var(--copper-lt); border-color: var(--copper-lt); color: var(--bg); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: var(--bg); transform: translateY(-2px); }

/* ---------- Header ---------- */
.masthead { background: var(--bg-head); border-bottom: 1px solid var(--line); }
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.9rem; color: var(--text); min-width: 0; flex: 1 1 420px; }
.brand:hover { color: var(--text); }
.brand-mark { flex: 0 0 auto; }
.brand-logo { width: auto; max-height: 56px; }
.brand-svg { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 620px; }
.brand-name {
    font-family: var(--serif);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.8rem; }
.primary-menu li { margin: 0; position: relative; }
.primary-menu a {
    display: block;
    padding: 0.4rem 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    background-image: linear-gradient(var(--copper), var(--copper));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.3s, color 0.2s;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--copper); background-size: 100% 1px; }
.primary-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.6rem 1rem;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 200px;
    background: var(--bg-head);
    border: 1px solid var(--line);
    display: none;
    z-index: 20;
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 2px;
    font: 500 0.9rem var(--sans);
    cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--copper);
    position: relative;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

/* ---------- Section headings (copper rule) ---------- */
.fs-heading, .page-title, .remarks-title, .entry-title {
    border-left: 3px solid var(--copper);
    padding-left: 0.9rem;
    text-align: left;
}
.fs-heading { font-size: 2.2rem; margin: 0 0 1.2rem; }

/* ---------- Front page ---------- */
.fs-alt { background-color: var(--bg-alt); }
.fs-band, .fs-latest, .fs-topics, .fs-cta { padding: 90px 0; }

.fs-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-head);
}
.fs-hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fs-hero-veil { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(18, 20, 23, 0.7); }
.fs-hero-inner { position: relative; z-index: 1; padding: 5rem 0; }
.fs-hero-title {
    font-size: 3.2rem;
    line-height: 1.12;
    max-width: 16ch;
    margin: 0 0 1.2rem;
    font-weight: 600;
}
.fs-hero-lead { max-width: 58ch; font-size: 1.1rem; color: var(--text); margin-bottom: 2rem; }

.fs-figures {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fs-figure {
    margin: 0;
    padding: 0.4rem 1.6rem;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.fs-figure:first-child { border-left: 0; padding-left: 0; }
.fs-figure-num {
    font-family: var(--serif);
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1.05;
    color: var(--copper);
}
.fs-figure-cap { margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.fs-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}
.fs-head-row .fs-heading { margin: 0; }
.fs-intro { max-width: 62ch; color: var(--muted); margin-bottom: 2.4rem; }

.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.topic-tile {
    display: block;
    min-width: 0;
    padding: 2rem 1.8rem;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    color: var(--text);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.topic-tile:hover { border-color: var(--copper); color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-up); }
.topic-icon { display: block; width: 44px; height: 44px; color: var(--slate); transition: color 0.25s; }
.topic-tile:hover .topic-icon { color: var(--copper); }
.topic-title { margin: 1.2rem 0 0.5rem; font-size: 1.45rem; }
.topic-text { margin: 0; color: var(--muted); font-size: 0.95rem; }

.fs-cta {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, rgba(42, 46, 51, 0.5) 0, rgba(42, 46, 51, 0.5) 1px, transparent 1px, transparent 24px),
        linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.fs-cta-frame {
    position: relative;
    text-align: center;
    padding: 3rem 3.5rem;
}
.fs-cta-frame::before, .fs-cta-frame::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--copper) 18%, var(--copper) 82%, transparent);
}
.fs-cta-frame::before { left: 0; }
.fs-cta-frame::after { right: 0; }
.fs-cta-title { font-size: 2.4rem; margin: 0 auto 1rem; max-width: 22ch; }
.fs-cta-text { color: var(--muted); max-width: 52ch; margin: 0 auto 0.4rem; }
.fs-cta-mail { font-size: 1.15rem; margin-bottom: 1.8rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: var(--copper); transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card-thumb { position: relative; background: var(--bg-alt); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.card-pin {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.2rem 0.55rem;
    background: var(--copper);
    color: var(--bg);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; color: var(--muted); font-size: 0.85rem; }
.card-title { font-size: 1.3rem; margin: 0.7rem 0 0.6rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--copper-lt); }
.card-excerpt { color: #C9C7C3; font-size: 0.95rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; margin-top: 0.6rem; font-weight: 600; font-size: 0.92rem; }

.arch-labels { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.arch-label {
    display: inline-block;
    padding: 0.18rem 0.5rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--bg);
}
.arch-label:hover { color: var(--bg); filter: brightness(1.12); }
.arch-label--copper { background: var(--copper); }
.arch-label--slate { background: var(--slate); }
.arch-label--olive { background: var(--olive); }
.arch-label--plum { background: var(--plum); color: #F4F0EC; }
.arch-label--plum:hover { color: #F4F0EC; }

.empty-note { color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-wrap { padding: 2.2rem 0 5rem; }
.trail { font-size: 0.88rem; color: var(--muted); margin-bottom: 2.2rem; overflow-wrap: break-word; }
.trail .sep { margin: 0 0.35rem; color: var(--copper); }
.trail span:last-child { color: var(--text); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    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: 3.2rem; line-height: 1.12; margin: 0 0 0.9rem; }
.page-intro { color: var(--muted); max-width: 64ch; margin: 0; }

.entry-head { margin-bottom: 2rem; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; color: var(--muted); font-size: 0.88rem; margin-bottom: 1rem; }
.entry-title { font-size: 3.2rem; line-height: 1.12; margin: 0; }
.entry-figure { margin: 0 0 2rem; }
.entry-figure img { width: 100%; border-radius: 4px; border: 1px solid var(--line); }
.entry-content { font-size: 1.05rem; max-width: 74ch; }
.entry-content h2 { border-left: 3px solid var(--copper); padding-left: 0.8rem; }
.entry-content img { border-radius: 4px; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }
.entry-content .alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.page-links { margin-top: 1.5rem; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.9rem; }

.post-navigation { margin-top: 3rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation a {
    display: block;
    padding: 1.2rem 1.4rem;
    background-color: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
}
.post-navigation a:hover { border-color: var(--copper); color: var(--text); }
.nav-cap { display: block; font-size: 0.78rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.3rem; }
.nav-name { font-family: var(--serif); font-size: 1.05rem; }

.lost-block { text-align: left; }
.lost-code { font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--copper); margin: 0 0 1rem; }
.lost-block .seek { margin: 2rem 0 1.6rem; }

/* ---------- Search form ---------- */
.seek { display: flex; gap: 0.6rem; max-width: 560px; flex-wrap: wrap; }
.seek-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.75rem 1rem;
    background: var(--bg-foot);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 2px;
    font: 1rem var(--sans);
}
.seek-field::placeholder { color: var(--muted); }

/* ---------- Pagination (type => plain) ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--bg-side);
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.pager a.page-numbers:hover { border-color: var(--copper); color: var(--copper); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--copper); border-color: var(--copper); color: var(--bg); font-weight: 600; }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; padding-left: 0.3rem; padding-right: 0.3rem; }

/* ---------- Sidebar ---------- */
.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.6rem 1.5rem;
    color: var(--text);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: var(--text);
    border-left: 3px solid var(--copper);
    padding-left: 0.7rem;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: #C9CDD0; }
.sidebar .widget a:hover { color: var(--copper-lt); }
.sidebar .widget .post-date, .sidebar .widget .rss-date { display: block; color: var(--muted); font-size: 0.82rem; }
.sidebar .widget p, .sidebar .textwidget { color: #C9C7C3; }

/* ---------- Footer ---------- */
.basement { background: var(--bg-foot); border-top: 1px solid var(--line); color: #BDBBB7; padding-top: 4rem; }
.basement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.basement-col { min-width: 0; }
.basement .widget { margin-bottom: 1.6rem; }
.basement .widget-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: var(--text);
    border-left: 3px solid var(--copper);
    padding-left: 0.7rem;
}
.basement .widget, .basement .widget p, .basement .textwidget { color: #BDBBB7; font-size: 0.93rem; }
.basement .widget ul { list-style: none; margin: 0; padding: 0; }
.basement .widget li { margin-bottom: 0.5rem; }
.basement .widget a { color: #9FB7C0; }
.basement .widget a:hover { color: var(--copper-lt); }
.basement .widget .post-date { color: var(--muted); }
.basement-legal { border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 1.4rem 0 1.6rem; }
.basement-legal p { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* ---------- Comments ---------- */
.remarks { margin-top: 3.5rem; }
.remarks-title { font-size: 1.7rem; margin: 0 0 1.6rem; }
.remark-list, .remark-list .children { list-style: none; margin: 0; padding: 0; }
.remark-list .children { padding-left: 1.6rem; border-left: 1px solid var(--line); margin-top: 1rem; }
.remark { margin-bottom: 1.2rem; }
.remark-body { padding: 1.2rem 1.4rem; background: var(--bg-side); border: 1px solid var(--line); border-radius: 4px; }
.remark-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.remark-head img { border-radius: 2px; }
.remark-author { display: block; font-weight: 600; }
.remark-date { color: var(--muted); font-size: 0.82rem; }
.remark-wait { color: var(--copper); font-size: 0.9rem; }
.remark-text p:last-child { margin-bottom: 0; }
.remark-reply { margin-top: 0.6rem; font-size: 0.88rem; font-weight: 600; }
.remarks-closed { color: var(--muted); }
.comment-respond { margin-top: 2.4rem; padding: 1.8rem 1.8rem 2rem; background: var(--bg-side); border: 1px solid var(--line); border-radius: 4px; }
.comment-reply-title { margin-top: 0; font-size: 1.4rem; }
.comment-reply-title small { display: block; font-family: var(--sans); font-size: 0.85rem; margin-top: 0.4rem; }
.comment-notes, .logged-in-as, .must-log-in { color: var(--muted); font-size: 0.9rem; }
.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--text); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-foot);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 2px;
    font: 1rem var(--sans);
}
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; color: var(--muted); }
.comment-form .submit {
    padding: 0.8rem 1.6rem;
    background: var(--copper);
    color: var(--bg);
    border: 1px solid var(--copper);
    border-radius: 2px;
    font: 600 0.95rem var(--sans);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.comment-form .submit:hover { background: var(--copper-lt); transform: translateY(-2px); }
.comments-pagination, .comment-navigation { margin: 1.4rem 0; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; }

/* ---------- Cookie notice ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.1rem 1.4rem;
    background: var(--bg-head);
    border: 1px solid var(--line);
    border-top: 2px solid var(--copper);
    border-radius: 4px;
    box-shadow: var(--shadow-up);
}
.cookie-text { margin: 0; font-size: 0.9rem; color: #C9C7C3; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { display: none; flex-basis: 100%; }
    .primary-nav.is-open { display: block; }
    .primary-menu { flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 0.6rem; }
    .primary-menu a { padding: 0.6rem 0; }
    .primary-menu .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 1rem; background: none; }
    .brand { flex: 1 1 0; }

    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 3rem; }
    .layout-single .content-area { width: 100%; }

    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .fs-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .fs-figure:nth-child(3) { border-left: 0; padding-left: 0; }
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shell--front { width: 90%; }
    .fs-hero-title, .page-title, .entry-title { font-size: 2.6rem; }
}

@media (max-width: 600px) {
    body { font-size: 0.98rem; }
    .brand-desc { display: none; }
    .brand-name { font-size: 0.88rem; }
    .fs-band, .fs-latest, .fs-topics, .fs-cta { padding: 60px 0; }
    .fs-hero { min-height: 70vh; }
    .fs-hero-inner { padding: 3.5rem 0; }
    .fs-hero-title, .page-title, .entry-title { font-size: 2.1rem; }
    .fs-heading, .fs-cta-title { font-size: 1.75rem; }
    .fs-figure-num { font-size: 2.6rem; }
    .fs-figure { padding: 0.2rem 0.9rem; }
    .card-grid, .card-grid--two { grid-template-columns: minmax(0, 1fr); }
    .fs-cta-frame { padding: 2.4rem 1.6rem; }
    .topic-tile { padding: 1.6rem 1.4rem; }
    .basement-cols { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-next { grid-column: auto; text-align: left; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; }
    .comment-respond { padding: 1.4rem 1.2rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .lost-code { font-size: 4.2rem; }
    body::before { width: 150px; height: 240px; }
}
