/*
Theme Name: dds_artcraftfinder.com
Theme URI: https://artcraftfinder.com/
Author: Нестерова Агния Фёдоровна
Description: Тема «Рабочий журнал мастера» для информационного сайта о ручной работе: плотная бумага с миллиметровкой, образцы материалов на булавках, карточки на клейкой ленте и кнопки-бирки.
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: acfjr
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/oswald-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+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Oswald"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/oswald-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+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "PT Serif"; font-weight: 400; font-style: normal; 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-weight: 400; font-style: normal; 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+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "PT Serif"; font-weight: 400; font-style: italic; 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-weight: 400; font-style: italic; font-display: swap; src: url("fonts/pt-serif-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "PT Serif"; font-weight: 700; font-style: normal; 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-weight: 700; font-style: normal; font-display: swap; src: url("fonts/pt-serif-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "PT Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/pt-mono-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 Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/pt-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Caveat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/caveat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

/* ---------- Палитра ---------- */
:root {
    --paper: #EFE6D4;
    --grid: #C9BCA0;
    --moss: #3B4A3F;
    --moss-deep: #2B3129;
    --coal: #2E2A24;
    --coal-deep: #25231E;
    --ink: #2A2620;
    --ink-soft: #6F6455;
    --terra: #C4501E;
    --terra-dark: #9E3E15;
    --green: #2F6B5E;
    --brass: #D9A441;
    --card: #F6F0E1;
    --row: #E4D8BF;
    --row-alt: #D6BE9C;
    --aside: #E5D8BE;
    --cream: #F1EAD6;
    --tape: rgba(214, 196, 140, .78);
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
    --f-body: "PT Serif", Georgia, "Times New Roman", serif;
    --f-mono: "PT Mono", "Courier New", monospace;
    --f-hand: "Caveat", "Segoe Print", cursive;
    --mm: 10px;
}

/* ---------- Скрытие по атрибуту hidden ---------- */
.cookie-banner[hidden] { display: none !important; }
.top-nav[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--paper);
    background-image: url("images/paper-tile.jpg");
    background-size: 368px 368px;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-line: underline; text-decoration-style: wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(47, 107, 94, .65); transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--terra); text-decoration-color: var(--terra); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px dashed var(--terra); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 1.4em 0 .55em; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
p, li, td, th, dd, figcaption, .card-title, .swatch-name, .snap-name { overflow-wrap: break-word; hyphens: auto; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
blockquote {
    margin: 1.6em 0;
    padding: 1.1em 1.4em 1.1em 1.6em;
    background: var(--card);
    border-left: 4px solid var(--green);
    font-style: italic;
    box-shadow: 2px 3px 0 rgba(42, 38, 32, .12);
}
blockquote p:last-child { margin-bottom: 0; }
hr { border: 0; height: 6px; margin: 2em 0; background: linear-gradient(var(--green), var(--green)) top / 100% 2px no-repeat, linear-gradient(var(--green), var(--green)) bottom / 100% 1px no-repeat; opacity: .7; }
table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; background: var(--card); border: 1.5px solid var(--ink); }
th, td { border: 1px solid var(--ink); padding: .55em .75em; text-align: left; vertical-align: top; }
thead th { font-family: var(--f-head); font-weight: 600; background: var(--row); }
tbody tr:nth-child(even) { background: rgba(214, 190, 156, .45); }
code, pre, kbd { font-family: var(--f-mono); font-size: .92em; }
pre { background: var(--coal); color: var(--cream); padding: 1em 1.2em; overflow-x: auto; }
figure { margin: 1.5em 0; }
figcaption, .wp-caption-text { font-family: var(--f-mono); font-size: .82rem; color: var(--ink-soft); margin-top: .5em; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.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: -4rem; z-index: 100; background: var(--terra); color: #fff; padding: .6em 1em; font-family: var(--f-head); text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* Единый контейнер ширины */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* Миллиметровка для панелей */
.grid-paper {
    background-color: rgba(241, 234, 214, .55);
    background-image:
        linear-gradient(rgba(201, 188, 160, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 188, 160, .55) 1px, transparent 1px);
    background-size: var(--mm) var(--mm);
    border: 1px solid rgba(201, 188, 160, .9);
}

/* ---------- Кнопки-бирки ---------- */
.tag-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .55em 1.15em .55em 1.9em;
    background: var(--terra);
    color: #fff;
    font-family: var(--f-head);
    font-weight: 400;
    font-size: .98rem;
    letter-spacing: .03em;
    line-height: 1.2;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(42, 38, 32, .25);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.tag-btn::before {
    content: "";
    position: absolute;
    left: .7em;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: inset 0 0 0 1.5px var(--terra-dark);
}
.tag-btn::after {
    content: "";
    position: absolute;
    left: .35em;
    top: 50%;
    width: 26px;
    height: 1.5px;
    background: #8A6E4B;
    transform-origin: left center;
    transform: translate(-100%, 0) rotate(-22deg);
    pointer-events: none;
}
.tag-btn:hover, .tag-btn:focus-visible { background: var(--terra-dark); color: #fff; transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 4px 4px 0 rgba(42, 38, 32, .25); }
.tag-btn:active { transform: translate(0, 0); box-shadow: 1px 1px 0 rgba(42, 38, 32, .25); }

.wavy-link { font-family: var(--f-head); font-size: 1.05rem; letter-spacing: .02em; }

/* ---------- Шапка ---------- */
.masthead { background: var(--moss); color: var(--cream); position: relative; }
.masthead::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -14px;
    height: 16px;
    background: var(--moss);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v6l-4 3-6-2-5 4-7-3-6 5-5-4-7 3-4-2-7 4-6-3-5 2-6-4-5 5-7-3-4 2-6-3-5 4-6-2-5 3-7-4-4 3-6-2-4 1V0z'/%3E%3C/svg%3E") center / 100% 100%;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v6l-4 3-6-2-5 4-7-3-6 5-5-4-7 3-4-2-7 4-6-3-5 2-6-4-5 5-7-3-4 2-6-3-5 4-6-2-5 3-7-4-4 3-6-2-4 1V0z'/%3E%3C/svg%3E") center / 100% 100%;
    pointer-events: none;
}
.masthead-strip { background: var(--moss-deep); }
.strip-row { display: flex; justify-content: flex-end; align-items: center; min-height: 48px; }
.top-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 2rem; }
.top-nav-list li { margin: 0; }
.top-nav-list a {
    display: inline-block;
    padding: .7rem 0;
    color: var(--cream);
    font-family: var(--f-head);
    font-size: 1rem;
    letter-spacing: .03em;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.top-nav-list a:hover, .top-nav-list .current-menu-item > a { color: var(--brass); border-bottom-color: var(--brass); }
.nav-toggle { display: none; }
.brand-row { display: flex; align-items: center; gap: 1.5rem; padding: 1.7rem 0 2.1rem; }
.brand-logo-link { flex: 0 0 auto; color: var(--cream); display: block; line-height: 0; text-decoration: none; }
.brand-mark { width: 92px; height: 92px; display: block; }
.brand-logo { max-width: 110px; max-height: 110px; width: auto; height: auto; display: block; }
.brand-logo-link:hover { color: var(--brass); }
.brand-text { min-width: 0; }
.brand-name { margin: 0 0 .35rem; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.12; text-transform: uppercase; letter-spacing: .02em; }
.brand-name a { color: var(--cream); text-decoration: none; }
.brand-name a:hover { color: var(--brass); }
.brand-desc { margin: 0; max-width: 62ch; color: #D9D2BE; font-family: var(--f-mono); font-size: .92rem; line-height: 1.5; }

/* ---------- Заголовки секций ---------- */
.block-head { position: relative; }
.sec-title {
    display: inline-block;
    margin: 0 0 1.4rem;
    padding-bottom: .3rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    text-transform: uppercase;
    letter-spacing: .02em;
    border-bottom: 3px solid var(--green);
    box-shadow: 0 4px 0 var(--paper), 0 6px 0 var(--green);
}
.margin-note { font-family: var(--f-hand); font-size: 1.25rem; color: var(--ink-soft); line-height: 1.1; }
.margin-note--side {
    position: absolute;
    left: -2.4rem;
    top: 4.6rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1rem;
    white-space: nowrap;
}

/* ---------- Главная ---------- */
.front { padding: 3rem 0 4rem; }
.block { margin-bottom: 3.3rem; min-width: 0; }

/* Атлас */
.atlas-board { padding: 2rem 1.6rem 1.2rem; }
.atlas-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.swatch {
    position: relative;
    margin: 0 -3px;
    padding: 9px 9px 10px;
    background: var(--card);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 3px 6px 10px rgba(42, 38, 32, .28);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
.swatch--1 { transform: rotate(-2.2deg); z-index: 1; }
.swatch--2 { transform: rotate(3deg) translateY(4px); z-index: 2; }
.swatch--3 { transform: rotate(-.6deg); z-index: 3; }
.swatch--4 { transform: rotate(2.4deg) translateY(6px); z-index: 4; }
.swatch--5 { transform: rotate(-3deg) translateY(-2px); z-index: 1; }
.swatch:hover { transform: rotate(0) translateY(-6px); z-index: 6; box-shadow: 5px 12px 18px rgba(42, 38, 32, .3); }
.swatch img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.swatch-pin {
    position: absolute;
    top: -9px;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #F0C96C, var(--brass) 55%, #9C7424);
    box-shadow: 1px 2px 2px rgba(0, 0, 0, .35);
    z-index: 2;
}
.swatch--2 .swatch-pin, .swatch--5 .swatch-pin { background: radial-gradient(circle at 35% 35%, #6FA597, var(--green) 55%, #1C463D); }
.swatch-cap { padding: .55rem .15rem 0; }
.swatch-name { margin: 0 0 .2rem; font-size: 1.05rem; line-height: 1.15; }
.swatch-level { margin: 0; font-family: var(--f-mono); font-size: .74rem; line-height: 1.35; color: var(--ink-soft); }
.swatch-note { display: block; margin-top: .2rem; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.3px solid var(--brass); display: block; }
.dots i.on { background: var(--brass); }
.atlas-legend { margin: 1.6rem 0 0; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); }

/* Сравнение материалов */
.compare-sheet { position: relative; padding: 1.4rem 9.5rem 1rem 1.4rem; }
.pen-arrow { position: absolute; left: -1.9rem; top: 2.6rem; font-family: var(--f-hand); font-size: 1.8rem; color: var(--ink-soft); transform: rotate(-30deg); }
.compare-scroll { overflow-x: auto; }
.ledger { margin: 0; min-width: 520px; background: var(--row); border: 1.6px solid var(--ink); font-size: 1rem; box-shadow: 2px 3px 0 rgba(42, 38, 32, .12); }
.ledger th, .ledger td { border: 1px solid var(--ink); border-left-width: 1.4px; padding: .42em .9em; vertical-align: middle; }
.ledger thead th { background: var(--cream); font-size: 1.08rem; text-align: left; }
.ledger thead th:nth-child(3), .ledger thead th:nth-child(4) { text-align: center; }
.ledger tbody th { font-family: var(--f-body); font-weight: 400; background: transparent; }
.ledger tbody tr:nth-child(odd) { background: var(--row); }
.ledger tbody tr:nth-child(even) { background: var(--row-alt); }
.ledger tbody td:nth-child(3) { text-align: center; font-family: var(--f-mono); font-size: .95rem; }
.tool-cell { text-align: center; white-space: nowrap; }
.ledger th, .ledger td { hyphens: none; }
.ledger thead th, .ledger tbody td:nth-child(3) { white-space: nowrap; }
.tool-cell span { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-soft); margin-left: .35rem; vertical-align: middle; }
.tool-ico { color: var(--ink); vertical-align: middle; }
.samples { position: absolute; right: 1.3rem; top: 1rem; width: 7.4rem; display: flex; flex-direction: column; gap: 1.4rem; }
.sample { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 3px 5px 8px rgba(42, 38, 32, .35); }
.sample--linen {
    transform: rotate(5deg);
    -webkit-clip-path: polygon(2% 3%, 8% 0, 15% 3%, 23% 0, 31% 2%, 40% 0, 48% 3%, 57% 0, 66% 2%, 74% 0, 83% 3%, 91% 0, 98% 2%, 100% 10%, 97% 19%, 100% 28%, 98% 37%, 100% 47%, 97% 56%, 100% 65%, 98% 74%, 100% 84%, 97% 92%, 99% 100%, 90% 97%, 81% 100%, 72% 98%, 63% 100%, 54% 97%, 45% 100%, 36% 98%, 27% 100%, 18% 97%, 9% 100%, 1% 98%, 3% 89%, 0 80%, 2% 70%, 0 60%, 3% 51%, 0 42%, 2% 32%, 0 22%, 3% 12%);
            clip-path: polygon(2% 3%, 8% 0, 15% 3%, 23% 0, 31% 2%, 40% 0, 48% 3%, 57% 0, 66% 2%, 74% 0, 83% 3%, 91% 0, 98% 2%, 100% 10%, 97% 19%, 100% 28%, 98% 37%, 100% 47%, 97% 56%, 100% 65%, 98% 74%, 100% 84%, 97% 92%, 99% 100%, 90% 97%, 81% 100%, 72% 98%, 63% 100%, 54% 97%, 45% 100%, 36% 98%, 27% 100%, 18% 97%, 9% 100%, 1% 98%, 3% 89%, 0 80%, 2% 70%, 0 60%, 3% 51%, 0 42%, 2% 32%, 0 22%, 3% 12%);
    filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, .3));
}
.sample--copper { transform: rotate(-6deg) translateX(8px); border-radius: 2px; }
.compare-foot { margin: .9rem 0 0; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); }

/* Последние записи */
.latest .block-head::before {
    content: "";
    position: absolute;
    right: -2%;
    top: -1.2rem;
    width: 52%;
    height: 4.5rem;
    background: url("images/stain-band.png") center / 100% 100% no-repeat;
    opacity: .9;
    pointer-events: none;
    -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
            mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.latest-board { padding: 2.4rem 1.6rem 1.6rem; }
.latest-more { margin: 1.8rem 0 0; text-align: right; }

/* Карточки записей */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 1.9rem; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card);
    padding: 12px 12px 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 4px 8px 14px rgba(42, 38, 32, .26);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card-grid > .card:nth-child(3n+1) { transform: rotate(-1.6deg); }
.card-grid > .card:nth-child(3n+2) { transform: rotate(.9deg) translateY(6px); }
.card-grid > .card:nth-child(3n+3) { transform: rotate(-.7deg); }
.card-grid > .card:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 7px 14px 20px rgba(42, 38, 32, .3); }
.card-tape {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 96px;
    height: 26px;
    margin-left: -48px;
    background: var(--tape);
    transform: rotate(-2deg);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    z-index: 2;
}
.card-thumb { display: block; line-height: 0; text-decoration: none; }
.card-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: .9rem .35rem 1.1rem; min-width: 0; }
.card-title { margin: 0 0 .45rem; font-size: 1.18rem; line-height: 1.22; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green); text-decoration: underline wavy var(--green) 1px; text-underline-offset: 4px; }
.card-excerpt { flex: 1; font-family: var(--f-mono); font-size: .84rem; line-height: 1.5; color: #4A4238; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--green); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.stamp-date { font-family: var(--f-mono); font-size: .86rem; color: var(--ink-soft); }
.card-grid--front > .card:nth-child(n+4) { display: none; }
.layout-with-sidebar .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card.is-pinned .card-tape { background: rgba(196, 80, 30, .55); }

/* Разбор по частям + Идеи */
.duo { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.duo .block { margin-bottom: 0; }
.parts-sheet { position: relative; padding: 1.6rem 1.4rem 1.2rem; }
.parts-sheet::before, .parts-sheet::after {
    content: "";
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    height: 1px;
    background: var(--ink-soft);
    opacity: .7;
}
.parts-sheet::before { top: .7rem; }
.parts-sheet::after { bottom: .55rem; }
.scheme { position: relative; margin: 0; container-type: inline-size; }
.scheme img { display: block; width: 100%; height: auto; }
.scheme-label {
    position: absolute;
    font-family: var(--f-hand);
    font-size: clamp(1rem, 4.4cqw, 1.55rem);
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}
.parts-note { margin: .9rem 0 .4rem; font-family: var(--f-hand); font-size: 1.25rem; line-height: 1.25; color: var(--green); }

.ideas-table { padding: 1.4rem 1.2rem 1.6rem; }
.ideas-pile { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .6rem; }
.snap {
    position: relative;
    margin: 0;
    padding: 9px 9px 0;
    background: #FBF7EC;
    box-shadow: 0 0 0 1px rgba(42, 38, 32, .25), 3px 6px 10px rgba(42, 38, 32, .25);
    transition: transform .2s ease;
    min-width: 0;
}
.snap img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 0 0 1.5px var(--ink); }
.snap-cap { margin: 0; padding: .55rem .2rem .6rem; text-align: center; line-height: 1.2; }
.snap-name { display: block; font-family: var(--f-head); font-size: 1rem; }
.snap-time { display: inline-block; margin-top: .15rem; font-family: var(--f-mono); font-size: .78rem; color: var(--terra); }
.snap--1 { transform: rotate(-3deg); z-index: 1; }
.snap--2 { transform: rotate(4deg) translate(-6px, -4px); z-index: 2; }
.snap--3 { transform: rotate(-4deg) translate(14px, 2px); z-index: 3; }
.snap--4 { transform: rotate(3deg) translate(4px, 6px); z-index: 2; }
.snap:hover { transform: rotate(0) scale(1.03); z-index: 5; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2.2rem 0 4rem; }
.crumbs { margin: 0 0 1.6rem; font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft); }
.crumbs a { color: var(--green); }
.crumbs-sep { margin: 0 .35em; color: var(--brass); }
.layout-single { display: block; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; min-width: 0; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 6%; align-items: start; }
.layout-with-sidebar > .content-area { min-width: 0; }
.sheet-head { margin-bottom: 1.4rem; }
.sheet-head .margin-note { display: block; margin-top: -.6rem; }
.archive-desc { color: var(--ink-soft); }

.sheet {
    position: relative;
    background: var(--card);
    padding: 2.4rem 2.6rem 2.2rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 4px 8px 16px rgba(42, 38, 32, .2);
    margin-bottom: 2rem;
}
.sheet::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 2.6rem;
    width: 110px;
    height: 26px;
    background: var(--tape);
    transform: rotate(-3deg);
}
.entry-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 3px double var(--green); }
.entry-title { margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .02em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; font-family: var(--f-mono); font-size: .86rem; color: var(--ink-soft); }
.entry-cats a { margin-right: .6rem; }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.entry-content { min-width: 0; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content h2, .entry-content h3 { color: var(--green); }
.entry-content h2 { text-transform: uppercase; font-size: 1.55rem; }
.entry-content ul li::marker { color: var(--terra); }
.entry-content ol li::marker { color: var(--green); font-family: var(--f-head); }
.entry-content img { display: block; }
.entry-content table { display: block; overflow-x: auto; }
.entry-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--f-mono); font-size: .85rem; }
.entry-tags a { padding: .2em .7em; background: var(--row); text-decoration: none; color: var(--ink); }
.entry-tags a:hover { background: var(--brass); }
.page-links { margin-top: 1.4rem; font-family: var(--f-mono); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.post-nav a { display: block; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--grid); text-decoration: none; color: var(--ink); font-family: var(--f-head); font-size: 1.05rem; line-height: 1.25; }
.post-nav a span { display: block; font-family: var(--f-mono); font-size: .78rem; color: var(--terra); margin-bottom: .3rem; }
.post-nav-next { grid-column: 2; text-align: right; }
.post-nav a:hover { border-color: var(--green); transform: translateY(-2px); }

.empty-note { padding: 1.6rem 1.8rem; background: var(--card); border: 1px dashed var(--grid); font-family: var(--f-mono); }
.lost-sheet { text-align: center; }
.lost-code { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--brass); }
.lost-sheet .search-form { margin: 1.4rem auto; max-width: 480px; }

/* Поиск */
.search-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: .6em .8em;
    font-family: var(--f-mono);
    font-size: .95rem;
    color: var(--ink);
    background: #FBF7EC;
    border: 1.5px solid var(--ink);
    border-radius: 0;
}
.search-submit { padding-left: 1.9em; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2.6rem 0 0; align-items: center; }
.pager .page-numbers {
    display: inline-block;
    min-width: 2.5rem;
    padding: .45rem .75rem;
    text-align: center;
    font-family: var(--f-head);
    font-size: 1rem;
    color: var(--ink);
    background: var(--card);
    border: 1.5px solid var(--ink);
    text-decoration: none;
    box-shadow: 2px 2px 0 rgba(42, 38, 32, .18);
    transition: background .15s, transform .15s;
}
.pager a.page-numbers:hover { background: var(--brass); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--terra); color: #fff; border-color: var(--terra); }
.pager .page-numbers.dots { background: none; border: 0; box-shadow: none; min-width: 0; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }
.sidebar .widget {
    position: relative;
    background: var(--aside);
    color: var(--ink);
    padding: 1.6rem 1.4rem 1.3rem;
    margin-bottom: 2rem;
    box-shadow: 3px 5px 10px rgba(42, 38, 32, .2);
    border: 1px solid rgba(201, 188, 160, .9);
}
.sidebar .widget::before { content: ""; position: absolute; top: -10px; left: 50%; width: 80px; height: 22px; margin-left: -40px; background: var(--tape); transform: rotate(2deg); }
.sidebar .widget-title { margin: 0 0 .9rem; padding-bottom: .35rem; font-size: 1.15rem; text-transform: uppercase; color: var(--ink); border-bottom: 3px double var(--green); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .5rem 0; margin: 0; border-bottom: 1px dashed var(--grid); line-height: 1.35; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--terra); text-decoration: underline wavy var(--terra) 1px; }
.sidebar .post-date { display: block; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-soft); }
.sidebar .search-form { flex-direction: column; }

/* ---------- Подвал ---------- */
.foot { background: var(--coal); color: #E6DEC8; padding: 3.2rem 0 1.4rem; position: relative; }
.foot::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -12px;
    height: 13px;
    background: var(--coal);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 13' preserveAspectRatio='none'%3E%3Cpath d='M0 13V7l5-3 6 2 4-4 7 3 5-2 6 4 5-3 7 3 4-5 6 4 5-2 6 3 5-4 7 3 4-2 6 4 5-3 6 2 5-4 7 3 4-2 l5 -1V13z'/%3E%3C/svg%3E") center / 100% 100%;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 13' preserveAspectRatio='none'%3E%3Cpath d='M0 13V7l5-3 6 2 4-4 7 3 5-2 6 4 5-3 7 3 4-5 6 4 5-2 6 3 5-4 7 3 4-2 6 4 5-3 6 2 5-4 7 3 4-2 l5 -1V13z'/%3E%3C/svg%3E") center / 100% 100%;
}
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.foot-col { min-width: 0; }
.foot .widget { margin-bottom: 1.4rem; color: #E6DEC8; font-family: var(--f-mono); font-size: .9rem; line-height: 1.6; }
.foot .widget-title { margin: 0 0 .8rem; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cream); }
.foot .widget-title::after { content: ""; display: block; width: 48px; height: 5px; margin-top: .4rem; border-top: 2px solid var(--brass); border-bottom: 1px solid var(--brass); }
.foot .widget p { color: #E6DEC8; }
.foot .widget ul { list-style: none; margin: 0; padding: 0; }
.foot .widget li { margin: 0 0 .45rem; }
.foot .widget a { color: var(--cream); text-decoration-color: rgba(217, 164, 65, .8); }
.foot .widget a:hover { color: var(--brass); }
.foot-copy { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(241, 234, 214, .18); text-align: center; }
.foot-copy p { margin: 0; font-family: var(--f-mono); font-size: .85rem; color: #C9BFA8; }

/* ---------- Комментарии ---------- */
.comments-title, .comment-reply-title { margin-top: 0; text-transform: uppercase; font-size: 1.4rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.6rem; border-left: 2px dashed var(--grid); }
.note-comment-body { padding: 1rem 0; border-bottom: 1px dashed var(--grid); }
.note-comment-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft); }
.note-comment-head img { border-radius: 50%; display: block; }
.note-comment-author { font-family: var(--f-head); font-size: 1.02rem; color: var(--ink); }
.note-comment-wait { font-family: var(--f-mono); font-size: .85rem; color: var(--terra); }
.comment-reply-link { font-family: var(--f-mono); font-size: .85rem; }
.comment-form label { display: block; font-family: var(--f-head); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .6em .8em;
    font-family: var(--f-mono);
    font-size: .95rem;
    background: #FBF7EC;
    border: 1.5px solid var(--ink);
    border-radius: 0;
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-family: var(--f-body); font-size: .9rem; }
.comment-form .submit {
    padding: .65em 1.4em;
    background: var(--terra);
    color: #fff;
    border: 0;
    border-radius: 0;
    font-family: var(--f-head);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(42, 38, 32, .25);
}
.comment-form .submit:hover { background: var(--terra-dark); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    gap: 1.2rem 1.8rem;
    align-items: center;
    padding: 1.1rem 1.4rem 1.1rem 1.6rem;
    background: var(--coal);
    color: #EDE5D0;
    border-top: 3px solid var(--brass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.cookie-text { margin: 0; font-family: var(--f-mono); font-size: .86rem; line-height: 1.5; color: #EDE5D0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Мобильное меню ---------- */
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: var(--cream); position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .atlas-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem .6rem; }
    .compare-sheet { padding-right: 1.4rem; }
    .samples { position: static; width: auto; flex-direction: row; justify-content: flex-end; gap: 1.2rem; margin-top: 1rem; }
    .sample { width: 5.5rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .duo { grid-template-columns: minmax(0, 1fr); gap: 3.3rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-single > .content-area { width: 100%; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .margin-note--side, .pen-arrow { display: none; }
    .latest .block-head::before { width: 70%; opacity: .55; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .strip-row { justify-content: space-between; min-height: 52px; flex-wrap: wrap; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: .7rem;
        padding: .55rem 0;
        background: none;
        border: 0;
        color: var(--cream);
        font-family: var(--f-head);
        font-size: 1rem;
        cursor: pointer;
    }
    .top-nav { width: 100%; display: none; }
    .top-nav.is-open { display: block; }
    .top-nav-list { flex-direction: column; gap: 0; padding-bottom: .6rem; }
    .top-nav-list a { padding: .55rem 0; display: block; border-bottom: 1px solid rgba(241, 234, 214, .12); }
    .brand-row { gap: 1rem; padding: 1.2rem 0 1.6rem; align-items: flex-start; }
    .brand-mark { width: 60px; height: 60px; }
    .brand-desc { font-size: .82rem; }
    .front { padding-top: 2.2rem; }
    .atlas-board { padding: 1.6rem 1rem 1rem; }
    .atlas-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .swatch { margin: 0; }
    .compare-sheet { padding: 1rem .8rem; }
    .latest-board { padding: 2rem 1rem 1.2rem; }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .parts-sheet { padding: 1.4rem .8rem 1rem; }
    .ideas-table { padding: 1.2rem .8rem 1.4rem; }
    .snap--3 { transform: rotate(-3deg) translate(6px, -6px); }
    .sheet { padding: 2rem 1.2rem 1.6rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: 1; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
}
