/*
Theme Name: dds_alaverdigudes.com
Theme URI: https://alaverdigudes.com/
Author: Rohan Mehta
Description: A field-diary theme for an English-language guide to India's neighbourhoods, renting and property buying: asphalt-and-clay background, pasted paper cards, brass lines and saffron stamps.
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: alavg
*/

/* ---------- Fonts ---------- */
@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+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: 500; font-display: swap; src: url("fonts/oswald-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; 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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@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+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-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@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+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-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/caveat-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+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: 700; font-display: swap; src: url("fonts/caveat-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
    --c-bg: #2B2723;
    --c-head: #211E1B;
    --c-panel: #332E29;
    --c-brass: #C6A15B;
    --c-paper-text: #F2EBDD;
    --c-muted: #A89C88;
    --c-sheet: #E8E0D0;
    --c-card: #F4EEE2;
    --c-ink: #2B2723;
    --c-ink-muted: #8A7A62;
    --c-saffron: #E0A32E;
    --c-saffron-dark: #C98C1C;
    --c-green: #3F6B4F;
    --c-sticky: #F1D88C;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
    --shell: min(92%, 1240px);
    --ragged: polygon(0 6%, 3% 0, 18% 4%, 34% 0, 52% 5%, 70% 0, 86% 4%, 100% 0, 98% 30%, 100% 62%, 97% 100%, 80% 95%, 62% 100%, 44% 96%, 26% 100%, 9% 95%, 0 100%, 2% 66%, 0 34%);
}

/* ---------- JS-controlled visibility (must precede component styles) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--c-paper-text);
    background-color: var(--c-bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 15% 0%, rgba(198, 161, 91, .07), transparent 55%),
        radial-gradient(ellipse at 90% 60%, rgba(63, 107, 79, .08), transparent 50%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-paper-text); text-decoration: underline; text-decoration-color: var(--c-brass); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--c-saffron); text-decoration-color: var(--c-saffron); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--c-saffron); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 600; line-height: 1.2; margin: 1.4em 0 .6em; letter-spacing: .01em; }
h1, h2, h3, h4, p, li, td, th, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }
.hood-facts li, .buy-tags li, .card-excerpt p, .ruler-stages li, .cover-lead { hyphens: manual; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 100; padding: .6rem 1rem; background: var(--c-saffron); color: #1A1714; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.shell { width: var(--shell); margin-inline: auto; }

/* ---------- Buttons: paper tags ---------- */
.tag-btn {
    display: inline-block;
    padding: .62rem 1.35rem .58rem;
    background: var(--c-saffron);
    color: #1A1714;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    clip-path: polygon(0 4%, 6% 0, 22% 6%, 40% 0, 58% 5%, 76% 0, 92% 6%, 100% 2%, 99% 50%, 100% 97%, 84% 100%, 66% 94%, 48% 100%, 30% 95%, 12% 100%, 0 96%, 1% 50%);
    transition: background-color .15s, transform .15s;
}
.tag-btn:hover { background: var(--c-saffron-dark); color: #1A1714; transform: translate(-2px, -2px) rotate(-1deg); }
.tag-btn-sm { padding: .42rem .95rem .4rem; font-size: .82rem; }

/* ---------- Header ---------- */
.masthead { background: var(--c-head); border-bottom: 2px solid var(--c-brass); position: relative; }
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: repeating-linear-gradient(90deg, var(--c-brass) 0 10px, transparent 10px 16px); opacity: .55; }
.masthead-row { display: flex; align-items: center; gap: 1.2rem 2rem; padding: 1.1rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; flex: 1 1 420px; min-width: 0; color: var(--c-paper-text); }
.brand:hover { color: var(--c-paper-text); }
.brand-mark { flex: 0 0 auto; }
.brand-stamp { width: 56px; height: 56px; transform: rotate(-4deg); }
.brand-logo { max-height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 500; font-size: 1rem; line-height: 1.3; letter-spacing: .02em; color: var(--c-paper-text); max-width: 62ch; }
.brand-tagline { font-size: .82rem; line-height: 1.45; color: var(--c-muted); max-width: 78ch; }

.nav-toggle { display: none; align-items: center; gap: .55rem; background: transparent; border: 1px solid var(--c-brass); color: var(--c-paper-text); font-family: var(--f-head); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; padding: .5rem .85rem; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--c-saffron); 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; }
.primary-nav { flex: 0 1 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li + li::before { content: "|"; color: var(--c-brass); padding: 0 .9rem; opacity: .8; }
.nav-list a { font-family: var(--f-head); font-weight: 500; font-size: 1.08rem; letter-spacing: .02em; color: var(--c-paper-text); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current_page_item > a { color: var(--c-saffron); border-bottom-color: var(--c-saffron); }
.nav-list .sub-menu { display: none; position: absolute; top: 100%; left: 1.6rem; z-index: 20; list-style: none; margin: 0; padding: .6rem 1rem; background: var(--c-head); border: 1px solid var(--c-brass); min-width: 200px; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }

/* ---------- Section titles ---------- */
.sec-title {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(1.7rem, 3.3vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: .07em;
    line-height: 1.15;
    margin: 0 0 1.4rem;
    color: var(--c-paper-text);
    transform: skewX(-4deg);
    transform-origin: left bottom;
}
.sec-title .mark { display: inline-block; padding-bottom: .22em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C50 3 120 2 197 6' fill='none' stroke='%23E0A32E' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .32em no-repeat; }
.sec-title-dark { color: var(--c-ink); }
.sec-note { font-family: var(--f-hand); font-weight: 700; font-size: 1.6rem; color: var(--c-saffron); margin: -1rem 0 .4rem; transform: rotate(-3deg); display: inline-block; }

/* ---------- Front page ---------- */
.front-shell { padding: 2.6rem 0 4rem; }
.block { margin: 0 0 4.5rem; min-width: 0; }

/* cover */
.cover { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; align-items: center; margin-bottom: 4.5rem; position: relative; }
.cover-text { position: relative; min-width: 0; padding-left: 0; }
.cover-side { font-family: var(--f-hand); font-size: 1.15rem; color: var(--c-muted); margin: 0 0 .6rem; }
.cover-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.02; margin: 0 0 1.2rem; color: #F6EEDC; letter-spacing: .005em; transform: skewX(-5deg); transform-origin: left bottom; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.cover-lead { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; max-width: 26ch; color: var(--c-paper-text); margin-bottom: 1.6rem; }
.cover-collage { position: relative; margin: 0; container-type: inline-size; min-width: 0; }
.cover-collage img { width: 100%; height: auto; }
.hand-note { position: absolute; font-family: var(--f-hand); font-weight: 700; color: #3A332B; line-height: 1.05; font-size: .8rem; font-size: 2.85cqw; pointer-events: none; }
.hn-house { left: 61.5%; top: 11%; transform: rotate(-2deg); font-size: 3.4cqw; }
.hn-map { left: 36%; top: 31.4%; transform: rotate(-4deg); font-size: 3.1cqw; }
.hn-sticky { left: 84.4%; top: 43%; width: 14.5%; transform: rotate(-9deg); text-align: center; color: #4A3A1E; }
.hn-left { left: 3%; top: 76.3%; width: 16%; transform: rotate(-9deg); }
.hn-market { left: 40.6%; top: 87.6%; width: 18%; transform: rotate(6deg); text-align: center; }
.hn-lane { left: 68.4%; top: 82.4%; width: 18%; transform: rotate(4deg); text-align: center; }

/* pair */
.front-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 4%; }

/* block 1: neighbourhood */
.hood-map { margin: 0 -.5rem 1rem; opacity: .9; }
.hood-map img { width: 100%; height: auto; }
.hood-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.hood-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38%;
    gap: .6rem 1rem;
    padding: 1.15rem 1.2rem 1rem;
    background: var(--c-card) linear-gradient(170deg, #F6F0E3, #E6DAC2);
    color: var(--c-ink);
    box-shadow: 0 10px 18px rgba(0,0,0,.35);
    transform: rotate(-1.2deg);
}
.hood-card:nth-child(2) { transform: rotate(1deg); }
.hood-card:nth-child(3) { transform: rotate(.8deg); }
.hood-card:nth-child(4) { transform: rotate(-.7deg); }
.hood-card::before { content: ""; position: absolute; top: -9px; left: 38%; width: 70px; height: 20px; background: rgba(214, 196, 150, .75); transform: rotate(-3deg); }
.hood-info { min-width: 0; }
.hood-name { font-family: var(--f-hand); font-weight: 700; font-size: 1.65rem; margin: 0; color: var(--c-ink); line-height: 1.1; border-bottom: 1px solid var(--c-ink-muted); padding-bottom: .2rem; }
.hood-city { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-ink-muted); margin: .3rem 0 .45rem; }
.hood-facts { list-style: none; padding: 0; margin: 0; font-size: .95rem; line-height: 1.45; }
.hood-facts li { margin-bottom: .15rem; }
.hood-facts span { font-weight: 700; color: var(--c-green); margin-right: .3rem; }
.hood-facts span::after { content: ":"; }
.hood-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 5px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); transform: rotate(2deg); align-self: start; }
.hood-link { grid-column: 1 / -1; justify-self: end; font-family: var(--f-hand); font-weight: 700; font-size: 1.35rem; color: var(--c-ink); text-decoration-color: var(--c-saffron); text-decoration-thickness: 2px; }
.hood-link:hover { color: var(--c-green); }

/* block 2: renting */
.rent-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.rent-photos { position: relative; min-width: 0; min-height: 0; }
.polaroid { margin: 0; background: #FBF8F1; padding: 9px 9px 26px; box-shadow: 0 10px 22px rgba(0,0,0,.4); }
.polaroid img { width: 100%; object-fit: cover; }
.polaroid-door { width: 82%; transform: rotate(-2deg); }
.polaroid-door img { aspect-ratio: 4 / 3.1; }
.polaroid-contract { width: 78%; margin: -18% 0 0 auto; transform: rotate(2.5deg); position: relative; padding-bottom: 9px; }
.polaroid-contract img { aspect-ratio: 1 / 1; }
.rent-sheet {
    position: relative;
    background: var(--c-card) repeating-linear-gradient(180deg, transparent 0 33px, rgba(138, 122, 98, .22) 33px 34px);
    color: var(--c-ink);
    padding: 1.8rem 1.6rem 1.6rem 1.7rem;
    box-shadow: 0 12px 22px rgba(0,0,0,.4);
    transform: rotate(.8deg);
    min-width: 0;
}
.rent-steps { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.rent-steps li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .5rem; align-items: start; margin-bottom: .9rem; }
.rent-steps .step-no { font-family: var(--f-hand); font-weight: 700; font-size: 2.3rem; line-height: .9; color: var(--c-saffron); }
.rent-steps p { hyphens: manual; margin: 0; line-height: 1.4; font-size: 1rem; padding-bottom: .3rem; border-bottom: 2px solid rgba(224, 163, 46, .35); }
.stamp { white-space: nowrap; display: inline-block; margin: 0; padding: .3rem 1rem; font-family: var(--f-hand); font-weight: 700; font-size: 1.6rem; color: var(--c-saffron-dark); border: 2px solid var(--c-saffron); border-radius: 6px; transform: rotate(-6deg); }

/* latest */
.latest-sheet {
    position: relative;
    padding: 3rem 1.6rem 3rem;
    margin: 0 0 4.5rem;
    color: var(--c-ink);
    isolation: isolate;
}
.latest-sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--c-sheet) repeating-linear-gradient(0deg, rgba(43,39,35,.025) 0 2px, transparent 2px 5px);
    box-shadow: 0 16px 28px rgba(0,0,0,.45);
    clip-path: polygon(0 1.5%, 6% 0, 21% 1.2%, 38% 0, 55% 1.4%, 73% 0, 90% 1.1%, 100% 0, 99.4% 30%, 100% 62%, 99.2% 100%, 82% 98.8%, 64% 100%, 45% 98.6%, 27% 100%, 10% 98.9%, 0 100%, .6% 62%, 0 30%);
    transform: rotate(-.4deg);
}
.latest-side { position: absolute; left: .4rem; top: 50%; margin: 0; font-family: var(--f-hand); font-size: 1.05rem; color: var(--c-ink-muted); writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); display: none; }
.card-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
.empty-note { color: inherit; opacity: .8; font-style: italic; }

/* cards */
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: var(--c-card);
    color: var(--c-ink);
    border: 1px solid var(--c-brass);
    padding: 12px 12px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,.28);
    transition: transform .2s, box-shadow .2s;
}
.card-row .card:nth-child(1) { transform: rotate(-1.6deg); }
.card-row .card:nth-child(2) { transform: rotate(1.2deg); }
.card-row .card:nth-child(3) { transform: rotate(-.8deg); }
.card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 14px 24px rgba(0,0,0,.32); }
.card-thumb { overflow: hidden; }
.card-thumb a { display: block; }
.card-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transform: rotate(-1deg) scale(1.03); filter: sepia(.12) contrast(1.03); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1rem .35rem 1rem; min-width: 0; }
.card-pin { align-self: flex-start; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; background: var(--c-green); color: #F2EBDD; padding: .15rem .55rem; margin-bottom: .55rem; }
.card-title { font-family: var(--f-head); font-weight: 600; font-size: 1.22rem; line-height: 1.25; margin: 0 0 .55rem; }
.card-title a { color: var(--c-ink); text-decoration: none; }
.card-title a:hover { color: var(--c-green); text-decoration: underline; text-decoration-color: var(--c-saffron); }
.card-excerpt { font-size: .95rem; line-height: 1.5; color: #4A4238; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: var(--c-green); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: .7rem; }
.note-date { font-size: .82rem; color: var(--c-ink-muted); letter-spacing: .04em; }

/* block 3: buying */
.block-buy { position: relative; }
.buy-plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.buy-house { margin: 0; min-width: 0; }
.buy-house img { width: 100%; height: auto; }
.buy-tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; min-width: 0; }
.buy-tags li {
    position: relative;
    background: var(--c-card);
    color: var(--c-ink);
    padding: 1.05rem 1rem .8rem;
    font-size: .93rem;
    line-height: 1.4;
    box-shadow: 0 6px 12px rgba(0,0,0,.35);
    transform: rotate(-1.5deg);
}
.buy-tags li:nth-child(2) { transform: rotate(1.4deg); }
.buy-tags li:nth-child(3) { transform: rotate(-.6deg); }
.buy-tags li::before { content: ""; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #E3C88C, #9C7A3A); box-shadow: 0 2px 3px rgba(0,0,0,.45); }
.buy-tags strong { display: block; font-family: var(--f-hand); font-weight: 700; font-size: 1.4rem; line-height: 1.1; color: var(--c-green); margin-bottom: .2rem; }
.buy-lower { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2.6rem; }
.buy-notebook { margin: 0; background: #F4EEE2; padding: 10px 10px 14px; box-shadow: 0 12px 24px rgba(0,0,0,.45); transform: rotate(-1.4deg); min-width: 0; color: var(--c-ink); }
.buy-notebook img { width: 100%; aspect-ratio: 280 / 315; object-fit: cover; }
.buy-notebook figcaption { font-family: var(--f-hand); font-weight: 700; font-size: 1.25rem; line-height: 1.2; padding: .7rem .4rem 0; }
.buy-ruler {
    position: relative;
    min-width: 0;
    padding: 1.4rem 1.2rem 1.2rem 4.4rem;
    border: 1px solid var(--c-brass);
    background:
        repeating-linear-gradient(180deg, var(--c-brass) 0 1px, transparent 1px 12px) 0 0 / 14px 100% no-repeat,
        repeating-linear-gradient(180deg, var(--c-brass) 0 2px, transparent 2px 60px) 0 0 / 26px 100% no-repeat,
        #241F1B;
}
.buy-ruler::before { content: ""; position: absolute; left: 2.6rem; top: 1.3rem; bottom: 1.3rem; border-left: 1px dashed var(--c-brass); }
.ruler-title { font-family: var(--f-head); font-size: .95rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-saffron); margin: 0 0 1rem; }
.ruler-stages { list-style: none; margin: 0; padding: 0; counter-reset: stage; }
.ruler-stages li { position: relative; counter-increment: stage; margin-bottom: 1rem; font-size: .96rem; line-height: 1.45; color: var(--c-paper-text); }
.ruler-stages li::before { content: counter(stage); position: absolute; left: -2.55rem; top: -.05rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; background: var(--c-saffron); color: #1A1714; font-family: var(--f-head); font-weight: 700; font-size: .9rem; }
.ruler-stages span { display: block; font-family: var(--f-head); font-weight: 500; font-size: 1.1rem; letter-spacing: .03em; color: #F6EEDC; }

/* block 4: observations */
.obs-board { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
.obs-shot { position: relative; margin: 0; background: #F7F3EA; padding: 8px; box-shadow: 0 8px 16px rgba(0,0,0,.4); min-width: 0; }
.obs-shot:nth-child(odd) { transform: rotate(-1.4deg); }
.obs-shot:nth-child(even) { transform: rotate(1.2deg); }
.obs-shot::before { content: ""; position: absolute; top: -10px; left: 50%; z-index: 2; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #DCC08A, #9C7A3A); box-shadow: 0 3px 4px rgba(0,0,0,.5); }
.obs-shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sticky { position: absolute; z-index: 3; left: -8px; top: -14px; width: 58%; padding: .45rem .55rem; background: var(--c-sticky); color: #3A2F1A; font-family: var(--f-hand); font-weight: 700; font-size: 1.05rem; line-height: 1.1; box-shadow: 0 4px 8px rgba(0,0,0,.35); transform: rotate(-6deg); }
.obs-shot:nth-child(4) .sticky, .obs-shot:nth-child(6) .sticky { left: auto; right: -8px; top: auto; bottom: -12px; transform: rotate(5deg); }
.obs-quote {
    grid-column: 1 / -1;
    margin: .6rem auto 0;
    max-width: 30rem;
    background: var(--c-saffron);
    color: #1A1714;
    padding: 1.4rem 1.8rem;
    font-family: var(--f-hand);
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 12px 22px rgba(0,0,0,.5);
    transform: rotate(-3deg);
    clip-path: polygon(0 0, 100% 2%, 100% 82%, 92% 100%, 0 97%);
}
.obs-quote p { margin: 0; }

/* ---------- Inner pages ---------- */
.inner-shell { padding: 1.6rem 0 4rem; }
.crumbs { font-size: .9rem; color: var(--c-muted); margin: 0 0 1.6rem; padding-bottom: .7rem; border-bottom: 1px dashed rgba(198,161,91,.5); }
.crumbs a { color: var(--c-paper-text); }
.crumbs-sep { color: var(--c-saffron); padding: 0 .3rem; }
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.8rem; }
.page-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin: 0 0 .5rem; color: #F6EEDC; transform: skewX(-4deg); transform-origin: left bottom; }
.page-sub { color: var(--c-muted); font-size: 1.05rem; margin: 0; }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; margin-bottom: 2.4rem; }
.card-grid .card:nth-child(odd) { transform: rotate(-.6deg); }
.card-grid .card:nth-child(even) { transform: rotate(.6deg); }
.card-grid .card:hover { transform: rotate(0) translateY(-4px); }

/* entry */
.entry {
    background: var(--c-sheet);
    color: var(--c-ink);
    padding: 2rem 1.4rem 2rem;
    box-shadow: 0 14px 26px rgba(0,0,0,.4);
    position: relative;
}
.entry::before { content: ""; position: absolute; top: -10px; left: 2.4rem; width: 96px; height: 22px; background: rgba(214,196,150,.8); transform: rotate(-3deg); }
.entry-head { margin-bottom: 1.4rem; }
.entry-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.1; margin: 0 0 .7rem; color: var(--c-ink); transform: skewX(-4deg); transform-origin: left bottom; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0; font-size: .9rem; color: var(--c-ink-muted); }
.entry-cat a { display: inline-block; background: var(--c-green); color: #F2EBDD; text-decoration: none; padding: .1rem .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.entry-cat a:hover { background: var(--c-saffron); color: #1A1714; }
.entry-cover { margin: 0 0 1.6rem; border: 6px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.entry-cover img { width: 100%; }
.entry-content { font-size: 1.08rem; line-height: 1.72; }
.entry-content a { color: var(--c-green); text-decoration-color: var(--c-brass); }
.entry-content a:hover { color: var(--c-saffron-dark); }
.entry-content h2 { font-size: 1.75rem; color: var(--c-ink); text-transform: uppercase; letter-spacing: .04em; padding-bottom: .35rem; background: linear-gradient(var(--c-saffron), var(--c-saffron)) left bottom / 56px 3px no-repeat; }
.entry-content h3 { font-size: 1.35rem; color: var(--c-green); }
.entry-content h4 { font-size: 1.15rem; }
.entry-content img, .entry-content figure { max-width: 100%; height: auto; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { font-family: var(--f-hand); font-size: 1.15rem; color: var(--c-ink-muted); text-align: center; margin-top: .4rem; }
.entry-content ul li::marker { color: var(--c-saffron-dark); }
.entry-content ol li::marker { color: var(--c-green); font-weight: 700; }
.entry-content li { margin-bottom: .35rem; }
.entry-content blockquote { margin: 1.8rem 0; padding: 1.2rem 1.5rem 1.2rem 1.6rem; background: var(--c-card); border-left: 5px solid var(--c-saffron); font-family: var(--f-hand); font-size: 1.5rem; line-height: 1.25; color: var(--c-ink); transform: rotate(-.6deg); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .5rem; font-family: var(--f-body); font-size: .9rem; font-style: normal; color: var(--c-ink-muted); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .97rem; background: var(--c-card); display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid #B9A57E; padding: .6rem .8rem; text-align: start; vertical-align: top; }
.entry-content th { background: var(--c-green); color: #F2EBDD; font-family: var(--f-head); font-weight: 500; letter-spacing: .03em; }
.entry-content tr:nth-child(even) td { background: rgba(198,161,91,.1); }
.entry-content pre { overflow-x: auto; background: #241F1B; color: #F2EBDD; padding: 1rem 1.2rem; font-size: .9rem; }
.entry-content code { background: rgba(198,161,91,.2); padding: .05rem .3rem; font-size: .92em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; border-top: 2px dashed var(--c-brass); margin: 2rem 0; }
.entry-content .alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.page-links { margin-top: 1.4rem; font-weight: 600; }
.entry-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.entry-tags a { color: var(--c-green); font-size: .92rem; }

.post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 2.2rem 0; }
.post-nav-link { display: block; padding: 1rem 1.2rem; border: 1px dashed var(--c-brass); color: var(--c-paper-text); text-decoration: none; font-family: var(--f-head); font-size: 1.05rem; line-height: 1.3; }
.post-nav-link span { display: block; font-family: var(--f-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-saffron); margin-bottom: .3rem; }
.post-nav-link:hover { border-style: solid; background: rgba(198,161,91,.08); color: var(--c-paper-text); }
.post-nav-next { text-align: end; }

/* sidebar */
.sidebar { min-width: 0; align-self: start; background: #24201C; border: 1px solid rgba(198,161,91,.55); padding: 1.6rem 1.4rem; color: #E9E0CE; position: relative; }
.sidebar::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(198,161,91,.3); pointer-events: none; }
.sidebar .widget { margin-bottom: 2rem; position: relative; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .1em; color: #F6EEDC; margin: 0 0 1rem; padding-bottom: .4rem; background: linear-gradient(var(--c-saffron), var(--c-saffron)) left bottom / 44px 3px no-repeat; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed rgba(198,161,91,.3); line-height: 1.4; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #F2EBDD; text-decoration: none; }
.sidebar a:hover { color: var(--c-saffron); text-decoration: underline; }
.sidebar .post-date, .sidebar .rss-date { display: block; font-size: .8rem; color: var(--c-muted); }
.sidebar p, .sidebar .textwidget { color: #E9E0CE; }

/* pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 0; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--c-brass); color: var(--c-paper-text); text-decoration: none; font-family: var(--f-head); font-weight: 500; background: transparent; }
.pager a.page-numbers:hover { background: var(--c-paper-text); color: var(--c-ink); }
.pager .page-numbers.current { background: var(--c-saffron); border-color: var(--c-saffron); color: #1A1714; font-weight: 700; }
.pager .page-numbers.dots { border: 0; min-width: auto; padding: 0 .3rem; }

/* comments */
.remarks { margin-top: 2.6rem; }
.remarks-title, .comment-reply-title { font-family: var(--f-head); font-weight: 600; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .06em; color: #F6EEDC; margin: 0 0 1.2rem; }
.comment-reply-title small { margin-left: .8rem; font-size: .85rem; text-transform: none; letter-spacing: 0; }
.remark-list, .remark-list .children { list-style: none; margin: 0; padding: 0; }
.remark-list .children { padding-left: 1.6rem; border-left: 1px dashed var(--c-brass); margin-left: .6rem; }
.remark-body { background: var(--c-card); color: var(--c-ink); padding: 1rem 1.2rem; margin-bottom: 1rem; box-shadow: 0 6px 12px rgba(0,0,0,.25); }
.remark-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .5rem; }
.remark-head img { border-radius: 50%; }
.remark-author { font-weight: 700; }
.remark-date { font-size: .82rem; color: var(--c-ink-muted); }
.remark-wait { font-style: italic; color: var(--c-ink-muted); }
.remark-text p:last-child { margin-bottom: 0; }
.remark-reply a { font-family: var(--f-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-green); }
.remark-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 2rem; }
.comment-respond { background: #24201C; border: 1px solid rgba(198,161,91,.5); padding: 1.6rem 1.4rem; margin-top: 2rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; color: #F2EBDD; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-field {
    width: 100%; padding: .7rem .85rem; background: #F4EEE2; color: var(--c-ink); border: 1px solid var(--c-brass); border-radius: 0; font: inherit; font-size: 1rem;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; font-size: .92rem; }
.comment-notes, .logged-in-as, .must-log-in { color: var(--c-muted); font-size: .92rem; }
.comment-notes a, .logged-in-as a { color: var(--c-paper-text); }
.comment-form .submit, .search-submit, .cookie-accept {
    display: inline-block; padding: .65rem 1.4rem; background: var(--c-saffron); color: #1A1714; border: 0; border-radius: 0; font-family: var(--f-head); font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
    clip-path: polygon(0 4%, 6% 0, 22% 6%, 40% 0, 58% 5%, 76% 0, 92% 6%, 100% 2%, 99% 50%, 100% 97%, 84% 100%, 66% 94%, 48% 100%, 30% 95%, 12% 100%, 0 96%, 1% 50%);
    transition: background-color .15s, transform .15s;
}
.comment-form .submit:hover, .search-submit:hover, .cookie-accept:hover { background: var(--c-saffron-dark); transform: translate(-2px, -2px); }

/* search form */
.search-form { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0; max-width: 34rem; }
.search-field { flex: 1 1 220px; min-width: 0; }
.sidebar .search-form { margin: 0; }

/* 404 */
.lost-page { width: 85%; margin: 1rem auto 0; text-align: center; padding: 2.6rem 1.6rem 3rem; border: 1px dashed var(--c-brass); }
.lost-code { font-family: var(--f-head); font-weight: 700; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--c-saffron); transform: rotate(-4deg); }
.lost-page .page-title { transform: none; }
.lost-text { max-width: 36rem; margin: .8rem auto 1rem; color: var(--c-muted); }
.lost-page .search-form { margin: 1.4rem auto 1.6rem; justify-content: center; }
.empty-box { padding: 1.6rem; border: 1px dashed var(--c-brass); }

/* ---------- Footer ---------- */
.site-foot { background: var(--c-head); border-top: 2px solid var(--c-brass); padding: 3.2rem 0 1.4rem; color: #E9E0CE; position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: repeating-linear-gradient(90deg, var(--c-brass) 0 10px, transparent 10px 16px); opacity: .5; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
.foot-col { min-width: 0; }
.site-foot .widget-title { font-family: var(--f-head); font-weight: 500; font-size: 1.3rem; letter-spacing: .03em; color: #F6EEDC; margin: 0 0 .9rem; }
.site-foot .widget, .site-foot .textwidget, .site-foot p { color: #D9CFBC; font-size: .95rem; line-height: 1.55; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .55rem; }
.site-foot a { color: #F2EBDD; text-decoration-color: var(--c-brass); }
.site-foot a:hover { color: var(--c-saffron); }
.site-foot .menu a { text-decoration: none; }
.site-foot .menu a:hover { text-decoration: underline; }
.foot-copy { margin: 2.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(198,161,91,.35); text-align: center; font-size: .9rem; color: var(--c-muted); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    flex-wrap: wrap;
    max-width: 52rem;
    margin-inline: auto;
    padding: 1.1rem 1.4rem;
    background: var(--c-card);
    color: var(--c-ink);
    border: 1px solid var(--c-brass);
    box-shadow: 0 14px 30px rgba(0,0,0,.5);
}
.cookie-text { margin: 0; flex: 1 1 280px; font-size: .95rem; line-height: 1.45; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { flex-basis: 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; border-top: 1px dashed rgba(198,161,91,.5); padding-top: .5rem; }
    .nav-list > li { display: block; }
    .nav-list > li + li::before { content: none; }
    .nav-list a { display: block; padding: .6rem 0; border-bottom: 1px dashed rgba(198,161,91,.25); }
    .nav-list .sub-menu { display: block; position: static; border: 0; padding: 0 0 0 1rem; background: none; }
    .brand { flex-basis: auto; flex: 1 1 0; }
    .masthead-row { position: relative; }
}
@media (min-width: 600px) {
    .hood-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .obs-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buy-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .buy-lower { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
    .rent-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
    .entry { padding: 2.4rem 2.2rem; }
}
@media (min-width: 960px) {
    .front-shell { width: min(85%, 1320px); }
    .cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; }
    .cover-text { padding-left: 2.6rem; }
    .cover-side { position: absolute; left: -.4rem; top: 50%; margin: 0; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); white-space: nowrap; border-left: 1px solid rgba(198,161,91,.5); padding-left: .3rem; }
    .front-pair { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
    .card-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
    .card-row .card:nth-child(2) { margin-top: 1.4rem; }
    .latest-sheet { padding: 3.4rem 3rem 3.6rem 4.2rem; }
    .latest-side { display: block; }
    .buy-plan { grid-template-columns: minmax(0, .8fr) minmax(0, 1.9fr) minmax(0, .8fr); gap: 1.6rem; }
    .buy-tags { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .buy-tags-left li { margin-right: -.6rem; }
    .buy-tags-right li { margin-left: -.6rem; }
    .buy-lower { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 3rem; }
    .obs-board { gap: 2.2rem 1.6rem; padding-bottom: .5rem; }
    .obs-quote { position: absolute; left: 50%; top: 50%; z-index: 5; margin: 0; width: min(46%, 30rem); transform: translate(-50%, -50%) rotate(-3deg); }
    .foot-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; }
    .layout-with-sidebar .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .layout-single, .lost-page { width: 100%; }
    .hood-card { grid-template-columns: minmax(0, 1fr) 40%; padding: 1rem 1rem .9rem; }
    .rent-sheet { padding: 1.5rem 1.2rem 1.3rem; }
    .latest-sheet { padding: 2.6rem 1.2rem 2.4rem; }
    .entry { padding: 1.8rem 1.1rem; }
    .sidebar { padding: 1.4rem 1.1rem; }
    .obs-quote { padding: 1.2rem 1.3rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .lost-page { padding: 2rem 1.1rem 2.4rem; }
    .sticky { font-size: .92rem; width: 72%; }
    .brand { flex: 1 1 100%; flex-wrap: wrap; }
    .brand-text { flex: 1 1 100%; }
    .nav-toggle { position: absolute; top: 1.4rem; right: 0; }
    .primary-nav { margin-top: -.4rem; }
    .brand-tagline { display: block; font-size: .78rem; }
    .comment-respond { padding: 1.3rem 1.1rem; }
}
