/* =========================================================
   GOLFXCHAIN — THE JOURNAL
   Cinematic Editorial · autonomous stylesheet
   -----------------------------------------------------------
   Replicates the home's design language (palette, reset, nav,
   footer) and defines the Journal-only components. Standalone:
   does NOT @import the home and must not be edited into it.
   Palette: deep black · warm cream · champagne gold.
   Type: Cormorant Garamond (display) + Inter (body/UI).
   ========================================================= */

/* ============ VARIABLES (mirror of index.html :root) ============ */
:root {
    --black: #0A0A0A;
    --black-soft: #141414;
    --cream: #F5F1E8;
    --cream-warm: #EDE6D3;
    --cream-dark: #DDD4BE;
    --gold: #C9A961;
    --gold-dark: #A88B47;
    --gold-soft: rgba(201, 169, 97, 0.15);
    --green-brand: #2C7A4F;       /* preserved for logo X only */
    --text-dark: #1A1A1A;
    --text-cream: #F5F1E8;
    --muted-dark: rgba(26, 26, 26, 0.6);
    --muted-cream: rgba(245, 241, 232, 0.6);
    --line-dark: rgba(26, 26, 26, 0.15);
    --line-cream: rgba(245, 241, 232, 0.2);
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============ NAVIGATION ============ */
body > nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
body > nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
}
/* On light-hero pages (the Journal index) the nav is dark from the start
   so the cream links stay legible over the cream hero. */
body.nav-solid > nav {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}
.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    list-style: none;
}
.nav-links > li > a,
.nav-links > li > span {
    color: rgba(245, 241, 232, 0.9);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 1px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.current { color: var(--gold); }
.nav-cta {
    border: 1px solid rgba(245, 241, 232, 0.4) !important;
    padding: 0.7rem 1.6rem;
    transition: all 0.3s ease;
}
.nav-cta:hover {
    background: var(--gold);
    border-color: var(--gold) !important;
    color: var(--black) !important;
}
.nav-cta::after { display: none !important; }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ============ SHARED TYPOGRAPHY ============ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
}
.eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
}

/* ============ POST HERO ============ */
.post-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    color: var(--cream);
    overflow: hidden;
    /* Fallback gradient sits UNDER the photo so nothing breaks if the
       Unsplash URL fails. The dark overlay keeps the title readable. */
    background: linear-gradient(135deg, #1a2620 0%, #0A0A0A 100%);
}
.post-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    animation: postHeroZoom 18s ease-out forwards;
}
.post-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.15) 35%, rgba(10,10,10,0.9) 100%);
}
@keyframes postHeroZoom {
    from { transform: scale(1.04); }
    to { transform: scale(1); }
}
.post-hero-container {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 8rem 3rem 4rem;
}
.post-hero .eyebrow {
    color: var(--gold);
    margin-bottom: 2rem;
}
.post-hero .eyebrow::before { background: var(--gold); }
.post-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 7vw, 6rem);
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.02em;
    max-width: 20ch;
    margin-bottom: 1.5rem;
}
.post-hero .post-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 2.4vw, 1.9rem);
    font-weight: 400;
    line-height: 1.35;
    max-width: 40ch;
    color: rgba(245, 241, 232, 0.9);
    margin-bottom: 1.8rem;
}
.post-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.7);
}
.post-meta .dot { margin: 0 0.6rem; color: var(--gold); }

/* ============ ARTICLE BODY ============ */
.post-body {
    background: var(--cream);
    padding: 6rem 1.5rem 5rem;
}
.post-body-inner {
    max-width: 720px;
    margin: 0 auto;
}
.post-body p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: rgba(26, 26, 26, 0.85);
    margin-bottom: 1.6rem;
    font-weight: 400;
}
.post-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin: 3.5rem 0 1.4rem;
}
.post-body h2 em { font-style: italic; color: var(--gold-dark); font-weight: 500; }
.post-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-dark);
    margin: 2.6rem 0 1rem;
}
.post-body h3 em { font-style: italic; color: var(--gold-dark); font-weight: 500; }
.post-body a {
    color: var(--gold-dark);
    border-bottom: 1px solid var(--line-dark);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.post-body a:hover { color: var(--gold); border-color: var(--gold); }
.post-body strong { font-weight: 600; color: var(--text-dark); }
.post-body em { font-style: italic; }
.post-body ul, .post-body ol {
    margin: 0 0 1.8rem 1.4rem;
    padding-left: 0.6rem;
}
.post-body li {
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(26, 26, 26, 0.85);
    margin-bottom: 0.7rem;
    padding-left: 0.4rem;
}
.post-body li::marker { color: var(--gold-dark); }
.post-body hr {
    border: none;
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
    margin: 3rem auto;
}
.post-body img {
    width: 100%;
    margin: 2.5rem 0 1rem;
    border-radius: 0;
}
.post-credit {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-dark);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted-dark);
}
.post-photo-credit {
    position: absolute;
    z-index: 1;
    right: 1rem;
    bottom: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.55);
}

/* ============ :::quote — cinematic centered quote ============ */
.post-quote {
    max-width: 800px;
    margin: 3.5rem auto;
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    position: relative;
}
.post-quote::before,
.post-quote::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--gold);
}
.post-quote::before { top: -1px; }
.post-quote::after { bottom: -1px; }
.post-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 400;
    line-height: 1.28;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    margin: 0;
}

/* ============ :::photo — full-width photo band ============ */
.post-photo {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin: 4rem -50vw;
    height: 70vh;
    min-height: 420px;
    max-height: 760px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    /* fallback gradient under the photo (set inline per-band by the build) */
    background-color: #0A0A0A;
    overflow: hidden;
}
.post-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.55) 100%);
}
.post-photo-caption {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 2.4vw, 1.9rem);
    line-height: 1.35;
    max-width: 34ch;
    color: rgba(245, 241, 232, 0.95);
}

/* ============ CTA BLOCK (typographic, on black) ============ */
.post-cta {
    background: var(--black);
    color: var(--cream);
    padding: 8rem 1.5rem;
    text-align: center;
}
.post-cta .eyebrow { color: var(--gold); justify-content: center; }
.post-cta .eyebrow::before { background: var(--gold); }
.post-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--cream);
    max-width: 18ch;
    margin: 0 auto 1.8rem;
}
.post-cta h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
.post-cta p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    max-width: 52ch;
    margin: 0 auto 2.8rem;
    color: rgba(245, 241, 232, 0.8);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}
.btn-primary {
    background: var(--gold);
    color: var(--black);
}
.btn-primary:hover {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

/* ============ FURTHER READING ============ */
.further {
    background: var(--cream-warm);
    padding: 7rem 1.5rem;
}
.further-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.further > .further-inner > .eyebrow { color: var(--gold-dark); }
.further-head {
    text-align: center;
    margin-bottom: 3.5rem;
}
.further-head h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--text-dark);
}
.further-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.further-card { display: block; }
.further-card .further-photo {
    aspect-ratio: 3/2;
    background-size: cover;
    background-position: center;
    background-color: #0A0A0A;
    margin-bottom: 1.2rem;
    overflow: hidden;
    transition: transform 0.6s ease;
}
.further-card:hover .further-photo { transform: scale(1.03); }
.further-card .further-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    display: block;
    margin-bottom: 0.7rem;
}
.further-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-dark);
    transition: color 0.3s ease;
}
.further-card:hover h3 { color: var(--gold-dark); }

/* ============ JOURNAL INDEX ============ */
.journal-hero {
    background: var(--cream);
    padding: 12rem 1.5rem 4rem;
    text-align: center;
}
.journal-hero .eyebrow { justify-content: center; color: var(--gold-dark); }
.journal-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    max-width: 16ch;
    margin: 0 auto 1.5rem;
}
.journal-hero h1 em { font-style: italic; color: var(--gold-dark); font-weight: 500; }
.journal-hero .journal-hero-lead {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 56ch;
    margin: 0 auto;
    color: var(--muted-dark);
}

/* Featured piece */
.journal-featured {
    background: var(--cream);
    padding: 3rem 1.5rem 5rem;
}
.journal-featured-link {
    display: block;
    max-width: 1300px;
    margin: 0 auto;
}
.journal-featured-photo {
    position: relative;
    aspect-ratio: 21/9;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    background-color: #0A0A0A;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.journal-featured-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.8) 100%);
    transition: background 0.4s ease;
}
.journal-featured-link:hover .journal-featured-photo::before {
    background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.88) 100%);
}
.journal-featured-caption {
    position: relative;
    z-index: 1;
    padding: 3rem;
    color: var(--cream);
    max-width: 900px;
}
.journal-featured-caption .featured-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}
.journal-featured-caption h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.02;
    color: var(--cream);
    margin-bottom: 1rem;
    max-width: 22ch;
}
.journal-featured-caption p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 52ch;
    color: rgba(245, 241, 232, 0.85);
    margin-bottom: 1rem;
}
.journal-featured-caption .featured-meta {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.6);
}

/* Editorial alternating list */
.journal-list {
    background: var(--cream);
    padding: 2rem 1.5rem 7rem;
}
.journal-list-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.journal-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    border-top: 1px solid var(--line-dark);
}
.journal-entry:first-child { border-top: none; }
.journal-entry .entry-photo {
    aspect-ratio: 3/2;
    background-size: cover;
    background-position: center;
    background-color: #0A0A0A;
    overflow: hidden;
    transition: transform 0.6s ease;
}
.journal-entry:hover .entry-photo { transform: scale(1.02); }
.journal-entry.reverse .entry-media { order: 2; }
.journal-entry .entry-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    display: block;
    margin-bottom: 1rem;
}
.journal-entry h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.08;
    color: var(--text-dark);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
.journal-entry:hover h2 { color: var(--gold-dark); }
.journal-entry p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted-dark);
    max-width: 48ch;
    margin-bottom: 1.2rem;
}
.journal-entry .entry-meta {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
}
.journal-empty {
    text-align: center;
    color: var(--muted-dark);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.6rem;
    padding: 4rem 0;
}

/* ============ FOOTER (mirror of index.html) ============ */
footer {
    background: var(--black);
    color: rgba(245, 241, 232, 0.5);
    padding: 5rem 3rem 3rem;
    border-top: 1px solid var(--line-cream);
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
footer .logo {
    margin: 0 auto 2.5rem;
    height: 32px;
    opacity: 0.85;
}
footer .footer-divider {
    width: 40px; height: 1px;
    background: var(--gold);
    margin: 2.5rem auto;
    opacity: 0.5;
}
footer .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 2.5rem;
    list-style: none;
}
footer .footer-links a {
    color: rgba(245, 241, 232, 0.6);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
footer .footer-links a:hover { color: var(--gold); }
footer .footer-company {
    color: rgba(245, 241, 232, 0.35) !important;
    font-size: 0.72rem !important;
    letter-spacing: 1px;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}
footer p {
    color: rgba(245, 241, 232, 0.4);
    font-size: 0.72rem;
    letter-spacing: 1px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
    .nav-container { padding: 0 1.5rem; }
    .nav-links {
        position: fixed;
        top: 70px; left: -100%;
        flex-direction: column;
        background: var(--black);
        width: 100%;
        padding: 3rem 2rem;
        gap: 2.5rem;
        transition: left 0.4s ease;
        border-top: 1px solid var(--line-cream);
        z-index: 99;
    }
    .nav-links.active { left: 0; }
    .mobile-menu-btn { display: block; }

    .post-hero-container { padding: 6rem 1.5rem 3rem; }
    .post-photo-caption { padding: 0 1.5rem 2rem; }

    .further-grid { grid-template-columns: 1fr; gap: 3rem; max-width: 480px; margin: 0 auto; }

    .journal-featured-caption { padding: 2rem 1.5rem; }
    .journal-entry {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding: 3rem 0;
    }
    .journal-entry.reverse .entry-media { order: 0; }
}
@media (max-width: 600px) {
    .post-body { padding: 4rem 1.5rem; }
    .journal-hero { padding: 9rem 1.5rem 3rem; }
    footer .footer-links { flex-direction: column; gap: 1rem; }
}
