/* =============================================================
   ARGOK THEME — Premium Agency
   ============================================================= */

/* ---------------------------------------------------------------
   1. CSS Variables
---------------------------------------------------------------- */
:root {
    /* Colors */
    --c-bg:           #06060B;
    --c-surface:      #0D0D16;
    --c-surface-2:    #12121E;
    --c-border:       rgba(200, 169, 110, 0.12);
    --c-border-hover: rgba(200, 169, 110, 0.28);

    --c-gold:         #C8A96E;
    --c-gold-light:   #E0C99A;
    --c-gold-dim:     rgba(200, 169, 110, 0.15);

    --c-text:         #EDE8DC;
    --c-text-muted:   #7A7570;
    --c-text-faint:   #3E3B38;
    --c-white:        #FFFFFF;

    /* Typography */
    --font-serif:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:      'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --size-base:      1rem;         /* 16px */
    --lh-base:        1.75;
    --lh-heading:     1.1;

    /* Spacing */
    --space-xs:       0.5rem;
    --space-sm:       1rem;
    --space-md:       2rem;
    --space-lg:       4rem;
    --space-xl:       8rem;
    --space-2xl:      12rem;

    /* Layout */
    --max-width:      1360px;
    --max-narrow:     760px;
    --gutter:         clamp(1.5rem, 5vw, 4rem);

    /* Motion */
    --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast:  180ms;
    --duration-base:  320ms;
    --duration-slow:  600ms;

    /* Shadows */
    --shadow-card:    0 1px 0 var(--c-border), 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-hover:   0 1px 0 var(--c-border-hover), 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------------------
   2. Reset & Base
---------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-sans);
    font-size: var(--size-base);
    font-weight: 300;
    line-height: var(--lh-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ---------------------------------------------------------------
   3. Typography
---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: var(--lh-heading);
    color: var(--c-text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    font-size: 1rem;
    line-height: var(--lh-base);
    color: var(--c-text-muted);
}

/* ---------------------------------------------------------------
   4. Layout
---------------------------------------------------------------- */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

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

.container--narrow {
    max-width: var(--max-narrow);
}

/* ---------------------------------------------------------------
   5. Buttons
---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}

.btn-primary {
    background: var(--c-gold);
    color: var(--c-bg);
    border: 1px solid var(--c-gold);
}

.btn-primary:hover {
    background: var(--c-gold-light);
    border-color: var(--c-gold-light);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border);
}

.btn-ghost:hover {
    border-color: var(--c-gold);
    color: var(--c-gold);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--c-gold);
    border: 1px solid var(--c-gold);
}

.btn-outline:hover {
    background: var(--c-gold);
    color: var(--c-bg);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: 0.9375rem;
}

/* ---------------------------------------------------------------
   6. Navigation
---------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.75rem 0;
    transition: padding var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.site-header.is-scrolled {
    padding: 1rem 0;
    background: rgba(6, 6, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--c-border);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.logo-img {
    height: 2rem;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity var(--duration-fast);
}

.logo-img:hover { opacity: 0.75; }

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--c-text);
    letter-spacing: -0.01em;
    transition: color var(--duration-fast);
}

.logo-text:hover { color: var(--c-gold); }

/* Nav menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--c-text-muted);
    transition: color var(--duration-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0.35rem;
    left: 0.875rem;
    right: 0.875rem;
    height: 1px;
    background: var(--c-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-base) var(--ease-out);
}

.nav-menu a:hover,
.nav-menu a.nav-current {
    color: var(--c-text);
}

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

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
    z-index: 2;
}

.toggle-bar {
    display: block;
    height: 1px;
    background: var(--c-text);
    transition: all var(--duration-base) var(--ease-out);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------------------------------------------------------------
   7. Hero / Cover
---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--c-bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    transition: transform 8s ease-out;
}

.hero-bg img.is-loaded {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(6, 6, 11, 0.9) 0%,
        rgba(6, 6, 11, 0.5) 60%,
        rgba(6, 6, 11, 0.7) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding-top: 8rem;
    padding-bottom: 6rem;
    width: 100%;
}

.hero-content {
    max-width: 900px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 1px;
    background: var(--c-gold);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 300;
    line-height: 0.95;
    color: var(--c-white);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    display: block;
    font-style: italic;
    color: var(--c-gold);
    font-weight: 300;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(237, 232, 220, 0.6);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 300;
    color: var(--c-white);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background: var(--c-border);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    right: var(--gutter);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--c-text-muted);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color var(--duration-fast);
}

.hero-scroll-hint:hover { color: var(--c-gold); }

.scroll-text { writing-mode: vertical-rl; }

.scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, var(--c-gold), transparent);
    animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51%  { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------------------------------------------------------
   8. Services Section
---------------------------------------------------------------- */
.services-section {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--c-border);
}

.section-intro {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background: var(--c-gold);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: 300;
    color: var(--c-text);
    max-width: 700px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--c-border);
}

.service-card {
    padding: 3rem 2.5rem;
    border-right: 1px solid var(--c-border);
    position: relative;
    transition: background var(--duration-base) var(--ease-out);
    overflow: hidden;
}

.service-card:last-child { border-right: none; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--c-gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-slow) var(--ease-out);
}

.service-card:hover { background: var(--c-surface); }
.service-card:hover::before { transform: scaleX(1); }

.service-number {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--c-gold);
    font-weight: 400;
    margin-bottom: 1.5rem;
    display: block;
}

.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--c-text-muted);
    margin-bottom: 1.5rem;
    transition: color var(--duration-fast);
}

.service-card:hover .service-icon { color: var(--c-gold); }

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--c-text);
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--c-text-muted);
}

.service-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--c-border);
}

/* ---------------------------------------------------------------
   9. Posts Section & Grid
---------------------------------------------------------------- */
.posts-section {
    padding: var(--space-xl) 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    margin-top: var(--space-lg);
}

/* First card is featured / full-width */
.post-grid .post-card:first-child {
    grid-column: 1 / -1;
}

/* Post Card */
.post-card {
    background: var(--c-surface);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--duration-base) var(--ease-out);
    display: grid;
    grid-template-rows: auto 1fr;
}

.post-card:hover {
    z-index: 1;
    box-shadow: 0 0 0 1px var(--c-border-hover);
}

.post-card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-card:first-child .post-card-image-link {
    aspect-ratio: 21 / 9;
}

.post-card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-content {
    padding: 2rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    position: relative;
}

.post-card-tag {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-gold);
    font-weight: 400;
    transition: color var(--duration-fast);
}

.post-card-tag:hover { color: var(--c-gold-light); }

.post-card-title {
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 2.5vw, 2rem);
    font-weight: 400;
    color: var(--c-text);
    line-height: 1.2;
    margin: 0;
}

.post-card:first-child .post-card-title {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
}

.post-card-title a {
    transition: color var(--duration-fast);
}

.post-card-title a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.post-card-title a:hover { color: var(--c-gold); }

.post-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--c-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
}

.post-card-author {
    font-size: 0.8125rem;
    color: var(--c-text-muted);
    font-weight: 400;
    transition: color var(--duration-fast);
    z-index: 1;
    position: relative;
}

.post-card-author:hover { color: var(--c-gold); }

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--c-text-faint);
}

.post-card-reading-time::before {
    content: '·';
    margin-right: 1rem;
}

.post-card-link-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-muted);
    border: 1px solid var(--c-border);
    transition: all var(--duration-base) var(--ease-out);
    z-index: 1;
}

.post-card-link-arrow svg {
    width: 1.125rem;
    height: 1.125rem;
}

.post-card:hover .post-card-link-arrow {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: var(--c-bg);
    transform: translateX(3px);
}

/* ---------------------------------------------------------------
   10. CTA Section
---------------------------------------------------------------- */
.cta-section {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-eyebrow::before,
.cta-eyebrow::after {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background: var(--c-gold);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--c-text);
    line-height: 1.1;
}

.cta-title em {
    font-style: italic;
    color: var(--c-gold);
}

/* ---------------------------------------------------------------
   11. Taxonomy Header (Tag / Author)
---------------------------------------------------------------- */
.taxonomy-header,
.author-header {
    padding: calc(var(--space-xl) + 5rem) 0 var(--space-lg);
    border-bottom: 1px solid var(--c-border);
}

.taxonomy-eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 1rem;
}

.taxonomy-title,
.author-header-name {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--c-text);
    line-height: 1.05;
}

.taxonomy-description {
    margin-top: 1.25rem;
    font-size: 1.0625rem;
    max-width: 560px;
    color: var(--c-text-muted);
}

/* Author */
.author-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.author-header-avatar {
    flex-shrink: 0;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--c-border);
}

.author-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-header-bio {
    margin-top: 0.75rem;
    max-width: 560px;
}

.author-header-location {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    margin-top: 0.5rem;
    display: block;
}

/* ---------------------------------------------------------------
   12. Single Post
---------------------------------------------------------------- */
.post-full-header {
    padding: calc(var(--space-xl) + 5rem) 0 var(--space-lg);
    border-bottom: 1px solid var(--c-border);
}

.post-full-tags {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-gold);
    border: 1px solid var(--c-border);
    padding: 0.3125rem 0.875rem;
    transition: all var(--duration-fast);
}

.post-tag:hover {
    border-color: var(--c-gold);
    background: var(--c-gold-dim);
}

.post-full-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 300;
    color: var(--c-text);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.post-full-excerpt {
    font-size: 1.25rem;
    color: var(--c-text-muted);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.post-full-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.post-author-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: opacity var(--duration-fast);
}

.post-author-link:hover { opacity: 0.7; }

.post-author-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid var(--c-border);
}

.post-author-name {
    font-size: 0.9375rem;
    color: var(--c-text);
    font-weight: 400;
}

.post-full-date {
    font-size: 0.875rem;
    color: var(--c-text-muted);
}

.post-full-date::before,
.post-full-reading-time::before {
    content: '—';
    margin-right: 1.5rem;
    color: var(--c-text-faint);
}

.post-full-reading-time {
    font-size: 0.875rem;
    color: var(--c-text-muted);
}

/* Feature image */
.post-full-image,
.page-full-image {
    margin: 0;
    max-height: 70vh;
    overflow: hidden;
}

.post-full-image img,
.page-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 70vh;
}

.post-full-image figcaption {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--c-text-muted);
    padding: 0.875rem;
    font-style: italic;
}

/* Post content */
.post-full-content,
.page-full-content {
    padding: var(--space-lg) 0;
}

.gh-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(237, 232, 220, 0.8);
}

.gh-content > * + * { margin-top: 1.5em; }

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    color: var(--c-text);
}

.gh-content h2 { font-size: 2rem; font-weight: 400; }
.gh-content h3 { font-size: 1.5rem; font-weight: 400; }

.gh-content a {
    color: var(--c-gold);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color var(--duration-fast);
}

.gh-content a:hover {
    text-decoration-color: var(--c-gold);
}

.gh-content strong { color: var(--c-text); font-weight: 500; }

.gh-content blockquote {
    border-left: 1px solid var(--c-gold);
    padding-left: 2rem;
    margin: 2rem 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--c-text-muted);
    line-height: 1.6;
}

.gh-content ul, .gh-content ol {
    list-style: initial;
    padding-left: 1.5em;
}

.gh-content ol { list-style: decimal; }

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

.gh-content code {
    font-size: 0.875em;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    padding: 0.15em 0.45em;
    border-radius: 2px;
    color: var(--c-gold-light);
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
}

.gh-content pre {
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.gh-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--c-text);
}

.gh-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.gh-content hr {
    border: none;
    border-top: 1px solid var(--c-border);
    margin: 3rem 0;
}

/* Post footer */
.post-full-footer {
    padding: var(--space-md) 0 var(--space-lg);
    border-top: 1px solid var(--c-border);
}

.post-full-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Author card */
.post-author-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 460px;
}

.author-card-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--c-border);
}

.author-card-name {
    font-size: 1rem;
    margin-bottom: 0.375rem;
}

.author-card-name a { transition: color var(--duration-fast); }
.author-card-name a:hover { color: var(--c-gold); }

.author-card-bio { font-size: 0.9rem; }

/* Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-share-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.share-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    transition: all var(--duration-fast);
}

.share-link svg { width: 1rem; height: 1rem; }

.share-link:hover {
    border-color: var(--c-gold);
    color: var(--c-gold);
    background: var(--c-gold-dim);
}

/* ---------------------------------------------------------------
   13. Page Full
---------------------------------------------------------------- */
.page-full-header {
    padding: calc(var(--space-xl) + 5rem) 0 var(--space-lg);
    border-bottom: 1px solid var(--c-border);
}

.page-full-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 300;
    color: var(--c-text);
    line-height: 1.05;
}

.page-full-excerpt {
    font-size: 1.25rem;
    color: var(--c-text-muted);
    margin-top: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    max-width: 620px;
}

/* ---------------------------------------------------------------
   14. Pagination
---------------------------------------------------------------- */
.pagination-wrapper {
    margin-top: var(--space-lg);
    border-top: 1px solid var(--c-border);
    padding-top: var(--space-md);
}

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

.pagination a,
.pagination span {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: color var(--duration-fast);
    border-bottom: 1px solid transparent;
}

.pagination a:hover {
    color: var(--c-gold);
    border-bottom-color: var(--c-gold);
}

.pagination .page-number { font-size: 0.8125rem; color: var(--c-text-faint); }

/* ---------------------------------------------------------------
   15. Error Page
---------------------------------------------------------------- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
}

.error-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 540px;
}

.error-code {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 300;
    color: var(--c-text-faint);
    line-height: 1;
    letter-spacing: -0.04em;
    display: block;
}

.error-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 300;
    color: var(--c-text);
}

.error-desc { max-width: 400px; }

/* ---------------------------------------------------------------
   16. Footer
---------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--c-border);
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
    padding-bottom: var(--space-md);
}

.footer-logo {
    height: 1.75rem;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    margin-bottom: 1.25rem;
    transition: opacity var(--duration-fast);
}

.footer-logo:hover { opacity: 1; }

.footer-logo-text {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--c-text);
    margin-bottom: 1.25rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    max-width: 320px;
    line-height: 1.65;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-nav-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.footer-nav-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav-group a {
    font-size: 0.9375rem;
    color: var(--c-text-muted);
    transition: color var(--duration-fast);
    display: inline-block;
}

.footer-nav-group a:hover { color: var(--c-gold); }

.footer-divider {
    height: 1px;
    background: var(--c-border);
    margin: var(--space-sm) 0;
}

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

.footer-copy,
.footer-powered {
    font-size: 0.8125rem;
    color: var(--c-text-faint);
}

.footer-powered a {
    color: var(--c-text-muted);
    transition: color var(--duration-fast);
}

.footer-powered a:hover { color: var(--c-gold); }

/* ---------------------------------------------------------------
   17. Animations
---------------------------------------------------------------- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }

/* ---------------------------------------------------------------
   18. Responsive
---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-right: none;
        border-bottom: 1px solid var(--c-border);
    }

    .service-card:last-child { border-bottom: none; }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-grid .post-card:first-child {
        grid-column: auto;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 5rem;
        --space-lg: 3rem;
    }

    /* Nav mobile */
    .nav-menu {
        position: fixed;
        inset: 0;
        background: rgba(6, 6, 11, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--duration-base) var(--ease-out),
                    visibility var(--duration-base) var(--ease-out);
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .nav-menu a {
        font-size: 2rem;
        font-family: var(--font-serif);
        padding: 0.75rem 2rem;
        color: var(--c-text);
    }

    .nav-toggle { display: flex; }

    .hero-scroll-hint { display: none; }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-divider { height: 2rem; }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions .btn { width: 100%; justify-content: center; }

    .post-card-content { padding: 1.5rem 1.5rem 2.5rem; }

    .post-full-footer-inner {
        flex-direction: column;
    }

    .footer-links { gap: 2rem; }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .author-inner { flex-direction: column; }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .post-full-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .post-full-date::before,
    .post-full-reading-time::before {
        display: none;
    }
}

/* ---------------------------------------------------------------
   19. Ghost Specific (Portal, Members, Cards)
---------------------------------------------------------------- */
.gh-portal-trigger-icon { display: none !important; }

/* Ghost card styles */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: auto calc(50% - 50vw * 0.85);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-image-card img { margin: 0 auto; }

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kg-gallery-row {
    display: flex;
    gap: 0.5rem;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kg-video-card video {
    width: 100%;
}

.kg-bookmark-card {
    border: 1px solid var(--c-border);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: border-color var(--duration-fast);
}

.kg-bookmark-card:hover { border-color: var(--c-border-hover); }

.kg-bookmark-content { flex: 1; }

.kg-bookmark-title {
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 0.375rem;
}

.kg-bookmark-description {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kg-bookmark-thumbnail {
    width: 7rem;
    height: 5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.kg-callout-card {
    border-left: 3px solid var(--c-gold);
    background: var(--c-surface);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.kg-callout-emoji { font-size: 1.5rem; flex-shrink: 0; }

/* ---------------------------------------------------------------
   20. Utility
---------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

::selection {
    background: var(--c-gold-dim);
    color: var(--c-text);
}

:focus-visible {
    outline: 1px solid var(--c-gold);
    outline-offset: 3px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-text-faint); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--c-gold); }
