/*
Theme Name: dds_sanduskyinsider.com
Author: Anika Rao
Description: A field-notebook theme for an insider platform about residential neighborhoods, vacation homes and everyday life in India. Bottle-green cloth cover, ivory paper sheets, watercolor plates, terracotta and turmeric accents.
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: sdkins
*/

/* ---------- 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: 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: "Archivo Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-narrow-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: "Archivo Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-narrow-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: "Archivo Narrow"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/archivo-narrow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Archivo Narrow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/archivo-narrow-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: "Archivo Narrow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/archivo-narrow-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: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-latin-500-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"); 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: 600; font-display: swap; src: url("fonts/caveat-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; }

/* ---------- Tokens ---------- */
:root {
    --green: #1B3A2E;
    --green-deep: #13291F;
    --green-line: #2C4E3F;
    --paper: #F2E9D8;
    --paper-back: #E4D7BE;
    --paper-dim: #E9DDC6;
    --ink: #2B2B26;
    --muted: #6E6A5B;
    --terra: #C9622E;
    --terra-dark: #A54E21;
    --turmeric: #D9A441;
    --turmeric-soft: #EBD08E;
    --sage: #8A9B84;
    --cream: #F2E9D8;
    --head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --body: "Archivo Narrow", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
    --torn: url("images/edge-top.svg") top / 100% 14px no-repeat, linear-gradient(#000, #000) center / 100% calc(100% - 26px) no-repeat, url("images/edge-bottom.svg") bottom / 100% 14px no-repeat;
}

/* ---------- Hidden-state rules (before 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;
    background: var(--green) url("images/cloth.webp") repeat;
    color: var(--cream);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--terra); text-decoration: underline; text-decoration-color: var(--turmeric); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--terra-dark); text-decoration-color: var(--terra); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 1.4em 0 .55em; letter-spacing: .01em; hyphens: auto; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1.05rem; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .97em; }
th, td { border: 1px solid var(--sage); padding: .55em .75em; text-align: left; vertical-align: top; }
th { background: var(--paper-dim); font-family: var(--head); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: .9em; }
blockquote { margin: 1.5em 0; padding: 1.1em 1.4em; background: var(--paper-dim); border-left: 5px solid var(--terra); font-family: var(--hand); font-size: 1.45em; line-height: 1.35; color: var(--ink); }
blockquote p:last-child { margin-bottom: 0; }
code, pre { font-family: "IBM Plex Mono", Consolas, monospace; font-size: .9em; }
pre { overflow-x: auto; padding: 1em 1.2em; background: var(--green-deep); color: var(--cream); }
hr { border: 0; border-top: 2px dashed var(--sage); margin: 2em 0; }
figure { margin: 0 0 1.4em; }
figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .5em; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--turmeric); color: var(--ink); padding: .6em 1em; z-index: 100; font-family: var(--head); }
.skip-link:focus { left: 1rem; top: 1rem; }

.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn, .search-submit, .form-submit .submit, .cookie-banner-btn {
    display: inline-block;
    border: 0;
    border-radius: 0;
    background: var(--terra);
    color: var(--cream);
    font-family: var(--head);
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    padding: .7em 1.35em .7em 1.1em;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transition: background-color .15s ease, transform .15s ease;
}
.btn:hover, .search-submit:hover, .form-submit .submit:hover, .cookie-banner-btn:hover { background: var(--terra-dark); color: var(--cream); transform: translateY(-2px); }

/* ---------- Header ---------- */
.masthead { padding: 1.6rem 0 1.4rem; color: var(--cream); }
.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: inherit; min-width: 0; flex: 1 1 420px; }
.brand:hover { color: inherit; }
.brand-seal { flex: 0 0 auto; width: 92px; height: 92px; display: grid; place-items: center; color: var(--turmeric-soft); }
.brand-stamp { width: 100%; height: 100%; display: block; }
.brand-logo { width: 92px; height: 92px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 46ch; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.18; color: var(--turmeric-soft); letter-spacing: .01em; }
.brand-tagline { margin-top: .4rem; font-size: .82rem; line-height: 1.45; color: #CFC7B2; }
.nav-toggle { display: none; align-items: center; gap: .55rem; background: transparent; color: var(--cream); border: 1px solid var(--sage); padding: .5rem .8rem; font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.primary-menu li { display: flex; align-items: center; }
.primary-menu li + li::before { content: "•"; color: var(--turmeric); margin: 0 .7rem; font-size: .8rem; }
.primary-menu a { color: var(--cream); text-decoration: none; font-family: var(--head); font-weight: 500; font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; padding: .3rem 0; border-bottom: 2px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--turmeric-soft); border-bottom-color: var(--terra); }

/* ---------- Paper sheets (leaf) ---------- */
.leaf { position: relative; margin: 0 0 2.6rem; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }
.leaf::before {
    content: "";
    position: absolute;
    inset: 10px -10px -12px 12px;
    background: var(--paper-back) url("images/paper.webp") repeat;
    -webkit-mask: var(--torn);
    mask: var(--torn);
    transform: rotate(.7deg);
    z-index: 0;
}
.leaf-sheet {
    position: relative;
    z-index: 1;
    background: var(--paper) url("images/paper.webp") repeat;
    color: var(--ink);
    padding: clamp(2rem, 4.5vw, 3.6rem) clamp(1.3rem, 4vw, 3.4rem);
    -webkit-mask: var(--torn);
    mask: var(--torn);
}
.leaf-sheet::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    width: 52px;
    height: 52px;
    background: linear-gradient(315deg, var(--green) 0 49%, #CDBB98 50% 62%, #DCCDB0 100%);
    box-shadow: -3px -3px 6px rgba(0, 0, 0, .08);
}
.leaf-title {
    margin: 0 0 1.2rem;
    hyphens: manual;
    font-size: clamp(2.2rem, 7vw, 5.4rem);
    line-height: .95;
    text-transform: uppercase;
    text-align: center;
    color: var(--ink);
    letter-spacing: .005em;
}
.leaf-title--tilt { transform: rotate(2deg); transform-origin: left center; }
.tape {
    position: absolute;
    z-index: 3;
    width: 132px;
    height: 36px;
    background: rgba(217, 164, 65, .55);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    pointer-events: none;
}
.tape::before, .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, transparent 0 4px, rgba(255, 255, 255, .35) 4px 7px); }
.tape::before { left: 0; }
.tape::after { right: 0; }
.tape--tr { top: -12px; right: 3%; transform: rotate(32deg); }
.tape--bl { bottom: -14px; left: -14px; transform: rotate(38deg); }
.tape--top { top: -18px; left: 50%; margin-left: -66px; transform: rotate(-2deg); background: rgba(217, 164, 65, .85); }

/* ---------- Front container ---------- */
.shell--front { padding-top: 1rem; }

/* ---------- Block 1: atlas ---------- */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.atlas-notes { min-width: 0; }
.atlas-lead { font-family: var(--hand); font-size: 1.5rem; line-height: 1.25; color: var(--ink); transform: rotate(-2deg); margin-bottom: 1.2rem; }
.atlas-list { list-style: none; padding: 0; margin: 0; counter-reset: place; }
.atlas-list li { counter-increment: place; position: relative; padding: .55rem 0 .55rem 2.6rem; border-bottom: 1px dashed var(--sage); }
.atlas-list li::before { content: counter(place, decimal-leading-zero); position: absolute; left: 0; top: .7rem; font-family: var(--head); font-size: .85rem; color: var(--muted); letter-spacing: .1em; }
.atlas-place { display: block; font-family: var(--hand); font-size: 1.55rem; font-weight: 600; line-height: 1.1; color: var(--terra); }
.atlas-text { display: block; font-size: .95rem; line-height: 1.5; color: var(--ink); }
.atlas-map { position: relative; margin: 0; min-width: 0; }
.atlas-map img { display: block; width: 100%; height: auto; aspect-ratio: 1120 / 940; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.pin::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(242, 233, 216, .85); }
.pin-label { position: absolute; left: 14px; top: -.9em; font-family: var(--hand); font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.7rem); line-height: 1.2; color: var(--ink); white-space: nowrap; }
.pin--left .pin-label { left: auto; right: 14px; }
.seal { color: var(--turmeric); }
.seal--checked { position: absolute; right: -2%; bottom: 14%; width: clamp(92px, 16vw, 150px); height: auto; transform: rotate(-12deg); opacity: .92; }
.seal text { font-family: var(--head); font-weight: 700; }

/* ---------- Block 2: anatomy ---------- */
.anatomy-lead { max-width: 62ch; margin: 0 auto 1.6rem; text-align: center; font-size: 1rem; color: var(--muted); }
.anatomy { position: relative; margin: 0; padding-right: 0; }
.anatomy-pic { position: relative; }
.anatomy-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1234 / 588; }
.anatomy-dot { position: absolute; left: var(--x); top: var(--y); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--terra); color: var(--cream); font-family: var(--head); font-size: .8rem; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--paper); }
.anatomy-lines { display: none; }
.anatomy-labels { list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: part; display: grid; gap: .9rem; }
.anatomy-labels li { counter-increment: part; position: relative; padding-left: 2.4rem; min-width: 0; }
.anatomy-labels li::before { content: counter(part); position: absolute; left: 0; top: .1rem; width: 26px; height: 26px; border-radius: 50%; background: var(--terra); color: var(--cream); font-family: var(--head); font-size: .8rem; display: grid; place-items: center; }
.anatomy-labels strong { display: block; font-family: var(--head); font-weight: 500; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .04em; line-height: 1.25; color: var(--ink); }
.anatomy-labels span { display: block; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.ruler { display: none; }

/* ---------- Latest notes ---------- */
.notes-board { margin: 0 0 2.8rem; }
.notes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.notes-title { margin: 0; display: inline-block; background: var(--paper) url("images/paper.webp"); color: var(--ink); text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; padding: .3em .55em .25em; transform: rotate(-1.2deg); box-shadow: 0 6px 12px rgba(0, 0, 0, .3); }
.notes-all { font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; color: var(--turmeric-soft); text-decoration-color: var(--terra); }
.notes-all:hover { color: var(--cream); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--paper) url("images/paper.webp");
    color: var(--ink);
    border: 1px solid var(--sage);
    padding: .8rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:nth-child(3n+1) { transform: rotate(-.6deg); }
.card:nth-child(3n+3) { transform: rotate(.5deg); }
.card:hover { transform: translateY(-4px) rotate(0); box-shadow: 0 12px 20px rgba(0, 0, 0, .32); }
.card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 36px; height: 36px; background: linear-gradient(315deg, var(--green) 0 49%, #CDBB98 50% 62%, #DCCDB0 100%); }
.card-thumb { display: block; border: 1px solid rgba(138, 155, 132, .6); }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1rem .3rem .4rem; min-width: 0; }
.card-flag { align-self: flex-start; background: var(--turmeric); color: var(--ink); font-family: var(--head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .15em .6em; margin-bottom: .5rem; }
.card-title { margin: 0 0 .5rem; font-size: 1.35rem; line-height: 1.2; text-transform: uppercase; font-weight: 500; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--terra); }
.card-excerpt { flex: 1; font-size: .93rem; line-height: 1.55; color: var(--ink); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; padding-right: 1.6rem; }
.card-date { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card .btn { font-size: .82rem; }

/* ---------- Block 3: day ---------- */
.leaf--day .leaf-sheet { padding: clamp(2rem, 3.6vw, 2.8rem) clamp(1.3rem, 3.6vw, 3rem); }
.daybook { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.daybook-title { margin: 0; hyphens: manual; overflow-wrap: normal; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: .98; text-transform: uppercase; color: var(--ink); }
.daybook-hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.daybook-hours li { border-left: 3px solid var(--sage); padding: .1rem 0 .1rem 1rem; min-width: 0; }
.daybook-hours time { display: block; font-family: var(--head); font-weight: 500; font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.daybook-hours p { margin: .3rem 0 0; font-family: var(--hand); font-size: 1.3rem; line-height: 1.2; color: var(--ink); }

/* ---------- Block 4: glossary ---------- */
.lexicon { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.lexicon-head { position: relative; min-width: 0; }
.lexicon-title { margin: 0; hyphens: manual; overflow-wrap: normal; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: .98; text-transform: uppercase; color: var(--ink); }
.seal-box { display: inline-block; margin: -.6rem 0 0 2.2rem; padding: .1em .45em; border: 4px solid var(--turmeric); color: var(--turmeric); font-family: var(--head); font-weight: 700; font-size: 1.7rem; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-14deg); opacity: .9; }
.lexicon-lead { margin: 1rem 0 0; font-size: .95rem; color: var(--muted); max-width: 32ch; }
.lexicon-terms { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem 2.4rem; }
.lexicon-terms div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; min-width: 0; }
.lexicon-terms dt { font-family: var(--head); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1; text-transform: uppercase; color: var(--terra); }
.lexicon-terms dd { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ink); align-self: center; }

/* ---------- Inner pages ---------- */
.crumbs { font-family: var(--head); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #CFC7B2; margin: .4rem 0 1.4rem; }
.crumbs a { color: var(--turmeric-soft); text-decoration: none; border-bottom: 1px solid rgba(217, 164, 65, .5); }
.crumbs a:hover { color: var(--cream); }
.crumbs-sep { color: var(--terra); margin: 0 .35rem; }
.layout-with-sidebar { display: block; padding-bottom: 3rem; }
.layout-single { display: block; padding-bottom: 3rem; }
.layout-single .content-area { max-width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.list-head { margin-bottom: 1.6rem; }
.list-title { margin: 0 0 .4rem; font-size: clamp(2.2rem, 5vw, 3.8rem); text-transform: uppercase; color: var(--turmeric-soft); line-height: 1; }
.list-lead { color: #D6CEB9; max-width: 60ch; margin: 0; }
.card-grid--list { grid-template-columns: minmax(0, 1fr); }
.empty-state { color: var(--cream); font-family: var(--hand); font-size: 1.5rem; }
.empty-sheet { background: var(--paper) url("images/paper.webp"); color: var(--ink); padding: 1.8rem 2rem; }
.empty-sheet .empty-state { color: var(--ink); }

.entry-sheet {
    position: relative;
    background: var(--paper) url("images/paper.webp");
    color: var(--ink);
    padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1.3rem, 4vw, 3.2rem);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .3);
    margin-bottom: 2rem;
}
.entry-sheet::after { content: ""; position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; background: linear-gradient(315deg, var(--green) 0 49%, #CDBB98 50% 62%, #DCCDB0 100%); }
.entry-head { border-bottom: 2px solid var(--sage); padding-bottom: 1rem; margin-bottom: 1.6rem; }
.entry-title { margin: 0; text-transform: uppercase; line-height: 1.05; color: var(--ink); }
.entry-meta { margin: .6rem 0 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.entry-meta a { color: var(--terra); }
.entry-meta-sep { margin: 0 .4rem; }
.entry-cover { margin: 0 0 1.8rem; padding: .7rem; border: 1px solid var(--sage); background: var(--paper-dim); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.08rem; line-height: 1.75; hyphens: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { color: var(--ink); }
.entry-content h2 { text-transform: uppercase; border-bottom: 3px solid var(--turmeric); display: inline-block; padding-bottom: .1em; }
.entry-content ul li::marker { color: var(--terra); }
.entry-content ol li::marker { color: var(--terra); font-family: var(--head); }
.entry-content img { display: block; }
.entry-tags { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { font-size: .85rem; text-decoration: none; border: 1px solid var(--sage); padding: .15em .6em; color: var(--ink); }
.entry-tags a:hover { background: var(--terra); color: var(--cream); border-color: var(--terra); }
.page-links { margin-top: 1.4rem; font-family: var(--head); }

.post-navigation { margin: 0 0 2rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.post-navigation a { display: block; text-decoration: none; background: rgba(242, 233, 216, .08); border: 1px solid var(--green-line); padding: 1rem 1.2rem; color: var(--cream); height: 100%; }
.post-navigation a:hover { border-color: var(--turmeric); }
.post-navigation .nav-next { text-align: right; }
.nav-dir { display: block; font-family: var(--head); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--turmeric); }
.nav-name { display: block; font-family: var(--head); font-size: 1.1rem; line-height: 1.3; }

/* ---------- Sidebar ---------- */
.sidebar { min-width: 0; margin-top: 2rem; }
.sidebar .widget { background: var(--paper-dim) url("images/paper.webp"); color: var(--ink); border-top: 6px solid var(--terra); padding: 1.4rem 1.5rem; margin-bottom: 1.6rem; box-shadow: 0 6px 12px rgba(0, 0, 0, .25); }
.sidebar .widget-title { margin: 0 0 .9rem; font-size: 1.3rem; text-transform: uppercase; color: var(--ink); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .5rem 0; border-bottom: 1px dashed var(--sage); line-height: 1.4; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--terra); }
.sidebar .widget .post-date { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.sidebar .widget p { color: var(--ink); }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 2.2rem 0 0; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; background: var(--paper); color: var(--ink); font-family: var(--head); font-size: .95rem; text-decoration: none; border: 1px solid var(--sage); transition: background-color .15s ease, color .15s ease; }
.pager a.page-numbers:hover { background: var(--turmeric); color: var(--ink); }
.pager .page-numbers.current { background: var(--terra); color: var(--cream); border-color: var(--terra); }
.pager .page-numbers.dots { background: none; border: 0; color: var(--cream); min-width: auto; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 0; margin: 1rem 0 1.4rem; max-width: 520px; }
.search-field { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: .65rem .9rem; border: 1px solid var(--sage); border-right: 0; background: #FBF6EC; color: var(--ink); border-radius: 0; }
.search-submit { clip-path: none; }
.sidebar .search-form { margin: 0; }

/* ---------- Comments ---------- */
.comments-sheet { background: var(--paper-dim) url("images/paper.webp"); color: var(--ink); padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.3rem, 3vw, 2.4rem); margin-bottom: 2rem; }
.comments-title, .comment-reply-title { margin: 0 0 1.2rem; text-transform: uppercase; font-size: 1.6rem; color: var(--ink); }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.6rem; margin: 0; border-left: 2px solid var(--sage); }
.note-comment-body { padding: 1rem 0; border-bottom: 1px dashed var(--sage); }
.note-comment-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .4rem; }
.note-comment-meta img { border-radius: 50%; display: block; }
.note-comment-author { font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.note-comment-meta time { font-size: .8rem; color: var(--muted); letter-spacing: .1em; }
.note-comment-wait { font-style: italic; color: var(--terra-dark); }
.note-comment-reply a { font-family: var(--head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.comment-form label { display: block; font-family: var(--head); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: inherit; padding: .6rem .8rem; border: 1px solid var(--sage); background: #FBF6EC; color: var(--ink); border-radius: 0; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; text-transform: none; font-family: var(--body); letter-spacing: 0; font-size: .9rem; }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--muted); }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost-code { font-family: var(--head); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: .9; color: var(--terra); margin: 0 0 .3rem; }

/* ---------- Footer ---------- */
.colophon { background: rgba(10, 24, 18, .35); border-top: 2px solid var(--green-line); padding: 3rem 0 0; margin-top: 1rem; color: #DCD3BF; }
.colophon-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1rem; }
.colophon .widget-title { margin: 0 0 .8rem; font-size: 1.45rem; color: var(--turmeric-soft); }
.colophon .widget, .colophon .widget p, .colophon .textwidget { color: #DCD3BF; font-size: .95rem; line-height: 1.6; }
.colophon .widget a { color: var(--turmeric-soft); text-decoration-color: var(--terra); }
.colophon .widget a:hover { color: var(--cream); }
.colophon .widget ul { list-style: none; margin: 0; padding: 0; }
.colophon .widget li { margin: 0 0 .35rem; }
.colophon .widget_nav_menu a { font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--cream); text-decoration: none; }
.colophon .widget_nav_menu a:hover { color: var(--turmeric-soft); }
.colophon .widget .post-date { color: #B9B19C; }
.colophon-base { border-top: 1px solid var(--green-line); margin-top: 2rem; padding: 1.2rem 0 1.6rem; }
.colophon-copy { margin: 0; font-family: var(--head); font-weight: 500; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--turmeric-soft); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    flex-wrap: wrap;
    max-width: 760px;
    margin-inline: auto;
    padding: 1.1rem 1.4rem;
    background: var(--paper) url("images/paper.webp");
    color: var(--ink);
    border: 1px solid var(--sage);
    border-top: 6px solid var(--turmeric);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.cookie-banner-text { margin: 0; flex: 1 1 320px; font-size: .95rem; line-height: 1.5; min-width: 0; }

/* ---------- ≥600px ---------- */
@media (min-width: 600px) {
    .card-grid, .card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .daybook-hours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lexicon-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shell--front { width: min(85%, 1180px); }
}

/* ---------- ≥960px ---------- */
@media (min-width: 960px) {
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .card-grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 0 6%; align-items: start; }
    .sidebar { margin-top: 0; }
    .atlas { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 2rem; }
    .atlas-notes { padding-right: .5rem; }
    .anatomy { padding-right: 3.2rem; }
    .anatomy-lines { display: block; position: absolute; inset: 0 3.2rem 0 0; width: calc(100% - 3.2rem); height: 100%; overflow: visible; pointer-events: none; }
    .anatomy-lines polyline { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; }
    .anatomy-pic { width: 68%; }
    .anatomy-dot { font-size: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--ink); box-shadow: 0 0 0 3px rgba(242, 233, 216, .9); }
    .anatomy-labels { position: absolute; top: 0; bottom: 0; left: calc(70% - 2.24rem); right: 3.2rem; margin: 0; display: block; }
    .anatomy-labels li { position: absolute; left: 0; right: 0; top: var(--y); transform: translateY(-.8rem); padding-left: .8rem; }
    .anatomy-labels li::before { display: none; }
    .anatomy-labels strong { font-size: 1.25rem; }
    .ruler {
        display: block;
        position: absolute;
        top: 12%;
        bottom: 10%;
        right: clamp(1.3rem, 2.6vw, 2.4rem);
        width: 34px;
        border: 2px solid var(--ink);
        background:
            repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 50px) left top / 100% 100% no-repeat,
            repeating-linear-gradient(180deg, var(--ink) 0 1.5px, transparent 1.5px 10px) left top / 45% 100% no-repeat,
            transparent;
        opacity: .75;
    }
    .daybook { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1.6rem; align-items: center; }
    .daybook-hours { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
    .daybook-hours li { padding: .2rem 1rem; }
    .lexicon { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 2.6rem; align-items: center; }
    .lexicon-terms div { grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; }
    .colophon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 959px) {
    .anatomy-labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .leaf-title--tilt { transform: rotate(1deg); }
    .seal-box { margin: .8rem 0 0 1rem; font-size: 1.4rem; }
}
@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { flex: 1 1 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .primary-menu { flex-direction: column; align-items: stretch; border-top: 1px solid var(--green-line); }
    .primary-menu li { border-bottom: 1px solid var(--green-line); }
    .primary-menu li + li::before { display: none; }
    .primary-menu a { display: block; width: 100%; padding: .75rem 0; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .masthead { padding: 1.1rem 0; }
    .brand { flex-basis: auto; gap: .8rem; }
    .brand-seal, .brand-logo { width: 64px; height: 64px; }
    .brand-tagline { display: none; }
    .leaf-sheet { padding: 1.9rem 1.3rem 2.4rem; }
    .leaf--day .leaf-sheet { padding: 2rem 1.3rem 2.4rem; }
    .layout-single .content-area { max-width: none; }
    .anatomy-labels { grid-template-columns: minmax(0, 1fr); }
    .tape--bl { left: -6px; }
    .leaf::before { inset: 8px -3px -10px 8px; transform: rotate(.4deg); }
    .tape--tr { right: 2%; }
    .entry-sheet { padding: 1.6rem 1.2rem 2.4rem; }
    .comments-sheet { padding: 1.4rem 1.2rem; }
    .empty-sheet { padding: 1.4rem 1.2rem; }
    .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; }
    .pin-label { font-size: 1rem; }
    .seal--checked { right: 0; bottom: 2%; }
}
