/*
Theme Name: dds_hoangduckingland.com
Description: Информационная тема о земельных участках, кадастре, ИЖС и СНТ. Дизайн-концепция «Цифровая топография».
Author: Алексей Вершинин
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: hdkland
*/

:root {
    --bg: #F2F5F9;
    --bg-alt: #E8EDF4;
    --ink: #1A2634;
    --deep: #0F1A2C;
    --deep-2: #1A2C42;
    --copper: #C06C3E;
    --steel: #4A6A8F;
    --muted: #7A8A9E;
    --line: #D0D8E2;
    --white: #FFFFFF;
    --sans: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --serif: "Charter", "Literata", Georgia, "Times New Roman", serif;
    --rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='9'%3E%3Cline x1='0' y1='4.5' x2='140' y2='4.5' stroke='%234A6A8F' stroke-width='1'/%3E%3Cpath d='M152 0.5 L157.5 4.5 L152 8.5 L146.5 4.5 Z' fill='%23C06C3E'/%3E%3Cline x1='164' y1='4.5' x2='380' y2='4.5' stroke='%234A6A8F' stroke-width='1'/%3E%3C/svg%3E");
    --plot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420'%3E%3Cpath d='M40 300 L90 140 L210 60 L360 90 L470 210 L430 350 L260 400 Z' fill='none' stroke='%23D0D8E2' stroke-width='3'/%3E%3Cpath d='M110 280 L150 170 L240 120 L350 150 L420 230 L390 320 L250 350 Z' fill='none' stroke='%23D0D8E2' stroke-width='3'/%3E%3Cpath d='M170 260 L200 200 L260 175 L330 200 L365 250 L340 300 L255 315 Z' fill='none' stroke='%23D0D8E2' stroke-width='3'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: radial-gradient(circle, rgba(74, 106, 143, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.7;
}

body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: 520px;
    height: 420px;
    background-image: var(--plot);
    background-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; height: auto; }

a { color: var(--copper); text-decoration: none; }

.entry-content a,
.widget a,
.crumbs 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.25s ease;
}

.entry-content a:hover,
.widget a:hover,
.crumbs a:hover { background-size: 100% 1px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    color: var(--deep);
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    border-left: 3px solid var(--copper);
    background: var(--bg-alt);
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    background: var(--white);
    font-size: 0.95rem;
}
table, th, td { border: 1px solid var(--line); }
th, td { padding: 0.7rem 0.9rem; text-align: left; }
th { background: var(--bg-alt); font-family: var(--sans); font-weight: 600; }

code, pre { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.9em; }
pre { overflow-x: auto; padding: 1rem; background: var(--deep); color: #E6ECF3; }

/* ---------- shell / layout ---------- */

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.shell-wide { width: min(85%, 1180px); }

.site-main { padding: 2.6rem 0 4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 0 6%;
    align-items: start;
}

.layout-single { display: block; }

.content-area { min-width: 0; }

/* ---------- top bar / header ---------- */

.top-bar {
    height: 4px;
    background-image: linear-gradient(to right, var(--copper) 0 70%, var(--steel) 70% 100%);
}

.site-header {
    background: var(--deep);
    color: #DCE4EE;
    padding: 1.6rem 0 1.4rem;
    position: static;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem 1.6rem;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    max-width: 640px;
}

.brand-logo { display: block; max-height: 62px; width: auto; }

.brand-mark { display: block; flex: 0 0 46px; }

.brand-text { min-width: 0; }

.brand-name {
    display: block;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--white);
    letter-spacing: 0.01em;
}

.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #94A6BC;
}

.nav-toggle {
    display: none;
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--copper);
    border-radius: 4px;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.6rem;
    margin: 0;
    padding: 0;
}

.main-nav li { margin: 0; }

.main-nav a {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: #DCE4EE;
    padding: 0.35rem 0;
    border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--white);
    border-bottom-color: var(--copper);
}

/* ---------- breadcrumbs ---------- */

.crumbs {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
    letter-spacing: 0.02em;
}

.crumbs a { color: var(--steel); }
.crumbs .sep { margin: 0 0.35rem; color: var(--line); }

/* ---------- section headings ---------- */

.sec-head { margin-bottom: 1.6rem; }

.sec-head h2,
.sec-head h1 { margin-bottom: 0; }

.sec-head::after {
    content: "";
    display: block;
    margin-top: 14px;
    height: 9px;
    width: min(100%, 380px);
    background-image: var(--rule);
    background-repeat: no-repeat;
}

.sec-head.on-dark::after { opacity: 0.75; }
.sec-head.on-dark h2 { color: var(--white); }

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.75rem 1.6rem;
    border: 1px solid var(--copper);
    border-radius: 4px;
    color: var(--copper);
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background: var(--copper);
    color: var(--white);
    transform: translateY(1px);
}

.btn-filled {
    background: var(--copper);
    color: var(--white);
}

.btn-filled:hover {
    background: transparent;
    color: var(--copper);
}

.btn-small { padding: 0.5rem 1.1rem; font-size: 0.82rem; }

/* ---------- cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(15, 26, 44, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 0;
}

.card:hover {
    box-shadow: -6px 6px 0 rgba(15, 26, 44, 0.18);
    border-color: var(--copper);
}

.card-compass {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: block;
    color: var(--copper);
    background: rgba(255, 255, 255, 0.85);
    padding: 3px;
}

.card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(to right, rgba(240, 246, 252, 0.35) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(to bottom, rgba(240, 246, 252, 0.35) 0 1px, transparent 1px 34px),
        linear-gradient(to top, rgba(15, 26, 44, 0.22), rgba(15, 26, 44, 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.18rem;
    margin: 0 0 0.5rem;
    line-height: 1.28;
}

.card-title a { color: var(--deep); }
.card-title a:hover { color: var(--copper); }

.post-date {
    display: block;
    font-family: var(--sans);
    font-size: 0.74rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.card-excerpt {
    font-size: 0.94rem;
    color: #33455A;
    margin-bottom: 1.1rem;
}

.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot { margin-top: auto; }

/* ---------- pagination ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2.6rem;
    font-family: var(--sans);
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--steel);
    font-size: 0.88rem;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager .page-numbers:hover {
    border-color: var(--copper);
    color: var(--copper);
}

.pager .page-numbers.current {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--white);
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ---------- entry ---------- */

.entry-header { margin-bottom: 1.6rem; }

.entry-title { font-size: 2.6rem; margin-bottom: 0.6rem; }

.entry-thumb {
    margin: 0 0 1.8rem;
    border: 1px solid var(--line);
    box-shadow: 6px 6px 0 rgba(15, 26, 44, 0.08);
}

.entry-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry-content { font-size: 1.02rem; }

.entry-content h2 { margin-top: 1.9em; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.6em; }

.entry-content img { display: block; border: 1px solid var(--line); }

.entry-content ul li::marker { color: var(--copper); }

.archive-head { margin-bottom: 2rem; }
.archive-head h1 { font-size: 2.4rem; }

.no-posts {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.6rem 1.8rem;
    box-shadow: 4px 4px 0 rgba(15, 26, 44, 0.08);
}

/* ---------- sidebar ---------- */

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 4px 4px 0 rgba(15, 26, 44, 0.06);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--deep);
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}

.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }

.sidebar .widget li {
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dotted var(--line);
    font-size: 0.94rem;
}

.sidebar .widget li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--copper); }
.sidebar .widget .post-date { color: var(--muted); }
.sidebar .widget p { color: #33455A; font-size: 0.94rem; }

/* ---------- search form ---------- */

.search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--ink);
}

.search-form input[type="search"]:focus { outline: 2px solid var(--steel); outline-offset: 1px; }

.search-form button {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1.2rem;
    border: 1px solid var(--copper);
    border-radius: 4px;
    background: var(--copper);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-form button:hover { background: transparent; color: var(--copper); }

/* ---------- comments ---------- */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }

.comment-item {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-author { font-family: var(--sans); font-weight: 600; color: var(--deep); }
.comment-date { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.85rem; }
.comment-wait { font-size: 0.85rem; color: var(--muted); }

.comment-respond {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.4rem 1.5rem;
    box-shadow: 4px 4px 0 rgba(15, 26, 44, 0.08);
}

.comment-respond .comment-reply-title { font-size: 1.3rem; }

.comment-form label {
    display: block;
    font-family: var(--sans);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: var(--deep);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--ink);
}

.comment-form textarea { min-height: 150px; }

.comment-form .form-submit input {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--copper);
    border-radius: 4px;
    background: transparent;
    color: var(--copper);
    cursor: pointer;
}

.comment-form .form-submit input:hover { background: var(--copper); color: var(--white); }

/* ---------- footer ---------- */

.site-footer {
    background: var(--deep);
    color: #C3CFDD;
    margin-top: 3rem;
    padding: 3rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
}

.site-footer .widget { margin-bottom: 1.4rem; color: #C3CFDD; }
.site-footer .widget:last-child { margin-bottom: 0; }

.site-footer .widget-title {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(192, 108, 62, 0.5);
}

.site-footer .widget p { color: #C3CFDD; font-size: 0.92rem; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.site-footer .widget a { color: #D6DEE8; }
.site-footer .widget a:hover { color: var(--copper); }
.site-footer .widget .post-date { color: #8496AC; }

.footer-contact { font-size: 0.92rem; }
.footer-contact a { color: var(--copper); }

.site-copy {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--sans);
    font-size: 0.78rem;
    line-height: 1.6;
    color: #8496AC;
}

/* ---------- cookie banner ---------- */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: var(--deep-2);
    border-top: 3px solid var(--copper);
    color: #DCE4EE;
    font-size: 0.9rem;
}

.cookie-banner p { margin: 0; max-width: 820px; min-width: 0; }

.cookie-banner button {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--copper);
    border-radius: 4px;
    background: var(--copper);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.cookie-banner button:hover { background: transparent; color: var(--copper); transform: translateY(1px); }

/* ---------- front page ---------- */

.front-section { padding: 120px 0; position: relative; }

.front-section.alt { background: var(--bg-alt); }

.fs-stats::before,
.fs-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 4%;
    right: 4%;
    height: 1px;
    background-image: repeating-linear-gradient(to right, var(--steel) 0 3px, transparent 3px 12px);
    opacity: 0.5;
}

/* hero */

.fs-hero {
    padding: 0;
    background: var(--deep);
    color: #E4EBF3;
}

.hero-inner {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 26, 44, 0.94) 0%, rgba(15, 26, 44, 0.82) 45%, rgba(26, 44, 66, 0.55) 100%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(85%, 1180px);
    margin-inline: auto;
    padding: 5rem 0;
    max-width: 900px;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--copper);
    border: 1px solid rgba(192, 108, 62, 0.6);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1.4rem;
}

.hero-copy h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    max-width: 18ch;
}

.hero-lead {
    font-size: 1.12rem;
    color: #C9D6E4;
    max-width: 58ch;
    margin-bottom: 2rem;
}

.hero-coords {
    margin-top: 2.4rem;
    font-family: var(--sans);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7F93AB;
}

/* stats */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.stat {
    padding: 0.4rem 1.4rem;
    border-left: 1px solid var(--line);
    min-width: 0;
}

.stat:first-child { border-left: 0; padding-left: 0; }

.stat b {
    display: block;
    font-family: var(--sans);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--deep);
    letter-spacing: -0.02em;
}

.stat span {
    display: block;
    margin-top: 0.7rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--muted);
}

/* timeline */

.tl { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }

.tl::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--steel);
    opacity: 0.45;
}

.tl-item { position: relative; margin: 0 0 2.4rem; padding: 0; min-width: 0; }
.tl-item:last-child { margin-bottom: 0; }

.tl-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 7px;
    width: 11px;
    height: 11px;
    background: var(--copper);
    transform: rotate(45deg);
}

.tl-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.tl-step {
    display: block;
    font-family: var(--sans);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 0.3rem;
}

.tl-item p { margin: 0; font-size: 0.97rem; color: #33455A; max-width: 70ch; }

/* topic map */

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.topic-plate {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.topic-plate:hover {
    border-color: var(--copper);
    background: rgba(15, 26, 44, 0.05);
}

.topic-plate svg { flex: 0 0 30px; color: var(--steel); }
.topic-plate:hover svg { color: var(--copper); }

.topic-plate b {
    display: block;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--deep);
}

.topic-plate small {
    display: block;
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

/* latest posts on front */

.fs-latest .front-foot { margin-top: 2.4rem; }

/* dark accent block */

.accent-plate {
    background-image:
        repeating-radial-gradient(circle at 15% 90%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 26px),
        linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
    color: #DCE4EE;
    padding: 2.6rem 2.4rem;
    border-radius: 0;
}

.accent-plate h2 { color: var(--white); }
.accent-plate p { color: #C0CDDC; max-width: 70ch; }

/* ---------- 404 ---------- */

.err-block {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 6px 6px 0 rgba(15, 26, 44, 0.08);
    padding: 2.4rem 2.2rem;
    max-width: 720px;
}

.err-code {
    font-family: var(--sans);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--copper);
    margin-bottom: 0.6rem;
}

.err-block .search-form { margin: 1.6rem 0; }

/* ---------- screen reader ---------- */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero-copy h1 { font-size: 2.6rem; }
    .entry-title { font-size: 2.1rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.6rem;
    }

    .shell-wide { width: min(92%, 1180px); }

    .front-section { padding: 80px 0; }

    .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .nav-toggle { display: inline-block; }

    .main-nav {
        flex: 1 1 100%;
        display: none;
    }

    .main-nav.is-open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        margin-top: 0.8rem;
    }

    .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

    .main-nav a { display: block; padding: 0.7rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .hero-copy h1 { font-size: 2.1rem; }
    .entry-title { font-size: 1.8rem; }

    .front-section { padding: 60px 0; }

    .hero-inner { min-height: 420px; }
    .hero-copy { padding: 3.4rem 0; }

    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 0; }
    .stat { padding: 0 1rem; }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stat b { font-size: 2.3rem; }

    .topics-grid { grid-template-columns: minmax(0, 1fr); }

    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }

    .card-grid { grid-template-columns: minmax(0, 1fr); }

    .accent-plate { padding: 1.8rem 1.4rem; }

    .err-block { padding: 1.6rem 1.4rem; }

    .cookie-banner { padding: 1rem 1.1rem; }

    .comment-list .children { margin-left: 0.8rem; }

    body::after { width: 300px; height: 250px; background-size: contain; }
}
