/*
Theme Name: dds_solariconset.com
Theme URI: https://solariconset.com/
Author: Ananya Sharma
Description: Blueprint-style theme for a visual reference hub on solar-ready floor plans, roof diagrams and symbol libraries for Indian homes.
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: solics
*/

/* ---------- Tokens ---------- */
:root {
    --ink: #12213D;
    --deep: #0C1728;
    --night: #101C33;
    --grid: #2A3F63;
    --grid-soft: rgba(42, 63, 99, .55);
    --paper: #F3EFE3;
    --paper-2: #EAE4D3;
    --sun: #F2B705;
    --ember: #E8622C;
    --text: #F3EFE3;
    --muted: #8FA3C4;
    --text-paper: #12213D;
    --muted-paper: #6B7A91;
    --line: #3B5680;
    --line-paper: #C9BFA8;
    --side: #172A4C;
    --f-head: 'Barlow Semi Condensed', 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif;
    --f-body: 'Source Sans 3', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --f-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

/* ---------- Hidden rules first (A11) ---------- */
.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%; }
@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.6;
    color: var(--text);
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(59, 86, 128, .38) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 86, 128, .38) 1px, transparent 1px),
        linear-gradient(var(--grid-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 1.4em 0 .55em;
    letter-spacing: .01em;
}
p { margin: 0 0 1em; }
p, li, dd, h1, h2, h3, h4, td, th, figcaption, blockquote {
    overflow-wrap: break-word;
    hyphens: auto;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--sun); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

.sr-only {
    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 {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--sun); color: var(--ink); padding: .6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* single width container (A12.7) */
.shell { width: 92%; max-width: 1320px; margin-left: auto; margin-right: auto; }
@media (min-width: 960px) { .shell { width: 85%; } }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .6em;
    padding: .62em 1.05em;
    border: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .04em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); transform: translate(2px, -2px); }
.btn--sun { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.btn--sun:hover { background: var(--paper); border-color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--sun); color: var(--ink); }
.arrow-ico { display: block; flex: none; transition: transform .15s; }
.btn:hover .arrow-ico, .link-arrow:hover .arrow-ico { transform: translateX(3px); }
.link-arrow {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--f-head); font-weight: 500; letter-spacing: .04em;
    text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15em;
}

/* ---------- Header ---------- */
.masthead { background: var(--deep); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.masthead-frame {
    display: flex; align-items: stretch; justify-content: space-between; gap: 0;
    border: 1px solid var(--line);
    position: relative;
}
.masthead-frame::before, .masthead-frame::after {
    content: ""; position: absolute; left: 50%; width: 1px; height: 8px; background: var(--muted);
}
.masthead-frame::before { top: -14px; }
.masthead-frame::after { bottom: -14px; }
.brand {
    flex: 1 1 auto; min-width: 0;
    display: flex; align-items: center; gap: 1.1rem;
    padding: 1rem 1.6rem;
}
.brand-mark { flex: none; display: block; line-height: 0; text-decoration: none; }
.brand-svg { display: block; width: 84px; height: auto; }
.brand-logo { display: block; max-width: 84px; max-height: 84px; width: auto; height: auto; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--f-head); font-weight: 500;
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    line-height: 1.2; color: var(--text); text-decoration: none;
}
.brand-name:hover { color: var(--sun); }
.brand-desc {
    margin: .35rem 0 0; font-size: .92rem; line-height: 1.4; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.topnav {
    flex: 0 0 auto; display: flex; align-items: center;
    border-left: 1px solid var(--line);
    padding: 1rem 1.6rem;
}
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 2rem; }
.topnav-list a {
    display: inline-block; padding: .35rem 0;
    font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; letter-spacing: .02em;
    color: var(--text); text-decoration: none; border-bottom: 1px solid transparent;
}
.topnav-list a:hover { color: var(--sun); border-bottom-color: var(--sun); }
.topnav-list .current-menu-item > a, .topnav-list .current_page_item > a { border-bottom: 1px solid var(--sun); }
.topnav-toggle {
    display: none; align-items: center; gap: .6rem;
    background: transparent; color: var(--text); border: 1px solid var(--line);
    padding: .55rem .9rem; font-family: var(--f-head); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.topnav-bars, .topnav-bars::before, .topnav-bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: "";
}
.topnav-bars::before { position: absolute; top: -6px; }
.topnav-bars::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
    .masthead-frame { flex-direction: column; }
    .masthead-frame::before, .masthead-frame::after { display: none; }
    .topnav { border-left: 0; border-top: 1px solid var(--line); flex-wrap: wrap; padding: .8rem 1.2rem; }
    .brand { padding: 1rem 1.2rem; }
}
@media (max-width: 600px) {
    .brand-svg { width: 60px; }
    .topnav-toggle { display: inline-flex; }
    .topnav-list { display: none; width: 100%; flex-direction: column; gap: 0; margin-top: .6rem; }
    .topnav-list.is-open { display: flex; }
    .topnav-list li { border-top: 1px solid var(--line); }
    .topnav-list a { display: block; padding: .7rem 0; }
}

/* ---------- Hero sheet ---------- */
.hero { padding: 1.4rem 0 1.6rem; }
.hero-sheet {
    position: relative;
    border: 1px solid var(--line);
    padding: 2.4rem;
}
.hero-inner {
    position: relative;
    border: 1px solid var(--line);
    padding: 3rem 2.4rem 2.4rem;
}
.cross { position: absolute; width: 14px; height: 14px; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--muted); }
.cross::before { left: 6px; top: 0; width: 1px; height: 14px; }
.cross::after { top: 6px; left: 0; height: 1px; width: 14px; }
.cross--tl { left: -7px; top: -7px; }
.cross--tr { right: -7px; top: -7px; }
.cross--bl { left: -7px; bottom: -7px; }
.cross--br { right: -7px; bottom: -7px; }
.hero-title {
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
    font-size: clamp(2.3rem, 6.6vw, 5.6rem);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: .015em;
    color: var(--paper);
    max-width: 16ch;
}
.hero-title-line { display: block; }
.hero-lead {
    margin: 1.2rem auto 2rem; text-align: center;
    font-size: clamp(1.05rem, 1.7vw, 1.45rem); color: var(--paper); max-width: 46ch;
}
.hero-compass {
    position: relative; margin: 1rem 0 0;
    width: 84px; aspect-ratio: 1 / 1;
}
@media (min-width: 1200px) {
    .hero-compass { position: absolute; left: 2rem; bottom: 2rem; margin: 0; width: 96px; }
}
.hero-compass img { display: block; position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
.cmp {
    position: absolute; font-family: var(--f-head); font-size: .95rem; color: var(--paper); line-height: 1;
    transform: translate(-50%, -50%);
}
.cmp--n { left: 50%; top: 4px; }
.cmp--s { left: 50%; top: calc(100% - 4px); }
.cmp--e { left: calc(100% - 3px); top: 50%; }
.cmp--w { left: 3px; top: 50%; }
@media (max-width: 960px) {
    .hero-sheet { padding: 1rem; }
    .hero-inner { padding: 2rem 1rem 1.4rem; }
}

/* ---------- Drawings with HTML labels ---------- */
.drawing { position: relative; margin: 0; container-type: inline-size; }
.drawing img { display: block; width: 100%; height: auto; }
.drawing--roof { max-width: 920px; margin: 0 auto; border: 1px solid var(--line); outline: 1px solid rgba(59, 86, 128, .45); outline-offset: 5px; }
.dim, .callout, .sunlabel, .room {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    line-height: 1.1;
    pointer-events: none;
}
.dim {
    font-family: var(--f-mono);
    font-size: clamp(7px, 1.35cqw, 13px);
    color: var(--paper);
    background: var(--ink);
    padding: 0 .35em;
}
.dim--v { transform: translate(-50%, -50%) rotate(-90deg); }
.dim--night { background: var(--night); }
.dim--paper { background: var(--paper); color: var(--text-paper); font-size: clamp(7px, 2.2cqw, 12px); }
.callout {
    font-family: var(--f-mono);
    font-size: clamp(7px, 1.3cqw, 12px);
    color: var(--muted);
    background: var(--ink);
    padding: .1em .4em;
}
.callout--light {
    font-family: var(--f-body); font-weight: 600;
    font-size: clamp(9px, 2.6cqw, 17px);
    color: var(--paper);
    background: transparent;
    white-space: nowrap;
    padding: 0;
}
.callout--left { transform: translate(0, -50%); }
.stamp {
    position: absolute; right: 0; bottom: 0;
    width: 27%;
    display: flex; flex-direction: column;
    border: 1px solid var(--line);
    background: var(--ink);
    font-family: var(--f-mono);
    font-size: clamp(6px, 1.15cqw, 11px);
    color: var(--muted);
    text-transform: uppercase; letter-spacing: .06em;
}
.stamp-row { padding: .45em .7em; border-bottom: 1px solid var(--line); }
.stamp-row--last { border-bottom: 0; }
.stamp-row b { color: var(--sun); font-weight: 500; }
.sunlabel {
    font-family: var(--f-mono);
    font-size: clamp(8px, 2.5cqw, 13px);
    color: var(--ember);
    background: var(--paper);
    padding: 0 .3em;
}
.sunlabel--v { transform: translate(-50%, -50%) rotate(-90deg); }

/* ---------- Panels (front sections) ---------- */
.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
}
@media (min-width: 960px) {
    .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.duo > * { min-width: 0; }
.panel {
    position: relative;
    padding: 2.2rem 2.2rem 2.4rem;
    border: 1px solid var(--line);
}
.panel--paper { background: var(--paper); color: var(--text-paper); border-color: var(--line-paper); }
.panel--night { background: var(--night); color: var(--text); }
.panel--sun { background: var(--sun); color: var(--ink); border-color: #C99A06; }
.panel--grid { background: rgba(12, 23, 40, .35); }
.sec-head {
    margin: 0 0 1.4rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid currentColor;
    font-weight: 500;
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
    text-transform: uppercase;
    letter-spacing: .07em;
    display: flex; align-items: baseline; gap: .55em;
}
.panel--paper .sec-head { border-bottom-color: var(--line-paper); }
.panel--night .sec-head, .panel--grid .sec-head { border-bottom-color: var(--line); }
.panel--sun .sec-head { border-bottom-color: rgba(18, 33, 61, .45); }
.sec-num { font-family: var(--f-mono); font-size: .62em; letter-spacing: 0; padding: .1em .4em; border: 1px solid currentColor; }
.panel--paper .sec-num { color: var(--ember); }
.panel--night .sec-num, .panel--grid .sec-num { color: var(--sun); }
.panel-lead { max-width: 60ch; color: var(--muted-paper); }

/* Symbols */
.symbol-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1.2rem;
}
.symbol { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.symbol-frame {
    display: block; width: 100%; max-width: 132px;
    border: 1px solid var(--line-paper);
    background: var(--paper);
    transition: transform .15s, box-shadow .15s;
}
.symbol-frame img { display: block; width: 100%; height: auto; aspect-ratio: 288 / 291; object-fit: cover; }
.symbol:hover .symbol-frame { transform: translate(2px, -2px); box-shadow: -3px 3px 0 var(--sun); }
.symbol-name { margin-top: .6rem; font-family: var(--f-head); font-size: 1.12rem; font-weight: 500; line-height: 1.2; }
.symbol-code { font-family: var(--f-mono); font-size: .72rem; color: var(--muted-paper); letter-spacing: .05em; }

@media (min-width: 600px) { .symbol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .symbol-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem 1rem; } }

/* Anatomy */
.drawing--section { margin-top: .4rem; }
.anatomy-notes { margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem 1.4rem; }
.anatomy-notes div { border-top: 1px solid var(--line); padding-top: .7rem; min-width: 0; }
.anatomy-notes dt { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--sun); font-size: .95rem; }
.anatomy-notes dd { margin: .25rem 0 0; color: var(--muted); font-size: .96rem; line-height: 1.5; }

/* Latest */
.latest { margin-top: 1.6rem; margin-bottom: 1.6rem; }
.card-grid.card-grid--front { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .card-grid.card-grid--front { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .card-grid.card-grid--front { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.latest-more { margin: 1.6rem 0 0; text-align: right; }
.empty-note { color: var(--muted); }

/* Orientation */
.orient-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
@media (min-width: 600px) and (max-width: 959px), (min-width: 1280px) {
    .orient-body { grid-template-columns: minmax(0, 3fr) minmax(0, 1.25fr); align-items: start; }
}
.orient-side { min-width: 0; font-size: .97rem; color: var(--text-paper); }
.orient-compass { position: relative; width: 74px; margin: 0 0 1rem; padding-top: 1.3rem; }
.orient-compass img { display: block; width: 100%; height: auto; }
.cmp-n { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-family: var(--f-head); font-size: 1.15rem; line-height: 1; }
.legend { list-style: none; margin: 1.2rem 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: .7rem; margin: 0 0 .55rem; font-size: .92rem; line-height: 1.35; }
.legend-key { flex: none; width: 30px; height: 18px; border: 1px solid var(--ink); }
.legend-key--hatch { background: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 5px); }
.legend-key--line { border: 0; height: 2px; background: var(--sun); }
.legend-key--plain { background: var(--paper); }
.scalebar { margin-top: 1.4rem; max-width: 190px; }
.scalebar-track { display: flex; height: 8px; border: 1px solid var(--ink); }
.scalebar-track i { flex: 1; }
.scalebar-track i:nth-child(odd) { background: var(--ink); }
.scalebar-nums { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .72rem; margin-top: .3rem; }

/* Layouts */
.layout-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 600px) { .layout-row { grid-template-columns: minmax(0, 1fr); max-width: 300px; margin: 0 auto; } }
.layout-plan { margin: 0; min-width: 0; }
.layout-sheet { position: relative; container-type: inline-size; }
.layout-sheet img { display: block; width: 100%; height: auto; }
.room {
    font-family: var(--f-mono);
    font-size: clamp(7px, 7cqw, 12px);
    color: var(--ink);
    background: var(--sun);
    padding: 0 .2em;
}
.layout-plan figcaption {
    margin-top: .8rem; padding-top: .6rem; border-top: 1px solid rgba(18, 33, 61, .45);
    display: flex; flex-direction: column; gap: .15rem; font-size: .92rem; line-height: 1.35;
}
.layout-plan figcaption b { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }
.layout-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0 0; font-size: .95rem; border: 1px solid var(--ink); }
.layout-table th, .layout-table td { border: 1px solid rgba(18, 33, 61, .55); padding: .5rem .7rem; text-align: left; }
.layout-table thead th { background: var(--ink); color: var(--sun); font-family: var(--f-head); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .88rem; border-color: var(--ink); }
.layout-table tbody th { font-family: var(--f-head); font-weight: 600; }
.layout-table td { font-family: var(--f-mono); font-size: .86rem; }
.layouts-note { margin: 1.6rem 0 0; padding: 1rem 1.2rem; border: 1px solid rgba(18, 33, 61, .45); font-size: .97rem; }

@media (max-width: 600px) {
    .panel { padding: 1.5rem 1.2rem 1.7rem; }
    .duo { gap: 1.2rem; }
}

/* ---------- Cards (A8, A10) ---------- */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
@media (min-width: 600px) {
    .card-grid--2, .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
    display: flex; flex-direction: column;
    min-width: 0;
    background: var(--paper);
    color: var(--text-paper);
    border: 1px solid var(--line);
    padding: .7rem;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translate(3px, -3px); box-shadow: -5px 5px 0 var(--sun); }
.card-thumb { position: relative; border: 1px solid var(--line); background: var(--ink); }
.card-thumb a { display: block; line-height: 0; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.card-pin {
    position: absolute; left: .6rem; top: .6rem;
    background: var(--sun); color: var(--ink);
    font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
    padding: .25em .55em;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1rem .45rem .35rem; min-width: 0; }
.card-title { margin: 0 0 .55rem; font-weight: 500; font-size: 1.4rem; line-height: 1.18; }
.card-title a { text-decoration: none; color: var(--text-paper); }
.card-title a:hover { color: var(--ember); }
.card-excerpt { font-size: .97rem; color: var(--muted-paper); line-height: 1.5; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: var(--text-paper); }
.card-foot { margin-top: auto; padding-top: .8rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.card-date { font-family: var(--f-mono); font-size: .8rem; color: var(--muted-paper); }
.card-btn { font-size: .95rem; padding: .45em .8em; color: var(--text-paper); }
.card-btn:hover { color: var(--ink); }

/* ---------- Inner pages ---------- */
.page-wrap { padding: 1.4rem 0 3rem; }
.crumbs {
    font-family: var(--f-mono); font-size: .8rem; letter-spacing: .03em;
    color: var(--muted); margin: .4rem 0 1.4rem;
    padding: .6rem .9rem; border: 1px solid var(--line); background: rgba(12, 23, 40, .5);
}
.crumbs a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--sun); border-bottom-color: var(--sun); }
.crumbs-sep { color: var(--sun); margin: 0 .25em; }

.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 0 6%; }
}
.layout-with-sidebar > * { min-width: 0; }
.layout-single { display: block; }
.layout-single > .content-area { width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 960px) { .layout-single > .content-area { width: 85%; } }

.page-head { margin: 0 0 1.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.page-head-num { font-family: var(--f-mono); font-size: .78rem; color: var(--sun); text-transform: uppercase; letter-spacing: .1em; }
.page-title { margin: .3rem 0 .4rem; font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.4rem); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.page-sub { color: var(--muted); max-width: 60ch; margin: 0; }

.sheet {
    position: relative;
    background: var(--paper);
    color: var(--text-paper);
    border: 1px solid var(--line-paper);
    padding: 2.4rem 2.6rem;
    margin-bottom: 1.8rem;
}
.sheet::after {
    content: ""; position: absolute; inset: 8px; border: 1px solid var(--line-paper); pointer-events: none;
}
.sheet > * { position: relative; z-index: 1; }
.sheet a { color: var(--text-paper); }
.sheet a:hover { color: var(--ember); }
.sheet-head { margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-paper); }
.sheet-title { margin: 0; font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; }
.sheet-meta { margin: .7rem 0 0; font-family: var(--f-mono); font-size: .82rem; color: var(--muted-paper); display: flex; flex-wrap: wrap; gap: .5rem; }
.sheet-meta-sep { color: var(--ember); }
.sheet-cover { margin: 0 0 1.6rem; border: 1px solid var(--line-paper); }
.sheet-cover img { display: block; width: 100%; height: auto; }
.sheet-tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sheet-tags a { font-family: var(--f-mono); font-size: .8rem; text-decoration: none; border: 1px solid var(--line-paper); padding: .25em .6em; }
@media (max-width: 600px) {
    .sheet { padding: 1.6rem 1.3rem; }
    .sheet::after { inset: 5px; }
}

/* entry typography */
.entry { font-size: 1.08rem; line-height: 1.7; }
.entry h2 { font-size: 1.8rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 500; padding-bottom: .4rem; border-bottom: 1px solid var(--line-paper); }
.entry h3 { font-size: 1.45rem; font-weight: 600; }
.entry h4 { font-size: 1.2rem; }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--ember); }
.entry ol li::marker { font-family: var(--f-mono); color: var(--ember); }
.entry img { display: block; height: auto; }
.entry figure { margin: 1.6rem 0; }
.entry figcaption { font-family: var(--f-mono); font-size: .8rem; color: var(--muted-paper); margin-top: .5rem; }
.entry blockquote {
    margin: 1.6rem 0; padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--sun); background: var(--paper-2);
    font-size: 1.15rem; font-style: italic;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .97rem; border: 1px solid var(--text-paper); }
.entry th, .entry td { border: 1px solid var(--line-paper); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.entry th { background: var(--ink); color: var(--paper); font-family: var(--f-head); font-weight: 500; letter-spacing: .04em; border-color: var(--ink); }
.entry pre { overflow-x: auto; background: var(--ink); color: var(--paper); padding: 1rem 1.2rem; font-family: var(--f-mono); font-size: .9rem; }
.entry code { font-family: var(--f-mono); font-size: .9em; background: var(--paper-2); padding: .05em .3em; }
.entry pre code { background: none; padding: 0; }
.entry hr { border: 0; border-top: 1px dashed var(--line-paper); margin: 2rem 0; }
.entry .alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.entry .alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry::after { content: ""; display: table; clear: both; }

.post-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.8rem; }
.post-step {
    display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); text-decoration: none;
    font-family: var(--f-head); font-size: 1.1rem; line-height: 1.25; background: rgba(12, 23, 40, .45);
}
.post-step span { display: block; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sun); margin-bottom: .3rem; }
.post-step--next { text-align: right; }
.post-step:hover { border-color: var(--sun); }

/* ---------- Pagination (type => plain) ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; 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;
    border: 1px solid var(--line);
    font-family: var(--f-mono); font-size: .9rem; color: var(--paper); text-decoration: none;
    background: rgba(12, 23, 40, .5);
}
.pager a.page-numbers:hover { border-color: var(--sun); color: var(--sun); }
.pager .page-numbers.current { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; }
.sheet .pager .page-numbers, .pager--inner .post-page-numbers { color: var(--text-paper); background: transparent; border-color: var(--line-paper); }
.pager--inner .post-page-numbers { display: inline-flex; min-width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; border: 1px solid var(--line-paper); text-decoration: none; }
.pager--inner .current { background: var(--ink); color: var(--paper); }

/* ---------- Sidebar & widgets ---------- */
.sidebar { min-width: 0; }
.sidebar .wbox {
    background: var(--side);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
}
.wbox-title {
    margin: 0 0 1rem; padding-bottom: .6rem;
    font-weight: 500; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em;
    border-bottom: 1px solid var(--line);
}
.sidebar .wbox-title { color: var(--paper); }
.sidebar .wbox a { color: var(--paper); text-decoration: none; }
.sidebar .wbox a:hover { color: var(--sun); }
.sidebar .wbox ul { list-style: none; margin: 0; padding: 0; }
.sidebar .wbox li { padding: .55rem 0 .55rem 1.1rem; border-bottom: 1px dashed var(--line); position: relative; line-height: 1.35; }
.sidebar .wbox li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; background: var(--sun); }
.sidebar .wbox li:last-child { border-bottom: 0; }
.sidebar .wbox .post-date { display: block; color: var(--muted); font-family: var(--f-mono); font-size: .75rem; }
.sidebar .wbox p, .sidebar .textwidget { color: var(--muted); }

/* ---------- Search form ---------- */
.finder { display: flex; gap: 0; max-width: 520px; margin: 1.2rem 0; }
.finder-input {
    flex: 1 1 auto; min-width: 0;
    font: inherit; font-size: 1rem; padding: .7rem .9rem;
    border: 1px solid var(--text-paper); border-right: 0; border-radius: 0;
    background: #fff; color: var(--text-paper);
}
.finder-btn {
    flex: none; font-family: var(--f-head); font-size: 1rem; letter-spacing: .05em; text-transform: uppercase;
    padding: .7rem 1.2rem; border: 1px solid var(--text-paper); border-radius: 0;
    background: var(--text-paper); color: var(--paper); cursor: pointer;
}
.finder-btn:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.sidebar .finder-input { border-color: var(--line); }
.sidebar .finder-btn { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.empty-sheet { padding: 1.6rem; border: 1px solid var(--line); background: rgba(12, 23, 40, .45); }
.empty-sheet .finder-input { border-color: var(--line); }
.empty-sheet .finder-btn { background: var(--sun); color: var(--ink); border-color: var(--sun); }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost-code {
    margin: 0 0 .4rem; font-family: var(--f-head); font-weight: 600; line-height: .9;
    font-size: clamp(5rem, 16vw, 10rem); color: transparent; -webkit-text-stroke: 2px var(--text-paper);
    letter-spacing: .04em;
}
.lost .sheet-title { margin-bottom: 1rem; }
.lost-home { margin-top: 1.6rem; }

/* ---------- Comments ---------- */
.notes-title { margin: 0 0 1.2rem; font-weight: 500; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .04em; }
.notes-count { font-family: var(--f-mono); font-size: .9rem; color: var(--ember); vertical-align: middle; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { margin-left: 1.6rem; border-left: 1px dashed var(--line-paper); padding-left: 1.2rem; }
.note-body { padding: 1rem 0; border-bottom: 1px solid var(--line-paper); }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.note-head img { display: block; border: 1px solid var(--line-paper); }
.note-author { font-family: var(--f-head); font-size: 1.1rem; font-weight: 600; }
.note-date { font-family: var(--f-mono); font-size: .78rem; color: var(--muted-paper); }
.note-wait { font-style: italic; color: var(--ember); margin: .5rem 0 0; }
.note-text { margin-top: .5rem; }
.note-reply a { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.comment-respond { margin-top: 2rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; font-family: var(--f-head); font-size: 1rem; 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: .65rem .8rem; border: 1px solid var(--text-paper); border-radius: 0; background: #fff; color: var(--text-paper);
}
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-family: var(--f-body); font-size: .92rem; margin: 0; }
.notes-hint, .notes-closed { font-size: .92rem; color: var(--muted-paper); }
#cancel-comment-reply-link { font-family: var(--f-mono); font-size: .8rem; margin-left: .8rem; }

/* ---------- Footer ---------- */
.basement { background: var(--deep); color: var(--text); border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; }
.basement-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 960px) {
    .basement-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; }
}
.basement-col { min-width: 0; }
.basement .wbox { margin-bottom: 1.2rem; }
.basement .wbox-title { color: var(--paper); border-bottom-color: var(--line); text-transform: none; letter-spacing: .02em; font-size: 1.5rem; }
.basement .wbox, .basement .textwidget, .basement .wbox p { color: var(--muted); }
.basement .wbox a { color: var(--paper); text-decoration: none; }
.basement .wbox a:hover { color: var(--sun); text-decoration: underline; }
.basement .wbox ul { list-style: none; margin: 0; padding: 0; }
.basement .wbox li { padding: .2rem 0; }
.basement-copy {
    margin: 2.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line);
    font-family: var(--f-mono); font-size: .82rem; color: var(--muted);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--deep); color: var(--text);
    border-top: 2px solid var(--sun);
    padding: 1rem 0;
}
.cookie-inner {
    width: 92%; max-width: 1180px; margin-left: auto; margin-right: auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
    padding: 0 .4rem;
}
.cookie-text { margin: 0; flex: 1 1 320px; min-width: 0; font-size: .95rem; color: var(--paper); }
.cookie-accept { flex: none; }

/* ---------- WP core ---------- */
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-family: var(--f-mono); font-size: .8rem; color: var(--muted-paper); }
.bypostauthor .note-author::after { content: " · author"; font-family: var(--f-mono); font-size: .75rem; color: var(--ember); font-weight: 400; }
.sticky { position: relative; }
