/*
Theme Name: dds_makeatourindia.com
Author: Воронков Григорий Ильич
Description: Тема «полевой дневник путешественника» для информационного сайта о планировании поездок: маршруты по дням, переезды и туристические программы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mktour
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-extra-condensed-cyrillic-500-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-extra-condensed-latin-500-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: "Fira Sans Extra Condensed"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-extra-condensed-cyrillic-600-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-extra-condensed-latin-600-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: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-extra-condensed-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: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-extra-condensed-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; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-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 Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-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 Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-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 Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-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: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-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 Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-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: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-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; }

/* ---------- Переменные ---------- */
:root {
    --paper: #C9C2A6;
    --paper-grid: #B4AC8E;
    --paper-light: #D6D0B8;
    --sheet: #E2DCC6;
    --forest: #2F3B34;
    --forest-line: #45544B;
    --night: #1E2621;
    --ink: #22271F;
    --faded: #6B6A55;
    --terra: #C4552B;
    --terra-dark: #A8441F;
    --grass: #3F6B4F;
    --line: #8A8265;
    --photo: #F4F1E8;
    --tape: rgba(226, 211, 164, 0.82);
    --chalk: #F0EDE2;
    --chalk-dim: #BFC6BC;
    --ochre: #B88A2E;
    --f-head: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --f-body: "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(98, 86, 52, 0.16) 100%),
        linear-gradient(rgba(180, 172, 142, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 172, 142, 0.55) 1px, transparent 1px);
    background-size: 100% 100%, 22px 22px, 22px 22px;
    background-attachment: scroll;
}
img { max-width: 100%; height: auto; }
a { color: var(--grass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { 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;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-style: italic;
    font-weight: 600;
    line-height: 1.1;
    margin: 1.4em 0 0.5em;
    letter-spacing: 0.005em;
}
h1, h2, h3, h4, p, li, td, th, dd, dt, figcaption, blockquote { overflow-wrap: break-word; hyphens: 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: -60px;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--chalk);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Шапка ---------- */
.masthead { position: relative; padding-top: 1.6rem; }
.masthead::before {
    content: "";
    position: absolute;
    top: -40px; right: 6%;
    width: 170px; height: 170px;
    background: url("images/coffee-ring.svg") no-repeat center / contain;
    pointer-events: none;
    opacity: 0.9;
}
.masthead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
    flex: 1 1 420px;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: 0 0 auto; display: block; color: var(--ink); }
.brand-compass { display: block; width: 60px; height: 60px; transition: transform 0.4s ease; }
.brand:hover .brand-compass { transform: rotate(-18deg); }
.brand-logo { display: block; max-height: 72px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.45rem, 2.7vw, 2.3rem);
    line-height: 1.02;
    max-width: 30ch;
}
.brand-tagline {
    margin-top: 0.35rem;
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--faded);
    max-width: 58ch;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.9rem;
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font: italic 600 1.05rem/1 var(--f-head);
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle:hover { background: var(--ink); color: var(--paper); }

.site-nav { display: none; flex-basis: 100%; }
.site-nav.is-open { display: block; }
.site-nav-list { list-style: none; margin: 0; padding: 0.4rem 0 0.8rem; }
.site-nav-list li { margin: 0; }
.site-nav-list a {
    display: inline-block;
    padding: 0.3rem 0;
    font: italic 600 1.2rem/1.2 var(--f-head);
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1.5px solid var(--ink);
}
.site-nav-list a:hover,
.site-nav-list .current-menu-item > a { color: var(--terra); border-bottom-color: var(--terra); }

/* Полоска билета */
.ticket-strip {
    position: relative;
    height: 46px;
    margin-top: 1.4rem;
    background-color: #D8C79C;
    background-image:
        radial-gradient(circle at 11px 0, var(--paper) 4.5px, transparent 5px),
        radial-gradient(circle at 11px 100%, var(--paper) 4.5px, transparent 5px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(120, 100, 50, 0.1));
    background-size: 22px 100%, 22px 100%, 100% 100%;
    background-repeat: repeat-x;
    box-shadow: 0 2px 3px rgba(60, 50, 30, 0.18);
    transform: rotate(-0.4deg);
}
.ticket-strip::before {
    content: "";
    position: absolute;
    top: 6px; bottom: 6px;
    right: 18%;
    border-left: 2px dashed rgba(34, 39, 31, 0.45);
}
.ticket-code {
    position: absolute;
    right: 4%;
    top: 10px;
    width: 9%;
    min-width: 54px;
    height: 26px;
    background: repeating-linear-gradient(90deg, rgba(34, 39, 31, 0.7) 0 2px, transparent 2px 4px, rgba(34, 39, 31, 0.7) 4px 5px, transparent 5px 8px);
}

/* ---------- Секции главной ---------- */
.shell--front { width: min(92%, 1180px); }
.sec { position: relative; padding: 3rem 0; }
.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.sec-title {
    margin: 0;
    min-width: 0;
    font-size: clamp(1.75rem, 4vw, 2.9rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    padding-bottom: 0.35rem;
    background: url("images/underline-hand.svg") no-repeat left bottom / min(100%, 420px) 10px;
}
.num-stamp {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    border: 3px solid var(--terra);
    box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4.5px var(--terra);
    color: var(--terra);
    font: italic 600 1.55rem/1 var(--f-head);
    transform: rotate(-9deg);
    opacity: 0.92;
}
.sec-lead {
    max-width: 70ch;
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 2rem;
}
.sec--forest {
    background-color: var(--forest);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--chalk);
    box-shadow: inset 0 10px 18px -12px rgba(0, 0, 0, 0.5), inset 0 -10px 18px -12px rgba(0, 0, 0, 0.5);
}
.sec--forest .sec-title { color: var(--chalk); background-image: none; border-bottom: 2px solid rgba(240, 237, 226, 0.5); }
.sec--forest .num-stamp { color: #E07A50; border-color: #E07A50; box-shadow: inset 0 0 0 4.5px #E07A50; }
.sec--forest .sec-lead { color: var(--chalk-dim); }

/* Обложка */
.cover { position: relative; padding: 2.4rem 0 1rem; }
.cover::after {
    content: "";
    position: absolute;
    left: -30px; bottom: -40px;
    width: 220px; height: 220px;
    background: url("images/coffee-ring.svg") no-repeat center / contain;
    transform: rotate(140deg);
    pointer-events: none;
}
.cover-row { display: flex; flex-direction: column; gap: 1.5rem; }
.cover-collage {
    position: relative;
    width: 100%;
    aspect-ratio: 600 / 460;
    min-width: 0;
}
.cover-route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.polaroid {
    position: absolute;
    margin: 0;
    padding: 3.2% 3.2% 11%;
    background: var(--photo);
    box-shadow: 0 6px 14px rgba(40, 35, 20, 0.28), 0 1px 2px rgba(40, 35, 20, 0.2);
    z-index: 2;
}
.polaroid img { display: block; width: 100%; object-fit: cover; }
.polaroid::before {
    content: "";
    position: absolute;
    top: -14px; left: 32%;
    width: 36%; height: 26px;
    background: var(--tape);
    box-shadow: 0 1px 2px rgba(60, 50, 30, 0.15);
    transform: rotate(-4deg);
}
.polaroid--trail { left: 2%; top: 19%; width: 39%; transform: rotate(-7deg); z-index: 3; }
.polaroid--trail img { aspect-ratio: 8 / 7; }
.polaroid--map { left: 34%; top: 2%; width: 37%; transform: rotate(1.5deg); }
.polaroid--map img { aspect-ratio: 16 / 10; }
.polaroid--map::before { left: 8%; transform: rotate(-12deg); }
.polaroid--street { left: 54%; top: 30%; width: 38%; transform: rotate(7deg); z-index: 3; }
.polaroid--street img { aspect-ratio: 1 / 1; }
.polaroid--street::before { display: none; }

.cover-text { position: relative; min-width: 0; padding-bottom: 1rem; }
.cover-title {
    margin: 0 0 0.6rem;
    font-size: clamp(2.8rem, 9vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    max-width: 9ch;
    position: relative;
    z-index: 2;
}
.cover-sub {
    font: italic 500 clamp(1.25rem, 2.6vw, 1.9rem)/1.15 var(--f-head);
    max-width: 18ch;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.cover-note {
    font-size: 0.95rem;
    max-width: 36ch;
    color: var(--faded);
    position: relative;
    z-index: 2;
}
.cover-leaf {
    display: block;
    position: absolute;
    right: -2%;
    bottom: -2rem;
    width: 150px;
    z-index: 1;
    transform: rotate(-6deg);
    pointer-events: none;
}

/* Блок 1 — дни */
.days-board { position: relative; }
.days-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
}
.day {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "num icon" "act act" "note note";
    align-items: center;
    gap: 0.2rem 0.8rem;
    padding: 0.85rem 1rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 3px 6px 4px 7px;
    background: rgba(240, 233, 210, 0.38);
    box-shadow: 2px 2px 0 rgba(34, 39, 31, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.day:nth-child(odd) { transform: rotate(-0.6deg); }
.day:nth-child(even) { transform: rotate(0.5deg); }
.day:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(34, 39, 31, 0.25); }
.day::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2.05rem;
    width: 34px; height: 12px;
    background: url("images/arrow-ink.svg") no-repeat center / contain;
    transform: translateX(-50%) rotate(90deg);
}
.day:last-child::after { display: none; }
.day-num { grid-area: num; font: italic 600 1.45rem/1 var(--f-head); }
.day-icon {
    grid-area: icon;
    justify-self: end;
    width: 42px; height: 42px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.day-act {
    grid-area: act;
    margin-top: 0.35rem;
    font: italic 600 1.2rem/1.1 var(--f-head);
    color: var(--grass);
    text-decoration: underline;
    text-decoration-color: rgba(63, 107, 79, 0.45);
    text-underline-offset: 4px;
}
.day-note { grid-area: note; font-size: 0.88rem; line-height: 1.4; color: #3A3D30; }

.ink-stamp {
    display: block;
    width: max-content;
    max-width: 230px;
    margin: 2.4rem 0 0 auto;
    padding: 0.7rem 1.1rem;
    border: 3px solid var(--terra);
    outline: 1.5px solid var(--terra);
    outline-offset: 3px;
    border-radius: 6px;
    color: var(--terra);
    font: italic 600 1.35rem/1.08 var(--f-head);
    text-align: center;
    text-transform: lowercase;
    transform: rotate(-7deg);
    opacity: 0.9;
    background: radial-gradient(circle at 30% 40%, rgba(196, 85, 43, 0.08), transparent 60%);
}
.ink-stamp::first-letter { text-transform: uppercase; }

/* Блок 2 — снаряжение */
.kit-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.kit-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.2rem;
}
.kit-item { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.kit-item img {
    display: block;
    width: auto;
    height: 92px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 0.7rem;
    transition: transform 0.2s ease;
}
.kit-item:hover img { transform: rotate(-4deg) scale(1.05); }
.kit-name { font: italic 500 1.35rem/1.1 var(--f-head); color: var(--chalk); }
.kit-note { margin-top: 0.3rem; font-size: 0.84rem; line-height: 1.35; color: var(--chalk-dim); max-width: 22ch; }
.kit-scale {
    position: relative;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 0 0.6rem;
    width: 100%;
    max-width: 320px;
}
.kit-scale-img { display: block; width: 80px; height: auto; }
.kit-scale-marks { position: relative; list-style: none; margin: 0; padding: 0; min-width: 0; }
.mark {
    position: absolute;
    left: 0;
    right: 0;
    padding-left: 1.4rem;
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--chalk-dim);
    transform: translateY(-50%);
}
.mark::before {
    content: "";
    position: absolute;
    left: 0; top: 0.6rem;
    width: 1rem;
    border-top: 1.5px dashed var(--chalk-dim);
}
.mark b { display: block; font: italic 500 1.2rem/1.1 var(--f-head); color: var(--chalk); }
.mark--1 { top: 9%; }
.mark--1 b { color: #E9A27F; }
.mark--2 { top: 31%; }
.mark--3 { top: 53%; }
.mark--4 { top: 75%; }
.mark--4 b { color: #A9C7D6; }

/* Блок записей */
.latest { overflow: hidden; }
.latest::after {
    content: "";
    position: absolute;
    left: -10px; bottom: -20px;
    width: 130px; height: 200px;
    background: url("images/leaf-branch-left.webp") no-repeat left bottom / contain;
    pointer-events: none;
    opacity: 0.95;
}
.latest-more { position: relative; z-index: 1; margin: 2.2rem 0 0; text-align: center; }
.empty-note {
    padding: 1.4rem 1.6rem;
    border: 2px dashed var(--line);
    background: rgba(226, 220, 198, 0.5);
    font-style: italic;
}

/* Карточки */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem 2rem;
    position: relative;
    z-index: 1;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: center;
}
.card-frame {
    position: relative;
    padding: 0.7rem 0.7rem 0.4rem;
    background: var(--photo);
    box-shadow: 0 5px 12px rgba(40, 35, 20, 0.25);
    transform: rotate(-2deg);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:nth-child(3n+2) .card-frame { transform: rotate(1.6deg); }
.card:nth-child(3n) .card-frame { transform: rotate(-1deg); }
.card-frame::before {
    content: "";
    position: absolute;
    top: -12px; left: 34%;
    width: 32%; height: 24px;
    background: var(--tape);
    transform: rotate(-3deg);
    z-index: 1;
}
.card:hover .card-frame { transform: rotate(0deg) translateY(-4px); box-shadow: 0 10px 20px rgba(40, 35, 20, 0.3); }
.card-thumb { display: block; overflow: hidden; }
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-caption {
    display: block;
    padding: 0.45rem 0.3rem 0.25rem;
    font: 500 1.4rem/1.1 var(--f-hand);
    color: var(--ink);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.1rem 0.4rem 0;
    min-width: 0;
}
.card-title { margin: 0 0 0.45rem; font-size: 1.35rem; font-style: normal; line-height: 1.15; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--terra); text-decoration: underline; text-decoration-thickness: 1.5px; }
.card-excerpt { font-size: 0.92rem; line-height: 1.45; color: #34372C; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--grass); }
.card-date { margin: 0.2rem 0 0.9rem; font-size: 0.85rem; color: var(--faded); }
.card-body .btn-stamp { margin-top: auto; }

/* Кнопка-штамп */
.btn-stamp {
    display: inline-block;
    padding: 0.45rem 1.1rem 0.5rem;
    border: 2px solid var(--terra);
    outline: 1px solid var(--terra);
    outline-offset: 3px;
    border-radius: 3px;
    color: var(--terra);
    font: italic 600 1.1rem/1.1 var(--f-head);
    text-decoration: none;
    transform: rotate(-1.5deg);
    transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.btn-stamp:hover, .btn-stamp:focus-visible {
    background: var(--terra);
    color: var(--photo);
    transform: rotate(0deg) translate(2px, 2px);
}
.btn-stamp--ink { color: var(--ink); border-color: var(--ink); outline-color: var(--ink); }
.btn-stamp--ink:hover, .btn-stamp--ink:focus-visible { background: var(--ink); color: var(--paper); }

/* Блок 3 — таблица */
.compare-scroll { overflow-x: auto; padding: 0.6rem 0.4rem 0.8rem; -webkit-overflow-scrolling: touch; }
.compare-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1.5px solid var(--line);
    background: rgba(226, 220, 198, 0.35);
    font-size: 0.93rem;
}
.compare-table th, .compare-table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid rgba(138, 130, 101, 0.45);
    text-align: center;
    vertical-align: middle;
}
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; }
.compare-table thead th {
    border-bottom: 2px solid var(--ink);
    padding: 0.8rem 0.5rem;
    font-weight: 400;
}
.compare-table thead .col-name { text-align: left; font: italic 600 1.05rem/1.1 var(--f-head); color: var(--faded); }
.plate {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: var(--terra);
    color: #F7EFE2;
    border-radius: 3px;
    font: italic 600 1.05rem/1.1 var(--f-head);
    box-shadow: 1px 1px 0 rgba(34, 39, 31, 0.3);
}
.compare-table tbody th {
    text-align: left;
    font: italic 600 1.08rem/1.15 var(--f-head);
}
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: rgba(63, 107, 79, 0.08); }
.dots { color: var(--grass); letter-spacing: 0.2em; font-size: 1.05rem; }
.compare-table tr.is-circled th,
.compare-table tr.is-circled td {
    border-top: 2px solid #3B3A33;
    border-bottom: 2px solid #3B3A33;
    background: rgba(245, 240, 222, 0.5);
}
.compare-table tr.is-circled th { border-left: 2px solid #3B3A33; border-radius: 40px 0 0 40px; }
.compare-table tr.is-circled td:last-child { border-right: 2px solid #3B3A33; border-radius: 0 40px 40px 0; }
.compare-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; margin-top: 1rem; }
.compare-legend { margin: 0; font-size: 0.86rem; color: var(--faded); }
.hand-note {
    margin: 0;
    font: 500 1.45rem/1.15 var(--f-hand);
    color: #3B3A33;
    transform: rotate(-1.5deg);
}
.hand-note::before { content: "↑ "; color: var(--terra); }

/* Блок 4 — календарь */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.cal-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 2px solid var(--ink);
    border-left: 2px solid var(--ink);
    background: rgba(226, 220, 198, 0.4);
}
.cal-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: 128px;
    min-width: 0;
    padding: 0.6rem 0.75rem 0.8rem;
    border-right: 1.5px solid var(--line);
    border-bottom: 1.5px solid var(--line);
}
.cal-cell:nth-child(2n) { border-right: 2px solid var(--ink); }
.cal-cell:nth-last-child(-n+2) { border-bottom: 2px solid var(--ink); }
.cal-cell::after {
    content: "";
    position: absolute;
    right: -13px;
    top: 50%;
    width: 24px; height: 10px;
    background: url("images/arrow-dash.svg") no-repeat center / contain;
    z-index: 1;
}
.cal-cell:nth-child(2n)::after { display: none; }
.cal-when { font: italic 600 1rem/1.1 var(--f-head); color: var(--faded); text-transform: uppercase; letter-spacing: 0.03em; }
.cal-text { font: 500 1.3rem/1.1 var(--f-hand); color: var(--ink); }
.cal-cell--go { background: rgba(196, 85, 43, 0.1); }
.cal-cell--go .cal-text { color: var(--terra-dark); }
.flag {
    position: relative;
    display: inline-block;
    padding: 0.1rem 0.75rem 0.15rem 0.5rem;
    font: italic 600 0.82rem/1.3 var(--f-head);
    color: #F7EFE2;
    clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}
.flag--book { background: var(--terra); }
.flag--docs { background: var(--grass); }
.flag--gear { background: var(--ochre); color: #22271F; }
.cal-note {
    align-self: start;
    position: relative;
    padding: 1.1rem 1.2rem 1rem;
    background: #E6DFC6;
    border: 1px solid var(--line);
    box-shadow: 3px 4px 0 rgba(34, 39, 31, 0.12);
    transform: rotate(1.6deg);
}
.cal-note::before {
    content: "";
    position: absolute;
    top: -11px; left: 30%;
    width: 40%; height: 22px;
    background: var(--tape);
    transform: rotate(3deg);
}
.cal-note-title { margin: 0 0 0.4rem; font: 500 1.7rem/1 var(--f-hand); color: var(--terra); }
.cal-note-text { font: 500 1.3rem/1.2 var(--f-hand); }
.cal-legend { list-style: none; margin: 0.6rem 0 0; padding: 0; font-size: 0.86rem; }
.cal-legend li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 3.5rem; }
.breadcrumbs {
    margin: 0 0 1.6rem;
    font-size: 0.88rem;
    color: var(--faded);
}
.breadcrumbs a { color: var(--ink); }
.breadcrumbs .sep { margin: 0 0.3rem; color: var(--terra); }
.breadcrumbs span:last-child { color: var(--faded); }

.layout-single, .layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
.sidebar { min-width: 0; margin-top: 3rem; }

.list-head { margin-bottom: 2.4rem; }
.list-title {
    margin: 0 0 0.5rem;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    padding-bottom: 0.4rem;
    background: url("images/underline-hand.svg") no-repeat left bottom / min(100%, 360px) 10px;
}
.list-lead { color: var(--faded); max-width: 62ch; }

.sheet {
    position: relative;
    padding: 1.8rem 1.3rem 1.6rem;
    background: var(--sheet);
    border: 1px solid #B9B190;
    box-shadow: 0 3px 0 #BEB697, 0 6px 0 #ABA382, 0 10px 18px rgba(40, 35, 20, 0.15);
}
.sheet::before {
    content: "";
    position: absolute;
    top: -13px; left: 50%;
    width: 120px; height: 26px;
    margin-left: -60px;
    background: var(--tape);
    transform: rotate(-2deg);
}
.sheet-head { margin-bottom: 1.4rem; }
.sheet-title { margin: 0 0 0.5rem; font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.05; }
.sheet-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.9rem; color: var(--faded); }
.sheet-cat a {
    display: inline-block;
    padding: 0 0.55rem;
    border: 1.5px solid var(--grass);
    color: var(--grass);
    text-decoration: none;
    font: italic 600 0.95rem/1.5 var(--f-head);
}
.sheet-cat a:hover { background: var(--grass); color: var(--sheet); }
.sheet-photo { margin: 0 0 1.6rem; padding: 0.6rem 0.6rem 1.6rem; background: var(--photo); box-shadow: 0 4px 10px rgba(40, 35, 20, 0.2); transform: rotate(-0.6deg); }
.sheet-photo img { display: block; width: 100%; height: auto; }
.sheet-tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sheet-tags a { font: 500 1.25rem/1 var(--f-hand); color: var(--grass); text-decoration: none; }
.sheet-tags a:hover { color: var(--terra); }

/* Типографика записи */
.entry { font-size: 1.02rem; line-height: 1.7; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.85rem; text-transform: uppercase; }
.entry h3 { font-size: 1.45rem; }
.entry h4 { font-size: 1.2rem; }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry li { margin-bottom: 0.4em; }
.entry ul li::marker { color: var(--terra); }
.entry ol li::marker { color: var(--terra); font-family: var(--f-head); font-style: italic; font-weight: 600; }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem 1.1rem 1.6rem;
    border-left: 4px solid var(--terra);
    background: rgba(201, 194, 166, 0.5);
    font: 500 1.45rem/1.3 var(--f-hand);
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite { display: block; margin-top: 0.4rem; font: italic 0.9rem/1.3 var(--f-body); color: var(--faded); }
.entry table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.94rem; border: 1.5px solid var(--line); }
.entry th, .entry td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
.entry th { background: rgba(196, 85, 43, 0.14); font-family: var(--f-head); font-style: italic; font-weight: 600; font-size: 1.02rem; }
.entry tbody tr:nth-child(even) { background: rgba(201, 194, 166, 0.35); }
.entry .wp-block-table { overflow-x: auto; margin: 1.6em 0; }
.entry .wp-block-table table { margin: 0; }
.entry figure { margin: 1.6em 0; }
.entry img { display: block; height: auto; }
.entry figcaption { margin-top: 0.4rem; font: 500 1.2rem/1.2 var(--f-hand); color: var(--faded); text-align: center; }
.entry hr { border: 0; height: 10px; margin: 2em 0; background: url("images/underline-hand.svg") no-repeat center / 60% 10px; }
.entry code { padding: 0.1em 0.35em; background: rgba(34, 39, 31, 0.08); font-size: 0.9em; }
.entry pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--night); color: var(--chalk); font-size: 0.88rem; }
.entry .alignleft { float: left; margin: 0.3rem 1.4rem 1rem 0; }
.entry .alignright { float: right; margin: 0.3rem 0 1rem 1.4rem; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.page-links { margin-top: 1.4rem; font-family: var(--f-head); font-style: italic; }

/* Пагинация */
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0 0;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--ink);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    font: italic 600 1.1rem/1.2 var(--f-head);
    background: rgba(226, 220, 198, 0.5);
    transition: transform 0.12s ease, background 0.12s ease;
}
.pager a.page-numbers:hover { background: var(--ink); color: var(--paper); transform: translate(2px, 2px); }
.pager .page-numbers.current { background: var(--terra); border-color: var(--terra); color: #F7EFE2; transform: rotate(-3deg); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; padding: 0.4rem 0.2rem; }

/* Сайдбар */
.sidebar .widget {
    margin-bottom: 1.8rem;
    padding: 1.3rem 1.3rem 1.1rem;
    background: var(--paper-light);
    border: 1.5px solid var(--line);
    color: var(--ink);
    box-shadow: 3px 3px 0 rgba(34, 39, 31, 0.1);
}
.sidebar .widget-title {
    margin: 0 0 0.8rem;
    font-size: 1.35rem;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--terra);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 0.5rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; 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; }
.sidebar .widget .post-date { display: block; font-size: 0.82rem; color: var(--faded); }
.sidebar .widget p { color: var(--ink); font-size: 0.95rem; }

/* Поиск */
.search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--ink);
    background: var(--photo);
    color: var(--ink);
    font: inherit;
    border-radius: 0;
}
.search-submit {
    padding: 0.6rem 1.3rem;
    border: 2px solid var(--terra);
    background: var(--terra);
    color: #F7EFE2;
    font: italic 600 1.1rem/1 var(--f-head);
    cursor: pointer;
}
.search-submit:hover { background: var(--ink); border-color: var(--ink); }

/* 404 */
.lost { text-align: left; }
.lost-stamp {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.2rem 1.2rem;
    border: 4px solid var(--terra);
    outline: 2px solid var(--terra);
    outline-offset: 4px;
    color: var(--terra);
    font: italic 600 4.5rem/1 var(--f-head);
    transform: rotate(-6deg);
}
.lost-home { margin-top: 1.4rem; }

/* Комментарии */
.comments { margin-top: 3rem; }
.comments-title, .comment-reply-title { font-size: 1.7rem; text-transform: uppercase; margin: 0 0 1.2rem; }
.comment-reply-title small { margin-left: 0.6rem; font-size: 1rem; text-transform: none; }
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 1.6rem; border-left: 2px dashed var(--line); }
.note-comment-body {
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    background: var(--paper-light);
    border: 1px solid var(--line);
}
.note-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin-bottom: 0.5rem; }
.note-comment-head img { display: block; width: 44px; height: 44px; overflow: hidden; font-size: 0; border-radius: 50%; border: 2px solid var(--photo); background: var(--line); }
.note-comment-author { font: italic 600 1.15rem/1.1 var(--f-head); }
.note-comment-date { font-size: 0.82rem; color: var(--faded); }
.note-comment-wait { font-style: italic; color: var(--terra-dark); }
.note-comment-text p:last-child { margin-bottom: 0.4rem; }
.note-comment-reply a { font: italic 600 1rem/1 var(--f-head); color: var(--terra); }
.comment-respond { padding: 1.4rem 1.3rem; background: var(--sheet); border: 1px solid var(--line); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.3rem; font: italic 600 1.05rem/1.2 var(--f-head); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--ink);
    background: var(--photo);
    color: var(--ink);
    font: inherit;
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.5rem; }
.comment-form-cookies-consent label { display: inline; font: 0.9rem/1.4 var(--f-body); }
.comment-notes, .logged-in-as { font-size: 0.9rem; color: var(--faded); }
.req { color: var(--terra); }
.form-submit .submit {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--terra);
    background: transparent;
    color: var(--terra);
    font: italic 600 1.15rem/1 var(--f-head);
    cursor: pointer;
    outline: 1px solid var(--terra);
    outline-offset: 3px;
}
.form-submit .submit:hover { background: var(--terra); color: #F7EFE2; }
.comments .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; font-family: var(--f-head); font-style: italic; }

/* ---------- Подвал ---------- */
.site-foot {
    position: relative;
    padding: 3.2rem 0 2rem;
    background-color: var(--night);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--chalk-dim);
}
.site-foot::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--terra) 0 26px, transparent 26px 40px);
    opacity: 0.8;
}
.foot-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.foot-col { min-width: 0; }
.site-foot .widget { margin-bottom: 1rem; color: var(--chalk-dim); }
.site-foot .widget-title {
    margin: 0 0 0.9rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--chalk);
}
.site-foot .widget p, .site-foot .textwidget { font-size: 0.93rem; line-height: 1.55; color: var(--chalk-dim); }
.site-foot .widget a { color: #E9A27F; }
.site-foot .widget a:hover { color: var(--chalk); }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li { margin-bottom: 0.45rem; }
.site-foot .widget_nav_menu a {
    color: var(--chalk);
    text-decoration: underline;
    text-decoration-color: rgba(240, 237, 226, 0.35);
    font-size: 0.95rem;
}
.site-foot .widget_nav_menu a:hover { color: #E9A27F; text-decoration-color: #E9A27F; }
.foot-copy {
    margin: 2.2rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(240, 237, 226, 0.16);
    font-size: 0.85rem;
    color: #9AA096;
}

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.4rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.3rem;
    background: var(--forest);
    color: var(--chalk);
    border: 1px solid var(--forest-line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.cookie-banner::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; right: 132px;
    border-left: 2px dashed rgba(240, 237, 226, 0.25);
}
.cookie-text { flex: 1 1 320px; margin: 0; font-size: 0.88rem; line-height: 1.45; }
.cookie-accept {
    position: relative;
    padding: 0.5rem 1.4rem;
    border: 2px solid #E07A50;
    background: var(--terra);
    color: #F7EFE2;
    font: italic 600 1.15rem/1 var(--f-head);
    cursor: pointer;
}
.cookie-accept:hover { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }

/* ---------- Адаптив ---------- */
@media (min-width: 600px) {
    .kit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cal-cell:nth-child(2n) { border-right: 1.5px solid var(--line); }
    .cal-cell:nth-child(3n) { border-right: 2px solid var(--ink); }
    .cal-cell:nth-last-child(-n+2) { border-bottom: 1.5px solid var(--line); }
    .cal-cell:nth-last-child(-n+3) { border-bottom: 2px solid var(--ink); }
    .cal-cell:nth-child(2n)::after { display: block; }
    .cal-cell:nth-child(3n)::after { display: none; }
    .cal-cell:last-child::after { display: none; }
    .sheet { padding: 2.4rem 2.4rem 2rem; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
    .days-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3.4rem 3rem;
    }
    .day:nth-child(4) { grid-column: 3; grid-row: 2; }
    .day:nth-child(5) { grid-column: 2; grid-row: 2; }
    .day:nth-child(6) { grid-column: 1; grid-row: 2; }
    .day::after {
        left: auto;
        right: -2.6rem;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }
    .day:nth-child(3)::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -2.9rem;
        transform: translateX(-50%) rotate(90deg);
    }
    .day:nth-child(4)::after,
    .day:nth-child(5)::after {
        right: auto;
        left: -2.6rem;
        transform: translateY(-50%) rotate(180deg);
    }
}

@media (min-width: 960px) {
    .masthead-row { flex-wrap: nowrap; }
    .nav-toggle { display: none; }
    .site-nav, .site-nav.is-open { display: block; flex: 0 0 auto; flex-basis: auto; }
    .site-nav-list { padding: 0; }
    .site-nav-list li { margin: 0.1rem 0; }
    .site-nav-list a { font-size: 1.22rem; padding: 0.1rem 0; }

    .shell--front { width: min(85%, 1180px); }
    .sec { padding: 4rem 0; }

    .cover { padding: 2.8rem 0 2rem; }
    .cover-row { flex-direction: row; align-items: center; gap: 3%; }
    .cover-collage { flex: 0 0 54%; width: auto; }
    .cover-text { flex: 1 1 0; padding: 2rem 0 3rem; }
    .cover-leaf { width: 190px; right: -6%; bottom: -3rem; }

    .days-board {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 200px;
        column-gap: 3.4rem;
        align-items: end;
    }
    .ink-stamp { margin: 0 0 1.2rem; justify-self: center; }

    .kit-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: center; }
    .kit-item img { height: 110px; }
    .kit-scale-img { width: 90px; }

    .card-grid--front { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.6rem; }
    .layout-single .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .cal-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 2.6rem; }
    .cal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cal-cell:nth-child(3n) { border-right: 1.5px solid var(--line); }
    .cal-cell:nth-child(4n) { border-right: 2px solid var(--ink); }
    .cal-cell:nth-last-child(-n+3) { border-bottom: 1.5px solid var(--line); }
    .cal-cell:nth-last-child(-n+4) { border-bottom: 2px solid var(--ink); }
    .cal-cell:nth-child(3n)::after { display: block; }
    .cal-cell:nth-child(4n)::after { display: none; }
    .cal-note { margin-top: 2.5rem; }

    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
    .sidebar { margin-top: 0; }

    .foot-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
}

@media (max-width: 599px) {
    body { font-size: 16px; }
    .sec { padding: 2.4rem 0; }
    .num-stamp { width: 3.4rem; height: 3.4rem; font-size: 1.25rem; }
    .brand-compass { width: 48px; height: 48px; }
    .brand-tagline { font-size: 0.8rem; }
    .cover-leaf { width: 86px; right: 0; bottom: -2.2rem; }
    .cover-note { max-width: 30ch; padding-right: 3rem; }
    .cover::after { display: none; }
    .polaroid::before { height: 18px; top: -9px; }
    .sheet { padding: 1.6rem 1.1rem 1.4rem; }
    .comment-respond { padding: 1.2rem 1rem; }
    .cookie-banner { padding: 0.9rem 1rem; }
    .cookie-banner::before { display: none; }
    .lost-stamp { font-size: 3.4rem; }
}

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