/*
Theme Name: dds_makingtwitterfriends.com
Theme URI: https://makingtwitterfriends.com/
Author: Ananya Iyer
Description: A field-diary theme for an India-focused resource on social media for real estate agents, buyers and investors. Warm grid paper, an indigo spine, saffron stamps and taped paper cards.
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: mtwf
*/

/* ---------- Fonts ---------- */
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/merriweather-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/merriweather-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/work-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/work-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
    --paper: #E8DCC4;
    --paper-dense: #DDCCAC;
    --paper-card: #F4ECDD;
    --paper-page: #F7EFE1;
    --indigo: #1F2A44;
    --indigo-soft: #2B3858;
    --ink: #22201C;
    --muted: #7A6E5C;
    --saffron: #D9601F;
    --saffron-deep: #B84E15;
    --leaf: #3F6B4F;
    --line: #B9A888;
    --cover: #8A5A3B;
    --tape: rgba(196, 174, 134, 0.78);
    --grid: rgba(185, 168, 136, 0.32);
    --stripe: clamp(12px, 5.5vw, 80px);
    --serif: "Merriweather", Georgia, "Times New Roman", serif;
    --sans: "Work Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --swash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'%3E%3Cpath d='M2 5 C20 2 40 2 60 4 S100 7 118 3' fill='none' stroke='%23D9601F' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Hidden-state rules (before component styles) ---------- */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: 0.015em;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 900;
    line-height: 1.18;
    margin: 1.6em 0 0.6em;
    color: var(--ink);
    overflow-wrap: break-word;
    hyphens: auto;
    letter-spacing: 0;
}
p { margin: 0 0 1em; }
p, li, dd, blockquote, td, th { overflow-wrap: break-word; hyphens: auto; }
a { color: var(--indigo); text-decoration: underline; text-decoration-style: wavy; text-decoration-color: var(--saffron); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s ease; }
a:hover { color: var(--saffron-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--saffron); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 1.4em 0; border: 1px solid var(--line); font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 0.6em 0.8em; text-align: start; }
th { background: var(--paper-dense); font-family: var(--serif); font-weight: 700; }
hr { border: 0; height: 8px; background: var(--swash) center / 120px 8px repeat-x; margin: 2em 0; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--indigo); color: var(--paper-card); padding: 0.6em 1em; }
.skip-link:focus { left: calc(var(--stripe) + 8px); top: 8px; }

/* ---------- Frame and container ---------- */
.frame {
    border-left: var(--stripe) solid var(--indigo);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main { flex: 1 0 auto; }
.shell { width: min(90%, 1180px); margin-inline: auto; }
.shell--front { width: min(85%, 1220px); }

/* ---------- Stamp buttons ---------- */
.stamp {
    display: inline-block;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--saffron);
    background: transparent;
    border: 2.5px solid var(--saffron);
    border-radius: 3px 7px 4px 6px;
    padding: 0.62em 1.35em 0.68em;
    box-shadow: inset 0 0 0 3px rgba(232, 220, 196, .9), inset 0 0 0 4.5px rgba(217, 96, 31, .55);
    text-decoration: none;
    transform: rotate(-2deg);
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
    cursor: pointer;
}
.stamp:hover, .stamp:focus-visible { background: var(--saffron); color: #FFF7EA; transform: rotate(0) translateY(-2px); box-shadow: inset 0 0 0 3px var(--saffron), inset 0 0 0 4.5px rgba(255, 247, 234, .7); }
.stamp--small { font-size: 0.95rem; padding: 0.45em 1.1em 0.5em; }
.stamp--light { color: #F2B48A; border-color: #F2B48A; box-shadow: inset 0 0 0 3px var(--indigo), inset 0 0 0 4.5px rgba(242, 180, 138, .5); }
.stamp--light:hover, .stamp--light:focus-visible { background: #F2B48A; color: var(--indigo); box-shadow: none; }

/* ---------- Header ---------- */
.masthead {
    background-color: var(--paper-dense);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
    border-bottom: 1px solid var(--line);
    padding: 1.3rem 0 1.2rem;
}
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); flex: 1 1 520px; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-emblem { flex: 0 0 auto; width: 76px; height: 76px; display: block; }
.brand-mark, .brand-logo { width: 76px; height: 76px; display: block; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; max-width: 62ch; }
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 1.02rem; line-height: 1.35; }
.brand-tagline { font-size: 0.8rem; line-height: 1.5; color: var(--muted); letter-spacing: 0.03em; }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0; }
.topnav-list li { display: flex; align-items: center; }
.topnav-list li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); margin: 0 0.85rem; }
.topnav-list a { color: var(--ink); text-decoration: none; font-size: 0.95rem; letter-spacing: 0.03em; padding: 0.3rem 0; background: linear-gradient(var(--saffron), var(--saffron)) left 100% / 0 2px no-repeat; transition: background-size .25s ease, color .2s ease; }
.topnav-list a:hover, .topnav-list .current-menu-item > a { background-size: 100% 2px; color: var(--indigo); }
.nav-toggle { display: none; align-items: center; gap: 0.6rem; background: transparent; border: 2px solid var(--indigo); color: var(--indigo); font-family: var(--serif); font-weight: 700; font-size: 0.95rem; padding: 0.45rem 0.9rem; border-radius: 3px; 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; }

/* ---------- Front: opener ---------- */
.opener {
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
    background-image: url("images/paper-stains.jpg");
    background-repeat: no-repeat;
    background-position: right -60px top -40px;
    background-size: min(640px, 70%) auto;
    background-blend-mode: multiply;
    background-color: var(--paper);
}
.opener-title { font-size: clamp(2.3rem, 6.4vw, 5rem); line-height: 1.08; margin: 0 0 1.4rem; max-width: 15ch; letter-spacing: -0.01em; }
.opener-mark { position: relative; display: inline-block; white-space: nowrap; }
.opener-swash { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.24em; color: var(--saffron); overflow: visible; }
.opener-lead { font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: 0.01em; margin: 0 0 1.8rem; }

/* ---------- Front: sections ---------- */
.fs { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.fs--map, .fs--moves, .fs--audience, .fs--checklist {
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 22px 22px;
}
.fs--moves { padding-top: 0.5rem; }
.fs--checklist {
    background-image:
        url("images/paper-stains.jpg"),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 560px auto, 22px 22px, 22px 22px;
    background-repeat: no-repeat, repeat, repeat;
    background-position: left -120px bottom -160px, 0 0, 0 0;
    background-blend-mode: multiply, normal, normal;
}
.fs-split { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.fs-side { min-width: 0; }
.fs-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin: 0 0 1rem; padding-bottom: 0.75rem; background: var(--swash) left bottom / 96px 8px no-repeat; }
.fs-title--light { color: #F7EFE1; }
.fs-text { color: var(--ink); max-width: 38ch; font-size: 0.97rem; letter-spacing: 0.03em; }

/* Trust map */
.trust-map { min-width: 0; position: relative; }
.trust-map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tm-threads path { stroke: var(--ink); stroke-width: 1.7; stroke-dasharray: 5 5; stroke-linecap: round; opacity: .85; }
.tm-leaders path { stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 2 4; stroke-linecap: round; opacity: .7; }
.tm-dots circle { fill: var(--ink); stroke: var(--paper-card); stroke-width: 1.6; }
.tm-labels text, .tm-note text { font-family: var(--hand); font-weight: 600; font-size: 23px; fill: var(--ink); }
.tm-labels .tm-city { font-size: 26px; }
.tm-note text { font-size: 27px; fill: var(--indigo); }
.tm-note path { stroke: var(--indigo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-legend { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.7rem; font-size: 0.88rem; color: var(--muted); letter-spacing: 0.04em; }
.map-legend li { display: flex; align-items: center; gap: 0.75rem; }
.map-legend-key { flex: 0 0 28px; height: 12px; display: inline-block; }
.map-legend-key--dot { background: radial-gradient(circle, var(--ink) 4px, transparent 5px) center / 12px 12px no-repeat; }
.map-legend-key--line { background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 10px) center / 100% 2px no-repeat; }

/* Field book */
.field-book {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 10px 10px 14px;
    background: var(--cover);
    border-radius: 4px 4px 6px 6px;
    box-shadow: 0 14px 22px -10px rgba(34, 32, 28, .45), 0 2px 0 #6E4429 inset;
}
.field-book-page {
    min-width: 0;
    background: linear-gradient(90deg, #E7D6BB 0%, var(--paper-page) 9%, var(--paper-page) 88%, #E9DAC1 100%);
    padding: 1.4rem 1.3rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
}
.field-book-page + .field-book-page { box-shadow: -1px 0 0 rgba(138, 90, 59, .35); }
.field-book-title { font-size: 1.32rem; margin: 0; }
.field-book-page img { display: block; width: 100%; max-width: 220px; height: 120px; object-fit: contain; object-position: left center; margin: 0.3rem 0; }
.field-book-page p { margin: 0; font-size: 0.9rem; letter-spacing: 0.02em; line-height: 1.55; }

/* Latest notes */
.fs--latest {
    background-color: var(--indigo);
    background-image: radial-gradient(rgba(247, 239, 225, .06) 1px, transparent 1.5px);
    background-size: 18px 18px;
    padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5rem);
}
.fs--latest .fs-title { margin-bottom: 1.6rem; }
.empty-note { padding: 1.4rem 1.6rem; background: var(--paper-card); border: 1px dashed var(--line); }
.empty-note--light { color: var(--ink); }

/* Cards */
.card-grid { display: grid; gap: 2.4rem 1.6rem; min-width: 0; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 1rem; }
.card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0.8rem; }
.card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    background: var(--paper-card);
    padding: 0.55rem 0.55rem 0;
    box-shadow: 0 10px 18px -8px rgba(15, 18, 30, .45), 0 1px 0 rgba(0, 0, 0, .05);
    transform: rotate(-1deg);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:nth-child(3n+2) { transform: rotate(0.9deg); }
.card:nth-child(3n) { transform: rotate(-0.4deg); }
.card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -7px;
    height: 8px;
    background: var(--paper-card);
    clip-path: polygon(0 100%, 0 40%, 4% 70%, 9% 20%, 14% 60%, 19% 30%, 25% 80%, 31% 25%, 37% 65%, 43% 15%, 49% 55%, 55% 30%, 61% 75%, 67% 20%, 73% 60%, 79% 35%, 85% 70%, 91% 20%, 96% 55%, 100% 30%, 100% 100%);
}
.card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: -16px;
    left: calc(50% - 46px);
    width: 92px;
    height: 26px;
    background: var(--tape);
    transform: rotate(-3deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 16px 26px -10px rgba(15, 18, 30, .5); }
.card-thumb { position: relative; overflow: hidden; background: var(--paper-dense); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; filter: sepia(.12) saturate(.95); transition: filter .25s ease; }
.card:hover .card-thumb img { filter: none; }
.card-thumb-blank {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 10;
    background-color: var(--paper-dense);
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 14px 14px;
}
.card-thumb-blank .brand-mark { width: 64px; height: 64px; opacity: .85; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 0.9rem 0.6rem 1.1rem; min-width: 0; }
.card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; align-items: start; }
.card-title { font-size: 1.08rem; line-height: 1.3; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--saffron-deep); }
.card-date { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; border-left: 1px solid var(--line); padding-left: 0.35rem; }
.card-excerpt { margin-top: 0.6rem; font-size: 0.88rem; color: #3C3832; letter-spacing: 0.02em; line-height: 1.55; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; margin-top: 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--indigo); text-decoration-color: var(--saffron); }
.card-more::after { content: " ›"; }

/* Audience folders */
.folders { min-width: 0; display: grid; gap: 0; padding-top: 0.9rem; }
.folder {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 0.6rem 1.6rem;
    align-items: center;
    padding: 1.15rem 1.8rem 1.25rem;
    margin-top: 0.9rem;
    border-radius: 0 4px 4px 4px;
    box-shadow: 0 6px 10px -6px rgba(34, 32, 28, .5);
    transition: transform .2s ease;
}
.folder:first-child { margin-top: 0; }
.folder::before {
    content: "";
    position: absolute;
    left: 0;
    top: -14px;
    width: 9.5rem;
    height: 16px;
    border-radius: 10px 14px 0 0;
    background: inherit;
}
.folder:hover { transform: translateX(8px); }
.folder--saffron { background: var(--saffron); color: var(--ink); }
.folder--leaf { background: var(--leaf); color: #F7EFE1; }
.folder--indigo { background: var(--indigo); color: #F7EFE1; }
.folder-name { font-family: var(--serif); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.folder--saffron .folder-name { color: #FFF4E6; text-shadow: 0 1px 0 rgba(34, 32, 28, .25); }
.folder-text { margin: 0; font-size: 0.97rem; letter-spacing: 0.02em; }

/* Checklist */
.fs-split--check { grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.78fr) minmax(0, 0.5fr); align-items: start; }
.fs-split--check .checklist-art { align-self: center; }
.ticklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; min-width: 0; counter-reset: none; }
.ticklist li { display: grid; grid-template-columns: 30px 2.8rem minmax(0, 1fr); gap: 0.9rem; align-items: center; font-size: 1.02rem; letter-spacing: 0.02em; }
.ticklist-box { width: 24px; height: 24px; border: 2px solid var(--indigo); background: var(--paper-card); position: relative; display: block; }
.is-done .ticklist-box::after {
    content: "";
    position: absolute;
    left: 6px; top: -9px;
    width: 10px; height: 22px;
    border-right: 3px solid var(--indigo);
    border-bottom: 3px solid var(--indigo);
    transform: rotate(38deg);
}
.ticklist-num { font-family: var(--serif); font-weight: 900; font-size: 1.7rem; color: var(--saffron); line-height: 1; }
.is-done .ticklist-text { color: var(--ink); }
.ticklist li:not(.is-done) .ticklist-num { color: var(--line); }
.checklist-art { min-width: 0; }
.checklist-art img { display: block; width: 100%; height: auto; aspect-ratio: 898 / 614; object-fit: contain; }

/* ---------- Inner pages ---------- */
.crumbs { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted); padding: 1.4rem 0 0; }
.crumbs a { color: var(--indigo); }
.crumbs-sep { margin: 0 0.35rem; color: var(--saffron); }
.crumbs-now { color: var(--ink); }
.layout { padding: 1.6rem 0 4rem; }
.layout--wide { display: block; }
.layout--wide .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.layout--aside { display: grid; grid-template-columns: minmax(0, 67%) minmax(0, 27%); justify-content: space-between; align-items: start; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.6rem; }
.page-title, .entry-title { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 0.7rem; padding-bottom: 0.8rem; background: var(--swash) left bottom / 110px 8px no-repeat; }
.page-intro { color: var(--muted); max-width: 60ch; letter-spacing: 0.03em; }
.layout--wide .card-grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-area .card { transform: none; }
.content-area .card:nth-child(odd) { transform: rotate(-0.6deg); }
.content-area .card:hover { transform: translateY(-4px); }

.entry {
    background: var(--paper-card);
    padding: clamp(1.4rem, 4vw, 2.6rem) clamp(1.2rem, 4vw, 2.8rem);
    box-shadow: 0 10px 22px -14px rgba(34, 32, 28, .45);
    position: relative;
}
.entry::before { content: ""; position: absolute; top: -12px; left: 2.2rem; width: 96px; height: 24px; background: var(--tape); transform: rotate(-4deg); }
.entry-meta { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; margin: 0; }
.entry-meta-sep { margin: 0 0.4rem; }
.entry-cover { margin: 1.6rem 0 0.4rem; }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { margin-top: 1.6rem; font-size: 1.02rem; }
.entry-content h2 { font-size: 1.65rem; padding-bottom: 0.45rem; background: var(--swash) left bottom / 72px 7px no-repeat; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content ul { padding-left: 1.3rem; }
.entry-content ul li::marker { color: var(--saffron); }
.entry-content ol li::marker { color: var(--saffron); font-family: var(--serif); font-weight: 900; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--paper);
    border-left: 4px solid var(--saffron);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.55;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { overflow-x: auto; background: var(--indigo); color: var(--paper-card); padding: 1rem 1.2rem; font-size: 0.9rem; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }
.entry-tags { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry-tags a { font-size: 0.85rem; text-decoration: none; border: 1px solid var(--line); padding: 0.2rem 0.6rem; color: var(--indigo); background: var(--paper); }
.entry-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.entry-nav-link { display: block; padding: 1rem 1.2rem; background: var(--paper-card); border: 1px dashed var(--line); text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; }
.entry-nav-link span { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.8rem; color: var(--saffron-deep); letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.entry-nav-link--next { grid-column: 2; text-align: end; }
.entry-nav-link:hover { border-style: solid; border-color: var(--saffron); }

/* Sidebar */
.sidebar {
    min-width: 0;
    background-color: #EFE4CD;
    background-image: repeating-linear-gradient(transparent 0 27px, rgba(185, 168, 136, .38) 27px 28px);
    border: 1px solid var(--line);
    padding: 1.6rem 1.4rem;
    position: relative;
    color: var(--ink);
}
.sidebar::before { content: ""; position: absolute; top: -12px; right: 1.6rem; width: 80px; height: 22px; background: var(--tape); transform: rotate(4deg); }
.sidebar .widget + .widget { margin-top: 1.8rem; }
.sidebar .widget-title { font-size: 1.15rem; margin: 0 0 0.8rem; color: var(--ink); padding-bottom: 0.4rem; background: var(--swash) left bottom / 60px 6px no-repeat; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.45rem 0; border-bottom: 1px dashed var(--line); font-size: 0.93rem; color: var(--ink); }
.sidebar a { color: var(--indigo); text-decoration: none; }
.sidebar a:hover { color: var(--saffron-deep); text-decoration: underline wavy var(--saffron); }
.sidebar .post-date { display: block; font-size: 0.78rem; color: var(--muted); }
.sidebar p, .sidebar .textwidget { color: var(--ink); font-size: 0.93rem; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.6rem 0 0; align-items: center; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.6rem; height: 2.6rem; padding: 0 0.8rem;
    font-family: var(--serif); font-weight: 700; font-size: 0.95rem;
    color: var(--indigo); background: var(--paper-card);
    border: 2px solid var(--indigo); border-radius: 3px 6px 3px 5px;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.pager a.page-numbers:hover { background: var(--saffron); border-color: var(--saffron); color: #FFF7EA; transform: rotate(-2deg); }
.pager .page-numbers.current { background: var(--indigo); color: var(--paper-card); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 0.2rem; }

/* Search form */
.finder { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.2rem 0; max-width: 520px; }
.finder-field {
    flex: 1 1 220px; min-width: 0;
    font: inherit; color: var(--ink);
    background: var(--paper-card);
    border: 2px solid var(--line);
    border-radius: 2px;
    padding: 0.65rem 0.9rem;
}
.finder-field:focus { border-color: var(--indigo); outline: none; }
.finder-btn {
    font-family: var(--serif); font-weight: 900; font-size: 0.95rem;
    color: var(--paper-card); background: var(--indigo);
    border: 2px solid var(--indigo); border-radius: 3px 6px 3px 5px;
    padding: 0.6rem 1.2rem; cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}
.finder-btn:hover { background: var(--saffron); border-color: var(--saffron); transform: rotate(-2deg); }

/* 404 */
.lost { text-align: start; }
.lost-code { font-family: var(--serif); font-weight: 900; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--saffron); transform: rotate(-3deg); display: inline-block; }
.lost .stamp { margin-top: 1rem; }

/* Comments */
.talk { margin-top: 2.6rem; padding: clamp(1.2rem, 4vw, 2rem); background: var(--paper-card); border: 1px dashed var(--line); }
.talk-title, .comment-reply-title { font-size: 1.4rem; margin: 0 0 1.2rem; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: clamp(1rem, 4vw, 2.4rem); border-left: 2px solid var(--line); margin-top: 1rem; }
.note-comment { margin-bottom: 1.2rem; }
.note-comment-body { background: var(--paper); padding: 1rem 1.2rem; }
.note-comment-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.note-comment-head img { border-radius: 50%; display: block; }
.note-comment-author { font-family: var(--serif); font-weight: 700; }
.note-comment-date { font-size: 0.8rem; color: var(--muted); }
.note-comment-wait { font-size: 0.85rem; color: var(--saffron-deep); }
.note-comment-reply a { font-size: 0.85rem; font-weight: 600; }
.talk-notes, .talk-closed { font-size: 0.88rem; color: var(--muted); }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; font: inherit; color: var(--ink);
    background: #FBF6EC; border: 2px solid var(--line); border-radius: 2px; padding: 0.6rem 0.8rem;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--indigo); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-form .stamp { font-size: 1rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Footer ---------- */
.colophon {
    background-color: var(--paper-dense);
    background-image: url("images/paper-stains.jpg");
    background-repeat: no-repeat;
    background-position: right -80px top -120px;
    background-size: 520px auto;
    background-blend-mode: multiply;
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    color: var(--ink);
}
.colophon-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem 3rem; }
.colophon-col { min-width: 0; }
.colophon .widget-title { font-size: 1.15rem; margin: 0 0 0.8rem; color: var(--ink); }
.colophon .widget, .colophon .textwidget, .colophon p { color: #3A352D; font-size: 0.9rem; letter-spacing: 0.02em; line-height: 1.6; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.colophon li a { color: var(--ink); font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-decoration-style: solid; text-decoration-color: var(--ink); text-underline-offset: 3px; }
.colophon li a:hover { color: var(--saffron-deep); text-decoration-style: wavy; text-decoration-color: var(--saffron); }
.colophon a { color: var(--indigo); }
.colophon-copy { margin: 2.6rem 0 0; padding-top: 1.2rem; border-top: 1px dashed var(--line); text-align: center; font-size: 0.82rem; color: #4A4338; letter-spacing: 0.03em; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    z-index: 60;
    left: calc(var(--stripe) + 1rem);
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    flex-wrap: wrap;
    max-width: 920px;
    margin-inline: auto;
    padding: 1rem 1.4rem;
    background: var(--paper-card);
    color: var(--ink);
    border: 2px solid var(--indigo);
    box-shadow: 6px 6px 0 var(--indigo);
}
.cookie-banner-text { margin: 0; font-size: 0.88rem; line-height: 1.5; flex: 1 1 320px; min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .topnav { flex-basis: 100%; display: none; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; align-items: stretch; border-top: 1px dashed var(--line); padding-top: 0.6rem; }
    .topnav-list li + li::before { display: none; }
    .topnav-list a { display: block; padding: 0.55rem 0; font-size: 1rem; }
    .brand { flex-basis: auto; flex: 1 1 0; }

    .fs-split, .fs-split--check { grid-template-columns: minmax(0, 1fr); }
    .fs-text { max-width: 60ch; }
    .checklist-art { max-width: 420px; justify-self: center; }
    .field-book { grid-template-columns: minmax(0, 1fr); padding: 8px; }
    .field-book-page + .field-book-page { box-shadow: 0 -1px 0 rgba(138, 90, 59, .35); }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout--aside { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
    .layout--wide .content-area { width: 100%; }
    .layout--wide .card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-map-svg { margin-inline: auto; }
}
@media (max-width: 600px) {
    .shell, .shell--front { width: 90%; }
    .brand-emblem, .brand-mark, .brand-logo { width: 56px; height: 56px; }
    .brand-tagline { display: none; }
    .brand-name { font-size: 0.9rem; }
    .brand { flex: 1 1 100%; }
    .brand-text { max-width: none; }
    .masthead-row { justify-content: flex-end; }
    .trust-map { margin-inline: -4%; }
    .tm-labels text { font-size: 36px; }
    .tm-labels .tm-city { font-size: 40px; }
    .tm-note { display: none; }
    .opener-mark { white-space: normal; }
    .opener-swash { bottom: -0.12em; }
    .stamp { font-size: 1.02rem; }
    .fs { padding: 2.4rem 0; }
    .card-grid--three, .card-grid--list, .layout--wide .card-grid--list { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
    .folder { grid-template-columns: minmax(0, 1fr); padding: 1rem 1.2rem 1.1rem; }
    .folder::before { width: 7rem; }
    .ticklist li { grid-template-columns: 28px 2.2rem minmax(0, 1fr); gap: 0.7rem; font-size: 0.97rem; }
    .ticklist-num { font-size: 1.35rem; }
    .entry { padding: 1.4rem 1.1rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-link--next { grid-column: auto; }
    .colophon-cols { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { left: calc(var(--stripe) + 0.5rem); right: 0.5rem; bottom: 0.5rem; padding: 0.9rem 1rem; box-shadow: 4px 4px 0 var(--indigo); }
    .sidebar { padding: 1.3rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
