/*
Theme Name: dds_357-productions.com
Theme URI: https://357-productions.com/
Author: Elias Vance
Description: Cinematic Frame — a dark, film-set inspired theme for a blog about architectural and real estate filmmaking. Graphite palette, steel-blue light accent, viewfinder details and cut-corner buttons.
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: cfr357
*/

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

/* ---------- Tokens ---------- */
:root {
    --bg: #101418;
    --bg-alt: #181E24;
    --bg-deep: #0B0E11;
    --bg-side: #151A1F;
    --bg-card: #13181D;
    --text: #E6EAF0;
    --accent: #6FC3DF;
    --amber: #D4A95C;
    --muted: #8A94A0;
    --line: #2A323A;
    --grid: #1A2026;
    --font-head: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
    --shell-w: 92%;
}

@property --cut {
    syntax: "<length>";
    inherits: false;
    initial-value: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    right: 24px;
    bottom: 16px;
    width: 300px;
    height: 360px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.04;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 360' fill='none' stroke='%23E6EAF0' stroke-width='2'%3E%3Ccircle cx='112' cy='40' r='30'/%3E%3Ccircle cx='178' cy='40' r='30'/%3E%3Ccircle cx='112' cy='40' r='6'/%3E%3Ccircle cx='178' cy='40' r='6'/%3E%3Crect x='80' y='72' width='130' height='70'/%3E%3Cpath d='M210 90l44-18v70l-44-18z'/%3E%3Cpath d='M92 72v-10h40v10M130 142v18h32v-18M146 160v32M146 192L70 356M146 192v164M146 192l76 164M100 292h92'/%3E%3C/svg%3E") no-repeat center / contain;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.01em;
    color: var(--text);
    margin: 1.6em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

h2::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.55em;
    background: var(--accent);
    vertical-align: baseline;
}

p, li, dd, figcaption, td, th, blockquote {
    overflow-wrap: break-word;
    hyphens: auto;
}
p { margin: 0 0 1.15em; }

a {
    color: var(--accent);
    text-decoration: none;
}

/* animated focus-pull underline */
.entry-content a,
.page-intro a,
.archive-note a,
.card-excerpt a,
.breadcrumbs a,
.entry-meta a,
.entry-tags a,
.take-text a,
.logged-in-as a,
.must-log-in a,
.widget a,
.card-more,
.comment-reply-link,
.lost-frame p a:not(.btn-frame) {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.35s ease, color 0.2s ease;
}
.entry-content a:hover,
.page-intro a:hover,
.archive-note a:hover,
.card-excerpt a:hover,
.breadcrumbs a:hover,
.entry-meta a:hover,
.entry-tags a:hover,
.take-text a:hover,
.logged-in-as a:hover,
.must-log-in a:hover,
.widget a:hover,
.card-more:hover,
.comment-reply-link:hover,
.lost-frame p a:not(.btn-frame):hover,
.entry-content a:focus-visible,
.widget a:focus-visible,
.card-more:focus-visible {
    background-size: 100% 1px;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.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: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: var(--bg-deep);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Container (single source of width) ---------- */
.shell {
    width: min(var(--shell-w), 1240px);
    margin-inline: auto;
}
.is-front .site-main { --shell-w: 85%; }

/* ---------- Film perforation bar ---------- */
.film-perf {
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 18px, var(--amber) 18px 24px);
}

/* ---------- Header ---------- */
.masthead {
    position: relative;
    background: var(--bg-deep);
    box-shadow: 0 1px 0 rgba(111, 195, 223, 0.38), 0 10px 26px -18px rgba(111, 195, 223, 0.45);
    z-index: 20;
}

.masthead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    flex: 1 1 440px;
    min-width: 0;
    color: var(--text);
}
.brand:hover .brand-name { color: var(--accent); }

.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { display: block; max-height: 58px; width: auto; }
.brand-svg { display: block; width: 52px; height: 52px; }

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    max-width: 44rem;
}

.brand-name {
    font-family: var(--font-head);
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-tagline {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.primary-nav { flex: 0 0 auto; }

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}
.nav-list li { position: relative; }
.nav-list a {
    display: block;
    padding: 0.5rem 0.95rem;
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text);
    box-shadow: inset 0 -1px 0 transparent;
    transition: color 0.2s ease, box-shadow 0.2s ease;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
    color: var(--accent);
    box-shadow: inset 0 -1px 0 var(--accent);
}

.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 30;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 1.05rem;
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons: outlined, top-right corner cut at 45° ---------- */
.btn-frame {
    --cut: 10px;
    --bc: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.72rem 1.6rem;
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    color: var(--accent);
    background-color: transparent;
    background-image:
        linear-gradient(var(--bc), var(--bc)),
        linear-gradient(var(--bc), var(--bc)),
        linear-gradient(var(--bc), var(--bc)),
        linear-gradient(var(--bc), var(--bc)),
        linear-gradient(45deg, transparent calc(50% - 1px), var(--bc) calc(50% - 1px), var(--bc) calc(50% + 1px), transparent calc(50% + 1px));
    background-repeat: no-repeat;
    background-position: left top, left bottom, right bottom, left top, right top;
    background-size: 1px 100%, 100% 1px, 1px calc(100% - var(--cut)), calc(100% - var(--cut)) 1px, var(--cut) var(--cut);
    border: 0;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, --cut 0.25s ease;
}
.btn-frame:hover,
.btn-frame:focus-visible {
    --cut: 16px;
    background-color: var(--accent);
    color: var(--bg-deep);
    outline: none;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    margin: 0 0 1.8rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.crumb-sep { margin: 0 0.35rem; color: var(--line); }
.crumb-current { color: var(--muted); }

/* ---------- Page layouts ---------- */
.page-frame { padding: 2rem 0 4.5rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
}

.layout-single { display: block; }
.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.content-area { min-width: 0; }

.page-head { margin-bottom: 2rem; }
.page-title,
.entry-title { margin-top: 0; }
.page-intro { color: var(--muted); }
.archive-note { color: var(--muted); }

.empty-note { color: var(--muted); }
.empty-block .search-form { margin-top: 1rem; max-width: 520px; }

/* ---------- Front page ---------- */
.front-section { padding: 5rem 0; }
.tone-base { background: transparent; }
.tone-alt { background-color: var(--bg-alt); }
.tone-hatch {
    background-image: repeating-linear-gradient(45deg, var(--grid) 0 1px, transparent 1px 6px);
}

.section-head {
    position: relative;
    padding-top: 1.2rem;
    margin-bottom: 2.2rem;
}
.section-head::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--accent);
}
.section-head::after {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 0;
    height: 1px;
    background: var(--line);
}
.section-title { margin: 0; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); }

.section-more { margin: 2.4rem 0 0; }

/* Hero */
.scene-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(460px, 72vh, 740px);
    overflow: hidden;
    background: var(--bg-deep);
}
.scene-hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.scene-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0B0E11 0%, rgba(11, 14, 17, 0.82) 30%, rgba(11, 14, 17, 0.2) 70%, rgba(11, 14, 17, 0) 100%);
}
.viewfinder {
    position: absolute;
    top: 28px;
    left: 4%;
    width: 150px;
    height: auto;
    z-index: 2;
}
.scene-hero-inner {
    position: relative;
    z-index: 2;
    padding: 6rem 0 4.5rem;
}
.scene-hero-title {
    margin: 0 0 1rem;
    font-size: 3.2rem;
    max-width: 20ch;
    letter-spacing: 0.015em;
}
.scene-hero-sub {
    margin: 0;
    max-width: 38rem;
    font-size: 1.15rem;
    color: var(--muted);
}

/* Block 2: card grid */
.frame-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.frame-card,
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(111, 195, 223, 0.22);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.frame-card { background: var(--bg); }
.frame-card::before,
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(to bottom, rgba(111, 195, 223, 0.09), rgba(111, 195, 223, 0));
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.25s ease;
    opacity: 0.8;
}
.frame-card:hover,
.card:hover {
    border-color: var(--accent);
    box-shadow: inset 0 2px 0 rgba(111, 195, 223, 0.7);
    transform: translateY(-2px);
}
.frame-card:hover::before,
.card:hover::before { opacity: 1; background: linear-gradient(to bottom, rgba(111, 195, 223, 0.2), rgba(111, 195, 223, 0)); }

.frame-card-thumb { display: block; line-height: 0; }
.frame-card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.frame-card-body {
    flex: 1;
    min-width: 0;
    padding: 1.2rem 1.35rem 1.5rem;
}
.frame-card-cat {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.frame-card-title {
    margin: 0 0 0.6rem;
    font-size: 1.55rem;
}
.frame-card-title a,
.card-title a { color: var(--text); transition: color 0.2s ease; }
.frame-card-title a:hover,
.card-title a:hover { color: var(--accent); }
.frame-card-text {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1.6rem;
}
.post-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card.sticky { border-top: 2px solid var(--amber); }

.card-thumb { position: relative; line-height: 0; }
.card-thumb-link { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #161C22, #0B0E11);
}
.card-thumb-empty svg { display: block; width: 100%; height: 100%; }
.card-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 0, 0, 0.84);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.15rem 1.3rem 1.4rem;
}
.card-title { margin: 0 0 0.4rem; font-size: 1.45rem; }
.card-meta { margin: 0 0 0.7rem; font-size: 0.85rem; color: var(--muted); }
.card-excerpt { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: 0.6rem;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Block 3: quote */
.slate-quote {
    margin: 0;
    max-width: 62rem;
    padding: 2.6rem 3rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--amber);
}
.slate-quote blockquote { margin: 0; padding: 0; border: 0; background: none; }
.slate-quote blockquote p {
    margin: 0 0 1.4rem;
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
}
.slate-quote figcaption { color: var(--muted); font-size: 1rem; }

/* Block 4: CTA */
.cut-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 4rem;
    align-items: center;
    padding: 1rem 0;
}
.cut-cta-title { margin: 0; font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); }
.cut-cta-body p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.6rem; }

/* ---------- Single / page content ---------- */
.entry-head { margin-bottom: 1.6rem; }
.entry-meta { margin: 0; color: var(--muted); font-size: 0.92rem; }
.entry-meta-sep { margin: 0 0.5rem; color: var(--line); }
.entry-cover { margin: 0 0 2rem; }
.entry-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }

.entry-content { font-size: 1.08rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul,
.entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content img { display: block; max-width: 100%; height: auto; }
.entry-content figure { margin: 1.8rem 0; }
.entry-content figcaption,
.wp-caption-text { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.entry-content blockquote,
.entry-content .wp-block-quote {
    margin: 1.8rem 0;
    padding: 1.3rem 1.7rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--amber);
    font-size: 1.2em;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); font-style: normal; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }
.entry-content pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    font-size: 0.92rem;
}
.entry-content code { font-size: 0.92em; background: var(--bg-deep); padding: 0.1em 0.35em; }
.entry-content pre code { padding: 0; background: none; }

.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
    font-size: 0.98rem;
}
.entry-content th,
.entry-content td {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.entry-content th { background: var(--bg-alt); font-weight: 600; }
.wp-block-table { overflow-x: auto; }

.entry-tags { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; }
.page-links { margin-top: 1.6rem; }

.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky, .gallery-caption, .bypostauthor { outline: 0; }

/* ---------- Sidebar & widgets ---------- */
.sidebar {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: var(--bg-side);
    border: 1px solid var(--line);
    color: #C9D1DA;
}
.sidebar .widget + .widget { margin-top: 2rem; }
.sidebar .widget-title {
    margin: 0 0 0.9rem;
    font-size: 1.35rem;
    color: #E6EAF0;
}
.sidebar .widget,
.sidebar .widget p { color: #C9D1DA; }
.sidebar .widget a { color: #E6EAF0; }
.sidebar .widget a:hover { color: #6FC3DF; }
.sidebar .post-date,
.sidebar .rss-date { color: #8A94A0; font-size: 0.85rem; }

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: 0.55rem 0;
    border-bottom: 1px solid #222A31;
}
.widget li:last-child { border-bottom: 0; }
.widget .search-form { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--grid);
    padding: 3.5rem 0 1.6rem;
    color: #B3BCC6;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}
.footer-col { min-width: 0; }
.site-footer .widget-title {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    color: #E6EAF0;
}
.site-footer .widget,
.site-footer .widget p { color: #B3BCC6; font-size: 0.97rem; }
.site-footer .widget a { color: #E6EAF0; }
.site-footer .widget a:hover { color: #6FC3DF; }
.site-footer .widget li { border-bottom-color: #1A2026; padding: 0.4rem 0; }
.footer-copy {
    margin: 3rem 0 0;
    padding-top: 1.3rem;
    border-top: 1px solid #1A2026;
    font-size: 0.88rem;
    color: #8A94A0;
}

/* ---------- Pagination ---------- */
.reel-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2.8rem;
}
.reel-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 0.85rem;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--line);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.reel-pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.reel-pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-deep);
}
.reel-pager .page-numbers.dots {
    background: none;
    border-color: transparent;
    color: var(--muted);
    min-width: auto;
    padding: 0 0.3rem;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-deep);
    border: 1px solid var(--line);
    border-radius: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
::placeholder { color: #6E7883; }

.search-form {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}
.search-form .search-field { flex: 1; min-width: 0; }
.search-form .search-submit { flex: 0 0 auto; }

/* ---------- Comments ---------- */
.comments-area {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.comments-title { margin-top: 0; }
.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment-list .children { margin-left: 1.6rem; }
.take-body {
    margin-bottom: 1rem;
    padding: 1.2rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
}
.take-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}
.take-head img { display: block; border: 1px solid var(--line); }
.take-who { display: flex; flex-direction: column; min-width: 0; }
.take-author { font-weight: 600; color: var(--text); }
.take-date { font-size: 0.85rem; color: var(--muted); }
.take-pending { color: var(--amber); font-size: 0.92rem; }
.take-text p { margin-bottom: 0.7em; }
.take-reply { margin-top: 0.4rem; font-family: var(--font-head); font-size: 1rem; }

.comment-respond { margin-top: 2.2rem; }
.comment-reply-title { margin-top: 0; }
.comment-reply-title small { margin-left: 0.6rem; font-size: 0.9rem; font-family: var(--font-body); }
.comment-notes,
.logged-in-as,
.must-log-in { color: var(--muted); font-size: 0.92rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.35rem; font-size: 0.95rem; color: var(--text); }
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; color: var(--muted); }
.comment-form-cookies-consent input { margin-top: 0.35rem; accent-color: var(--accent); }
.comments-closed { color: var(--muted); }

/* ---------- 404 ---------- */
.lost-frame { text-align: left; }
.lost-code {
    margin: 0 0 0.4rem;
    font-family: var(--font-head);
    font-size: clamp(5rem, 3rem + 8vw, 9rem);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
}
.lost-frame .search-form { margin: 1.6rem 0 2rem; max-width: 560px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(92%, 780px);
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(111, 195, 223, 0.45), 0 18px 40px -20px rgba(0, 0, 0, 0.9);
}
.cookie-text { margin: 0; flex: 1; min-width: 0; font-size: 0.93rem; color: #C9D1DA; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        display: none;
        flex: 1 1 100%;
        border-top: 1px solid var(--line);
        padding-top: 0.6rem;
    }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; }
    .nav-list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        border: 0;
        padding-left: 1rem;
        background: none;
    }
    .brand { flex: 1 1 0; }

    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 3rem; }
    .layout-single .content-area { width: 100%; }

    .frame-grid,
    .post-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cut-cta { grid-template-columns: minmax(0, 1fr); }
    .scene-hero-title { font-size: 2.6rem; }
    .slate-quote blockquote p { font-size: 2rem; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .is-front .site-main { --shell-w: 92%; }
    .brand-tagline { display: none; }
    .brand-svg { width: 44px; height: 44px; }
    .front-section { padding: 3.5rem 0; }
    .frame-grid,
    .post-grid--three,
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .scene-hero { min-height: 440px; }
    .scene-hero-inner { padding: 5rem 0 3rem; }
    .scene-hero-title { font-size: 2.1rem; }
    .viewfinder { width: 110px; top: 18px; }
    .slate-quote { padding: 1.8rem 1.4rem; }
    .slate-quote blockquote p { font-size: 1.6rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .search-form { flex-direction: column; }
    .comment-list .children { margin-left: 0.8rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    .frame-card:hover,
    .card:hover { transform: none; }
}
