/* ============================================================
   Garden Journal — Main Stylesheet
   ============================================================
   Design System: Warm, organic garden aesthetic with premium feel.
   Fonts: Outfit (headings), Inter (body) via Google Fonts.
   ============================================================ */

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Green palette */
    --gj-green-900: #1B4332;
    --gj-green-800: #2D6A4F;
    --gj-green-700: #40916C;
    --gj-green-600: #52796F;
    --gj-green-500: #74B49B;
    --gj-green-400: #95D5B2;
    --gj-green-300: #B7E4C7;
    --gj-green-200: #D8F3DC;
    --gj-green-100: #F0FFF4;

    /* Earth palette */
    --gj-earth-800: #5D4037;
    --gj-earth-700: #795548;
    --gj-earth-600: #8D6E63;
    --gj-earth-500: #A1887F;
    --gj-earth-400: #BCAAA4;
    --gj-earth-300: #D7CCC8;
    --gj-earth-200: #EFEBE9;
    --gj-earth-100: #FAF6F0;

    /* Accent colors */
    --gj-harvest: #D4A574;
    --gj-harvest-dark: #B8864E;
    --gj-harvest-light: #F0DCC8;
    --gj-sky: #87CEEB;
    --gj-sun: #FFD93D;
    --gj-berry: #C44569;

    /* Semantic colors */
    --gj-text-primary: #2D3436;
    --gj-text-secondary: #636E72;
    --gj-text-muted: #B2BEC3;
    --gj-bg: #FAF6F0;
    --gj-bg-card: #FFFFFF;
    --gj-bg-glass: rgba(255, 255, 255, 0.72);
    --gj-border: #E8E2D8;
    --gj-border-light: #F0EBE3;

    /* Shadows */
    --gj-shadow-sm: 0 1px 3px rgba(27, 67, 50, 0.06);
    --gj-shadow: 0 4px 24px rgba(27, 67, 50, 0.08);
    --gj-shadow-hover: 0 8px 32px rgba(27, 67, 50, 0.14);
    --gj-shadow-lg: 0 16px 48px rgba(27, 67, 50, 0.12);

    /* Typography */
    --gj-font-heading: 'Outfit', system-ui, sans-serif;
    --gj-font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --gj-space-xs: 0.25rem;
    --gj-space-sm: 0.5rem;
    --gj-space-md: 1rem;
    --gj-space-lg: 1.5rem;
    --gj-space-xl: 2rem;
    --gj-space-2xl: 3rem;
    --gj-space-3xl: 4rem;

    /* Border radius */
    --gj-radius-sm: 6px;
    --gj-radius-md: 12px;
    --gj-radius-lg: 16px;
    --gj-radius-xl: 24px;
    --gj-radius-full: 9999px;

    /* Transitions */
    --gj-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gj-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --gj-max-width: 1200px;
    --gj-narrow-width: 800px;
    --gj-header-height: 72px;
}

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

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

body {
    font-family: var(--gj-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gj-text-primary);
    background-color: var(--gj-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--gj-green-700);
    text-decoration: none;
    transition: color var(--gj-transition-fast);
}

a:hover {
    color: var(--gj-green-900);
}

a:focus-visible {
    outline: 2px solid var(--gj-green-500);
    outline-offset: 2px;
    border-radius: var(--gj-radius-sm);
}

/* ─── Skip Link ─────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--gj-space-md);
    z-index: 100000;
    padding: var(--gj-space-sm) var(--gj-space-md);
    background: var(--gj-green-900);
    color: #fff;
    border-radius: var(--gj-radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: var(--gj-space-sm);
    color: #fff;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    width: auto;
}

/* ─── Header ────────────────────────────────────────────────── */
.gj-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--gj-bg-glass);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--gj-border-light);
    height: var(--gj-header-height);
}

.gj-header__inner {
    max-width: var(--gj-max-width);
    margin: 0 auto;
    padding: 0 var(--gj-space-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gj-space-xl);
}

.gj-header__brand {
    display: flex;
    align-items: center;
    gap: var(--gj-space-md);
    flex-shrink: 0;
}

.gj-header__logo img {
    height: 40px;
    width: auto;
}

.gj-header__site-link {
    text-decoration: none;
    color: inherit;
}

.gj-header__site-link:hover {
    color: inherit;
}

.gj-header__site-name {
    font-family: var(--gj-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gj-green-900);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.gj-header__tagline {
    font-size: 0.75rem;
    color: var(--gj-text-secondary);
    margin: 0;
    line-height: 1.2;
}

/* Navigation */
.gj-nav__list {
    list-style: none;
    display: flex;
    gap: var(--gj-space-xs);
    margin: 0;
    padding: 0;
}

.gj-nav__list li a {
    display: block;
    padding: var(--gj-space-sm) var(--gj-space-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gj-text-secondary);
    border-radius: var(--gj-radius-sm);
    transition: all var(--gj-transition-fast);
}

.gj-nav__list li a:hover {
    color: var(--gj-green-800);
    background: var(--gj-green-100);
}

.gj-nav__list li.current-menu-item a,
.gj-nav__list li.current_page_item a {
    color: var(--gj-green-900);
    background: var(--gj-green-100);
    font-weight: 600;
}

/* Hamburger toggle */
.gj-header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--gj-space-sm);
    border-radius: var(--gj-radius-sm);
}

.gj-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.gj-hamburger span {
    display: block;
    height: 2px;
    background: var(--gj-green-900);
    border-radius: 2px;
    transition: all var(--gj-transition);
}

/* ─── Main ──────────────────────────────────────────────────── */
.gj-main {
    flex: 1;
    padding-bottom: var(--gj-space-3xl);
}

/* ─── Container ─────────────────────────────────────────────── */
.gj-container {
    max-width: var(--gj-max-width);
    margin: 0 auto;
    padding: 0 var(--gj-space-xl);
}

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

/* ─── Hero Section ──────────────────────────────────────────── */
.gj-hero {
    background: linear-gradient(135deg, var(--gj-green-900) 0%, var(--gj-green-700) 50%, var(--gj-green-600) 100%);
    padding: var(--gj-space-3xl) var(--gj-space-xl);
    margin-bottom: var(--gj-space-3xl);
    position: relative;
    overflow: hidden;
}

.gj-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(116, 180, 155, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 165, 116, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.gj-hero__inner {
    max-width: var(--gj-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.gj-hero__title {
    font-family: var(--gj-font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--gj-space-md);
}

.gj-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--gj-space-xl);
    max-width: 480px;
}

.gj-hero__accent {
    font-size: 4rem;
    display: flex;
    gap: var(--gj-space-lg);
}

.gj-hero__leaf {
    animation: float 3s ease-in-out infinite;
}

.gj-hero__leaf--2 {
    animation-delay: 0.5s;
}

.gj-hero__leaf--3 {
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(5deg);
    }
}

/* ─── Buttons ───────────────────────────────────────────────── */
.gj-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--gj-space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--gj-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--gj-radius-md);
    cursor: pointer;
    transition: all var(--gj-transition);
    text-decoration: none;
}

.gj-btn--primary {
    background: #fff;
    color: var(--gj-green-900);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gj-btn--primary:hover {
    background: var(--gj-green-100);
    color: var(--gj-green-900);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.gj-btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.gj-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ─── Stats Cards ───────────────────────────────────────────── */
.gj-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gj-space-lg);
    margin-bottom: var(--gj-space-3xl);
}

.gj-stat-card {
    background: var(--gj-bg-card);
    border-radius: var(--gj-radius-lg);
    padding: var(--gj-space-xl);
    text-align: center;
    box-shadow: var(--gj-shadow);
    border: 1px solid var(--gj-border-light);
    transition: all var(--gj-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gj-space-xs);
}

.gj-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gj-shadow-hover);
}

.gj-stat-card__icon {
    font-size: 2rem;
    margin-bottom: var(--gj-space-xs);
}

.gj-stat-card__number {
    font-family: var(--gj-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gj-green-800);
    line-height: 1;
}

.gj-stat-card__label {
    font-size: 0.85rem;
    color: var(--gj-text-secondary);
    font-weight: 500;
}

/* ─── Section Headers ───────────────────────────────────────── */
.gj-section {
    margin-bottom: var(--gj-space-3xl);
}

.gj-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--gj-space-xl);
    padding-bottom: var(--gj-space-md);
    border-bottom: 2px solid var(--gj-border);
}

.gj-section__title {
    font-family: var(--gj-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gj-green-900);
    letter-spacing: -0.02em;
}

.gj-section__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gj-green-700);
}

.gj-section__link:hover {
    color: var(--gj-green-900);
}

/* ─── Page Header ───────────────────────────────────────────── */
.gj-page-header {
    padding: var(--gj-space-3xl) 0 var(--gj-space-xl);
    margin-bottom: var(--gj-space-xl);
}

.gj-page-header--taxonomy {
    text-align: center;
    padding-bottom: var(--gj-space-2xl);
    border-bottom: 2px solid var(--gj-border);
}

.gj-page-header__icon {
    font-size: 3rem;
    margin-bottom: var(--gj-space-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gj-page-header__icon img.gj-page-header__thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--gj-radius-md);
    border: 2px solid var(--gj-border-light);
    box-shadow: var(--gj-shadow);
}

.gj-page-header__title {
    font-family: var(--gj-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gj-green-900);
    letter-spacing: -0.02em;
    margin-bottom: var(--gj-space-sm);
}

.gj-page-header__desc {
    font-size: 1.05rem;
    color: var(--gj-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--gj-space-lg);
}

.gj-page-header__stats {
    display: flex;
    gap: var(--gj-space-xl);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--gj-space-md);
}

.gj-page-header__children {
    margin-top: var(--gj-space-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--gj-space-sm);
    justify-content: center;
    align-items: center;
}

.gj-stat-inline {
    font-size: 0.95rem;
    color: var(--gj-text-secondary);
}

.gj-stat-inline strong {
    color: var(--gj-green-800);
    font-weight: 700;
}

/* ─── Card Grid ─────────────────────────────────────────────── */
.gj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--gj-space-xl);
}

/* ─── Journal Card ──────────────────────────────────────────── */
.gj-card {
    background: var(--gj-bg-card);
    border-radius: var(--gj-radius-lg);
    overflow: hidden;
    box-shadow: var(--gj-shadow);
    border: 1px solid var(--gj-border-light);
    transition: all var(--gj-transition);
    display: flex;
    flex-direction: column;
}

.gj-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gj-shadow-hover);
}

.gj-card__image-link {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
}

.gj-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--gj-transition);
}

.gj-card:hover .gj-card__image {
    transform: scale(1.04);
}

.gj-card__image-link--empty {
    background: linear-gradient(135deg, var(--gj-green-100), var(--gj-green-200));
    display: flex;
    align-items: center;
    justify-content: center;
}

.gj-card__placeholder {
    font-size: 3rem;
    opacity: 0.4;
}

.gj-card__body {
    padding: var(--gj-space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--gj-space-sm);
}

.gj-card__meta {
    display: flex;
    align-items: center;
    gap: var(--gj-space-sm);
    flex-wrap: wrap;
}

.gj-card__title {
    font-family: var(--gj-font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

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

.gj-card__title a:hover {
    color: var(--gj-green-800);
}

.gj-card__excerpt {
    font-size: 0.9rem;
    color: var(--gj-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gj-card__taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gj-space-xs);
    margin-top: auto;
    padding-top: var(--gj-space-sm);
}

.gj-card__footer {
    display: flex;
    align-items: center;
    gap: var(--gj-space-md);
    padding-top: var(--gj-space-sm);
    border-top: 1px solid var(--gj-border-light);
    margin-top: var(--gj-space-sm);
}

/* ─── Badges ────────────────────────────────────────────────── */
.gj-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--gj-radius-full);
    transition: all var(--gj-transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.gj-badge--sm {
    padding: 2px 8px;
    font-size: 0.7rem;
}

.gj-badge--plant {
    background: var(--gj-green-100);
    color: var(--gj-green-800);
    border: 1px solid var(--gj-green-200);
}

.gj-badge--plant:hover {
    background: var(--gj-green-200);
    color: var(--gj-green-900);
}

.gj-badge--area {
    background: var(--gj-earth-200);
    color: var(--gj-earth-800);
    border: 1px solid var(--gj-earth-300);
}

.gj-badge--area:hover {
    background: var(--gj-earth-300);
    color: var(--gj-earth-800);
}

.gj-badge--activity {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFE0B2;
}

.gj-badge--activity:hover {
    background: #FFE0B2;
    color: #BF360C;
}

.gj-badge--topic {
    background: #E8EAF6;
    color: #283593;
    border: 1px solid #C5CAE9;
}

.gj-badge--topic:hover {
    background: #C5CAE9;
    color: #1A237E;
}

.gj-badge--active {
    box-shadow: 0 0 0 2px var(--gj-green-500);
}

.gj-badge--more {
    background: var(--gj-border);
    color: var(--gj-text-secondary);
    cursor: default;
}

/* Season badges */
.gj-badge--spring {
    background: #E8F5E9;
    color: #2E7D32;
}

.gj-badge--summer {
    background: #FFF8E1;
    color: #F57F17;
}

.gj-badge--fall {
    background: #FBE9E7;
    color: #BF360C;
}

.gj-badge--winter {
    background: #E3F2FD;
    color: #1565C0;
}

.gj-badge__count {
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 6px;
    border-radius: var(--gj-radius-full);
    font-weight: 700;
}

/* ─── Date ──────────────────────────────────────────────────── */
.gj-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gj-text-secondary);
}

/* ─── Measurement Cards ─────────────────────────────────────── */
.gj-measurements {
    display: flex;
    gap: var(--gj-space-md);
    flex-wrap: wrap;
}

.gj-measurement {
    background: var(--gj-bg-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gj-border);
    border-radius: var(--gj-radius-md);
    padding: var(--gj-space-md) var(--gj-space-lg);
    display: flex;
    align-items: center;
    gap: var(--gj-space-sm);
    min-width: 140px;
}

.gj-measurement__icon {
    font-size: 1.3rem;
}

.gj-measurement__label {
    font-size: 0.75rem;
    color: var(--gj-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.gj-measurement__value {
    font-family: var(--gj-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gj-green-800);
    margin-left: auto;
}

/* ─── Harvest Badge ─────────────────────────────────────────── */
.gj-harvest-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--gj-space-sm);
    padding: var(--gj-space-sm) var(--gj-space-md);
    background: linear-gradient(135deg, var(--gj-harvest-light), #FFF3E0);
    border: 1px solid var(--gj-harvest);
    border-radius: var(--gj-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gj-earth-800);
}

.gj-harvest-badge__icon {
    font-size: 1.1rem;
}

/* ─── Hours Badge ───────────────────────────────────────────── */
.gj-hours-badge {
    font-size: 0.8rem;
    color: var(--gj-text-secondary);
    font-weight: 500;
}

/* ─── Single Entry ──────────────────────────────────────────── */
.gj-single-entry {
    padding-top: var(--gj-space-xl);
}

.gj-single-entry__hero {
    margin: 0 calc(-1 * var(--gj-space-xl)) var(--gj-space-xl);
    border-radius: var(--gj-radius-lg);
    overflow: hidden;
    box-shadow: var(--gj-shadow-lg);
}

.gj-single-entry__image {
    width: 100%;
    height: auto;
    display: block;
}

.gj-single-entry__header {
    margin-bottom: var(--gj-space-xl);
}

.gj-single-entry__meta-row {
    display: flex;
    align-items: center;
    gap: var(--gj-space-md);
    margin-bottom: var(--gj-space-md);
    flex-wrap: wrap;
}

.gj-single-entry__title {
    font-family: var(--gj-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gj-green-900);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--gj-space-lg);
}

.gj-single-entry__data {
    background: var(--gj-bg-card);
    border: 1px solid var(--gj-border);
    border-radius: var(--gj-radius-lg);
    padding: var(--gj-space-lg);
    margin-bottom: var(--gj-space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--gj-space-lg);
    align-items: center;
}

/* Entry content */
.gj-single-entry__content {
    margin-bottom: var(--gj-space-2xl);
}

.entry-content h2 {
    font-family: var(--gj-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gj-green-900);
    margin: var(--gj-space-2xl) 0 var(--gj-space-md);
    letter-spacing: -0.02em;
}

.entry-content h3 {
    font-family: var(--gj-font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gj-text-primary);
    margin: var(--gj-space-xl) 0 var(--gj-space-sm);
}

.entry-content p {
    margin-bottom: var(--gj-space-md);
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 var(--gj-space-md) var(--gj-space-xl);
}

.entry-content li {
    margin-bottom: var(--gj-space-xs);
}

.entry-content blockquote {
    border-left: 4px solid var(--gj-green-400);
    padding: var(--gj-space-md) var(--gj-space-lg);
    margin: var(--gj-space-lg) 0;
    background: var(--gj-green-100);
    border-radius: 0 var(--gj-radius-md) var(--gj-radius-md) 0;
    font-style: italic;
    color: var(--gj-text-secondary);
}

.entry-content img {
    border-radius: var(--gj-radius-md);
    margin: var(--gj-space-md) 0;
}

.entry-content figure {
    margin: var(--gj-space-xl) 0;
}

.entry-content figcaption {
    font-size: 0.85rem;
    color: var(--gj-text-muted);
    text-align: center;
    margin-top: var(--gj-space-sm);
}

/* ─── Photo Gallery ─────────────────────────────────────────── */
.gj-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gj-space-md);
    margin-top: var(--gj-space-lg);
}

.gj-gallery__item {
    border-radius: var(--gj-radius-md);
    overflow: hidden;
}

.gj-gallery__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform var(--gj-transition);
}

.gj-gallery__item:hover .gj-gallery__img {
    transform: scale(1.05);
}

.gj-gallery__caption {
    font-size: 0.8rem;
    color: var(--gj-text-muted);
    padding: var(--gj-space-sm);
    text-align: center;
}

/* ─── Entry Taxonomies ──────────────────────────────────────── */
.gj-entry-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gj-space-sm);
}

.gj-term-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ─── Post Navigation ───────────────────────────────────────── */
.post-navigation {
    margin-top: var(--gj-space-2xl);
    padding-top: var(--gj-space-xl);
    border-top: 2px solid var(--gj-border);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gj-space-xl);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: var(--gj-space-lg);
    background: var(--gj-bg-card);
    border-radius: var(--gj-radius-md);
    border: 1px solid var(--gj-border);
    transition: all var(--gj-transition);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    border-color: var(--gj-green-400);
    box-shadow: var(--gj-shadow);
}

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

.nav-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gj-text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--gj-text-primary);
}

/* ─── Archive Filters ───────────────────────────────────────── */
.gj-archive-filters {
    display: flex;
    flex-direction: column;
    gap: var(--gj-space-md);
    margin-top: var(--gj-space-lg);
    padding: var(--gj-space-lg);
    background: var(--gj-bg-card);
    border-radius: var(--gj-radius-lg);
    border: 1px solid var(--gj-border-light);
}

.gj-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gj-space-sm);
}

.gj-filter-group__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gj-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: var(--gj-space-xs);
    flex-shrink: 0;
}

/* ─── Calendar ──────────────────────────────────────────────── */
.gj-calendar {
    background: var(--gj-bg-card);
    border-radius: var(--gj-radius-lg);
    padding: var(--gj-space-xl);
    box-shadow: var(--gj-shadow);
    border: 1px solid var(--gj-border-light);
    max-width: 560px;
}

.gj-calendar__header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: var(--gj-space-sm);
}

.gj-calendar__day-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gj-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--gj-space-sm);
}

.gj-calendar__body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.gj-calendar__cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--gj-radius-sm);
}

.gj-calendar__cell--empty {
    background: transparent;
}

.gj-calendar__num {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gj-text-secondary);
}

.gj-calendar__cell--today {
    background: var(--gj-green-100);
}

.gj-calendar__cell--today .gj-calendar__num {
    font-weight: 700;
    color: var(--gj-green-900);
}

.gj-calendar__cell--has-entries {
    cursor: pointer;
}

.gj-calendar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: var(--gj-radius-sm);
    transition: background var(--gj-transition-fast);
}

.gj-calendar__link:hover {
    background: var(--gj-green-100);
}

.gj-calendar__link .gj-calendar__num {
    color: var(--gj-green-800);
    font-weight: 600;
}

.gj-calendar__dot {
    width: 6px;
    height: 6px;
    background: var(--gj-green-500);
    border-radius: 50%;
    margin-top: 2px;
}

/* ─── Tag Cloud ─────────────────────────────────────────────── */
.gj-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gj-space-sm);
}

/* ─── Empty State ───────────────────────────────────────────── */
.gj-empty-state {
    text-align: center;
    padding: var(--gj-space-3xl) var(--gj-space-xl);
}

.gj-empty-state__icon {
    font-size: 4rem;
    margin-bottom: var(--gj-space-md);
    opacity: 0.6;
}

.gj-empty-state h1,
.gj-empty-state h2 {
    font-family: var(--gj-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gj-text-primary);
    margin-bottom: var(--gj-space-sm);
}

.gj-empty-state p {
    color: var(--gj-text-secondary);
    max-width: 400px;
    margin: 0 auto var(--gj-space-xl);
}

.gj-empty-state__actions {
    display: flex;
    gap: var(--gj-space-md);
    justify-content: center;
    margin-bottom: var(--gj-space-xl);
}

/* ─── Pagination ────────────────────────────────────────────── */
.gj-pagination,
.pagination,
.nav-links {
    margin-top: var(--gj-space-2xl);
}

.pagination .nav-links,
.gj-pagination .nav-links {
    display: flex;
    gap: var(--gj-space-xs);
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-numbers,
.gj-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--gj-space-sm);
    background: var(--gj-bg-card);
    border: 1px solid var(--gj-border);
    border-radius: var(--gj-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gj-text-primary);
    text-decoration: none;
    transition: all var(--gj-transition-fast);
}

.pagination .page-numbers:hover,
.gj-pagination .page-numbers:hover {
    background: var(--gj-green-100);
    border-color: var(--gj-green-400);
    color: var(--gj-green-900);
}

.pagination .page-numbers.current,
.gj-pagination .page-numbers.current {
    background: var(--gj-green-800);
    border-color: var(--gj-green-800);
    color: #fff;
    font-weight: 600;
}

/* ─── Page Template ─────────────────────────────────────────── */
.gj-page {
    padding: var(--gj-space-3xl) 0;
}

.gj-page__title {
    font-family: var(--gj-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gj-green-900);
    letter-spacing: -0.03em;
    margin-bottom: var(--gj-space-xl);
}

.gj-page__children {
    margin-top: var(--gj-space-2xl);
    padding-top: var(--gj-space-xl);
    border-top: 2px solid var(--gj-border);
}

.gj-page__children h2 {
    font-family: var(--gj-font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gj-green-900);
    margin-bottom: var(--gj-space-md);
}

.gj-page__children ul {
    list-style: none;
    padding: 0;
}

.gj-page__children li {
    margin-bottom: var(--gj-space-sm);
}

.gj-page__children li a {
    display: block;
    padding: var(--gj-space-sm) var(--gj-space-md);
    background: var(--gj-bg-card);
    border: 1px solid var(--gj-border-light);
    border-radius: var(--gj-radius-sm);
    transition: all var(--gj-transition-fast);
}

.gj-page__children li a:hover {
    border-color: var(--gj-green-400);
    background: var(--gj-green-100);
}

/* ─── Search Form ───────────────────────────────────────────── */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 2px solid var(--gj-border);
    border-right: none;
    border-radius: var(--gj-radius-sm) 0 0 var(--gj-radius-sm);
    font-family: var(--gj-font-body);
    font-size: 0.95rem;
    background: var(--gj-bg-card);
    color: var(--gj-text-primary);
    outline: none;
    transition: border-color var(--gj-transition-fast);
}

.search-form .search-field:focus {
    border-color: var(--gj-green-500);
}

.search-form .search-submit {
    padding: 0.65rem 1.25rem;
    background: var(--gj-green-800);
    color: #fff;
    border: 2px solid var(--gj-green-800);
    border-radius: 0 var(--gj-radius-sm) var(--gj-radius-sm) 0;
    font-family: var(--gj-font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--gj-transition-fast);
}

.search-form .search-submit:hover {
    background: var(--gj-green-900);
    border-color: var(--gj-green-900);
}

/* ─── Footer ────────────────────────────────────────────────── */
.gj-footer {
    background: var(--gj-green-900);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--gj-space-2xl) 0;
    margin-top: auto;
}

.gj-footer__inner {
    max-width: var(--gj-max-width);
    margin: 0 auto;
    padding: 0 var(--gj-space-xl);
}

.gj-footer__widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gj-space-xl);
    margin-bottom: var(--gj-space-xl);
}

.gj-footer .widget-title {
    font-family: var(--gj-font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--gj-space-md);
}

.gj-footer__nav {
    padding: var(--gj-space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gj-footer__menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gj-space-lg);
    padding: 0;
    margin: 0;
}

.gj-footer__menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--gj-transition-fast);
}

.gj-footer__menu a:hover {
    color: #fff;
}

.gj-footer__credits {
    padding-top: var(--gj-space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

.gj-footer__credits a {
    color: var(--gj-green-400);
}

.gj-footer__credits a:hover {
    color: #fff;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --gj-header-height: 60px;
    }

    .gj-header__inner {
        padding: 0 var(--gj-space-md);
    }

    .gj-header__menu-toggle {
        display: flex;
    }

    .gj-nav {
        position: fixed;
        top: var(--gj-header-height);
        left: 0;
        right: 0;
        background: var(--gj-bg-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--gj-border);
        padding: var(--gj-space-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--gj-transition);
        pointer-events: none;
        z-index: 999;
    }

    .gj-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .gj-nav__list {
        flex-direction: column;
        gap: 0;
    }

    .gj-nav__list li a {
        padding: var(--gj-space-md);
        border-radius: var(--gj-radius-sm);
    }

    .gj-container {
        padding: 0 var(--gj-space-md);
    }

    .gj-hero {
        padding: var(--gj-space-2xl) var(--gj-space-md);
    }

    .gj-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .gj-hero__subtitle {
        margin: 0 auto var(--gj-space-xl);
    }

    .gj-hero__accent {
        margin-top: var(--gj-space-lg);
    }

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

    .gj-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .gj-single-entry__hero {
        margin: 0 calc(-1 * var(--gj-space-md)) var(--gj-space-lg);
        border-radius: 0;
    }

    .gj-measurements {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gj-stats {
        grid-template-columns: 1fr;
    }
}

/* ─── WordPress Admin Bar Offset ────────────────────────────── */
.admin-bar .gj-header {
    top: 32px;
}

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

/* ─── Print Styles ──────────────────────────────────────────── */
@media print {

    .gj-header,
    .gj-footer,
    .gj-archive-filters,
    .post-navigation,
    .gj-pagination {
        display: none;
    }

    .gj-main {
        padding: 0;
    }

    .gj-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}