/*
Theme Name: Ghost Operator
Theme URI: https://gui.ge/
Author: GUI.GE
Author URI: https://gui.ge/
Description: Lightweight technical blog theme for gui.ge.
Version: 1.2.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: ghost-operator
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --bg: #f5f1e8;
    --bg-strong: #fbf8f1;
    --surface: rgba(255, 252, 246, 0.94);
    --surface-strong: #fffdf8;
    --surface-soft: rgba(248, 243, 234, 0.92);
    --text: #172131;
    --muted: #5b6473;
    --muted-strong: #3e4858;
    --accent: #146356;
    --accent-strong: #0b3e47;
    --accent-soft: rgba(20, 99, 86, 0.08);
    --line: rgba(22, 32, 51, 0.14);
    --line-strong: rgba(22, 32, 51, 0.24);
    --shadow: 0 18px 42px rgba(18, 29, 43, 0.08);
    --shadow-soft: 0 14px 30px rgba(18, 29, 43, 0.06);
    --radius: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --shell: 1380px;
    --sidebar: 320px;
    --content: 920px;
    --sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    color: var(--text);
    line-height: 1.75;
    background:
        linear-gradient(rgba(20, 99, 86, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 99, 86, 0.035) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(20, 99, 86, 0.1), transparent 30%),
        linear-gradient(180deg, var(--bg-strong) 0%, var(--bg) 100%);
    background-size: 28px 28px, 28px 28px, auto, auto;
}

body,
button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a:hover,
a:focus {
    color: var(--accent);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    cursor: pointer;
}

.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;
}

.screen-reader-text:focus {
    background: var(--surface-strong);
    clip: auto !important;
    clip-path: none;
    color: var(--text);
    display: block;
    height: auto;
    left: 1rem;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    top: 1rem;
    width: auto;
    z-index: 100000;
}

[data-interactive-card] {
    --mx: 50%;
    --my: 50%;
    --glow: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

[data-interactive-card]::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(20, 99, 86, 0.16), transparent 70%);
    opacity: var(--glow);
    transition: opacity 0.22s ease;
    pointer-events: none;
    z-index: 0;
}

[data-interactive-card] > * {
    position: relative;
    z-index: 1;
}

body.home [data-tilt-card] {
    --rx: 0deg;
    --ry: 0deg;
    --lift: 0px;
    transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, var(--lift), 0);
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.site-shell {
    width: min(calc(100% - 2rem), var(--shell));
    margin: 0 auto;
    padding: 2rem 0 2.5rem;
    display: grid;
    grid-template-columns: minmax(280px, var(--sidebar)) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.site-sidebar,
.site-column {
    min-width: 0;
}

.sidebar-inner,
.site-main,
.site-footer {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.sidebar-inner {
    position: sticky;
    top: 1.5rem;
    border-radius: 30px;
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.site-main {
    position: relative;
    border-radius: 30px;
    padding: 1.5rem 1.5rem 2rem;
    overflow: hidden;
}

.site-main::before {
    content: "";
    display: block;
    width: 100%;
    height: 6px;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(11, 62, 71, 0.92), rgba(20, 99, 86, 0.55), rgba(20, 99, 86, 0.04));
}

.site-footer {
    margin-top: 1.5rem;
    border-radius: 24px;
    padding: 1rem 1.5rem;
}

.brand-panel,
.site-navigation,
.sidebar-module,
.section-intro,
.post-card,
.entry-shell,
.not-found,
.comments-area,
.comment-respond,
.post-navigation,
.page-links {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
}

.brand-panel {
    padding: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(20, 99, 86, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 245, 237, 0.96) 100%);
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 36%);
    pointer-events: none;
    z-index: 0;
}

.brand-panel__eyebrow,
.section-intro__eyebrow,
.sidebar-module__title,
.widget-title,
.widget h2,
.widget h3,
.entry-kicker,
.comment-reply-title,
.comments-title,
.post-card__eyebrow,
.meta-label,
.footer-links,
.archive-list a,
.tag-cloud-link,
.signal-card__key,
.console-card__header code,
.console-card__footer {
    font-family: var(--mono);
    letter-spacing: 0.06em;
}

.brand-panel__eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.brand-panel__eyebrow span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.brand-panel__eyebrow span::before {
    content: "";
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(20, 99, 86, 0.1);
    animation: pulse-dot 2.6s ease-in-out infinite;
}

.custom-logo-link {
    display: inline-flex;
    margin-bottom: 1rem;
}

.custom-logo {
    max-height: 80px;
    width: auto;
}

.site-branding {
    display: grid;
    gap: 0.55rem;
}

.site-title,
.site-title a {
    margin: 0;
    color: var(--text);
}

.site-title {
    font-size: clamp(1.9rem, 2vw + 1rem, 2.7rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.site-tagline {
    margin: 0;
    color: var(--accent);
    font-size: 0.83rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.site-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.brand-grid {
    margin-top: 1.15rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.stat-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.92rem 0.96rem;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 99, 86, 0.32);
}

.stat-card__label {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--mono);
}

.stat-card__value {
    display: block;
    margin-top: 0.32rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.nav-toggle {
    display: none;
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.nav-toggle::after {
    content: "+";
    font-family: var(--mono);
    transition: transform 0.18s ease;
}

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

.site-navigation {
    overflow: hidden;
}

.site-navigation .menu,
.category-list,
.recent-list,
.archive-list,
.widget ul,
.widget ol,
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation li {
    border-top: 1px solid var(--line);
}

.site-navigation li:first-child {
    border-top: 0;
}

.site-navigation a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.92rem 1rem;
    color: var(--text);
    font-weight: 600;
}

.site-navigation a::after {
    content: ">";
    font-family: var(--mono);
    color: transparent;
    transform: translateX(-4px);
    transition: color 0.18s ease, transform 0.18s ease;
}

.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a,
.site-navigation a:hover {
    background: rgba(20, 99, 86, 0.08);
    color: var(--accent-strong);
}

.site-navigation .current-menu-item > a::after,
.site-navigation .current_page_item > a::after,
.site-navigation a:hover::after {
    color: var(--accent);
    transform: translateX(0);
}

.sidebar-module {
    padding: 1rem;
}

.sidebar-module__title,
.widget-title,
.widget h2,
.widget h3 {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.search-form {
    display: flex;
    gap: 0.65rem;
}

.search-field,
.search-submit,
textarea,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
select {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.search-field,
textarea,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
select {
    width: 100%;
    padding: 0.78rem 0.9rem;
}

.search-field:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus {
    outline: 2px solid rgba(20, 99, 86, 0.15);
    border-color: rgba(20, 99, 86, 0.32);
}

.search-submit,
input[type="submit"] {
    padding: 0.78rem 1rem;
    border: 0;
    background: var(--accent-strong);
    color: #fff;
    font-weight: 700;
}

.category-list,
.recent-list,
.archive-list,
.widget ul,
.widget ol {
    display: grid;
    gap: 0.72rem;
}

.category-list li,
.recent-list li,
.archive-list li,
.widget li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.item-count,
.widget .post-count {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.84rem;
}

.sidebar-note,
.comment-notes,
.logged-in-as,
.comment-awaiting-moderation,
.form-allowed-tags {
    color: var(--muted);
    font-size: 0.92rem;
}

.section-intro {
    padding: 1.35rem;
    margin-bottom: 1.4rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 244, 235, 0.96) 100%);
}

.section-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(20, 99, 86, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 99, 86, 0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.45;
    pointer-events: none;
}

.section-intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.92fr);
    gap: 1rem;
    align-items: stretch;
}

.section-intro--single .console-card {
    max-width: none;
}

.section-intro--single .console-card__quote {
    font-size: 1.06rem;
    line-height: 2.02;
}

.home-hero {
    position: relative;
    overflow: hidden;
    border-color: rgba(11, 62, 71, 0.26);
    background:
        radial-gradient(circle at top right, rgba(20, 99, 86, 0.16), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 238, 228, 0.98) 100%);
}

.home-hero::after {
    content: "MEMOIR";
    position: absolute;
    right: 1.25rem;
    bottom: -0.8rem;
    font-family: var(--mono);
    font-size: clamp(3.8rem, 10vw, 9rem);
    line-height: 1;
    letter-spacing: -0.08em;
    color: rgba(23, 33, 49, 0.06);
    pointer-events: none;
}

.home-hero__card {
    min-height: 330px;
    color: #eff8f1;
    border-color: rgba(12, 35, 40, 0.18);
    background:
        linear-gradient(140deg, rgba(8, 31, 41, 0.98) 0%, rgba(13, 61, 69, 0.96) 42%, rgba(25, 103, 85, 0.9) 100%);
    box-shadow:
        0 28px 50px rgba(8, 25, 29, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-hero__card .console-card__header {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.home-hero__card .console-card__header code {
    color: rgba(245, 249, 243, 0.72);
}

.home-hero__card .console-card__header span:nth-child(1) {
    background: #ff8a65;
}

.home-hero__card .console-card__header span:nth-child(2) {
    background: #ffd166;
}

.home-hero__card .console-card__header span:nth-child(3) {
    background: #59d98e;
}

.home-hero__card .console-card__quote {
    font-size: clamp(1.08rem, 1.15vw + 0.85rem, 1.34rem);
    line-height: 2;
    color: #0f5b43;
    text-wrap: pretty;
}

.section-intro__main,
.section-intro__aside {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.section-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.section-intro__eyebrow::before {
    content: "//";
    color: var(--accent);
    font-weight: 700;
}

.section-intro__title {
    margin: 0;
    font-size: clamp(2.2rem, 3vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.section-intro__desc {
    max-width: 56rem;
    margin: 0;
    color: var(--muted-strong);
    font-size: 1.02rem;
}

.section-intro__meta,
.signal-grid,
.post-card__meta,
.entry-meta,
.taxonomy-cloud,
.footer-links,
.pagination .nav-links,
.posts-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.meta-chip,
.taxonomy-chip,
.tag-cloud-link,
.meta-item,
.footer-links a,
.pagination .page-numbers,
.posts-navigation a,
.posts-navigation span {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    font-size: 0.88rem;
}

.meta-chip strong,
.meta-label {
    margin-right: 0.38rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.meta-chip:hover,
.taxonomy-chip:hover,
.footer-links a:hover {
    border-color: rgba(20, 99, 86, 0.3);
    background: rgba(20, 99, 86, 0.08);
    color: var(--accent-strong);
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.signal-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.95rem;
    display: grid;
    gap: 0.35rem;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.signal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 99, 86, 0.3);
}

.signal-card__key {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.signal-card strong {
    font-size: 1.15rem;
    line-height: 1.2;
}

.signal-card span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.console-card {
    display: grid;
    gap: 1rem;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 238, 226, 0.92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.console-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
}

.console-card__header span {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: rgba(20, 99, 86, 0.18);
}

.console-card__header code {
    margin-left: 0.18rem;
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console-card__quote {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.95;
}

.console-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.console-card--minimal {
    align-content: center;
    min-height: 100%;
}

.console-card--minimal .console-card__quote {
    font-size: 1.02rem;
    line-height: 2;
}

.feed-grid,
.archive-grid,
.search-grid {
    display: grid;
    gap: 1rem;
}

.post-card {
    padding: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 228px;
    gap: 1rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.post-card::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(11, 62, 71, 0.95), rgba(20, 99, 86, 0.38), transparent);
    opacity: 0.9;
    z-index: 1;
}

.post-card--no-image {
    grid-template-columns: minmax(0, 1fr);
}

.post-card__body {
    display: grid;
    gap: 0.8rem;
    min-width: 0;
}

.post-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.post-card__eyebrow::before {
    content: "#";
    color: var(--accent);
    font-weight: 700;
}

.post-card__title,
.entry-title,
.page-title {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.post-card__title {
    font-size: clamp(1.45rem, 1.2vw + 1rem, 2rem);
}

.post-card__title a {
    color: var(--text);
}

.post-card__title a:hover {
    color: var(--accent-strong);
}

.post-card__excerpt,
.entry-summary,
.not-found__text {
    margin: 0;
    color: var(--muted);
}

.post-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-card__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
}

.post-card__actions .post-card__meta,
.post-card__actions .taxonomy-cloud {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
}

.post-card__actions .taxonomy-cloud {
    margin-left: 0;
}

.post-card__media,
.entry-thumbnail {
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 99, 86, 0.22), transparent 24%),
        linear-gradient(135deg, rgba(11, 62, 71, 0.95), rgba(20, 99, 86, 0.82));
}

.post-card__media {
    align-self: stretch;
    min-height: 190px;
}

.post-card__media img,
.entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 99, 86, 0.28);
    box-shadow: 0 20px 36px rgba(18, 29, 43, 0.08);
}

.post-card:hover .post-card__media img {
    transform: scale(1.035);
}

.home .feed-grid--home {
    counter-reset: field-log;
    gap: 1.25rem;
}

.home .post-card {
    counter-increment: field-log;
    height: 316px;
    min-height: 316px;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 28%);
    gap: 1rem;
    padding: 1rem 1rem 1rem 1.08rem;
    align-items: stretch;
    border-radius: 28px;
    border-color: rgba(11, 62, 71, 0.18);
    background:
        radial-gradient(circle at top right, rgba(20, 99, 86, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 239, 230, 0.98) 100%);
    box-shadow:
        0 22px 38px rgba(18, 29, 43, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.home .post-card:hover {
    --lift: -8px;
    border-color: rgba(20, 99, 86, 0.28);
    box-shadow: 0 34px 52px rgba(16, 30, 31, 0.16);
}

.home .post-card:nth-child(odd) .post-card__media {
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.home .post-card:nth-child(even) {
    background:
        radial-gradient(circle at bottom left, rgba(11, 62, 71, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(242, 236, 228, 0.99) 100%);
}

.home .post-card:nth-child(even) .post-card__media {
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.home .post-card__body {
    position: relative;
    min-height: 100%;
    align-content: start;
    gap: 0.9rem;
    padding: 0.15rem 0.25rem 0.05rem 0;
}

.home .post-card__body::before {
    content: counter(field-log, decimal-leading-zero);
    position: absolute;
    right: 0;
    top: -0.25rem;
    font-family: var(--mono);
    font-size: clamp(3.8rem, 8vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: rgba(23, 33, 49, 0.07);
    pointer-events: none;
}

.home .post-card__eyebrow {
    color: var(--accent-strong);
    font-weight: 700;
}

.home .post-card__eyebrow::after {
    content: " / trace";
    color: rgba(23, 33, 49, 0.42);
}

.home .post-card__title {
    max-width: min(38rem, calc(100% - 4.5rem));
    font-size: clamp(1.72rem, 1.1vw + 1.25rem, 2.38rem);
}

.home .post-card__title a {
    background-image: linear-gradient(transparent calc(100% - 3px), rgba(20, 99, 86, 0.22) 0);
    background-repeat: no-repeat;
    background-size: 0 100%;
    transition: background-size 0.22s ease, color 0.18s ease;
}

.home .post-card:hover .post-card__title a {
    background-size: 100% 100%;
}

.home .post-card__excerpt {
    max-width: 44rem;
    min-height: 4.1rem;
    color: var(--muted-strong);
    font-size: 1rem;
}

.home .post-card__actions {
    margin-top: auto;
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding-top: 0.7rem;
    position: relative;
}

.home .post-card__actions::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(20, 99, 86, 0.24), rgba(20, 99, 86, 0.08));
}

.home .post-card__media {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 28px rgba(12, 26, 28, 0.14);
}

.home .post-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 36%),
        linear-gradient(135deg, rgba(11, 62, 71, 0.14), transparent 60%);
    pointer-events: none;
}

.home .post-card__media img {
    height: 100%;
    width: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.home .post-card .meta-item {
    background: rgba(255, 255, 255, 0.9);
}

.home .post-card .taxonomy-chip {
    background: rgba(20, 99, 86, 0.08);
    border-color: rgba(20, 99, 86, 0.18);
}

.entry-shell {
    padding: 1.5rem;
}

.entry-header {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.entry-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.entry-kicker::before {
    content: ">";
    color: var(--accent);
}

.entry-title,
.page-title {
    font-size: clamp(2.2rem, 3.4vw, 4rem);
}

.entry-content {
    max-width: var(--content);
}

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

.entry-content > *:last-child,
.comment-content > *:last-child {
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 2.2rem 0 0.9rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.entry-content h2 {
    font-size: 1.9rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content pre,
.entry-content table,
.entry-content .wp-block-image,
.entry-content .wp-block-embed,
.entry-content .wp-block-gallery {
    margin: 1.1rem 0;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4rem;
}

.entry-content li + li {
    margin-top: 0.45rem;
}

.entry-content blockquote {
    margin-left: 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--accent);
    border-radius: 0 18px 18px 0;
    background: rgba(20, 99, 86, 0.06);
    color: var(--accent-strong);
}

.entry-content pre,
.entry-content code,
.entry-content kbd,
.entry-content samp,
.wp-block-code code {
    font-family: var(--mono);
}

.entry-content code,
.entry-content kbd,
.entry-content samp {
    padding: 0.18rem 0.36rem;
    border-radius: 0.45rem;
    background: rgba(20, 99, 86, 0.08);
    color: var(--accent-strong);
    font-size: 0.92em;
}

.entry-content pre {
    overflow-x: auto;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(11, 62, 71, 0.1);
    background: #0f1a2a;
    color: #eff6ff;
    line-height: 1.65;
}

.entry-content pre code,
.wp-block-code code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
}

.entry-content th,
.entry-content td {
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    text-align: left;
}

.entry-content th {
    background: rgba(20, 99, 86, 0.08);
}

.entry-content .alignleft {
    float: left;
    margin-right: 1rem;
}

.entry-content .alignright {
    float: right;
    margin-left: 1rem;
}

.entry-content .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.entry-footer {
    max-width: var(--content);
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.post-navigation {
    margin-top: 1.25rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.post-navigation__item {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.95rem 1rem;
}

.post-navigation__label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--mono);
}

.post-navigation__item a {
    color: var(--text);
    font-weight: 700;
}

.page-links {
    margin-top: 1.5rem;
    padding: 0.8rem 1rem;
}

.pagination .page-numbers,
.posts-navigation a,
.posts-navigation span {
    justify-content: center;
}

.pagination .current,
.pagination .page-numbers:hover,
.posts-navigation a:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.comments-area {
    margin-top: 1.25rem;
    padding: 1.2rem;
}

.comments-title,
.comment-reply-title {
    margin: 0 0 0.8rem;
    color: var(--muted);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.comment-list {
    display: grid;
    gap: 0.95rem;
}

.comment-list .children {
    list-style: none;
    margin: 0.9rem 0 0 1.2rem;
    padding: 0 0 0 1rem;
    border-left: 1px dashed var(--line-strong);
}

.comment-body {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    padding: 1rem;
}

.comment-meta {
    margin-bottom: 0.6rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.comment-author img {
    border-radius: 999px;
}

.comment-metadata {
    margin-top: 0.25rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.comment-respond {
    margin-top: 1rem;
    padding: 1rem;
}

.comment-form {
    display: grid;
    gap: 0.95rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: var(--text);
}

.comment-form-cookies-consent {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.not-found {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.not-found__title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    margin: 0;
    color: var(--muted);
}

.has-large-font-size {
    line-height: 1.4;
}

@keyframes pulse-dot {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.18);
        opacity: 0.78;
    }
}

@media (max-width: 1080px) {
    .site-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-inner {
        position: static;
    }

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

    .site-navigation {
        display: none;
    }

    .site-navigation.is-open {
        display: block;
    }

    .section-intro__layout,
    .post-card {
        grid-template-columns: 1fr;
    }

    .home .post-card,
    .home .post-card:nth-child(even) {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .home .post-card__media,
    .home .post-card:nth-child(odd) .post-card__media,
    .home .post-card:nth-child(even) .post-card__media {
        min-height: 230px;
        clip-path: none;
    }

    .home .post-card__body::before {
        font-size: 3.4rem;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(calc(100% - 1rem), var(--shell));
        padding-top: 0.75rem;
    }

    .sidebar-inner,
    .site-main,
    .site-footer {
        border-radius: 20px;
    }

    .sidebar-inner,
    .site-main {
        padding: 1rem;
    }

    .section-intro,
    .entry-shell,
    .post-card,
    .comments-area,
    .comment-respond,
    .not-found {
        padding: 1rem;
    }

    .brand-grid,
    .signal-grid,
    .post-navigation {
        grid-template-columns: 1fr;
    }

    .entry-title,
    .page-title,
    .section-intro__title,
    .post-card__title {
        word-break: break-word;
    }

    .post-card__actions {
        flex-wrap: wrap;
    }

    .post-card__actions .post-card__meta,
    .post-card__actions .taxonomy-cloud {
        flex-wrap: wrap;
    }

    .home-hero__card {
        min-height: auto;
    }

    .home .post-card {
        padding: 1rem;
    }

    .home .post-card__title {
        max-width: none;
    }

    .home .post-card__body::before {
        position: static;
        display: block;
        margin-bottom: 0.15rem;
        font-size: 2.8rem;
        line-height: 1;
    }

    .home .post-card__excerpt {
        min-height: 0;
    }
}
