/*
Theme Name: ZERO ID Blog
Theme URI: https://zeroidcard.com/
Author: ZERO ID
Author URI: https://zeroidcard.com/
Description: Dark, lime-accented theme matching the zeroidcard.com design system. Built for blog.zeroidcard.com — slim header, sticky article contents, and block styling tuned for long-form guides.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zeroid-blog
Tags: blog, one-column, custom-menu, featured-images, translation-ready, block-styles, dark-mode
*/

/* ===========================================================================
   Tokens — identical values to the main site's zeroid-theme.css so the two
   properties cannot drift apart.
   =========================================================================== */

:root {
    --bg: #08080A;
    --surface: #0E0E11;
    --surface-2: #141418;

    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);

    --fg: #FFFFFF;
    --fg-muted: #A2A2AC;
    --fg-dim: #7E7E89;

    --lime: #CEFF0C;
    --lime-soft: rgba(206, 255, 12, .12);
    --on-lime: #08080A;

    --danger: #FF6B6B;
    --amber: #FFCC4D;
    --amber-soft: rgba(255, 204, 77, .1);

    --font-display: 'Funnel Display', system-ui, sans-serif;
    --font-body: 'Wix Madefor Display', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --gutter: clamp(20px, 5vw, 40px);
    --section-y: clamp(64px, 7vw, 104px);
    --maxw: 1240px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --dur: 240ms;

    --z-drawer: 200;
    --z-nav: 210;
}

/* ---------- Reset / base ---------- */

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--lime);
    color: var(--on-lime);
}

.screen-reader-text,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 999;
    background: var(--lime);
    color: var(--on-lime);
    padding: 12px 20px;
    border-radius: var(--r-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--dur) var(--ease);
}

.skip-link:focus {
    top: 12px;
}

/* ---------- Layout ---------- */

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section-pad {
    padding-block: var(--section-y);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lime);
    margin: 0 0 20px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--lime);
    flex: none;
}

.h-section {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.lead {
    color: var(--fg-muted);
    font-size: clamp(1rem, 1.15vw, 1.0625rem);
    max-width: 62ch;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9375rem;
    letter-spacing: -.01em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
        border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn-primary {
    background: var(--lime);
    color: var(--on-lime);
}

.btn-primary:hover {
    background: #DDFF4D;
}

.btn-ghost {
    border-color: var(--line-strong);
    color: var(--fg);
}

.btn-ghost:hover {
    border-color: var(--fg);
    background: rgba(255, 255, 255, .05);
}

.btn:active {
    transform: scale(.975);
}

.btn-sm {
    min-height: 42px;
    padding: 10px 20px;
    font-size: .875rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Header ---------- */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-block: 7px;
    text-decoration: none;
}

.logo-img {
    height: 30px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--fg);
}

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: var(--z-nav);
    border-bottom: 1px solid transparent;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav.is-stuck {
    background: rgba(8, 8, 10, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.nav.is-drawer-open {
    background: var(--surface);
    border-bottom-color: var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 76px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
    list-style: none;
    margin-block: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    display: block;
    padding: 10px 14px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--fg-muted);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: color var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
    color: var(--fg);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
}

.nav-links a:hover::after,
.nav-links .current-menu-item > a::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-home {
    padding: 10px 14px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--fg-muted);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: color var(--dur) var(--ease);
}

.nav-home:hover {
    color: var(--fg);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--fg);
    position: relative;
    transition: background-color var(--dur) var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    background: var(--fg);
    transition: transform var(--dur) var(--ease);
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-drawer) - 1);
    background: rgba(4, 4, 6, .68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
}

.nav-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    inset: 76px 0 auto;
    z-index: var(--z-drawer);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    display: none;
}

.drawer.is-open {
    display: block;
    animation: drawerIn 320ms var(--ease);
}

@keyframes drawerIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer a {
    display: block;
    padding: 15px 4px;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -.02em;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.drawer .btn {
    width: 100%;
    margin-top: 22px;
}

@media (max-width:960px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-inner {
        justify-content: space-between;
    }

    /* The drawer carries the navigation, but the CTA stays on the bar —
       it is the one action worth keeping one tap away. */
    .nav-actions .nav-home {
        display: none;
    }
}

@media (max-width:520px) {
    .nav-actions .btn {
        padding-inline: 16px;
    }

    .logo-img {
        height: 26px;
    }
}

/* ---------- Page header ---------- */

.page-head {
    position: relative;
    padding-top: clamp(112px, 13vw, 158px);
    padding-bottom: clamp(30px, 4vw, 48px);
    overflow: hidden;
}

.page-head::before {
    content: "";
    position: absolute;
    top: -320px;
    left: 50%;
    width: min(1100px, 130vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(206, 255, 12, .10) 0%, transparent 62%);
    pointer-events: none;
}

.page-head > * {
    position: relative;
}

.page-head h1 {
    font-size: clamp(2.25rem, 5.4vw, 3.75rem);
    letter-spacing: -.03em;
}

.page-head .lead {
    margin-top: 18px;
}

.article-head h1 {
    max-width: 24ch;
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fg-dim);
    list-style: none;
}

.crumbs a {
    display: inline-block;
    padding-block: 5px;
    color: var(--fg-dim);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.crumbs a:hover {
    color: var(--lime);
}

.crumbs li[aria-current="page"] {
    color: var(--fg-muted);
}

.crumbs .sep {
    opacity: .5;
}

/* ---------- Post meta ---------- */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-dim);
}

.post-tag {
    padding: 4px 10px;
    border: 1px solid rgba(206, 255, 12, .3);
    border-radius: 999px;
    background: var(--lime-soft);
    color: var(--lime);
    text-decoration: none;
    transition: background-color var(--dur) var(--ease);
}

a.post-tag:hover {
    background: rgba(206, 255, 12, .22);
}

.post-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

/* ---------- Listing grid ---------- */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width:1040px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:680px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    position: relative;
    padding: clamp(22px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post-card h2 {
    font-size: 1.1875rem;
    line-height: 1.3;
}

.post-card h2 a {
    color: var(--fg);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.post-card:hover h2 a {
    color: var(--lime);
}

.post-card p {
    color: var(--fg-muted);
    font-size: .9375rem;
}

.post-card .more {
    margin-top: auto;
    padding-top: 4px;
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lime);
}

/* Whole card is clickable; the title link is stretched over it. */
.stretch::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.card-thumb {
    display: block;
    margin: calc(clamp(22px, 3vw, 28px) * -1) calc(clamp(22px, 3vw, 28px) * -1) 2px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured post spans the grid and runs wider. */
.post-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: center;
    margin-bottom: 20px;
    padding: clamp(24px, 3.5vw, 40px);
}

@media (max-width:860px) {
    .post-featured {
        grid-template-columns: 1fr;
    }
}

.post-featured h2 {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    line-height: 1.15;
    margin-bottom: 14px;
}

.post-featured p {
    font-size: 1rem;
}

.post-featured .card-thumb {
    margin: 0;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    aspect-ratio: 16 / 10;
}

/* ---------- Article ---------- */

.doc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

@media (max-width:1000px) {
    .doc-layout {
        grid-template-columns: 1fr;
    }
}

/* A grid item defaults to min-width:auto, so a wide table or code block would
   stretch the column instead of scrolling inside it. */
.doc-layout > .prose {
    min-width: 0;
}

.doc-aside {
    position: sticky;
    top: 100px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

@media (max-width:1000px) {
    .doc-aside {
        position: static;
        order: -1;
    }
}

.doc-aside h2 {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 16px;
}

.doc-toc {
    display: grid;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-toc a {
    display: block;
    padding: 7px 10px;
    border-radius: var(--r-sm);
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--fg-muted);
    text-decoration: none;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.doc-toc a:hover,
.doc-toc a.is-active {
    background: var(--lime-soft);
    color: var(--fg);
}

.article-cover {
    margin-bottom: clamp(28px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.article-cover img {
    width: 100%;
}

/* ---------- Prose + block content ---------- */

.prose {
    max-width: 78ch;
    color: var(--fg-muted);
    font-size: 1rem;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose h2 {
    margin-top: clamp(40px, 5vw, 56px);
    margin-bottom: 14px;
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    color: var(--fg);
    scroll-margin-top: 100px;
}

.prose h3 {
    margin-top: 32px;
    margin-bottom: 10px;
    font-size: 1.0625rem;
    color: var(--fg);
    scroll-margin-top: 100px;
}

.prose p {
    margin-bottom: 16px;
}

.prose ul,
.prose ol {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.prose li {
    position: relative;
    padding-left: 26px;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .68em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
}

.prose ol {
    counter-reset: prose-ol;
}

.prose ol li {
    counter-increment: prose-ol;
}

.prose ol li::before {
    content: counter(prose-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-mono);
    font-size: .8125rem;
    color: var(--lime);
}

.prose strong,
.prose b {
    color: var(--fg);
    font-weight: 600;
}

.prose a {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    text-decoration-thickness: 2px;
}

.prose hr,
.prose .wp-block-separator {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 40px 0;
}

/* Quote */
.prose blockquote,
.prose .wp-block-quote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 2px solid var(--lime);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: var(--surface);
    color: var(--fg);
    font-style: normal;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose blockquote cite {
    display: block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-style: normal;
    color: var(--fg-dim);
}

/* Code */
.prose code {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2);
    font-family: var(--font-mono);
    font-size: .875em;
    color: var(--fg);
    overflow-wrap: anywhere;
}

.prose pre {
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-2);
    overflow-x: auto;
}

.prose pre code {
    padding: 0;
    border: 0;
    background: none;
    font-size: .8125rem;
    line-height: 1.7;
}

/* Images */
.prose figure,
.prose .wp-block-image {
    margin: 28px 0;
}

.prose .wp-block-image img {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.prose figcaption,
.prose .wp-block-image figcaption {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: .75rem;
    line-height: 1.6;
    color: var(--fg-dim);
    text-align: left;
}

/* Tables — scroll inside their own box on a phone. */
.prose .wp-block-table,
.prose figure.wp-block-table {
    margin: 0 0 22px;
    overflow-x: auto;
}

.prose table {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
    font-size: .9375rem;
}

.prose th,
.prose td {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.prose th {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--fg-dim);
}

.prose td strong {
    color: var(--fg);
}

/* The callout group the imported posts use (lime left border). */
.prose .wp-block-group[style*="border-left-color"] {
    margin: 26px 0;
    background: var(--amber-soft);
    border: 1px solid rgba(255, 204, 77, .3);
    border-left-width: 3px;
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.prose .wp-block-group[style*="border-left-color"] p {
    margin: 0;
    color: #F2E3BE;
    font-size: .9375rem;
}

.prose .wp-block-group[style*="border-left-color"] strong {
    color: #FFF0CC;
}

.prose .wp-block-button__link {
    background: var(--lime);
    color: var(--on-lime);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.prose .wp-block-embed,
.prose iframe {
    max-width: 100%;
}

/* WordPress alignment helpers */
.alignleft {
    float: left;
    margin: 6px 24px 18px 0;
}

.alignright {
    float: right;
    margin: 6px 0 18px 24px;
}

.aligncenter {
    margin-inline: auto;
}

.prose .alignwide,
.prose .alignfull {
    max-width: none;
}

/* ---------- Notice ---------- */

.notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 22px;
    border: 1px solid rgba(255, 204, 77, .3);
    border-radius: var(--r-md);
    background: var(--amber-soft);
    color: #F2E3BE;
    font-size: .875rem;
    line-height: 1.6;
}

.notice svg {
    flex: none;
    margin-top: 2px;
    color: var(--amber);
}

/* ---------- Post navigation ---------- */

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(48px, 6vw, 72px);
    padding-top: clamp(28px, 4vw, 40px);
    border-top: 1px solid var(--line);
}

@media (max-width:680px) {
    .post-nav {
        grid-template-columns: 1fr;
    }
}

.post-nav a {
    display: block;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.post-nav a:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.post-nav small {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-dim);
}

.post-nav strong {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--fg);
}

.post-nav .next {
    text-align: right;
}

/* ---------- CTA panel ---------- */

.cta-panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    padding: clamp(36px, 5vw, 68px);
    text-align: center;
    overflow: hidden;
    margin-top: clamp(48px, 6vw, 72px);
}

.cta-panel::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    width: 700px;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(206, 255, 12, .13), transparent 65%);
    pointer-events: none;
}

.cta-panel > * {
    position: relative;
}

.cta-panel .lead {
    margin: 18px auto 30px;
}

.cta-panel .cta-row {
    justify-content: center;
}

/* ---------- Pagination ---------- */

.pagination {
    margin-top: clamp(40px, 5vw, 60px);
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding-inline: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: .8125rem;
    color: var(--fg-muted);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.pagination .page-numbers:hover {
    border-color: var(--line-strong);
    color: var(--fg);
}

.pagination .page-numbers.current {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--on-lime);
}

.pagination .page-numbers::after {
    display: none;
}

/* ---------- Search ---------- */

.search-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--fg);
    font: inherit;
    font-size: .9375rem;
}

.search-form input[type="search"]::placeholder {
    color: var(--fg-dim);
}

.search-form input[type="search"]:focus {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

/* ---------- Empty state / 404 ---------- */

.state {
    padding-block: clamp(40px, 6vw, 72px);
    text-align: center;
}

.state .big {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 700;
    color: var(--lime);
    line-height: 1;
    margin-bottom: 18px;
}

.state p {
    color: var(--fg-muted);
    margin: 0 auto 26px;
    max-width: 48ch;
}

.state .search-form {
    margin-inline: auto;
}

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--line);
    padding-top: clamp(48px, 5vw, 72px);
    margin-top: clamp(48px, 6vw, 88px);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

@media (max-width:900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer p {
    color: var(--fg-muted);
    font-size: .9375rem;
}

.footer h2 {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 18px;
}

.footer-links {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    display: block;
    padding-block: 4px;
    font-size: .9375rem;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
    width: fit-content;
}

.footer-links a:hover,
.footer-links .current-menu-item > a {
    color: var(--lime);
}

.footer-mail {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-mail a {
    display: block;
    padding-block: 3px;
    font-size: .9375rem;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.footer-mail a:hover {
    color: var(--lime);
}

.footer-mail small {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 5px;
}

.colophon {
    margin-top: clamp(44px, 5vw, 64px);
    padding-block: 26px;
    border-top: 1px solid var(--line);
}

.colophon p {
    font-size: .75rem;
    line-height: 1.7;
    color: var(--fg-dim);
}

/* ---------- Reveal ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------- WordPress admin bar ---------- */

.admin-bar .nav {
    top: 32px;
}

.admin-bar .drawer {
    top: 108px;
}

@media screen and (max-width: 782px) {
    .admin-bar .nav {
        top: 46px;
    }

    .admin-bar .drawer {
        top: 122px;
    }
}
