/*
Theme Name: dds_ritchielists.com
Theme URI: https://ritchielists.com/
Author: Владимир Никитин
Description: Тема для информационного сайта о подержанной спецтехнике. Индустриально-техническая графика, тёмная холодная палитра, двойные рамки карточек.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: rlists
*/

:root {
    --bg: #0B0E14;
    --bg-alt: #131A24;
    --bg-head: #080A0F;
    --bg-foot: #06080C;
    --bg-panel: #10161E;
    --ink: #E8EDF2;
    --accent: #3A8BFF;
    --signal: #FFB347;
    --mute: #6A7A8E;
    --line-out: #1E293B;
    --line-in: #2A3A52;
    --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    --sans: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --- служебное: hidden всегда сильнее авторского display --- */
.cookie-banner[hidden],
.site-nav[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(58, 139, 255, .06) 0 1px, transparent 1px 7px),
        repeating-linear-gradient(90deg, rgba(58, 139, 255, .06) 0 1px, transparent 1px 7px);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

.entry-content a,
.unit a,
.trail a {
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 1px;
}
.entry-content a:hover,
.unit a:hover,
.trail a:hover { border-bottom: 2px solid var(--accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mono);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .01em;
    color: var(--ink);
    margin: 0 0 .8em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

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

.layout-single {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

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

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

/* --- заголовки секций: маркировка детали --- */
.section-title {
    position: relative;
    padding-left: 18px;
    text-transform: uppercase;
    font-size: 1.45rem;
    letter-spacing: .04em;
    margin-bottom: 1.4rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    background: var(--accent);
}
.section-title::first-letter { font-size: 1.25em; }

/* --- шапка --- */
.site-head {
    background: var(--bg-head);
    border-bottom: 1px solid var(--line-out);
}
.head-inner {
    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: .9rem; min-width: 0; }
.brand-logo { max-height: 54px; width: auto; }
.brand-mark { flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--mono);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink);
    text-transform: uppercase;
}
.brand-name a { color: inherit; }
.brand-desc {
    display: block;
    font-size: .78rem;
    color: var(--mute);
    line-height: 1.45;
    margin-top: .25rem;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 2px;
    font-family: var(--mono);
    font-size: .82rem;
    text-transform: uppercase;
    padding: .5rem .9rem;
    cursor: pointer;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.site-nav a {
    font-family: var(--mono);
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink);
    padding: .35rem 0;
    border-bottom: 2px solid transparent;
    display: inline-block;
}
.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--accent); border-bottom-color: var(--accent); }

/* --- кнопки --- */
.btn,
.entry-content .btn {
    display: inline-block;
    font-family: var(--mono);
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .82rem 1.6rem;
    border: 2px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: background-color .18s, color .18s, transform .12s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    border-bottom: 2px solid var(--accent);
}
.btn:hover,
.entry-content .btn:hover {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(2px);
    border-bottom: 2px solid var(--accent);
}
.btn-filled { background: var(--accent); color: #0B0E14; }
.btn-filled:hover { background: var(--accent); color: #FFFFFF; }

/* --- хлебные крошки --- */
.trail {
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--mute);
    padding: 1.2rem 0 0;
    letter-spacing: .02em;
}
.trail a { color: var(--mute); border-bottom-color: var(--line-in); }
.trail a:hover { color: var(--accent); }
.trail .sep { color: var(--accent); margin: 0 .35rem; }

/* --- карточки записей --- */
.card-list { display: grid; gap: 1.4rem; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border: 1px solid var(--line-out);
    border-radius: 4px;
    box-shadow: inset 0 0 0 3px var(--bg-panel), inset 0 0 0 4px var(--line-in);
    padding: 1.4rem;
    transition: transform .18s, box-shadow .18s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 3px var(--bg-panel), inset 0 0 0 4px var(--accent);
}
.card-inner { display: flex; flex-direction: row; gap: 1.2rem; }
.card-thumb-wrap { flex: 0 0 120px; overflow: hidden; border: 1px solid var(--line-out); border-radius: 4px; box-shadow: inset 0 0 0 2px var(--bg-panel), inset 0 0 0 3px var(--line-in); }
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img { width: 120px; height: 120px; object-fit: cover; display: block; }
.thumb-stub {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0D131B;
}
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-title {
    font-size: 1.12rem;
    margin: 0 0 .5rem;
    line-height: 1.35;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #C3CDD8; font-size: .93rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: .6rem;
    font-family: var(--mono);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    border-bottom: 1px dashed var(--accent);
}
.card-more:hover { border-bottom: 2px solid var(--accent); }

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
    font-family: var(--mono);
    font-size: .74rem;
    color: var(--mute);
    margin-bottom: .55rem;
    letter-spacing: .03em;
}
.meta-cat a { color: var(--mute); }
.meta-cat a:hover { color: var(--signal); }
.inv-num { color: var(--mute); margin-left: auto; }

/* --- главная --- */
.front { padding-bottom: 3.5rem; }

.front-section { padding: 3.2rem 0; position: relative; }
.front-section.alt {
    background:
        linear-gradient(135deg, #131A24 0%, #1A2533 100%);
    border-top: 1px solid var(--line-out);
    border-bottom: 1px solid var(--line-out);
}
.front-section.alt::after {
    content: "";
    position: absolute;
    right: 3%;
    bottom: 8%;
    width: 210px;
    height: 210px;
    pointer-events: none;
    opacity: .06;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%233A8BFF' stroke-width='3'%3E%3Ccircle cx='50' cy='50' r='18'/%3E%3Ccircle cx='50' cy='50' r='34'/%3E%3Cpath d='M50 6v14M50 80v14M6 50h14M80 50h14M19 19l10 10M71 71l10 10M81 19L71 29M29 71l-10 10'/%3E%3C/svg%3E");
}

.split-line {
    height: 0;
    border: 0;
    border-top: 2px dotted rgba(58, 139, 255, .55);
    margin: 0 8% ;
}

.diag-band {
    height: 14px;
    background-image: repeating-linear-gradient(100deg, rgba(58,139,255,.35) 0 3px, transparent 3px 14px);
    margin: 0;
}

/* hero */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line-out);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,14,20,.94) 0%, rgba(11,14,20,.72) 55%, rgba(11,14,20,.5) 100%);
}
.hero-inner {
    position: relative;
    padding: 5rem 0 4.4rem;
    max-width: 42rem;
}
.hero h1 {
    text-transform: uppercase;
    letter-spacing: .01em;
    margin-bottom: 1rem;
}
.hero-sub { font-size: 1.05rem; color: #C3CDD8; margin-bottom: 1.9rem; }
.hero-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--signal);
    border: 1px solid rgba(255,179,71,.5);
    padding: .3rem .7rem;
    margin-bottom: 1.4rem;
}

/* рубрикатор — сетка карточек 3 колонки */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.tile {
    background: var(--bg-panel);
    border: 1px solid var(--line-out);
    border-radius: 4px;
    box-shadow: inset 0 0 0 3px var(--bg-panel), inset 0 0 0 4px var(--line-in);
    padding: 1.7rem 1.5rem;
    transition: transform .18s, box-shadow .18s;
    display: block;
}
.tile:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 3px var(--bg-panel), inset 0 0 0 4px var(--accent);
}
.tile-icon { margin-bottom: .9rem; }
.tile h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.tile h3 a { color: var(--ink); }
.tile p { font-size: .92rem; color: #B6C2CF; margin: 0; }
.tile .inv-num { display: block; margin-top: .9rem; font-family: var(--mono); font-size: .72rem; }

/* таймлайн */
.tline { position: relative; padding-left: 2.4rem; margin-top: 1.6rem; }
.tline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: .6rem;
    bottom: .6rem;
    width: 2px;
    background: var(--accent);
}
.tline-step { position: relative; padding: 0 0 2rem 0; }
.tline-step:last-child { padding-bottom: 0; }
.tline-step::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: .45rem;
    width: 14px;
    height: 14px;
    background: var(--signal);
    transform: rotate(45deg) translateX(1px);
}
.tline-step h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .35rem;
}
.tline-step p { margin: 0; color: #B6C2CF; font-size: .95rem; }
.tline-num {
    font-family: var(--mono);
    font-size: .74rem;
    color: var(--mute);
    display: block;
    margin-bottom: .2rem;
}

/* статистика */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1.4rem;
}
.stat-cell {
    padding: 1.6rem 1.3rem;
    border: 1px solid var(--line-out);
    border-radius: 4px;
    background: rgba(11, 14, 20, .45);
    text-align: center;
}
.stat-num {
    display: block;
    font-family: var(--mono);
    font-size: 2.6rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 0 14px rgba(58, 139, 255, .65);
    line-height: 1.1;
}
.stat-cap { display: block; font-size: .85rem; color: #B6C2CF; margin-top: .5rem; }

/* CTA-плашка внутри секций */
.plate {
    background: var(--bg-panel);
    border: 1px solid var(--line-out);
    border-radius: 4px;
    padding: 2rem 2.2rem;
}

/* --- содержимое записи и страницы --- */
.entry {
    background: var(--bg-panel);
    border: 1px solid var(--line-out);
    border-radius: 4px;
    padding: 2.2rem 2.2rem 2.4rem;
}
.entry-title { font-size: 2.1rem; text-transform: none; margin-bottom: .8rem; }
.entry-thumb { margin: 1.4rem 0; border: 1px solid var(--line-out); border-radius: 4px; overflow: hidden; }
.entry-thumb img { width: 100%; height: auto; display: block; }
.entry-content { font-size: 1rem; }
.entry-content h2 {
    position: relative;
    padding-left: 18px;
    text-transform: uppercase;
    font-size: 1.4rem;
    margin-top: 2rem;
}
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    background: var(--accent);
}
.entry-content h3 { margin-top: 1.6rem; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.entry-content ul li::before { content: "◊"; position: absolute; left: 0; color: var(--signal); }
.entry-content ol { padding-left: 1.3rem; }
.entry-content ol li { margin-bottom: .5rem; }
.entry-content ol li::marker { color: var(--signal); font-family: var(--mono); }
.entry-content img { border-radius: 4px; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: linear-gradient(135deg, #131A24 0%, #1A2533 100%);
    border: 1px solid var(--line-out);
    border-radius: 4px;
    position: relative;
}
.entry-content blockquote::before,
.entry-content blockquote::after {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 1.9rem;
    line-height: 1;
}
.entry-content blockquote::before { content: "<"; margin-right: .4rem; float: left; }
.entry-content blockquote::after { content: ">"; margin-left: .4rem; }
.entry-content blockquote p:last-child { margin-bottom: 0; display: inline; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    font-size: .94rem;
}
.entry-content table,
.entry-content th,
.entry-content td { border: 1px solid var(--line-in); }
.entry-content th,
.entry-content td { padding: .7rem .8rem; text-align: left; }
.entry-content th { background: #16202C; font-family: var(--mono); text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }

.entry-content code,
.entry-content pre { font-family: var(--mono); background: #0D131B; border: 1px solid var(--line-in); }
.entry-content code { padding: .1rem .35rem; border-radius: 2px; font-size: .9em; }
.entry-content pre { padding: 1rem; overflow-x: auto; border-radius: 4px; }

.entry-foot {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px dotted rgba(58,139,255,.4);
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--mute);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}
.entry-foot a { color: var(--mute); }
.entry-foot a:hover { color: var(--accent); }

.page-heading { margin-bottom: 1.6rem; }
.page-heading h1 { font-size: 2.2rem; text-transform: uppercase; letter-spacing: .02em; }
.page-lead { color: var(--mute); font-family: var(--mono); font-size: .82rem; }

/* --- сайдбар и виджеты --- */
.sidebar { min-width: 0; }
.unit {
    background: var(--bg-panel);
    border: 1px solid var(--line-out);
    border-radius: 4px;
    padding: 1.5rem 1.4rem;
    margin-bottom: 1.4rem;
    color: var(--ink);
}
.unit-title {
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink);
    position: relative;
    padding-left: 16px;
    margin-bottom: 1rem;
}
.unit-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 4px;
    background: var(--accent);
}
.unit ul { list-style: none; margin: 0; padding: 0; }
.unit li { position: relative; padding-left: 1.3rem; margin-bottom: .6rem; font-size: .93rem; color: var(--ink); }
.unit li::before { content: "◊"; position: absolute; left: 0; color: var(--signal); }
.unit a { color: var(--ink); }
.unit a:hover { color: var(--accent); }
.unit p { color: #B6C2CF; font-size: .93rem; }
.unit .post-date { color: var(--mute); font-family: var(--mono); font-size: .74rem; display: block; }

/* --- поиск --- */
.find { display: flex; gap: .6rem; }
.find input[type="search"] {
    flex: 1;
    min-width: 0;
    background: #0D131B;
    border: 1px solid var(--line-in);
    border-radius: 2px;
    color: var(--ink);
    padding: .7rem .8rem;
    font-family: var(--sans);
    font-size: .93rem;
}
.find input[type="search"]:focus { outline: none; border-color: var(--accent); }
.find button {
    font-family: var(--mono);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--accent);
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 2px;
    padding: .6rem 1rem;
    cursor: pointer;
}
.find button:hover { background: var(--accent); color: #FFFFFF; }

/* --- пагинация --- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.2rem;
    align-items: center;
}
.pager .page-numbers {
    display: inline-block;
    font-family: var(--mono);
    font-size: .84rem;
    padding: .5rem .85rem;
    border: 2px solid var(--line-in);
    border-radius: 2px;
    color: var(--ink);
    background: var(--bg-panel);
}
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .page-numbers.current { border-color: var(--accent); background: var(--accent); color: #0B0E14; }
.pager .page-numbers.dots { border-color: transparent; background: transparent; color: var(--mute); }

/* --- комментарии --- */
.talk {
    margin-top: 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--line-out);
    border-radius: 4px;
    padding: 1.8rem 1.9rem;
}
.talk-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.talk-list ul.children { list-style: none; margin: 1rem 0 0 1.4rem; padding: 0 0 0 1rem; border-left: 1px dotted var(--line-in); }
.talk-item {
    border: 1px solid var(--line-out);
    border-radius: 4px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
    background: #0D131B;
}
.talk-head { display: flex; gap: 1rem; align-items: baseline; font-family: var(--mono); font-size: .8rem; margin-bottom: .5rem; }
.talk-author { color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.talk-date { color: var(--mute); }
.talk-body { font-size: .95rem; }
.talk-body p:last-child { margin-bottom: 0; }
.talk-tools { font-family: var(--mono); font-size: .78rem; margin-top: .6rem; }
.talk-tools a { color: var(--accent); }
.talk-hold { color: var(--signal); font-size: .85rem; }

.comment-form label { display: block; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; color: var(--mute); margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #0D131B;
    border: 1px solid var(--line-in);
    border-radius: 2px;
    color: var(--ink);
    padding: .7rem .8rem;
    font-family: var(--sans);
    font-size: .95rem;
    margin-bottom: 1rem;
}
.comment-form textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--accent); }
.comment-form .submit {
    font-family: var(--mono);
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .8rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 2px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.comment-form .submit:hover { background: var(--accent); color: #FFFFFF; transform: translateY(2px); }

/* --- 404 --- */
.miss { text-align: left; }
.miss-code { font-family: var(--mono); font-size: 4.6rem; color: var(--accent); line-height: 1; margin-bottom: .6rem; }

/* --- подвал --- */
.site-foot {
    background: var(--bg-foot);
    border-top: 1px solid var(--line-out);
    padding: 3rem 0 1.6rem;
    color: var(--ink);
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}
.foot-cols .unit { background: #0A0D13; }
.foot-cols .unit,
.foot-cols .unit li,
.foot-cols .unit p { color: #DCE3EA; }
.foot-cols .unit a { color: #DCE3EA; }
.foot-cols .unit a:hover { color: var(--accent); }
.foot-cols .unit-title { color: #FFFFFF; }
.foot-cols .unit .post-date { color: #8FA0B2; }

.foot-note {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dotted rgba(58,139,255,.4);
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--mute);
    letter-spacing: .02em;
}

/* --- cookie --- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #080A0F;
    border-top: 2px solid var(--accent);
    padding: 1rem 1.5rem;
    font-size: .9rem;
    color: var(--ink);
}
.cookie-banner p { margin: 0; max-width: 70ch; }
.cookie-banner .btn { padding: .6rem 1.2rem; }

/* --- адаптив --- */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single { width: 100%; }
    .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-inner { padding: 3.6rem 0 3.2rem; }
}

@media (max-width: 600px) {
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.4rem; }
    .head-inner { padding: .9rem 0; }
    .nav-toggle { display: inline-block; }
    .site-nav { width: 100%; display: none; }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: .2rem; padding-top: .8rem; }
    .site-nav a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line-out); }
    .card { padding: 1.1rem; }
    .card-inner { flex-direction: column; }
    .card-thumb-wrap { flex: none; width: 100%; }
    .card-thumb-wrap img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .thumb-stub { width: 100%; aspect-ratio: 16 / 9; height: auto; }
    .tile-grid { grid-template-columns: minmax(0, 1fr); }
    .stat-row { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .front-section { padding: 2.4rem 0; }
    .entry { padding: 1.4rem 1.3rem 1.6rem; }
    .plate { padding: 1.6rem 1.4rem; }
    .talk { padding: 1.3rem 1.2rem; }
    .stat-cell { padding: 1.3rem 1.2rem; }
    .tile { padding: 1.4rem 1.3rem; }
    .cookie-banner { padding: .9rem 1.1rem; }
    .entry-content blockquote { padding: 1.3rem 1.2rem; }
    .inv-num { margin-left: 0; }
}
