/*
Theme Name: dds_dadamstudios.com
Theme URI: https://dadamstudios.com/
Author: Alex Morgan
Description: Dark studio theme for a real estate photography and property presentation blog. Editorial serif headings, amber and teal accents, room-prep checklist, stats and CTA sections.
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: dadam
*/

/* ---------- Tokens ---------- */
:root {
    --bg: #12151c;
    --bg-alt: #1a1e28;
    --bg-head: #0e1016;
    --bg-foot: #0e1016;
    --bg-side: #1a1e28;
    --ink: #e8e6e1;
    --amber: #e8a33d;
    --amber-deep: #c9862a;
    --teal: #3dbfb0;
    --mute: #7a7f8a;
    --mute-lite: #a2a6ae;
    --line: #2a2f3a;
    --grid: #1c2029;
    --f-head: "Bodoni Moda", "Didot", "Bodoni 72", "Playfair Display", Georgia, "Times New Roman", serif;
    --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
    --r-btn: 3px;
    --r-card: 2px;
}

/* ---------- 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; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.72;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23e8e6e1' stroke-opacity='0.04' stroke-width='2'%3E%3Ccircle cx='200' cy='200' r='190'/%3E%3Ccircle cx='200' cy='200' r='64'/%3E%3Cpath d='M200 10 L256 146'/%3E%3Cpath d='M364 105 L264 212'/%3E%3Cpath d='M364 295 L220 264'/%3E%3Cpath d='M200 390 L144 254'/%3E%3Cpath d='M36 295 L136 188'/%3E%3Cpath d='M36 105 L180 136'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, var(--grid) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, var(--grid) 0 1px, transparent 1px 24px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right -90px bottom -90px, 0 0, 0 0;
    background-size: 420px 420px, auto, auto;
    background-attachment: fixed, scroll, scroll;
    -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.18;
    margin: 1.6em 0 0.6em;
    color: var(--ink);
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }

a {
    color: var(--amber);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(232, 163, 61, .55);
    transition: color .25s ease, text-decoration-color .25s ease, text-decoration-thickness .25s ease;
}
a:hover {
    color: var(--teal);
    text-decoration-color: var(--teal);
    text-decoration-thickness: 2px;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

::selection { background: var(--amber); color: var(--bg); }

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2.5rem 0;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.2rem 1.5rem 1.2rem 1.6rem;
    border-left: 3px solid var(--amber);
    background: var(--bg-alt);
    font-family: var(--f-head);
    font-size: 1.2rem;
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

code, kbd, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92em;
}
pre {
    background: var(--bg-head);
    border: 1px solid var(--line);
    padding: 1rem 1.2rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: .6rem .8rem;
    text-align: left;
    vertical-align: top;
}
th { background: var(--bg-alt); font-weight: 600; }

.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: -60px;
    z-index: 100;
    background: var(--amber);
    color: var(--bg);
    padding: .6rem 1rem;
    border-radius: var(--r-btn);
    text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

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

/* ---------- Exposure bar ---------- */
.exposure {
    height: 3px;
    background: linear-gradient(90deg, var(--amber) 0%, #d9ad4f 35%, var(--teal) 100%);
}

/* ---------- Header ---------- */
.masthead {
    position: relative;
    background: var(--bg-head);
    border-bottom: 1px solid var(--line);
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
    flex: 1 1 320px;
    color: var(--ink);
    text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-svg { display: block; width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 560px; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
}
.brand-tagline {
    margin-top: .25rem;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--mute);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    padding: .55rem .9rem;
    font: 500 .95rem var(--f-body);
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--teal); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--amber);
    position: relative;
    transition: transform .25s ease, background .25s 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); }

.site-nav {
    display: none;
    width: 100%;
}
.site-nav.is-open { display: block; }
.site-nav-list {
    list-style: none;
    margin: 0;
    padding: .5rem 0 .3rem;
    border-top: 1px solid var(--line);
}
.site-nav-list li { position: relative; }
.site-nav-list a {
    display: block;
    padding: .7rem 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: .01em;
    overflow-wrap: break-word;
}
.site-nav-list a:hover,
.site-nav-list .current-menu-item > a { color: var(--amber); }
.site-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
}

/* ---------- Main ---------- */
.site-main {
    display: block;
    position: relative;
    padding-bottom: 4rem;
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
    padding: 1.4rem 0 0;
    font-size: .88rem;
    color: var(--mute);
    overflow-wrap: break-word;
}
.crumbs a { color: var(--mute-lite); text-decoration-color: rgba(162, 166, 174, .4); }
.crumbs a:hover { color: var(--teal); }
.crumbs-sep { color: var(--amber); margin: 0 .35rem; }
.crumbs-current { color: var(--ink); }

/* ---------- Layouts ---------- */
.layout-single {
    display: block;
    width: 85%;
    margin: 0 auto;
}
.layout-with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.content-area { min-width: 0; }
.sidebar { min-width: 0; }

/* ---------- Section titles ---------- */
.sec-title,
.page-title {
    position: relative;
    padding-left: 1.6rem;
    margin: 0 0 1.2rem;
}
.sec-title::before,
.page-title::before {
    content: "";
    position: absolute;
    left: .35rem;
    top: .12em;
    width: 3px;
    height: 1.05em;
    background: var(--amber);
    transform: skewX(-15deg);
    transform-origin: bottom left;
}
.sec-title { font-size: 1.8rem; }
.page-title { font-size: 2.3rem; }

.page-head { padding: 1.6rem 0 1.4rem; }
.page-intro { color: var(--mute-lite); max-width: 68ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .7rem 1.4rem;
    border-radius: var(--r-btn);
    font: 600 .98rem/1.3 var(--f-body);
    letter-spacing: .01em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    white-space: normal;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px -8px rgba(61, 191, 176, .75);
    text-decoration: none;
}
.btn-fill { background: var(--amber); color: #12151c; border-color: var(--amber); }
.btn-fill:hover { background: #f0b04f; color: #12151c; border-color: #f0b04f; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { color: var(--ink); background: rgba(61, 191, 176, .1); }
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1rem;
    margin-top: 1.6rem;
}

.text-link {
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Chips ---------- */
.chip-row { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.chip {
    display: inline-block;
    padding: .18rem .6rem;
    border: 1px solid var(--teal);
    border-radius: 0;
    background: transparent;
    color: var(--teal);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: #12151c;
    text-decoration: none;
}

/* ---------- Perforation divider ---------- */
.perforation {
    height: 6px;
    margin: 3.2rem 0;
    background-image: radial-gradient(circle, #3a404d 1.4px, transparent 1.6px);
    background-size: 12px 6px;
    background-repeat: repeat-x;
    background-position: 0 center;
    opacity: .9;
}

/* ---------- Front page ---------- */
.front-wrap {
    width: 85%;
    margin: 0 auto;
    padding-top: 2.4rem;
}
.fs {
    position: relative;
    border-radius: var(--r-card);
}
.fs > :last-child { margin-bottom: 0; }

/* Hero */
.fs-hero {
    display: flex;
    align-items: flex-end;
    min-height: 480px;
    padding: 3rem 1.6rem;
    overflow: hidden;
    background: #0b0d12;
    border: 1px solid var(--line);
}
.fs-hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fs-hero-shade {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(90deg, rgba(14, 16, 22, .92) 0%, rgba(14, 16, 22, .72) 48%, rgba(14, 16, 22, .2) 100%),
        linear-gradient(0deg, rgba(14, 16, 22, .75) 0%, rgba(14, 16, 22, 0) 45%);
}
.fs-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 640px;
    min-width: 0;
}
.fs-hero-title {
    position: relative;
    padding-left: 1.6rem;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 1rem;
    letter-spacing: -.01em;
}
.fs-hero-title::before {
    content: "";
    position: absolute;
    left: .35rem;
    top: .14em;
    width: 3px;
    height: .9em;
    background: var(--amber);
    transform: skewX(-15deg);
    transform-origin: bottom left;
}
.fs-hero-sub {
    padding-left: 1.6rem;
    font-size: 1.08rem;
    color: #cfccc5;
    max-width: 54ch;
    margin: 0;
}
.fs-hero-iris {
    position: absolute;
    z-index: 1;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    opacity: .35;
    pointer-events: none;
}

/* Checklist */
.fs-checklist {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 2.4rem 1.4rem;
}
.sec-lead {
    color: var(--mute-lite);
    max-width: 62ch;
    margin: 0 0 1.8rem;
}
.ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
.ticks li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    min-width: 0;
}
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li > span:last-child { min-width: 0; overflow-wrap: break-word; }
.tick {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: .2rem;
    border: 1.5px solid var(--amber);
    border-radius: 2px;
    position: relative;
}
.tick::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border-right: 2px solid var(--amber);
    border-bottom: 2px solid var(--amber);
    transform: rotate(45deg);
}

/* Latest */
.fs-latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin-bottom: 1.4rem;
}
.fs-latest-head .sec-title { margin-bottom: 0; }

/* Stats */
.fs-stats {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 2.4rem 1.4rem;
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.4rem;
    margin: .6rem 0 0;
}
.stat { min-width: 0; margin: 0; }
.stat-num {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--amber);
    margin: 0 0 .6rem;
    font-variant-numeric: lining-nums;
}
.stat-cap {
    margin: 0;
    color: var(--mute);
    font-size: .95rem;
    line-height: 1.55;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* CTA */
.fs-cta {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, rgba(232, 163, 61, .05) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(232, 163, 61, .05) 0 1px, transparent 1px 24px),
        linear-gradient(160deg, #1a1e28 0%, #12151c 100%);
    border: 1px solid var(--teal);
    padding: 2.4rem 1.4rem;
}
.fs-cta-copy { min-width: 0; }
.fs-cta-copy p { color: #cfccc5; max-width: 60ch; margin: 0; }
.fs-cta-actions { margin-top: 1.6rem; }

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--amber);
    box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .75), 0 10px 26px -14px rgba(61, 191, 176, .35);
}
.card-thumb {
    position: relative;
    overflow: hidden;
    background: #0b0d12;
}
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .5s ease;
}
.card:hover .card-thumb img { transform: scale(1.03); }
.card-thumb::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(18, 21, 28, 0) 0%, rgba(18, 21, 28, .78) 100%);
    pointer-events: none;
}
.card-pin {
    position: absolute;
    z-index: 2;
    top: .8rem;
    left: .8rem;
    background: var(--amber);
    color: #12151c;
    font-size: .74rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 2px;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.2rem 1.3rem 1.4rem;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .8rem;
    margin-bottom: .7rem;
    font-size: .82rem;
    color: var(--mute);
}
.card-title {
    font-size: 1.3rem;
    margin: 0 0 .6rem;
    line-height: 1.25;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--amber); }
.card-excerpt {
    color: #bdbab3;
    font-size: .96rem;
    line-height: 1.62;
    overflow-wrap: break-word;
    hyphens: auto;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: .6rem;
    align-self: flex-start;
    font-weight: 600;
    font-size: .92rem;
}

.empty-note { color: var(--mute-lite); }
.empty-block .search-box { margin-top: 1rem; }

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin: 2.6rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: .35rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    color: var(--ink);
    background: var(--bg-alt);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.pager a.page-numbers:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}
.pager .page-numbers.current {
    background: var(--amber);
    border-color: var(--amber);
    color: #12151c;
}
.pager .page-numbers.dots {
    border: 0;
    background: none;
    min-width: auto;
    color: var(--mute);
}

/* ---------- Entry ---------- */
.entry-wrap { min-width: 0; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .9rem;
    margin-bottom: 1rem;
    font-size: .88rem;
    color: var(--mute);
}
.entry-cover {
    margin: 0 0 2rem;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
}
.entry-cover img { display: block; width: 100%; height: auto; }
.entry {
    overflow-wrap: break-word;
    hyphens: auto;
}
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.7rem; }
.entry h3 { font-size: 1.35rem; }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--amber); }
.entry img { display: block; border-radius: var(--r-card); }
.entry figure { margin: 1.8em 0; }
.entry figcaption, .wp-element-caption { font-size: .85rem; color: var(--mute); margin-top: .5rem; }
.entry .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.entry .alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry::after { content: ""; display: table; clear: both; }
.page-links { margin-top: 2rem; font-weight: 600; }
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

/* ---------- Sidebar / widgets ---------- */
.sidebar {
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 1.6rem 1.4rem;
    color: var(--ink);
}
.widget { margin: 0 0 2rem; min-width: 0; }
.widget:last-child { margin-bottom: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: 1.2rem;
    margin: 0 0 1rem;
}
.widget-title::before {
    content: "";
    position: absolute;
    left: .15rem;
    top: .15em;
    width: 2px;
    height: 1em;
    background: var(--amber);
    transform: skewX(-15deg);
}
.sidebar .widget-title { color: var(--ink); }
.sidebar .widget,
.sidebar .widget p { color: #cfccc5; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--amber); }
.sidebar .post-date,
.sidebar .rss-date { color: var(--mute-lite); font-size: .82rem; display: block; }

/* ---------- Search ---------- */
.search-box {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    max-width: 560px;
}
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 46px;
    padding: .6rem .9rem;
    background: var(--bg-head);
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    color: var(--ink);
    font: 400 1rem var(--f-body);
}
.search-field::placeholder { color: var(--mute); }
.search-field:focus { border-color: var(--teal); }

/* ---------- 404 ---------- */
.missing { padding: 2rem 0 1rem; }
.missing-code {
    font-family: var(--f-head);
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 .5rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--amber);
}
.missing-text { color: var(--mute-lite); max-width: 60ch; }
.missing .search-box { margin-top: 1.4rem; }

/* ---------- Comments ---------- */
.notes {
    margin-top: 3rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--line);
}
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.4rem; border-left: 1px solid var(--line); margin-left: .6rem; }
.note-body {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}
.note-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.note-avatar { display: block; border-radius: 2px; }
.note-who { display: flex; flex-direction: column; min-width: 0; }
.note-author { font-weight: 600; }
.note-date { font-size: .8rem; color: var(--mute); }
.note-pending { color: var(--amber); font-size: .9rem; }
.note-text { overflow-wrap: break-word; }
.note-reply a { font-size: .88rem; font-weight: 600; }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.5rem; margin: 0 0 1rem; }
.comment-reply-title small { font-family: var(--f-body); font-size: .85rem; margin-left: .6rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: .35rem; font-size: .9rem; color: var(--mute-lite); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .85rem;
    background: var(--bg-head);
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    color: var(--ink);
    font: 400 1rem var(--f-body);
}
.comment-form textarea { resize: vertical; }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }
.comment-notes, .logged-in-as, .must-log-in { color: var(--mute-lite); font-size: .9rem; }
.req { color: var(--amber); }
.notes-closed { color: var(--mute); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Footer ---------- */
.colophon {
    background: var(--bg-foot);
    color: #cfccc5;
    border-top: 1px solid var(--line);
    padding-bottom: 1.5rem;
}
.colophon .perforation { margin: 0 0 2.6rem; height: 8px; }
.colophon-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
}
.colophon-col { min-width: 0; }
.colophon .widget-title { color: var(--ink); font-size: 1.15rem; }
.colophon .widget,
.colophon .widget p { color: #bdbab3; font-size: .95rem; }
.colophon .widget a { color: #d8d5cf; text-decoration: none; }
.colophon .widget a:hover { color: var(--amber); text-decoration: underline; text-decoration-color: var(--teal); }
.colophon .widget li { border-bottom-color: #1f232d; padding: .4rem 0; }
.colophon-base {
    margin-top: 2.6rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
}
.copyright { margin: 0; font-size: .85rem; color: var(--mute); }

/* ---------- Cookie banner ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    z-index: 90;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem 1.4rem;
    padding: 1rem 1.2rem;
    background: var(--bg-head);
    border: 1px solid var(--line);
    border-top: 2px solid var(--amber);
    border-radius: var(--r-card);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
    color: var(--ink);
}
.cookie-text { flex: 1 1 280px; margin: 0; font-size: .9rem; line-height: 1.55; color: #cfccc5; min-width: 0; }
.cookie-accept { min-height: 40px; padding: .5rem 1.3rem; }

/* ---------- WP core bits ---------- */
.wp-block-image img { display: block; }
.wp-block-button__link { border-radius: var(--r-btn); }

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
    h1, .page-title { font-size: 2.7rem; }
    .fs-hero { min-height: 540px; padding: 3.6rem 2.6rem; }
    .fs-hero-title { font-size: 2.8rem; }
    .fs-hero-iris { width: 260px; height: 260px; right: -50px; top: -50px; }
    .fs-checklist,
    .fs-stats,
    .fs-cta { padding: 3rem 2.4rem; }
    .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.4rem; }
    .ticks li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
    .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cookie-banner { left: 1.5rem; right: auto; max-width: 620px; }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
    h1, .page-title { font-size: 3.2rem; }
    .sec-title { font-size: 2.1rem; }

    .nav-toggle { display: none; }
    .site-nav { display: block; width: auto; flex: 0 1 auto; }
    .site-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: .2rem 1.8rem;
        padding: 0;
        border-top: 0;
    }
    .site-nav-list a { padding: .4rem 0; position: relative; }
    .site-nav-list > li > a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background: var(--teal);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease;
    }
    .site-nav-list > li > a:hover::after,
    .site-nav-list > .current-menu-item > a::after { transform: scaleX(1); }
    .site-nav-list .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        padding: .4rem 1rem;
        background: var(--bg-head);
        border: 1px solid var(--line);
        display: none;
        z-index: 20;
    }
    .site-nav-list li:hover > .sub-menu,
    .site-nav-list li:focus-within > .sub-menu { display: block; }

    .layout-with-sidebar {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
    }
    .layout-with-sidebar > .content-area { width: 67%; }
    .layout-with-sidebar > .sidebar { width: 27%; margin-top: 1.6rem; align-self: flex-start; }

    .fs-hero { min-height: 600px; padding: 4.5rem 4rem; }
    .fs-hero-title { font-size: 3.2rem; }
    .fs-hero-iris { width: 320px; height: 320px; }

    .fs-checklist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; padding: 3.6rem 3.2rem; }
    .fs-checklist .sec-lead { margin-bottom: 0; }
    .ticks { grid-template-columns: minmax(0, 1fr); }
    .ticks li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .card-grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .fs-stats { padding: 3.6rem 3.2rem; }
    .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
    .stat { padding: 0 1.6rem; border-left: 1px solid var(--line); }
    .stat:first-child { padding-left: 0; border-left: 0; }
    .stat-num { font-size: 3.2rem; }

    .fs-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2.5rem;
        padding: 3.4rem 3.2rem;
    }
    .fs-cta-copy { flex: 1 1 auto; }
    .fs-cta-actions { flex: 0 0 auto; margin-top: 0; }

    .colophon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}

/* ---------- ≤ 600px ---------- */
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .front-wrap { width: 92%; padding-top: 1.4rem; }
    .layout-single { width: 100%; }
    .fs-hero { min-height: 460px; padding: 2.2rem 1.3rem; }
    .fs-checklist,
    .fs-stats,
    .fs-cta { padding: 2rem 1.3rem; }
    .sec-title { font-size: 1.6rem; }
    .perforation { margin: 2.4rem 0; }
    .btn-row .btn { flex: 1 1 100%; }
    .missing-code { font-size: 4.5rem; }
    .brand-tagline { display: none; }
}
.fs-hero-copy .btn-row { padding-left: 1.6rem; }
@media (max-width: 600px) {
    .fs-hero-title, .fs-hero-sub, .fs-hero-copy .btn-row { padding-left: 1.1rem; }
    .fs-hero-title::before { left: .15rem; }
}
