/*
Theme Name: dds_woxmusic.com
Theme URI: https://woxmusic.com/
Author: Павлова Лада Аркадьевна
Description: Тема для познавательного сайта о том, как устроены привычные вещи: разборы предметов, полевые дневники наблюдений и простые домашние опыты. Оформление — чертёж-конструктор на тёмно-синей миллиметровке с листами ватмана.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
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: woxlab
*/

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/oswald-cyrillic-500-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/oswald-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/oswald-cyrillic-700-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/oswald-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/pt-serif-cyrillic-400-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/pt-serif-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/pt-serif-cyrillic-700-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/pt-serif-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'PT Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/pt-serif-cyrillic-400-italic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'PT Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/pt-serif-latin-400-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/caveat-cyrillic-600-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/caveat-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Переменные ---------- */
:root {
    --wx-bg: #10233A;
    --wx-grid: #26405C;
    --wx-paper: #F2EBDC;
    --wx-paper-2: #F8F3E8;
    --wx-kraft: #E3D7BF;
    --wx-ink: #1B1B18;
    --wx-muted: #6E6455;
    --wx-orange: #E8542F;
    --wx-orange-d: #C9431F;
    --wx-green: #2F7D6D;
    --wx-green-l: #6CC3AE;
    --wx-footer: #0A1728;
    --wx-tape: rgba(204, 193, 165, 0.9);
    --wx-on-dark: #F2EBDC;
    --wx-on-dark-2: rgba(242, 235, 220, 0.74);
    --font-head: 'Oswald', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
    --font-body: 'PT Serif', Georgia, 'Times New Roman', serif;
    --font-hand: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
    --edge-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath fill='%23F2EBDC' d='M0 10 L0 6 L8 3 L15 7 L24 2 L33 5 L41 1 L50 6 L58 3 L67 8 L75 4 L84 6 L93 2 L101 5 L110 3 L118 7 L127 2 L136 6 L144 4 L153 8 L161 3 L170 6 L178 2 L187 5 L195 3 L200 6 L200 10 Z'/%3E%3C/svg%3E");
}

/* ---------- Скрытие через hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
.topnav[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--wx-ink);
    background-color: var(--wx-bg);
    background-image:
        linear-gradient(var(--wx-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--wx-grid) 1px, transparent 1px),
        linear-gradient(rgba(38, 64, 92, 0.42) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 64, 92, 0.42) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    margin: 1.4em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
p, li, dd, dt, td, th, blockquote, figcaption {
    overflow-wrap: break-word;
    hyphens: auto;
}
h1, h2, h3, h4, h5, h6, .card-title, .brand-name, .page-title, .entry-title, .stamp, .wx-btn {
    overflow-wrap: break-word;
    hyphens: manual;
}
a {
    color: var(--wx-green);
    text-decoration: underline dashed 1px;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
a:hover { color: var(--wx-orange); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--wx-orange);
    outline-offset: 2px;
}
.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 {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--wx-orange);
    color: #fff;
    font-family: var(--font-head);
    text-decoration: none;
}
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Контейнер ---------- */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ---------- Кнопки ---------- */
.wx-btn {
    display: inline-block;
    padding: 0.55rem 1.35rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: #fff;
    background: var(--wx-orange);
    border: 2px solid var(--wx-ink);
    border-radius: 0;
    box-shadow: 4px 4px 0 var(--wx-ink);
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s;
}
.wx-btn:hover, .wx-btn:focus-visible {
    color: #fff;
    background: var(--wx-orange-d);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--wx-ink);
}
.wx-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--wx-ink); }
.wx-btn--sm { padding: 0.4rem 1rem; font-size: 0.92rem; }

/* ---------- Штамп-ярлык ---------- */
.stamp {
    display: inline-block;
    margin: 0 0 0.6rem;
    padding: 0.18rem 0.75rem 0.22rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--wx-orange);
    background: rgba(255, 252, 244, 0.55);
    border: 3px solid var(--wx-orange);
    box-shadow: inset 0 0 0 1px rgba(232, 84, 47, 0.35);
    transform: rotate(-4deg);
    transform-origin: left center;
}
.stamp--heading { font-size: clamp(1.1rem, 2.4vw, 1.45rem); }
.stamp--dark { background: rgba(16, 35, 58, 0.6); }
.stamp--link { text-decoration: none; font-size: 0.95rem; }
.stamp--link:hover { color: #fff; background: var(--wx-orange); }

/* ---------- Лист ватмана ---------- */
.sheet {
    position: relative;
    margin: 2.4rem 0;
    padding: 1.8rem 1.3rem;
    background: var(--wx-paper);
    color: var(--wx-ink);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
}
.sheet::before, .sheet::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 10px;
    background: var(--edge-top) repeat-x;
    background-size: 200px 10px;
    pointer-events: none;
}
.sheet::before { top: -9px; }
.sheet::after { bottom: -9px; transform: scaleY(-1); }
.sheet--tilt-l { transform: rotate(-0.4deg); }
.sheet--tilt-r { transform: rotate(0.45deg); }

/* ---------- Шапка ---------- */
.masthead {
    padding: 1.3rem 0 1.1rem;
    border-bottom: 1px solid var(--wx-grid);
    color: var(--wx-on-dark);
}
.masthead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1 1 0;
    min-width: 0;
    text-decoration: none;
    color: var(--wx-on-dark);
}
.brand:hover { color: var(--wx-on-dark); }
.brand-mark { flex: 0 0 auto; display: block; width: 56px; height: 56px; }
.brand-svg, .brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.brand-desc {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--wx-on-dark-2);
}
.navtoggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--wx-on-dark);
    background: transparent;
    border: 2px solid var(--wx-orange);
    cursor: pointer;
}
.navtoggle-bars, .navtoggle-bars::before, .navtoggle-bars::after {
    display: block;
    width: 18px; height: 2px;
    background: var(--wx-orange);
    position: relative;
}
.navtoggle-bars::before, .navtoggle-bars::after { content: ""; position: absolute; left: 0; }
.navtoggle-bars::before { top: -6px; }
.navtoggle-bars::after { top: 6px; }
.topnav { display: none; width: 100%; }
.topnav.is-open { display: block; }
.topnav-list {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.topnav-list li { border-top: 1px dashed var(--wx-grid); }
.topnav-list a {
    display: block;
    padding: 0.55rem 0;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wx-on-dark);
}
.topnav-list a:hover,
.topnav-list .current-menu-item > a { color: var(--wx-orange); }

/* ---------- Главная ---------- */
.fs-big-title {
    margin: 0.4rem 0 1.4rem;
    font-size: clamp(1.45rem, 3.6vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.anatomy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.anatomy-figure {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 238 / 182;
    justify-self: center;
}
.anatomy-img {
    position: absolute;
    left: 0; top: 0;
    display: block;
    width: 57.14%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.anatomy-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.anatomy-tag {
    position: absolute;
    left: 67.6%;
    transform: translateY(-50%);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(0.78rem, 2.2vw, 1.05rem);
    line-height: 1;
    white-space: nowrap;
}
.parts { list-style: none; margin: 0; padding: 0; }
.parts-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem 0;
}
.parts-row + .parts-row { border-top: 1px dotted rgba(27, 27, 24, 0.35); }
.parts-img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.parts-text { min-width: 0; }
.parts-text b {
    display: block;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.2;
}
.parts-text span { display: block; font-size: 0.9rem; line-height: 1.4; color: var(--wx-muted); }

.diary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; margin-top: 0.8rem; }
.diary-days { list-style: none; margin: 0; padding: 0; }
.diary-days li {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    align-items: baseline;
    padding: 0.32rem 0;
}
.diary-days b {
    position: relative;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1;
}
.diary-days b::after {
    content: "";
    position: absolute;
    right: 0.45rem; top: 50%;
    width: 7px; height: 7px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--wx-ink);
}
.diary-days span {
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #3B352B;
}
.diary-figure { position: relative; margin: 0; max-width: 480px; justify-self: center; width: 100%; }
.diary-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 1060 / 1120;
    object-fit: cover;
    mix-blend-mode: multiply;
}
.diary-note {
    position: absolute;
    left: 56%; top: 95%;
    transform: translateY(-50%) rotate(-3deg);
    font-family: var(--font-hand);
    font-weight: 600;
    font-size: clamp(1.1rem, 3vw, 1.55rem);
    line-height: 1;
    white-space: nowrap;
}

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem 1.8rem; margin-top: 1.6rem; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 12px 1.2rem;
    background: var(--wx-paper-2);
    border: 1px solid var(--wx-ink);
    box-shadow: 4px 5px 0 rgba(27, 27, 24, 0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}
.card::before {
    content: "";
    position: absolute;
    top: -13px; left: 50%;
    width: 96px; height: 26px;
    margin-left: -48px;
    background: var(--wx-tape);
    transform: rotate(-2.5deg);
    clip-path: polygon(0 8%, 4% 0, 8% 10%, 92% 4%, 96% 12%, 100% 2%, 98% 50%, 100% 96%, 95% 88%, 90% 100%, 6% 94%, 2% 100%, 3% 50%);
}
.card:nth-child(odd) { transform: rotate(-0.8deg); }
.card:nth-child(even) { transform: rotate(0.7deg); }
.card:hover { transform: translate(-2px, -3px) rotate(0deg); box-shadow: 7px 8px 0 var(--wx-ink); }
.card-photo { padding: 6px; background: #fff; border: 1px solid #CFC6B2; }
.card-photo a { display: block; }
.card-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding-top: 0.9rem; }
.card-title {
    margin: 0 0 0.3rem;
    font-weight: 500;
    font-size: 1.22rem;
    line-height: 1.2;
}
.card-title a { color: var(--wx-ink); text-decoration: none; }
.card-title a:hover { color: var(--wx-orange); }
.card-date {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: var(--wx-muted);
}
.card-excerpt { font-size: 0.95rem; line-height: 1.5; margin-bottom: 0.9rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; margin-top: auto; }
.empty-note { margin: 1rem 0 0; font-style: italic; color: var(--wx-muted); }

.fs-tools {
    position: relative;
    margin: 2.6rem 0;
    padding: 1.6rem 1.3rem 1.3rem;
    color: var(--wx-on-dark);
    background-color: var(--wx-bg);
    background-image:
        linear-gradient(var(--wx-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--wx-grid) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid #355373;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}
.tools {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem 2rem;
}
.tool { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; min-width: 0; }
.tool svg {
    display: block;
    width: 66px; height: 44px;
    fill: none;
    stroke: var(--wx-green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tool:hover svg { stroke: var(--wx-green-l); }
.tool span {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.ruler {
    height: 20px;
    margin: 0.9rem 0 0.8rem;
    background:
        linear-gradient(var(--wx-green), var(--wx-green)) left bottom / 100% 2px no-repeat,
        repeating-linear-gradient(90deg, var(--wx-green) 0 2px, transparent 2px 50px) left bottom / 100% 18px no-repeat,
        repeating-linear-gradient(90deg, var(--wx-green) 0 1px, transparent 1px 10px) left bottom / 100% 9px no-repeat;
}
.tools-note { margin: 0; text-align: center; font-size: 0.95rem; color: var(--wx-on-dark-2); }

.experiment { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: center; margin-top: 0.8rem; }
.experiment-steps { margin: 0; padding-left: 1.4rem; font-size: 1.05rem; }
.experiment-steps li { margin: 0.35rem 0; padding-left: 0.2rem; }
.experiment-steps li::marker { font-family: var(--font-head); font-weight: 700; color: var(--wx-orange); }
.experiment-figure { position: relative; margin: 0; width: 100%; max-width: 520px; justify-self: center; }
.experiment-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 950 / 600;
    object-fit: cover;
    mix-blend-mode: multiply;
}
.experiment-num {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1rem, 2.6vw, 1.4rem);
    line-height: 1;
}
.experiment-result { margin: 0; text-align: center; justify-self: center; max-width: 260px; }
.experiment-result figcaption { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; }
.experiment-result img {
    display: block;
    width: 160px;
    margin: 0.3rem auto 0.5rem;
    aspect-ratio: 460 / 400;
    object-fit: cover;
    mix-blend-mode: multiply;
}
.experiment-result p { margin: 0; font-size: 0.88rem; font-style: italic; line-height: 1.4; color: var(--wx-muted); }
.fs-experiment { margin-bottom: 3.6rem; padding-bottom: 0.4rem; }
.experiment-cta { text-align: center; margin-top: 1.4rem; transform: translateY(55%); }

/* ---------- Внутренние страницы ---------- */
.crumbs {
    padding: 1.3rem 0 0.2rem;
    font-size: 0.9rem;
    color: var(--wx-on-dark-2);
}
.crumbs a { color: var(--wx-green-l); }
.crumbs a:hover { color: var(--wx-orange); }
.crumbs-sep { color: var(--wx-orange); margin: 0 0.25rem; }
.layout-single .content-area { min-width: 0; }
.content-area { min-width: 0; }
.page-head { margin-top: 2rem; }
.page-title, .entry-title {
    margin: 0.2rem 0 0.6rem;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    text-transform: uppercase;
}
.page-lead { color: var(--wx-muted); }
.page-lead p:last-child { margin-bottom: 0; }
.page-head .seek { margin-top: 0.8rem; }
.cards--list { margin: 2.6rem 0 1rem; }

.entry-meta {
    margin: 0 0 1.2rem;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wx-muted);
}
.entry-meta-sep { color: var(--wx-orange); margin: 0 0.4rem; }
.entry-photo { margin: 0 0 1.6rem; padding: 8px; background: #fff; border: 1px solid #CFC6B2; transform: rotate(-0.6deg); }
.entry-photo img { display: block; width: 100%; height: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    text-transform: uppercase;
}
.entry-content h2::after {
    content: "";
    display: block;
    width: 72px; height: 4px;
    margin-top: 0.45rem;
    background: var(--wx-orange);
}
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin: 0.3rem 0; }
.entry-content li::marker { color: var(--wx-orange); font-weight: 700; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1rem 1.4rem;
    background: #E8DECA;
    border-left: 6px solid var(--wx-orange);
    font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.95rem; border: 2px solid var(--wx-ink); }
.entry-content th, .entry-content td { padding: 0.55rem 0.7rem; border: 1px solid var(--wx-ink); text-align: left; vertical-align: top; }
.entry-content th { background: var(--wx-ink); color: var(--wx-paper); font-family: var(--font-head); font-weight: 500; letter-spacing: 0.03em; }
.entry-content tr:nth-child(even) td { background: rgba(27, 27, 24, 0.04); }
.entry-content img { display: block; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--wx-muted); letter-spacing: 0.06em; margin-top: 0.4rem; }
.entry-content pre {
    overflow-x: auto;
    padding: 1rem;
    background: var(--wx-bg);
    color: var(--wx-paper);
    font-size: 0.9rem;
}
.entry-content code { font-size: 0.92em; background: rgba(27, 27, 24, 0.07); padding: 0.05em 0.3em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; border-top: 2px dashed var(--wx-muted); margin: 2rem 0; }
.alignleft { float: left; margin: 0.3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.85rem; color: var(--wx-muted); }
.entry-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }

.entry-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 2.2rem 0; }
.entry-nav-link {
    display: block;
    padding: 0.9rem 1.1rem;
    background: var(--wx-kraft);
    color: var(--wx-ink);
    border: 1px solid var(--wx-ink);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
    font-family: var(--font-head);
    font-weight: 500;
    text-decoration: none;
    min-width: 0;
}
.entry-nav-link small { display: block; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wx-muted); }
.entry-nav-link:hover { color: var(--wx-orange); }
.entry-nav-link--next { text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    position: relative;
    margin: 2.4rem 0;
    padding: 1.6rem 1.4rem;
    background: var(--wx-kraft);
    color: var(--wx-ink);
    border: 1px solid var(--wx-ink);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}
.sidebar .widget + .widget { margin-top: 1.8rem; }
.sidebar .widget-title {
    display: inline-block;
    margin: 0 0 0.8rem;
    padding: 0.15rem 0.65rem;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--wx-orange);
    border: 2px solid var(--wx-ink);
    transform: rotate(-2deg);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.5rem 0; border-bottom: 1px dashed rgba(27, 27, 24, 0.35); color: var(--wx-ink); }
.sidebar a { color: var(--wx-ink); text-decoration: none; }
.sidebar a:hover { color: var(--wx-orange-d); }
.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--wx-muted); }
.sidebar p, .sidebar .textwidget { color: var(--wx-ink); }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 2.4rem 0 1rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.8rem;
    font-family: var(--font-head);
    font-weight: 500;
    text-decoration: none;
    color: var(--wx-ink);
    background: var(--wx-paper);
    border: 2px solid var(--wx-ink);
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.12s, box-shadow 0.12s;
}
.pager a.page-numbers:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; color: var(--wx-orange-d); }
.pager .page-numbers.current { background: var(--wx-orange); color: #fff; }
.pager .page-numbers.dots { background: none; border: 0; box-shadow: none; color: var(--wx-on-dark); min-width: 1rem; }

/* ---------- Поиск ---------- */
.seek { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0; }
.seek-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    font: inherit;
    color: var(--wx-ink);
    background: #FBF8F0;
    border: 2px solid var(--wx-ink);
    border-radius: 0;
}

/* ---------- Комментарии ---------- */
.comments-title { margin-top: 0; text-transform: uppercase; font-size: 1.5rem; }
.notes, .notes .children { list-style: none; margin: 0; padding: 0; }
.notes .children { margin-left: 1.4rem; }
.note-body {
    margin: 0 0 1.2rem;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 3px solid var(--wx-orange);
}
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.7rem; margin-bottom: 0.4rem; }
.note-avatar { border-radius: 50%; border: 2px solid var(--wx-ink); }
.note-author { font-family: var(--font-head); font-weight: 500; }
.note-date { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--wx-muted); }
.note-wait { font-style: italic; color: var(--wx-orange-d); }
.note-reply a { font-family: var(--font-head); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em; }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.35rem; text-transform: uppercase; margin-top: 0; }
.comment-reply-title small { margin-left: 0.6rem; font-size: 0.85rem; }
.comment-form label { display: block; margin-bottom: 0.25rem; font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    display: block;
    width: 100%;
    padding: 0.6rem 0.8rem;
    font: inherit;
    color: var(--wx-ink);
    background: #FBF8F0;
    border: 2px solid var(--wx-ink);
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.comment-notes, .logged-in-as { font-size: 0.9rem; color: var(--wx-muted); }
.req { color: var(--wx-orange-d); }

/* ---------- 404 ---------- */
.nofound { text-align: center; }
.nofound-code {
    margin: 0.4rem 0 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(4.5rem, 16vw, 9rem);
    line-height: 1;
    color: var(--wx-orange);
    text-shadow: 5px 5px 0 var(--wx-ink);
}
.nofound .seek { justify-content: center; max-width: 520px; margin-inline: auto; }
.nofound-home { margin-top: 1.4rem; }

/* ---------- Подвал ---------- */
.basement {
    margin-top: 4rem;
    padding: 2.6rem 0 1.4rem;
    color: var(--wx-on-dark-2);
    background-color: var(--wx-footer);
    background-image:
        linear-gradient(rgba(38, 64, 92, 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 64, 92, 0.45) 1px, transparent 1px);
    background-size: 24px 24px;
    border-top: 3px solid var(--wx-orange);
}
.basement-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.basement-col { min-width: 0; }
.basement .widget-title {
    margin: 0 0 0.7rem;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--wx-on-dark);
}
.basement p, .basement .textwidget { color: var(--wx-on-dark-2); font-size: 0.95rem; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { margin: 0.35rem 0; color: var(--wx-on-dark-2); }
.basement a { color: var(--wx-green-l); }
.basement a:hover { color: var(--wx-orange); }
.basement-copy {
    margin: 2.2rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--wx-grid);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(242, 235, 220, 0.6) !important;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 60;
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.2rem;
    padding: 1rem 1.3rem;
    color: var(--wx-ink);
    background: var(--wx-paper);
    border: 2px solid var(--wx-ink);
    box-shadow: 6px 6px 0 #000;
}
.cookie-banner-text { flex: 1 1 260px; margin: 0; font-size: 0.92rem; line-height: 1.45; }

/* ---------- Адаптив: от 600px ---------- */
@media (min-width: 600px) {
    .brand-mark { width: 64px; height: 64px; }
    .brand-name { font-size: 1.3rem; }
    .brand-desc { font-size: 0.9rem; }
    .sheet { padding: 2.2rem 2.2rem; }
    .fs-tools { padding: 1.8rem 2.2rem 1.4rem; }
    .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .diary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
    .diary-days { padding-right: 1.6rem; border-right: 2px dashed var(--wx-ink); }
    .diary-figure { padding-left: 1.6rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .basement-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sheet--tilt-l { transform: rotate(-0.8deg); }
    .sheet--tilt-r { transform: rotate(0.9deg); }
}

/* ---------- Адаптив: от 960px ---------- */
@media (min-width: 960px) {
    .shell--front { width: min(85%, 1180px); }
    .navtoggle { display: none; }
    .topnav, .topnav.is-open { display: block; width: auto; flex: 0 1 auto; }
    .topnav-list { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; margin: 0; max-width: 360px; }
    .topnav-list li { border: 0; display: flex; align-items: center; }
    .topnav-list li + li::before {
        content: "+";
        margin: 0 0.6rem;
        font-family: var(--font-head);
        font-weight: 700;
        color: var(--wx-orange);
    }
    .topnav-list a { padding: 0.15rem 0; }
    .masthead { padding: 1.6rem 0 1.4rem; }
    .brand-name { font-size: 1.55rem; max-width: 26ch; }
    .sheet { padding: 2.4rem 2.8rem; }
    .fs-anatomy { width: 96%; margin-left: -1%; }
    .fs-diary { width: 94%; margin-left: auto; margin-right: 0; }
    .anatomy { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; align-items: center; }
    .parts { padding-left: 1.8rem; border-left: 2px solid var(--wx-ink); }
    .anatomy-figure { justify-self: start; }
    .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .experiment { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 2rem; }
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .sidebar { margin-top: 2rem; transform: rotate(0.6deg); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
