/*
Theme Name: dds_ilariaiacovielloartdirector.com
Theme URI: https://ilariaiacovielloartdirector.com/
Author: Ilaria Iacoviello
Description: Editorial theme for an independent visual journal on residential architecture, interior design and decorating. Cool steel palette, copper accents, drafting-grid paper and a Milanese courtyard motif.
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: iacov
*/

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

/* ---------- Tokens ---------- */
:root {
    --bg: #F7F9FB;
    --bg-alt: #EDF1F5;
    --header: #FFFFFF;
    --line: #D6DEE6;
    --footer: #2C3A47;
    --side: #F0F4F7;
    --ink: #1E2A35;
    --copper: #B87333;
    --copper-dark: #9A5F2A;
    --steel: #5B8FA8;
    --muted: #7A8A99;
    --serif: "Libre Baskerville", "Baskerville", "Georgia", "Times New Roman", serif;
    --sans: "Instrument Sans", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    --grid: linear-gradient(rgba(227, 233, 239, 0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(227, 233, 239, 0.4) 1px, transparent 1px);
}

/* ---------- 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; animation: none !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 320'%3E%3Cg fill='none' stroke='%23D6DEE6' stroke-width='1.3' opacity='0.8'%3E%3Cpath d='M10 300h310M10 300V40h310v260M10 40l25-25h260l25 25M10 196h310M10 134h310M10 66h310'/%3E%3Cpath d='M20 300V215a35 35 0 0 1 70 0V300M90 300V215a35 35 0 0 1 70 0V300M160 300V215a35 35 0 0 1 70 0V300M230 300V215a35 35 0 0 1 70 0V300'/%3E%3Crect x='36' y='150' width='38' height='46'/%3E%3Cpath d='M55 150v46M36 173h38'/%3E%3Crect x='106' y='150' width='38' height='46'/%3E%3Cpath d='M125 150v46M106 173h38'/%3E%3Crect x='176' y='150' width='38' height='46'/%3E%3Cpath d='M195 150v46M176 173h38'/%3E%3Crect x='246' y='150' width='38' height='46'/%3E%3Cpath d='M265 150v46M246 173h38'/%3E%3Crect x='36' y='80' width='38' height='46'/%3E%3Cpath d='M55 80v46M36 103h38'/%3E%3Crect x='106' y='80' width='38' height='46'/%3E%3Cpath d='M125 80v46M106 103h38'/%3E%3Crect x='176' y='80' width='38' height='46'/%3E%3Cpath d='M195 80v46M176 103h38'/%3E%3Crect x='246' y='80' width='38' height='46'/%3E%3Cpath d='M265 80v46M246 103h38'/%3E%3Cpath d='M20 300v-85M90 300v-85M160 300v-85M230 300v-85M300 300v-85'/%3E%3C/g%3E%3C/svg%3E"), var(--grid);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right 1.5rem bottom 1.5rem, 0 0, 0 0;
    background-size: 300px auto, 24px 24px, 24px 24px;
    background-attachment: fixed, scroll, scroll;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
    color: var(--ink);
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; overflow-wrap: break-word; hyphens: auto; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
img { max-width: 100%; height: auto; }
figure { margin: 0 0 1.4em; }
blockquote {
    margin: 1.8em 0;
    padding: 1.2rem 1.6rem;
    border-left: 2px solid var(--copper);
    background: var(--bg-alt);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
}
blockquote p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }
pre { overflow-x: auto; background: var(--bg-alt); padding: 1rem 1.2rem; border: 1px solid var(--line); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

a { color: var(--copper); text-decoration: none; }
.entry-content a, .page-intro a, .widget_text a, .comments a, .empty-note a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.3s ease;
}
.entry-content a:hover, .page-intro a:hover, .widget_text a:hover, .comments a:hover, .empty-note a:hover { background-size: 100% 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

.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: -3rem;
    background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--copper);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn--solid { background: var(--copper); color: #fff; }
.btn--solid:hover { background: var(--copper-dark); border-color: var(--copper-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--copper); }
.btn--ghost:hover { background: var(--copper-dark); border-color: var(--copper-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost-light { background: transparent; color: #fff; }
.btn--ghost-light:hover { background: var(--copper-dark); border-color: var(--copper-dark); color: #fff; transform: translateY(-1px); }

/* ---------- Header ---------- */
.copper-rule { height: 3px; background: var(--copper); }
.masthead { background: var(--header); border-bottom: 1px solid var(--line); }
.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
}
.brand { display: flex; align-items: flex-start; gap: 1rem; color: var(--ink); min-width: 0; }
.brand-mark { flex: 0 0 auto; }
.brand-logo { display: block; width: 52px; height: auto; max-height: 80px; }
.brand-text { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.brand-name {
    font-family: var(--serif);
    font-size: 1.12rem;
    line-height: 1.35;
    max-width: 60ch;
    overflow-wrap: break-word;
}
.brand-desc { font-size: 0.82rem; line-height: 1.5; color: var(--muted); max-width: 88ch; }

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

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

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.85rem; color: var(--muted); padding: 1.6rem 0 0.4rem; overflow-wrap: break-word; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--copper); }
.crumbs-sep { margin: 0 0.35rem; color: var(--line); }
.crumbs span:last-child { color: var(--ink); }

/* ---------- Layouts ---------- */
.site-main { display: block; padding-bottom: 4.5rem; }
.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: 1rem 0 2.2rem; }
.page-title { font-size: 2.6rem; margin: 0.4em 0 0.3em; }
.page-intro { color: var(--muted); max-width: 62ch; }
.empty-note { color: var(--muted); }

/* ---------- Section titles ---------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    margin: 0 0 0.8rem;
}
.section-title::before {
    content: "";
    flex: 0 0 40px;
    height: 1px;
    background: var(--copper);
}
.section-lead { color: var(--muted); max-width: 60ch; margin-bottom: 2.4rem; }

/* ---------- Category chips ---------- */
.entry-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--steel);
    transition: opacity 0.2s ease;
}
.chip:hover { opacity: 0.85; color: #fff; }
.chip--0 { background: #5B8FA8; }
.chip--1 { background: #41647C; }
.chip--2 { background: #587A90; }
.chip--3 { background: #2F5570; }
.chip--4 { background: #4B7F96; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.layout-single .card-grid, .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--copper);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
    z-index: 2;
}
.card:hover { box-shadow: 0 12px 32px rgba(176, 190, 197, 0.15), 0 2px 8px rgba(176, 190, 197, 0.15); }
.card:hover::before { transform: scaleX(1); }
.card-thumb { border-bottom: 1px solid var(--line); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 0;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.card-title { font-size: 1.25rem; margin: 0 0 0.4rem; }
.card-title a { color: var(--ink); transition: color 0.2s ease; }
.card-title a:hover { color: var(--copper); }
.card-date { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.8rem; }
.card-excerpt { font-size: 0.96rem; color: var(--ink); flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.3s ease;
}
.card-more:hover { background-size: 100% 1px; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 3rem; }
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-size: 0.92rem;
    text-align: center;
    transition: border-color 0.2s ease, color 0.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: #fff; }
.pager .page-numbers.dots { border: 0; background: transparent; min-width: auto; }

/* ---------- Sidebar & widgets ---------- */
.sidebar {
    min-width: 0;
    background: var(--side);
    border: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
    margin-top: 1rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.widget-title {
    display: flex; align-items: center; gap: 0.7rem;
    font-size: 1.1rem; margin: 0 0 1rem;
}
.widget-title::before { content: ""; flex: 0 0 24px; height: 1px; background: var(--copper); }
.sidebar .widget-title { color: var(--ink); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--copper); }
.sidebar .post-date, .sidebar .widget p { color: var(--muted); font-size: 0.85rem; }
.sidebar .search-form { flex-direction: column; }

/* ---------- Search ---------- */
.search-form { display: flex; gap: 0.5rem; margin: 1.2rem 0; max-width: 520px; }
.search-field {
    flex: 1; min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    font: 400 1rem var(--sans);
    color: var(--ink);
}

/* ---------- Single ---------- */
.entry-head { margin: 1rem 0 2rem; }
.entry-title { font-size: 3.2rem; line-height: 1.15; margin: 0.2em 0 0.35em; }
.entry-meta { color: var(--muted); font-size: 0.88rem; margin: 0; }
.entry-cover { margin: 0 0 2.2rem; border: 1px solid var(--line); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 72ch; }
.entry-content > .alignwide, .entry-content > .alignfull, .entry-content > figure, .entry-content > table { max-width: 100%; }
.single .entry-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--serif);
    font-size: 4.3em;
    line-height: 0.82;
    color: var(--copper);
    margin: 0.08em 0.12em 0 0;
}
.entry-content h2 { font-size: 1.9rem; margin-top: 2em; }
.entry-content img { display: block; }
.entry-content figcaption, .wp-caption-text { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.entry-tags { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; font-size: 0.9rem; }
.entry-tags a { color: var(--steel); }
.entry-pages { margin: 1.5rem 0; }

.post-navigation { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { display: block; color: var(--ink); }
.nav-dir { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.nav-name { font-family: var(--serif); font-size: 1.08rem; }
.post-navigation a:hover .nav-name { color: var(--copper); }

/* ---------- Comments ---------- */
.comments { margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.comments-title, .comment-reply-title { font-size: 1.5rem; margin: 0 0 1.2rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.6rem; margin: 0; border-left: 1px solid var(--line); }
.reply-body { background: #fff; border: 1px solid var(--line); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.reply-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 0.8rem; margin-bottom: 0.6rem; }
.reply-head img { display: block; border-radius: 50%; }
.reply-author { font-weight: 600; }
.reply-date { font-size: 0.82rem; color: var(--muted); }
.reply-moderation { font-size: 0.88rem; color: var(--steel); }
.reply-link a { font-size: 0.88rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: 0.88rem; margin-bottom: 0.3rem; }
.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;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    font: 400 1rem var(--sans);
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-form .submit {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--copper);
    border-radius: 2px;
    background: var(--copper);
    color: #fff;
    font: 500 0.95rem var(--sans);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.comment-form .submit:hover { background: var(--copper-dark); transform: translateY(-1px); }

/* ---------- 404 ---------- */
.notfound { padding: 2rem 0; }
.notfound-code { font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--copper); margin: 0; }

/* ---------- Front page ---------- */
.front { width: 85%; max-width: 1400px; margin-left: auto; margin-right: auto; padding-top: 2.5rem; }
.section-rule { width: 60%; margin: 4.5rem auto; border: 0; border-top: 1px solid var(--line); }

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--footer);
    color: #fff;
    padding: 3rem 3.2rem;
}
.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero-veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30, 42, 53, 0.35) 0%, rgba(30, 42, 53, 0.25) 45%, rgba(30, 42, 53, 0.72) 100%);
}
.hero-rubric {
    position: absolute;
    top: 2.2rem; left: 3.2rem;
    display: flex; align-items: center; gap: 0.8rem;
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    z-index: 1;
}
.hero-rubric::before { content: ""; width: 40px; height: 1px; background: var(--copper); }
.hero-copy { position: relative; z-index: 1; max-width: 46rem; }
.hero-title { font-size: 3.2rem; line-height: 1.12; color: #fff; margin: 0 0 1rem; }
.hero-sub { font-size: 1.12rem; color: #E3E9EF; max-width: 38rem; margin: 0; }

.front-block { padding: 1rem 0; }
.front-block--alt {
    background-color: var(--bg-alt);
    background-image: linear-gradient(90deg, #DCE3EA 1px, transparent 1px), var(--grid);
    background-size: 120px 100%, 24px 24px, 24px 24px;
    border: 1px solid var(--line);
    padding: 3.8rem 3.4rem;
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1px;
    background: var(--copper);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 3rem 2.6rem 0;
    text-align: right;
    min-width: 0;
}
.timeline-item::after {
    content: "";
    position: absolute;
    top: 1.2rem; right: -5px;
    width: 9px; height: 9px;
    background: var(--bg-alt);
    border: 1px solid var(--copper);
    transform: rotate(45deg);
}
.timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.6rem 3rem; text-align: left; }
.timeline-item:nth-child(even)::after { right: auto; left: -4px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-num { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--copper); margin-bottom: 0.4rem; }
.timeline-head { font-size: 1.35rem; margin: 0 0 0.4rem; }
.timeline-item p { margin: 0; color: var(--ink); max-width: 34rem; display: inline-block; }

/* Latest */
.latest-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 2.2rem; }
.latest-head .section-title { margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 2.4rem 0 0; }
.stat { padding: 0.6rem 1.5rem; border-left: 1px solid var(--line); min-width: 0; text-align: center; }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--copper); }
.stat-label { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* CTA */
.cta-block {
    position: relative;
    overflow: hidden;
    background-color: var(--footer);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 320'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.3' opacity='0.14'%3E%3Cpath d='M10 300h310M10 300V40h310v260M10 40l25-25h260l25 25M10 196h310M10 134h310M10 66h310'/%3E%3Cpath d='M20 300V215a35 35 0 0 1 70 0V300M90 300V215a35 35 0 0 1 70 0V300M160 300V215a35 35 0 0 1 70 0V300M230 300V215a35 35 0 0 1 70 0V300'/%3E%3Crect x='36' y='150' width='38' height='46'/%3E%3Cpath d='M55 150v46M36 173h38'/%3E%3Crect x='106' y='150' width='38' height='46'/%3E%3Cpath d='M125 150v46M106 173h38'/%3E%3Crect x='176' y='150' width='38' height='46'/%3E%3Cpath d='M195 150v46M176 173h38'/%3E%3Crect x='246' y='150' width='38' height='46'/%3E%3Cpath d='M265 150v46M246 173h38'/%3E%3Crect x='36' y='80' width='38' height='46'/%3E%3Cpath d='M55 80v46M36 103h38'/%3E%3Crect x='106' y='80' width='38' height='46'/%3E%3Cpath d='M125 80v46M106 103h38'/%3E%3Crect x='176' y='80' width='38' height='46'/%3E%3Cpath d='M195 80v46M176 103h38'/%3E%3Crect x='246' y='80' width='38' height='46'/%3E%3Cpath d='M265 80v46M246 103h38'/%3E%3Cpath d='M20 300v-85M90 300v-85M160 300v-85M230 300v-85M300 300v-85'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2rem top 1.5rem;
    background-size: 240px auto;
    color: #fff;
    border-radius: 2px;
    padding: 4.2rem 3.4rem;
}
.cta-title { font-size: 2.4rem; color: #fff; margin: 0 0 1rem; max-width: 22ch; }
.cta-text { color: #C9D4DE; max-width: 52ch; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.colophon {
    background: var(--footer);
    color: #D7DFE7;
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.5rem; }
.colophon .widget-title { color: #FFFFFF; }
.colophon .widget p, .colophon .textwidget { color: #C9D4DE; }
.colophon a { color: #E3B48A; }
.colophon a:hover { color: #FFFFFF; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: 0.35rem 0; }
.colophon li a { color: #D7DFE7; }
.colophon li a:hover { color: #E3B48A; }
.colophon .post-date { color: #9FB0BF; font-size: 0.85rem; }
.colophon-copy {
    margin: 3rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(214, 222, 230, 0.2);
    color: #9FB0BF;
    font-size: 0.86rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    max-width: 960px;
    margin-left: auto; margin-right: auto;
    padding: 1.1rem 1.4rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-top: 2px solid var(--copper);
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(44, 58, 71, 0.12);
    color: var(--ink);
}
.cookie-text { margin: 0; font-size: 0.9rem; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky .card-title::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 0.5rem; background: var(--copper); vertical-align: middle; }
.bypostauthor > .reply-body { border-left: 2px solid var(--steel); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; padding: 0.4rem 0 0.8rem; }
    .nav-list a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); background-image: none; }
    .nav-list .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 1rem; min-width: 0; }

    .layout-with-sidebar { display: block; }
    .sidebar { margin-top: 3rem; }
    .layout-single > .content-area { width: 100%; }
    .layout-single .card-grid, .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .front { width: 92%; }
    .hero { padding: 2.6rem 2rem; }
    .hero-rubric { left: 2rem; }
    .hero-title { font-size: 2.6rem; }
    .entry-title { font-size: 2.5rem; }

    .timeline::before { left: 5px; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2.2rem 2.4rem; text-align: left; }
    .timeline-item::after, .timeline-item:nth-child(even)::after { left: 1px; right: auto; }

    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat:nth-child(3) { border-left: 0; }

    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body { background-size: 200px auto, 24px 24px, 24px 24px; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; background-image: var(--grid); background-size: 24px 24px; background-attachment: scroll; }
    .masthead-inner { padding: 1rem 0; align-items: flex-start; }
    .brand-logo { width: 42px; }
    .brand-name { font-size: 0.98rem; }
    .brand-desc { font-size: 0.76rem; }
    .card-grid, .layout-single .card-grid, .card-grid--three { grid-template-columns: minmax(0, 1fr); }
    .page-title { font-size: 2rem; }
    .entry-title { font-size: 2rem; }
    .section-title { font-size: 1.6rem; }
    .section-title::before { flex-basis: 28px; }
    .section-rule { margin: 3rem auto; }

    .hero { min-height: 70vh; padding: 2rem 1.4rem; }
    .hero-rubric { top: 1.5rem; left: 1.4rem; }
    .hero-title { font-size: 2.05rem; }
    .hero-sub { font-size: 1rem; }

    .front-block--alt { padding: 2.6rem 1.4rem; }
    .cta-block { padding: 2.8rem 1.4rem; background-size: 150px auto; }
    .cta-title { font-size: 1.8rem; }

    .stats { grid-template-columns: minmax(0, 1fr); }
    .stat { border-left: 0; border-top: 1px solid var(--line); padding: 1.4rem 0 0.4rem; }
    .stat:first-child { border-top: 0; }
    .stat-num { font-size: 3rem; }

    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-next { text-align: left; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .search-form { flex-direction: column; }
}
