/* ============================================================
   TEXAS PROPHAWK — Ghost Theme CSS
   Brand: Bebas Neue / DM Sans / DM Mono
   Colors: hawk #c8551e · parchment #f5ede0 · forge #160e06
   ============================================================ */

/* ── Ghost custom font variables (required by GScan) ── */
:root {
    --gh-font-heading: 'Bebas Neue', sans-serif;
    --gh-font-body: 'DM Sans', sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Custom font declarations — required for Ghost GScan font detection */
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Bebas Neue'), local('BebasNeue-Regular');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: local('DM Sans');
}
@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: local('DM Mono');
}

:root {
    --hawk:       #c8551e;
    --hawk-light: #e4713a;
    --hawk-dark:  #9e3e12;
    --parchment:  #f5ede0;
    --parchment-2:#ede3d4;
    --forge:      #160e06;
    --forge-2:    #2a1a0e;
    --forge-3:    #3d2b1a;
    --sand:       #c4a882;
    --stone:      #7a6450;
    --white:      #ffffff;
    --error:      #dc2626;

    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'DM Mono', 'Courier New', monospace;

    --nav-h:      72px;
    --container:  1200px;
    --container-narrow: 760px;

    --radius-sm:  4px;
    --radius:     8px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-pill:9999px;

    --shadow-sm:  0 1px 3px rgba(22,14,6,.12), 0 1px 2px rgba(22,14,6,.08);
    --shadow:     0 4px 16px rgba(22,14,6,.14), 0 2px 6px rgba(22,14,6,.08);
    --shadow-lg:  0 12px 40px rgba(22,14,6,.22), 0 4px 12px rgba(22,14,6,.12);
    --shadow-hawk:0 6px 28px rgba(200,85,30,.40);

    --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--forge);
    background-color: var(--parchment);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hawk); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--hawk-light); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: .02em;
    line-height: 1.1;
    color: var(--forge);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p + p { margin-top: 1.2em; }

/* ── LAYOUT UTILITIES ── */
.ph-container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.ph-container--narrow {
    max-width: var(--container-narrow);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.ph-section { padding-block: clamp(3rem, 8vw, 7rem); }
.ph-section--articles { background: var(--parchment); }

.ph-section-label {
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hawk);
    margin-bottom: .75rem;
}
.ph-section-header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.ph-section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--forge); }
.ph-section-title--sm { font-size: clamp(1.4rem, 2.5vw, 2rem); }

/* ── BUTTONS ── */
.ph-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: .06em;
    padding: .75rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
    text-decoration: none;
}
.ph-btn:hover { transform: translateY(-2px); }
.ph-btn:active { transform: translateY(0); }

.ph-btn--primary {
    background: var(--hawk);
    color: var(--white);
    border-color: var(--hawk);
    box-shadow: var(--shadow-hawk);
}
.ph-btn--primary:hover {
    background: var(--hawk-light);
    border-color: var(--hawk-light);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(200,85,30,.55);
}
.ph-btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.5);
}
.ph-btn--ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.9);
    color: var(--white);
}
.ph-btn--outline {
    background: transparent;
    color: var(--hawk);
    border-color: var(--hawk);
}
.ph-btn--outline:hover {
    background: var(--hawk);
    color: var(--white);
}
.ph-btn--sm { font-size: .9rem; padding: .5rem 1.2rem; }
.ph-btn--lg { font-size: 1.3rem; padding: 1rem 2.5rem; }
.ph-btn__icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ── TAG PILLS ── */
.ph-tag-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: var(--radius-pill);
    background: rgba(200,85,30,.12);
    color: var(--hawk);
    border: 1px solid rgba(200,85,30,.25);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    margin-bottom: .75rem;
}
.ph-tag-pill:hover { background: var(--hawk); color: var(--white); }
.ph-tag-pill--sm { font-size: .62rem; padding: .2rem .6rem; }
.ph-tag-pill--lg { font-size: .75rem; padding: .35rem .9rem; }

/* ── NAV ── */
.ph-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--nav-h);
    background: rgba(22,14,6,.92);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(200,85,30,.2);
    transition: background var(--transition), border-color var(--transition);
}
.ph-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 1.5rem;
}
.ph-nav__brand { display: flex; align-items: center; }
.ph-nav__logo { height: 40px; width: auto; }
.ph-nav__logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: .08em;
    color: var(--parchment);
}
.ph-nav__links {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
}
.ph-nav__links ul { display: contents; }
.ph-nav__links li { list-style: none; }
.ph-nav__links a {
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    color: rgba(245,237,224,.8);
    padding: .4rem .8rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.ph-nav__links a:hover {
    color: var(--parchment);
    background: rgba(200,85,30,.18);
}
.ph-nav__links .nav-current a { color: var(--hawk); }

.ph-nav__actions { display: flex; align-items: center; gap: .75rem; }

.ph-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; height: 18px;
    background: none; border: none; cursor: pointer; padding: 0;
}
.ph-nav__hamburger span {
    display: block; height: 2px; width: 100%;
    background: var(--parchment);
    border-radius: var(--radius-pill);
    transition: transform var(--transition), opacity var(--transition);
}
.ph-nav__mobile {
    background: var(--forge-2);
    padding: 1.5rem var(--container-padding, 1.5rem);
    border-top: 1px solid rgba(200,85,30,.2);
}
.ph-nav__mobile nav { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }
.ph-nav__mobile a {
    font-size: 1rem; color: var(--parchment); padding: .6rem .75rem;
    border-radius: var(--radius-sm);
    display: block;
}
.ph-nav__mobile a:hover { background: rgba(200,85,30,.2); }

/* ── HERO ── */
.ph-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}
.ph-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: scale(1.04);
    animation: heroZoom 20s ease-out forwards;
}
.ph-hero__bg--default {
    background: linear-gradient(135deg, var(--forge) 0%, var(--forge-3) 50%, #3a1a08 100%);
}
@keyframes heroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.00); }
}
.ph-hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(22,14,6,.78) 0%,
        rgba(22,14,6,.55) 50%,
        rgba(200,85,30,.18) 100%
    );
}
.ph-hero__grain {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}
.ph-hero__content {
    position: relative; z-index: 3;
    display: flex; flex-direction: column; align-items: flex-start;
    padding-block: clamp(4rem, 10vw, 8rem);
    max-width: 720px;
}
.ph-hero__logo {
    height: clamp(60px, 10vw, 110px);
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,.5));
    animation: fadeUp .8s .1s both;
}
.ph-hero__title-fallback {
    font-size: clamp(3rem, 7vw, 6rem);
    color: var(--parchment);
    animation: fadeUp .8s .1s both;
}
.ph-hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: rgba(245,237,224,.85);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    animation: fadeUp .8s .25s both;
}
.ph-hero__cta-group {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeUp .8s .4s both;
}
.ph-hero__badge-row {
    display: flex; flex-wrap: wrap; gap: .5rem;
    animation: fadeUp .8s .55s both;
}
.ph-badge {
    font-family: var(--font-mono);
    font-size: .65rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(245,237,224,.22);
    color: rgba(245,237,224,.7);
    background: rgba(245,237,224,.06);
}
.ph-hero__scroll-hint {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .5rem;
    animation: fadeIn 1s 1s both;
}
.ph-hero__scroll-line {
    display: block; width: 1px; height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(245,237,224,.5));
    animation: scrollLine 2s 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
.ph-hero__scroll-text {
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em;
    text-transform: uppercase; color: rgba(245,237,224,.4);
}

/* ── TRADE TICKER ── */
.ph-trade-ticker {
    background: var(--hawk);
    overflow: hidden;
    padding-block: .6rem;
}
.ph-trade-ticker__inner {
    display: flex; gap: 1.5rem;
    font-family: var(--font-display);
    font-size: 1rem; letter-spacing: .1em;
    color: rgba(245,237,224,.95);
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}
.ph-ticker-sep { color: rgba(245,237,224,.4); flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ph-trade-ticker:hover .ph-trade-ticker__inner { animation-play-state: paused; }

/* ── FEATURED CARD ── */
.ph-section--featured { background: var(--parchment-2); }
.ph-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--parchment);
    box-shadow: var(--shadow-lg);
}
.ph-featured-card__image-wrap {
    display: block; overflow: hidden;
    aspect-ratio: 4/3;
}
.ph-featured-card__image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.ph-featured-card__image-wrap:hover .ph-featured-card__image { transform: scale(1.04); }
.ph-featured-card__body {
    padding: clamp(1.5rem, 4vw, 3rem);
    display: flex; flex-direction: column; gap: .5rem;
}
.ph-featured-card__title {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    margin-bottom: .5rem;
}
.ph-featured-card__title a { color: var(--forge); text-decoration: none; }
.ph-featured-card__title a:hover { color: var(--hawk); }
.ph-featured-card__excerpt { color: var(--stone); font-size: .95rem; line-height: 1.65; }
.ph-featured-card__meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: .4rem;
    font-size: .82rem; color: var(--stone);
    font-family: var(--font-mono);
    margin-block: .75rem;
}
.ph-meta__dot { color: var(--sand); }

/* ── POST GRID ── */
.ph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}
.ph-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

/* ── POST CARD ── */
.ph-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}
.ph-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.ph-card__image-wrap {
    display: block; overflow: hidden;
    aspect-ratio: 16/9; background: var(--parchment-2);
}
.ph-card__image {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.ph-card__image-wrap:hover .ph-card__image { transform: scale(1.05); }
.ph-card__featured-badge {
    position: absolute; top: .75rem; right: .75rem;
    font-family: var(--font-mono); font-size: .6rem;
    letter-spacing: .12em; text-transform: uppercase;
    background: var(--hawk); color: var(--white);
    padding: .2rem .6rem; border-radius: var(--radius-pill);
}
.ph-card__image-wrap { position: relative; }
.ph-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1; display: flex; flex-direction: column;
}
.ph-card__title {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: .5rem;
}
.ph-card__title a { color: var(--forge); text-decoration: none; }
.ph-card__title a:hover { color: var(--hawk); }
.ph-card__excerpt {
    font-size: .88rem; color: var(--stone); line-height: 1.6;
    flex: 1; margin-bottom: 1rem;
}
.ph-card__meta {
    display: flex; align-items: center; gap: .4rem;
    font-size: .78rem; color: var(--sand);
    font-family: var(--font-mono);
    margin-top: auto;
}

/* ── PAGINATION ── */
.pagination {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    margin-top: clamp(2rem, 5vw, 4rem);
    font-family: var(--font-mono);
}
.pagination .page-number { font-size: .82rem; color: var(--stone); }
.older-posts, .newer-posts {
    display: inline-flex; align-items: center;
    font-size: .88rem; font-family: var(--font-display);
    letter-spacing: .06em;
    padding: .55rem 1.2rem;
    border: 1px solid var(--parchment-2);
    border-radius: var(--radius);
    color: var(--forge);
    transition: background var(--transition), border-color var(--transition);
}
.older-posts:hover, .newer-posts:hover {
    background: var(--hawk); color: var(--white); border-color: var(--hawk);
}

/* ── CTA STRIP ── */
.ph-cta-strip {
    background: var(--forge);
    padding-block: clamp(3rem, 6vw, 5rem);
    background-image:
        linear-gradient(135deg, var(--forge) 60%, rgba(200,85,30,.15) 100%);
}
.ph-cta-strip__inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 2rem;
}
.ph-cta-strip__eyebrow {
    font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--hawk); display: block; margin-bottom: .5rem;
}
.ph-cta-strip__heading {
    font-size: clamp(1.5rem, 3vw, 2.6rem); color: var(--parchment);
    max-width: 560px;
}

/* ── ARTICLE PAGE ── */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; padding-top: var(--nav-h); }

.ph-article__header {
    background: var(--parchment-2);
    padding-block: clamp(3rem, 6vw, 5rem);
    text-align: left;
}
.ph-article__header .ph-container--narrow {
    padding-bottom: 2rem;
}
.ph-article__title {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    margin-block: .75rem 1.25rem;
    color: var(--forge);
}
.ph-article__excerpt {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--stone);
    line-height: 1.65;
    max-width: 680px;
}
.ph-article__meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 1rem;
    margin-top: 1.5rem;
}
.ph-author-chip { display: flex; align-items: center; gap: .6rem; }
.ph-author-chip__avatar {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--parchment);
    box-shadow: var(--shadow-sm);
}
.ph-author-chip__name {
    font-size: .88rem; font-weight: 600; color: var(--forge);
}
.ph-article__timestamps {
    display: flex; align-items: center; gap: .4rem;
    font-size: .82rem; color: var(--stone);
    font-family: var(--font-mono);
}
.ph-article__hero-image {
    max-width: 1200px;
    margin-inline: auto;
    margin-top: 2.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.ph-article__hero-image img {
    width: 100%; max-height: 560px; object-fit: cover;
}
.ph-article__image-caption {
    font-size: .78rem; color: var(--stone); text-align: center;
    padding: .6rem 1rem; font-family: var(--font-mono);
    background: var(--forge); color: rgba(245,237,224,.6);
}

/* ── ARTICLE CONTENT (Ghost card styles) ── */
.ph-article__content {
    padding-block: clamp(2.5rem, 6vw, 5rem);
    color: var(--forge);
    font-size: 1.05rem;
    line-height: 1.82;
}
.ph-article__content h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-top: 2.5em; margin-bottom: .6em; }
.ph-article__content h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); margin-top: 2em; margin-bottom: .5em; }
.ph-article__content p { margin-bottom: 1.4em; }
.ph-article__content ul,
.ph-article__content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.ph-article__content li { margin-bottom: .4em; }
.ph-article__content blockquote {
    border-left: 4px solid var(--hawk);
    padding: 1rem 1.5rem;
    margin: 2em 0;
    background: rgba(200,85,30,.06);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.1rem;
    color: var(--forge-3);
}
.ph-article__content code {
    font-family: var(--font-mono);
    font-size: .88em;
    background: rgba(22,14,6,.07);
    padding: .15em .45em;
    border-radius: var(--radius-sm);
}
.ph-article__content pre {
    background: var(--forge);
    color: var(--parchment);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.8em;
}
.ph-article__content pre code { background: none; padding: 0; }
.ph-article__content img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-block: 2em;
    width: 100%;
}
.ph-article__content a { color: var(--hawk); text-decoration: underline; text-underline-offset: 3px; }
.ph-article__content hr {
    border: none; border-top: 1px solid var(--parchment-2); margin-block: 3em;
}
.ph-article__content table {
    width: 100%; border-collapse: collapse; margin-bottom: 2em; font-size: .9rem;
}
.ph-article__content th {
    background: var(--forge); color: var(--parchment);
    padding: .75rem 1rem; text-align: left;
    font-family: var(--font-display); font-size: 1rem; letter-spacing: .04em;
}
.ph-article__content td {
    padding: .7rem 1rem; border-bottom: 1px solid var(--parchment-2);
}
.ph-article__content tr:nth-child(even) td { background: rgba(200,85,30,.04); }

.ph-article__tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding-top: 2rem; margin-top: 2rem;
    border-top: 1px solid var(--parchment-2);
}
.ph-article__tags-label {
    font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--stone); margin-right: .25rem;
}

/* ── AUTHOR BIO ── */
.ph-author-bio {
    background: var(--parchment-2);
    padding-block: 2.5rem;
    margin-top: 3rem;
}
.ph-author-bio__inner {
    display: flex; gap: 1.5rem; align-items: flex-start;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow-sm);
}
.ph-author-bio__avatar {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--parchment-2); flex-shrink: 0;
}
.ph-author-bio__label {
    font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--hawk); margin-bottom: .25rem;
}
.ph-author-bio__name { font-size: 1.3rem; margin-bottom: .4rem; }
.ph-author-bio__name a { color: var(--forge); }
.ph-author-bio__bio { font-size: .9rem; color: var(--stone); line-height: 1.6; }

/* ── RELATED POSTS ── */
.ph-related {
    background: var(--parchment);
    padding-block: clamp(3rem, 6vw, 5rem);
}

/* ── COMMENTS ── */
.ph-comments {
    padding-block: clamp(2rem, 5vw, 4rem);
    background: var(--parchment-2);
}

/* ── ARCHIVE HEADER ── */
.ph-archive-header {
    background: var(--forge);
    padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem));
    padding-bottom: clamp(2rem, 5vw, 4rem);
    position: relative; overflow: hidden;
}
.ph-archive-header__cover {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .2;
}
.ph-archive-header__content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
}
.ph-archive-header__content--author { flex-direction: row; align-items: center; gap: 1.5rem; }
.ph-archive-header__avatar {
    width: 100px; height: 100px; border-radius: 50%;
    border: 3px solid var(--hawk); object-fit: cover; flex-shrink: 0;
}
.ph-archive-header__title { font-size: clamp(2rem, 4vw, 3.5rem); color: var(--parchment); }
.ph-archive-header__desc {
    font-size: .95rem; color: rgba(245,237,224,.7);
    max-width: 560px; margin-top: .5rem; line-height: 1.65;
}
.ph-archive-header__count {
    font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
    color: var(--hawk); text-transform: uppercase; margin-top: .75rem;
}

/* ── PAGE ── */
.ph-page { padding-top: var(--nav-h); }
.ph-page__header {
    background: var(--parchment-2);
    padding-block: clamp(3rem, 6vw, 5rem);
}
.ph-page__title { font-size: clamp(2rem, 4vw, 3.5rem); }
.ph-page__excerpt { font-size: 1.1rem; color: var(--stone); margin-top: 1rem; }

/* ── ERROR PAGE ── */
.ph-error {
    min-height: 80vh; display: flex; align-items: center;
    padding-block: 4rem;
}
.ph-error__inner { text-align: center; }
.ph-error__code {
    font-family: var(--font-display); font-size: clamp(6rem, 18vw, 16rem);
    line-height: 1; color: var(--hawk); opacity: .15;
    margin-bottom: 1rem;
}
.ph-error__title { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 1rem; }
.ph-error__message { font-size: 1.05rem; color: var(--stone); margin-bottom: 2rem; }

/* ── FOOTER ── */
.ph-footer { background: var(--forge); color: var(--parchment); }
.ph-footer__cta-band {
    background: var(--hawk);
    padding-block: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
}
.ph-footer__cta-headline {
    font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.5rem);
    color: var(--white); margin-bottom: 1.25rem; letter-spacing: .04em;
}
.ph-footer__main { padding-block: clamp(2.5rem, 5vw, 4rem); }
.ph-footer__inner {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2.5rem;
    align-items: flex-start;
}
.ph-footer__logo { height: 36px; width: auto; filter: brightness(10); opacity: .9; }
.ph-footer__logo-text {
    font-family: var(--font-display); font-size: 1.5rem;
    letter-spacing: .08em; color: var(--parchment);
}
.ph-footer__tagline {
    font-size: .88rem; color: rgba(245,237,224,.5); margin-top: .6rem; max-width: 300px;
    line-height: 1.6;
}
.ph-footer__nav ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.ph-footer__nav a {
    font-size: .88rem; color: rgba(245,237,224,.6);
    transition: color var(--transition);
}
.ph-footer__nav a:hover { color: var(--hawk); }
.ph-footer__bar {
    border-top: 1px solid rgba(245,237,224,.1);
    padding-block: 1.25rem;
}
.ph-footer__bar-inner {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.ph-footer__copy {
    font-size: .78rem; color: rgba(245,237,224,.35);
    font-family: var(--font-mono);
}
.ph-footer__powered { font-size: .78rem; color: rgba(245,237,224,.25); }
.ph-footer__powered a { color: rgba(245,237,224,.3); }
.ph-footer__powered a:hover { color: var(--hawk); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── GHOST KOENIG CARD STYLES (GScan required) ── */

/* Width utilities — REQUIRED by GScan warnings */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 2em calc(50% - 42.5vw);
}
.kg-width-full {
    position: relative;
    width: 100vw;
    margin: 2em calc(50% - 50vw);
}

/* Image cards */
.gh-content .kg-image-card { margin-block: 2em; }
.gh-content .kg-image-card img { border-radius: var(--radius); width: 100%; }
.gh-content .kg-image-card figcaption {
    font-size: .78rem; color: var(--stone); text-align: center;
    margin-top: .5rem; font-family: var(--font-mono);
}

/* Gallery card */
.gh-content .kg-gallery-card { margin-block: 2em; }
.gh-content .kg-gallery-container {
    display: flex; flex-direction: column; gap: .5rem;
}
.gh-content .kg-gallery-row {
    display: flex; gap: .5rem;
}
.gh-content .kg-gallery-image img {
    flex: 1; object-fit: cover; border-radius: var(--radius-sm);
}

/* Bookmark card */
.gh-content .kg-bookmark-card {
    border: 1px solid var(--parchment-2); border-radius: var(--radius);
    overflow: hidden; margin-block: 2em;
}
.gh-content .kg-bookmark-container {
    display: flex; text-decoration: none; color: inherit;
    transition: border-color var(--transition);
}
.gh-content .kg-bookmark-container:hover { border-color: var(--hawk); }
.gh-content .kg-bookmark-content { padding: 1.25rem; flex: 1; min-width: 0; }
.gh-content .kg-bookmark-title { font-weight: 600; color: var(--forge); margin-bottom: .25rem; }
.gh-content .kg-bookmark-description {
    font-size: .85rem; color: var(--stone); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gh-content .kg-bookmark-metadata {
    display: flex; align-items: center; gap: .5rem; margin-top: .75rem;
}
.gh-content .kg-bookmark-icon { width: 16px; height: 16px; }
.gh-content .kg-bookmark-publisher { font-size: .78rem; color: var(--stone); font-family: var(--font-mono); }
.gh-content .kg-bookmark-thumbnail { flex-shrink: 0; }
.gh-content .kg-bookmark-thumbnail img { max-width: 180px; height: 100%; object-fit: cover; }

/* Callout card */
.gh-content .kg-callout-card {
    display: flex; gap: 1rem;
    padding: 1.25rem 1.5rem; border-radius: var(--radius);
    background: rgba(200,85,30,.08); margin-block: 2em;
    border-left: 4px solid var(--hawk);
}
.gh-content .kg-callout-emoji { font-size: 1.2rem; flex-shrink: 0; line-height: 1.7; }
.gh-content .kg-callout-text { font-size: .95rem; line-height: 1.65; }

/* Toggle card */
.gh-content .kg-toggle-card {
    border: 1px solid var(--parchment-2); border-radius: var(--radius);
    padding: 1.25rem 1.5rem; margin-block: 2em;
}
.gh-content .kg-toggle-heading {
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.gh-content .kg-toggle-heading-text { font-family: var(--font-display); font-size: 1.1rem; }
.gh-content .kg-toggle-content { margin-top: 1rem; font-size: .95rem; color: var(--stone); }

/* Video card */
.gh-content .kg-video-card { margin-block: 2em; position: relative; }
.gh-content .kg-video-card video { border-radius: var(--radius); width: 100%; }

/* Audio card */
.gh-content .kg-audio-card {
    border: 1px solid var(--parchment-2); border-radius: var(--radius);
    padding: 1.25rem 1.5rem; margin-block: 2em;
    display: flex; align-items: center; gap: 1rem;
}

/* Product card */
.gh-content .kg-product-card {
    border: 1px solid var(--parchment-2); border-radius: var(--radius-lg);
    padding: 2rem; margin-block: 2em;
    display: flex; gap: 1.5rem; align-items: flex-start;
}
.gh-content .kg-product-card-image { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; }
.gh-content .kg-product-card-title { font-family: var(--font-display); font-size: 1.3rem; }
.gh-content .kg-product-card-description { font-size: .9rem; color: var(--stone); margin-top: .4rem; }

/* Button card */
.gh-content .kg-btn-card { text-align: center; margin-block: 2em; }
.gh-content .kg-btn { display: inline-flex; }

/* HR card */
.gh-content .kg-divider { border: none; border-top: 1px solid var(--parchment-2); margin-block: 3em; }

/* NFT / embed / file cards */
.gh-content .kg-embed-card { margin-block: 2em; }
.gh-content .kg-embed-card iframe { border-radius: var(--radius); }
.gh-content .kg-file-card {
    border: 1px solid var(--parchment-2); border-radius: var(--radius);
    padding: 1rem 1.25rem; margin-block: 2em;
    display: flex; align-items: center; gap: 1rem;
    text-decoration: none; color: var(--forge);
    transition: border-color var(--transition);
}
.gh-content .kg-file-card:hover { border-color: var(--hawk); }
.gh-content .kg-file-card-contents { flex: 1; min-width: 0; }
.gh-content .kg-file-card-title { font-weight: 600; }
.gh-content .kg-file-card-caption { font-size: .82rem; color: var(--stone); }
.gh-content .kg-file-card-filesize { font-family: var(--font-mono); font-size: .72rem; color: var(--sand); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    .ph-featured-card {
        grid-template-columns: 1fr;
    }
    .ph-featured-card__image-wrap { aspect-ratio: 16/9; }
    .ph-nav__links { display: none; }
    .ph-nav__hamburger { display: flex; }
    .ph-cta-strip__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .ph-hero__content { align-items: center; text-align: center; }
    .ph-hero__cta-group { justify-content: center; }
    .ph-hero__badge-row { justify-content: center; }
    .ph-archive-header__content--author { flex-direction: column; align-items: flex-start; }
    .ph-author-bio__inner { flex-direction: column; }
    .ph-footer__inner { flex-direction: column; }
    .ph-footer__bar-inner { flex-direction: column; gap: .25rem; }
}

/* ── FOCUS / ACCESSIBILITY ── */
:focus-visible {
    outline: 3px solid var(--hawk);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ── PRINT ── */
@media print {
    .ph-nav, .ph-trade-ticker, .ph-cta-strip, .ph-footer { display: none; }
    .site-main { padding-top: 0; }
    .ph-article__content { font-size: 12pt; }
}
