/*
Theme Name: Altair HUD
Theme URI: https://www.nerdnet.com/altair8800/
Author: nerdnet.com
Description: A dark, telemetry-style theme inspired by the MITS Altair 8800 restoration site. Hyper-carbon void backgrounds, neon cyan readouts, laser-red micro interactions, Space Grotesk display type, HUD corner-bracket frame and cyan duotone photography.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: altair-hud
Tags: dark, blog, one-column, custom-menu, custom-logo, threaded-comments, translation-ready, editor-style, block-styles, wide-blocks
*/

/* ------------------------------------------------------------------ */
/* DESIGN TOKENS                                                       */
/* ------------------------------------------------------------------ */

:root {
    --void: #030508;
    --panel: #060A10;
    --silver: #E2E8F0;
    --dim: rgba(226, 232, 240, 0.62);
    --faint: rgba(226, 232, 240, 0.32);
    --line: rgba(226, 232, 240, 0.10);
    --cyan: #00F0FF;
    --cyan-soft: rgba(0, 240, 255, 0.10);
    --cyan-glass: rgba(0, 240, 255, 0.05);
    --cyan-edge: rgba(0, 240, 255, 0.35);
    --red: #FF003C;
    --disp: 'Space Grotesk', system-ui, sans-serif;
    --body: 'Inter', system-ui, sans-serif;
    --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --ease-silk: cubic-bezier(0.22, 1, 0.36, 1);
    --wrap: 1240px;
    --read: 820px;
    --gutter: clamp(22px, 5vw, 84px);
}

/* ------------------------------------------------------------------ */
/* RESET + BASE                                                        */
/* ------------------------------------------------------------------ */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--void);
    color: var(--silver);
    font-family: var(--body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* faint engineering grid - optional, Customizer > Altair HUD */
body.show-grid::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(to right, rgba(226, 232, 240, 0.025) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(to bottom, rgba(226, 232, 240, 0.02) 0 1px, transparent 1px 120px);
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: var(--cyan);
    color: var(--void);
}

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

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

a:hover {
    color: var(--red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 1px solid var(--cyan);
    outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--disp);
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--silver);
    margin: 1.8em 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 0.98; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: 0.02em; }
h4 { font-size: 1.1rem; letter-spacing: 0.14em; font-weight: 500; }
h5, h6 { font-size: 0.85rem; letter-spacing: 0.24em; font-weight: 500; color: var(--cyan); }

p { margin: 0 0 1.4em; }

strong, b { font-weight: 600; color: var(--silver); }

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 3em 0;
    position: relative;
    overflow: visible;
}

hr::after {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    width: 56px;
    height: 5px;
    background: var(--cyan);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background: var(--panel);
    color: var(--cyan);
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto;
    left: 24px;
    top: 24px;
    padding: 14px 20px;
    width: auto;
    z-index: 100000;
    font-family: var(--disp);
    letter-spacing: 0.2em;
    border: 1px solid var(--cyan);
}

/* ------------------------------------------------------------------ */
/* SHARED TYPE PARTS                                                   */
/* ------------------------------------------------------------------ */

.slash { color: var(--cyan); }
.red   { color: var(--red); }

.eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-family: var(--disp);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 0 0 26px;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--cyan);
}

.eyebrow a { color: inherit; }
.eyebrow a:hover { color: var(--red); }

.lede {
    color: var(--dim);
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    max-width: 60ch;
}

.hud-label {
    font-family: var(--disp);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--faint);
}

.chip,
.tag-cloud-link,
.post-tags a {
    display: inline-block;
    font-family: var(--disp);
    font-size: 10px !important;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid var(--cyan-edge);
    padding: 8px 14px;
    line-height: 1.2;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover,
.tag-cloud-link:hover,
.post-tags a:hover {
    color: var(--red);
    border-color: var(--red);
    background: rgba(255, 0, 60, 0.06);
}

/* ------------------------------------------------------------------ */
/* HUD OVERLAY - fixed frame and corner brackets                       */
/* ------------------------------------------------------------------ */

.hud-frame {
    position: fixed;
    inset: 14px;
    border: 1px solid var(--line);
    pointer-events: none;
    z-index: 50;
}

.admin-bar .hud-frame { top: 46px; }

.hud-frame::before,
.hud-frame::after,
.hud-frame .ck::before,
.hud-frame .ck::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--cyan);
    border-style: solid;
}

.hud-frame::before    { top: -1px;    left: -1px;  border-width: 2px 0 0 2px; }
.hud-frame::after     { top: -1px;    right: -1px; border-width: 2px 2px 0 0; }
.hud-frame .ck::before { bottom: -1px; left: -1px;  border-width: 0 0 2px 2px; }
.hud-frame .ck::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* scroll progress, bottom right */
.hud-progress {
    position: fixed;
    right: 38px;
    bottom: 30px;
    z-index: 51;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--disp);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--cyan);
    font-variant-numeric: tabular-nums;
    background: rgba(3, 5, 8, 0.7);
    padding: 6px 10px;
    backdrop-filter: blur(4px);
}

.hud-progress .bar {
    width: 90px;
    height: 2px;
    background: var(--line);
    position: relative;
    overflow: hidden;
}

.hud-progress .bar i {
    position: absolute;
    inset: 0;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
}

/* back to top */
.to-top {
    position: fixed;
    left: 38px;
    bottom: 26px;
    z-index: 51;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: rgba(6, 10, 16, 0.78);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, border-color 0.25s, background 0.25s;
}

.to-top.on { opacity: 1; pointer-events: auto; }

.to-top .chev {
    width: 11px;
    height: 11px;
    border-left: 1.6px solid var(--cyan);
    border-bottom: 1.6px solid var(--cyan);
    transform: rotate(135deg) translate(-2px, 2px);
    transition: border-color 0.25s, transform 0.25s var(--ease-silk);
}

.to-top:hover { border-color: var(--red); background: rgba(255, 0, 60, 0.06); }
.to-top:hover .chev { border-color: var(--red); transform: rotate(135deg) translate(0, 0); }

/* ------------------------------------------------------------------ */
/* LAYOUT WRAPPERS                                                     */
/* ------------------------------------------------------------------ */

.site {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main { flex: 1; }

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

.content-grid {
    max-width: var(--read);
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 120px;
}

.page-header {
    max-width: var(--read);
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------------------------------ */
/* HEADER                                                              */
/* ------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(to bottom, rgba(3, 5, 8, 0.96), rgba(3, 5, 8, 0.82));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.admin-bar .site-header { top: 32px; }

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 84px;
    padding-top: 14px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.custom-logo { max-height: 44px; width: auto; display: block; }

.site-title {
    margin: 0;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    line-height: 1.2;
}

.site-title a { color: var(--silver); }
.site-title a:hover { color: var(--silver); }
.site-title .slash { color: var(--cyan); }

.site-description {
    margin: 4px 0 0;
    font-family: var(--disp);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--faint);
}

.header-readout {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hud-clock {
    font-family: var(--disp);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hud-clock b { color: var(--cyan); font-weight: 500; }

/* primary navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.main-navigation li { position: relative; }

.main-navigation a {
    display: block;
    padding: 12px 14px;
    font-family: var(--disp);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--dim);
    position: relative;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-silk);
}

.main-navigation a:hover { color: var(--silver); }

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
    color: var(--red);
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after,
.main-navigation a:hover::after {
    transform: scaleX(1);
}

/* dropdowns */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 10, 16, 0.96);
    border: 1px solid var(--line);
    border-left: 2px solid var(--cyan);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s var(--ease-silk), visibility 0.25s;
    z-index: 10;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul a { padding: 12px 18px; }
.main-navigation ul ul a::after { left: 18px; right: 18px; }
.main-navigation ul ul ul { left: 100%; top: -1px; }

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    background: rgba(6, 10, 16, 0.78);
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.6px;
    background: var(--cyan);
    transition: transform 0.3s var(--ease-silk), opacity 0.2s, background 0.2s;
}

.menu-toggle:hover { border-color: var(--red); }
.menu-toggle:hover span { background: var(--red); }

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* spec row */
.spec-row {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    margin-bottom: 30px;
}

.spec-cell {
    flex: 1 1 0;
    min-width: 120px;
    padding: 18px 18px 0 0;
    border-right: 1px solid var(--line);
    margin-right: 18px;
}

.spec-cell:last-child { border-right: 0; margin-right: 0; }

.spec-cell .k {
    font-family: var(--disp);
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--faint);
    display: block;
    margin-bottom: 8px;
}

.spec-cell .v {
    font-family: var(--disp);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--silver);
    line-height: 1.3;
}

.spec-cell .v a { color: var(--silver); }
.spec-cell .v a:hover { color: var(--cyan); }

.spec-cell .v small {
    font-size: 0.7em;
    color: var(--cyan);
    margin-left: 4px;
}

/* ------------------------------------------------------------------ */
/* PAGE HEADER (archives, search, pages)                               */
/* ------------------------------------------------------------------ */

.page-header {
    padding: 90px 0 40px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}

.page-title {
    font-size: clamp(2.2rem, 4.4vw, 3.8rem);
    margin: 0 0 18px;
}

.archive-description { color: var(--dim); max-width: 60ch; }

/* ------------------------------------------------------------------ */
/* POST LIST - split telemetry rows                                    */
/* ------------------------------------------------------------------ */

.post-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
}

.feed-item {
    position: relative;
    border-bottom: 1px solid var(--line);
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    transition: border-color 0.35s var(--ease-silk), background 0.35s var(--ease-silk);
}

.feed-item:hover {
    border-color: var(--cyan);
    background: var(--cyan-glass);
}

.feed-body {
    padding: 44px clamp(22px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feed-index {
    font-family: var(--disp);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--faint);
    margin-bottom: 14px;
    transition: color 0.3s;
}

.feed-item:hover .feed-index { color: var(--red); }

.entry-title {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1.04;
    margin: 0 0 18px;
}

.entry-title a { color: var(--silver); }
.entry-title a:hover,
.feed-item:hover .entry-title a { color: var(--cyan); }

.entry-summary { color: var(--dim); font-size: 14.5px; line-height: 1.85; }
.entry-summary p:last-child { margin-bottom: 0; }

.data-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 22px;
    font-family: var(--disp);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
}

.data-strip a { color: var(--cyan); }
.data-strip a:hover { color: var(--red); }

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    font-family: var(--disp);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--silver);
    align-self: flex-start;
}

.read-more::before {
    content: ">>";
    color: var(--cyan);
    transition: transform 0.3s var(--ease-silk), color 0.2s;
}

.read-more:hover { color: var(--red); }
.read-more:hover::before { color: var(--red); transform: translateX(4px); }

.sticky .feed-index::after {
    content: " // PINNED";
    color: var(--red);
}

/* ------------------------------------------------------------------ */
/* SINGLE POST / PAGE                                                  */
/* ------------------------------------------------------------------ */

.entry-header { padding: 70px 0 34px; }

.single .entry-header .entry-title,
.page .entry-header .entry-title {
    font-size: clamp(2.4rem, 5.4vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

.entry-meta-row { margin: 0 0 40px; }

.entry-content {
    font-size: 16.5px;
    line-height: 1.9;
    color: rgba(226, 232, 240, 0.86);
}

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

.entry-content a {
    color: var(--cyan);
    border-bottom: 1px solid var(--cyan-edge);
}

.entry-content a:hover { color: var(--red); border-color: var(--red); }

.entry-content h2::before {
    content: "// ";
    color: var(--cyan);
}

.entry-content ul,
.entry-content ol { padding-left: 1.4em; margin: 0 0 1.6em; }

.entry-content li { margin-bottom: 0.5em; }

.entry-content ul { list-style: none; padding-left: 0; }

.entry-content ul > li {
    position: relative;
    padding-left: 26px;
}

.entry-content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 12px;
    height: 1px;
    background: var(--cyan);
}

.entry-content ol { counter-reset: hud; list-style: none; padding-left: 0; }

.entry-content ol > li {
    counter-increment: hud;
    position: relative;
    padding-left: 48px;
}

.entry-content ol > li::before {
    content: counter(hud, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.2em;
    font-family: var(--disp);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--red);
}

blockquote,
.wp-block-quote {
    margin: 2.2em 0;
    padding: 26px 30px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--cyan);
    background: rgba(6, 10, 16, 0.7);
    font-family: var(--disp);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--silver);
}

blockquote p:last-of-type { margin-bottom: 0; }

blockquote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cyan);
}

blockquote cite::before { content: "// "; }

.wp-block-pullquote {
    border-top: 1px solid var(--cyan);
    border-bottom: 1px solid var(--cyan);
    padding: 40px 0;
    margin: 3em 0;
    text-align: left;
}

.wp-block-pullquote blockquote {
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

code,
kbd,
samp {
    font-family: var(--mono);
    font-size: 0.88em;
    color: var(--cyan);
    background: var(--cyan-glass);
    border: 1px solid var(--line);
    padding: 1px 6px;
}

pre,
.wp-block-code {
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--cyan);
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 2px solid var(--cyan);
    padding: 22px 24px;
    overflow-x: auto;
    margin: 2em 0;
    position: relative;
}

pre code,
.wp-block-code code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 14px;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th,
thead td {
    font-family: var(--disp);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--cyan);
    border-bottom: 1px solid var(--cyan-edge);
}

tbody tr:hover { background: var(--cyan-glass); }

.wp-block-table figcaption,
figcaption,
.wp-caption-text,
.wp-element-caption {
    font-family: var(--disp);
    font-size: 10.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--faint);
    margin-top: 12px;
}

.wp-block-image,
.wp-caption { margin: 2.4em 0; }

.wp-block-image img,
.entry-content > p img {
    filter: grayscale(0.35) contrast(1.08) brightness(0.9);
    border: 1px solid var(--line);
    transition: filter 0.5s var(--ease-silk);
}

.wp-block-image img:hover,
.entry-content > p img:hover { filter: none; }

.alignwide { margin-left: -6vw; margin-right: -6vw; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignleft { float: left; margin: 0.4em 2em 1em 0; max-width: 50%; }
.alignright { float: right; margin: 0.4em 0 1em 2em; max-width: 50%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-block-gallery { gap: 8px; }

/* details block = blueprint accordion */
.wp-block-details,
details {
    border: 1px solid transparent;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.35s var(--ease-silk), background 0.35s var(--ease-silk);
    margin: 0;
}

.wp-block-details:first-of-type,
details:first-of-type { border-top: 1px solid var(--line); }

.wp-block-details[open],
details[open] {
    border: 1px solid var(--cyan);
    background: var(--cyan-glass);
}

details summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 18px;
    cursor: pointer;
    font-family: var(--disp);
    font-weight: 500;
    font-size: 1.02rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--silver);
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--cyan);
    transition: transform 0.4s var(--ease-silk), color 0.3s;
}

details[open] summary::after { content: "\2212"; color: var(--red); }

details summary:hover { color: var(--cyan); }

details > *:not(summary) {
    padding: 0 18px 18px;
    color: var(--dim);
    font-size: 14.5px;
}

/* buttons */
button,
.button,
.wp-block-button__link,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 24px;
    font-family: var(--disp);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(6, 10, 16, 0.78);
    border: 1px solid var(--cyan);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}

button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    color: var(--red);
    border-color: var(--red);
    background: rgba(255, 0, 60, 0.06);
}

.entry-content .wp-block-button__link { border-bottom: 1px solid var(--cyan); }

.wp-block-button.is-style-fill .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link.has-background {
    color: var(--void);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--silver);
    border-color: var(--line);
}

/* forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    font-family: var(--body);
    font-size: 15px;
    font-weight: 300;
    color: var(--silver);
    background: rgba(6, 10, 16, 0.8);
    border: 1px solid var(--line);
    border-left: 2px solid var(--cyan);
    border-radius: 0;
    padding: 14px 16px;
    transition: border-color 0.25s, background 0.25s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--cyan);
    background: var(--cyan-glass);
    outline: none;
}

label {
    display: block;
    font-family: var(--disp);
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 8px;
}

::placeholder { color: var(--faint); }

.search-form {
    display: flex;
    gap: 0;
}

.search-form label { flex: 1; margin: 0; }
.search-form .search-submit { border-left: 0; flex: 0 0 auto; }

/* post footer */
.entry-footer {
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.entry-footer .hud-label { margin-right: 6px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* post navigation */
.post-navigation,
.posts-navigation {
    margin-top: 64px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
}

.post-navigation .nav-previous,
.post-navigation .nav-next { padding: 0; }

.post-navigation .nav-next { border-left: 1px solid var(--line); text-align: right; }

.post-navigation a {
    display: block;
    padding: 26px 28px;
    color: var(--silver);
    transition: background 0.25s, color 0.25s;
    height: 100%;
}

.post-navigation a:hover { background: var(--cyan-glass); color: var(--cyan); }

.post-navigation .meta-nav {
    display: block;
    font-family: var(--disp);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}

.post-navigation .post-title {
    font-family: var(--disp);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* paginated archive navigation - module buttons */
.pagination { margin: 64px 0 0; }

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

.page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--disp);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--dim);
    border: 1px solid var(--line);
    background: rgba(6, 10, 16, 0.7);
    transition: border-color 0.25s, color 0.25s;
}

a.page-numbers:hover { color: var(--silver); border-color: rgba(226, 232, 240, 0.3); }

.page-numbers.current { color: var(--red); border-color: var(--red); }

.page-numbers.dots { border-color: transparent; background: none; }

.page-numbers.prev,
.page-numbers.next { color: var(--cyan); }

.page-numbers.prev:hover,
.page-numbers.next:hover { color: var(--red); border-color: var(--red); }

/* author box */
.author-box {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-top: 56px;
    padding: 26px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--cyan);
    background: rgba(6, 10, 16, 0.7);
}

.author-box img { filter: grayscale(0.6); border: 1px solid var(--line); }
.author-box h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: 0.12em; }
.author-box p { color: var(--dim); font-size: 14px; margin: 0; }

/* ------------------------------------------------------------------ */
/* SIDEBAR / WIDGETS                                                   */
/* ------------------------------------------------------------------ */

.widget-area { font-size: 14px; }

.widget {
    border: 1px solid var(--line);
    background: rgba(6, 10, 16, 0.6);
    padding: 24px 22px;
    margin-bottom: 26px;
    position: relative;
}

.widget::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    width: 14px;
    height: 14px;
    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
}

.widget-title,
.widget .wp-block-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--disp);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 0 0 18px;
}

.widget-title::before,
.widget .wp-block-heading::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--cyan);
}

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

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--faint);
}

.widget li:last-child { border-bottom: 0; }

.widget li a { color: var(--dim); }
.widget li a:hover { color: var(--cyan); }

.widget .tagcloud,
.widget .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------ */
/* COMMENTS                                                            */
/* ------------------------------------------------------------------ */

.comments-area {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    margin: 0 0 30px;
}

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children { padding-left: clamp(16px, 4vw, 48px); }

.comment-body {
    padding: 24px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    background: rgba(6, 10, 16, 0.6);
    position: relative;
}

.bypostauthor > .comment-body { border-left: 2px solid var(--red); }

.comment-author {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--disp);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.comment-author .avatar { filter: grayscale(0.6); border: 1px solid var(--line); }
.comment-author .says { display: none; }
.comment-author a { color: var(--silver); }

.comment-metadata {
    font-family: var(--disp);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin: 6px 0 14px;
}

.comment-metadata a { color: var(--faint); }

.comment-content { color: var(--dim); font-size: 15px; }

.reply a {
    font-family: var(--disp);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.reply a::before { content: ">> "; }

.comment-form p { margin-bottom: 18px; }

.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { text-transform: none; letter-spacing: 0.04em; font-family: var(--body); font-size: 13px; }

/* ------------------------------------------------------------------ */
/* FOOTER                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    background: linear-gradient(to bottom, rgba(6, 10, 16, 0.4), var(--void));
    padding: 56px 0 90px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
    margin-bottom: 40px;
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.footer-brand {
    font-family: var(--disp);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
}

.footer-links a,
.footer-credit {
    font-family: var(--disp);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--silver);
}

.footer-links a::before { content: ">> "; color: var(--cyan); }
.footer-links a:hover { color: var(--cyan); }

.footer-credit { color: var(--faint); display: flex; align-items: center; gap: 10px; }

.footer-credit .dot {
    width: 5px;
    height: 5px;
    background: var(--cyan);
    display: inline-block;
}

/* ------------------------------------------------------------------ */
/* 404 / NO RESULTS                                                    */
/* ------------------------------------------------------------------ */

.error-404 .kinetic-value,
.kinetic-value {
    font-family: var(--disp);
    font-weight: 700;
    font-size: clamp(5rem, 18vw, 14rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--cyan);
    margin: 0 0 20px;
}

.no-results,
.error-404 { padding: 60px 0 40px; }

.no-results .search-form,
.error-404 .search-form { max-width: 520px; margin-top: 30px; }

/* ------------------------------------------------------------------ */
/* BLOCK STYLES (registered in functions.php)                          */
/* ------------------------------------------------------------------ */

/* Heading: Outline */
.is-style-hud-outline {
    color: transparent !important;
    -webkit-text-stroke: 1.5px var(--cyan);
}

.entry-content h2.is-style-hud-outline::before { content: none; }

/* Paragraph: Eyebrow */
p.is-style-hud-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--disp);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--cyan);
}

p.is-style-hud-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--cyan);
    flex: 0 0 34px;
}

/* Group: HUD Panel (corner brackets) */
.is-style-hud-panel {
    position: relative;
    border: 1px solid var(--line);
    background: rgba(6, 10, 16, 0.7);
    padding: clamp(22px, 3vw, 36px);
    margin: 2.4em 0;
}

.is-style-hud-panel::before,
.is-style-hud-panel::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: solid var(--cyan);
}

.is-style-hud-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.is-style-hud-panel::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Group: Readout (left cyan rule) */
.is-style-hud-readout {
    border: 1px solid var(--line);
    border-left: 2px solid var(--cyan);
    background: rgba(6, 10, 16, 0.7);
    padding: 20px 24px;
    margin: 2em 0;
}

/* Image: Duotone */
.wp-block-image.is-style-hud-duotone {
    position: relative;
}

.wp-block-image.is-style-hud-duotone img {
    filter: grayscale(0.55) contrast(1.12) brightness(0.78);
}

.wp-block-image.is-style-hud-duotone > a,
.wp-block-image.is-style-hud-duotone > img {
    display: block;
    position: relative;
}

.wp-block-image.is-style-hud-duotone::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 240, 255, 0.12), rgba(3, 5, 8, 0.5) 70%);
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Columns: Spec Row */
.wp-block-columns.is-style-hud-spec {
    gap: 0;
    border-top: 1px solid var(--line);
}

.wp-block-columns.is-style-hud-spec > .wp-block-column {
    padding: 18px 18px 0 0;
    margin-right: 18px;
    border-right: 1px solid var(--line);
}

.wp-block-columns.is-style-hud-spec > .wp-block-column:last-child { border-right: 0; margin-right: 0; }

/* ------------------------------------------------------------------ */
/* REVEALS                                                             */
/* ------------------------------------------------------------------ */

.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease-silk), transform 0.9s var(--ease-silk);
}

.js .reveal.on {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------------ */
/* REDUCED MOTION                                                      */
/* ------------------------------------------------------------------ */

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

    .js .reveal { opacity: 1; transform: none; transition: none; }

    .feed-item,
    details { transition: none; }
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
    .alignwide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 900px) {
    .hud-frame { display: none; }

    .hud-clock { display: none; }

    .menu-toggle { display: inline-flex; }

    .main-navigation .menu-wrap {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: rgba(3, 5, 8, 0.98);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s var(--ease-silk);
    }

    .main-navigation.toggled .menu-wrap { max-height: 80vh; overflow-y: auto; }

    .main-navigation ul { flex-direction: column; padding: 10px var(--gutter) 22px; }

    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        border-left: 1px solid var(--line);
        background: none;
        padding: 0 0 0 14px;
        min-width: 0;
    }

    .main-navigation a { padding: 14px 0; }
    .main-navigation a::after { left: 0; right: auto; width: 34px; }


    .post-navigation .nav-links { grid-template-columns: 1fr; }
    .post-navigation .nav-next { border-left: 0; border-top: 1px solid var(--line); }

    .spec-cell { flex: 1 1 40%; margin-bottom: 18px; }

    .hud-progress { right: 16px; bottom: 16px; }
    .to-top { left: 16px; bottom: 16px; }

    .alignleft,
    .alignright { float: none; margin: 2em 0; max-width: 100%; }

    .wp-block-columns.is-style-hud-spec > .wp-block-column { border-right: 0; margin-right: 0; }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
    .admin-bar .site-header { top: 0; }
}

@media (max-width: 480px) {
    .kinetic-value { -webkit-text-stroke-width: 1px; }
    .main-navigation a,
    .footer-links a { letter-spacing: 0.16em; }
    .hud-progress .bar { width: 60px; }
}

/* editor palette helpers */
.has-void-color { color: #030508 !important; }
.has-panel-color { color: #060A10 !important; }
.has-silver-color { color: #E2E8F0 !important; }
.has-cyan-color { color: #00F0FF !important; }
.has-red-color { color: #FF003C !important; }
.has-void-background-color { background-color: #030508 !important; }
.has-panel-background-color { background-color: #060A10 !important; }
.has-silver-background-color { background-color: #E2E8F0 !important; }
.has-cyan-background-color { background-color: #00F0FF !important; }
.has-red-background-color { background-color: #FF003C !important; }

/* compact eyebrow inside feed rows */
.feed-body .eyebrow {
    gap: 4px 10px;
    letter-spacing: 0.24em;
    margin-bottom: 18px;
}

.feed-body .eyebrow::before { display: none; }

