/* SITE HEADER & NAVIGATION - REFINED*/


/* ============================================
   HERO SECTION - DRAMATIC & ASYMMETRIC
   ============================================ */

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%);
    overflow: hidden;
    padding: 4rem 0;
}

/* Newspaper edge decoration */
.newspaper-edge-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-image: 
        repeating-linear-gradient(
            90deg,
            var(--accent-sepia),
            var(--accent-sepia) 3px,
            transparent 3px,
            transparent 8px
        );
    opacity: 0.3;
}

.hero-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}


/* Portrait - Vintage Frame with Overlap */
.hero-portrait-wrapper {
    position: relative;
    z-index: 10;
    animation: fadeInScale 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}


.portrait-caption {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Hero Text Block - Dramatic Typography */
.hero-text-block {
    position: relative;
    z-index: 20;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}


.title-cluster {
    margin-bottom: 2.5rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    color: var(--text-primary);
}

.title-line-1 {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.title-line-2 {
    display: block;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 3px 3px 0 var(--shadow-vintage);
}

.subtitle-block {
    margin: 2.5rem 0 3rem;
    padding-left: 2rem;
    border-left: 3px solid var(--accent-sepia);
}

.hero-subtitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* CTA & Signature Group */
.cta-signature-group {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
}

.signature-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.signature-line {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg,
        var(--accent-sepia) 0%,
        transparent 100%);
    margin-bottom: 0.5rem;
}

.signature-text {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: 3rem;
    color: var(--accent-sepia);
    line-height: 1;
}

.signature-date {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

/* Hero paper fade bottom */
.hero-paper-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--bg-primary) 100%
    );
    pointer-events: none;
}

/* ============================================
   TIMELINE TEASER - NEWSPAPER COLUMN STYLE
   ============================================ */

.timeline-teaser {
    background: var(--bg-secondary);
    position: relative;
    padding: 6rem 0;
    border-top: 3px double var(--border-dark);
    border-bottom: 3px double var(--border-dark);
}

.timeline-newspaper {
    padding: 0 2.5rem;
}

.timeline-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}


.timeline-narrative-col {
    position: relative;
}

.timeline-cta-block {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.timeline-whisper {
    margin-top: 0.75rem;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Vertical Timeline Art */
.timeline-visual-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-timeline-art {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 2rem 0;
}

.timeline-spine {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--accent-sepia) 10%,
        var(--accent-sepia) 90%,
        transparent 100%
    );
}

.timeline-moment {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInTimeline 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.timeline-moment:nth-child(2) { animation-delay: 0.1s; }
.timeline-moment:nth-child(3) { animation-delay: 0.2s; }
.timeline-moment:nth-child(4) { animation-delay: 0.3s; }
.timeline-moment:nth-child(5) { animation-delay: 0.4s; }
.timeline-moment:nth-child(6) { animation-delay: 0.5s; }

.moment-dot {
    position: absolute;
    left: 22px;
    top: 5px;
    width: 18px;
    height: 18px;
    border: 3px solid var(--accent-gold);
    background: var(--bg-primary);
    border-radius: 50%;
    box-shadow: 
        0 0 0 4px var(--bg-secondary),
        0 0 0 5px var(--accent-sepia);
}

.moment-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.moment-year {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.moment-label {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-tertiary);
}

/* ============================================
   WHY THIS SITE SECTION
   ============================================ */

.why-section {
    background: var(--bg-highlight);
    padding: 6rem 0;
}

/* ============================================
   ISOLATION SECTION - DRAMATIC QUOTES
   ============================================ */

.isolation-section {
    background: linear-gradient(135deg,
        var(--bg-tertiary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%);
    padding: 6rem 0;
    position: relative;
}

.isolation-page {
    max-width: 1200px;
    position: relative;
}

.isolation-content-block {
    position: relative;
    z-index: 2;
}

.section-title.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.final-graf {
    max-width: 900px;
    margin: 3rem auto 0;
}

/* ============================================
   MY STORY CTA & ARTICLES SECTIONS
   ============================================ */

.story-cta-section {
    background: linear-gradient(135deg,
        var(--bg-highlight) 0%,
        var(--bg-accent) 100%);
    padding: 6rem 0;
}

.articles-teaser {
    background: var(--bg-primary);
    padding: 6rem 0;
    border-top: 1px solid var(--border-light);
}

/* Footer styling handled by main.css */

/* ============================================
   ANIMATIONS
   ============================================ */

/* ============================================
   RESPONSIVE ADJUSTMENTS - COMPREHENSIVE
   ============================================ */

/* iPad Pro 12.9" (1024x1366) - Large Tablet */
@media (min-width: 1024px) and (max-width: 1366px) {
    .hero-container {
        max-width: 1200px;
    }
    
    .hero-portrait-wrapper {
        width: 420px;
    }
    
    .portrait-vintage-frame {
        max-width: 420px;
    }
    
    .hero-text-block {
        max-width: 580px;
    }
    
    .section-container {
        max-width: 1200px;
    }
}

/* iPad Air/Pro 11" & iPad Pro 10.5" (820x1180, 834x1194) - Medium Tablet Landscape */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {


    
    
    .hero-portrait-wrapper {
                                max-width: 380px;
                    }
    
    .portrait-vintage-frame {
        max-width: 380px;
    }
    
    .hero-text-block {
        max-        text-align: center;
    }
    
        .subtitle-block {        max-width: 600px;    }.content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }}

/* iPad Air/Pro Portrait (768-834px wide) */
@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {


    .hero-section {
        padding: 3rem 0;
    }
    
    
    
    .hero-portrait-wrapper {
                                max-width: 400px;
                    }
    
    .portrait-vintage-frame {
        max-width: 400px;
    }.title-line-1 {
        font-size: 2.25rem !important;
    }
    
    .title-line-2 {
        font-size: 4rem !important;
    }.section-container {
        padding: 4rem 2rem;
    }

}

/* iPad Mini (744x1133) - Small Tablet Portrait */
@media (min-width: 744px) and (max-width: 767px) {


    .hero-section {
        padding: 3rem 0;
    }
    
    
    
    .hero-portrait-wrapper {
                                max-width: 360px;
                    }
    
    .portrait-vintage-frame {
        max-width: 360px;
    }.title-line-1 {
        font-size: 2rem !important;
    }
    
    .title-line-2 {
        font-size: 3.5rem !important;
    }
    
        
}

/* General Tablet and below (below 1024px) */
@media (max-width: 1023px) {
    /* Non-desktop: reset parallax, single-column hero */
    .hero-portrait-wrapper {
        position: relative !important;
        transform: none !important;
        width: 100%;
        margin: 0 auto;
        order: -1;
    }

    .hero-text-block {
        transform: none !important;
        text-align: center;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .title-cluster {
        text-align: center;
    }

    .subtitle-block {
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-signature-group {
        align-items: center;
    }

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

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

    @keyframes fadeInScale {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    /* Hide margin notes on tablets */
    .margin-note {
        display: none;
    }

    /* Pull quotes */
    .pull-quote-side {
        float: none;
        width: 100%;
        margin: 2rem 0;
    }

}

/* Tablet portrait and below */
@media (max-width: 768px) {


    html {
        font-size: 15px;
    }.hero-section {
        padding: 2.5rem 0;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 1.5rem;
    }
    
    
    
    .hero-portrait-wrapper {
                                max-width: 340px;
                    }
    
    .portrait-vintage-frame {
        max-width: 340px;
    }
    
            .title-line-1 {
        font-size: 1.75rem !important;
    }
    
    .title-line-2 {
        font-size: 3rem !important;
    }
    
    .subtitle-block {
        padding-left: 1.5rem;
        margin: 2rem auto;
        text-align: left;
        max-width: 500px;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .signature-text {
        font-size: 2.5rem;
    }
    
    .signature-date {
        font-size: 0.8125rem;
    }
    
    .cta-signature-group {
        gap: 2rem;
        align-items: center;
    }
    
    .signature-block {
        align-items: center;
    }
    
    /* Sections padding */
    .timeline-teaser,
    .why-section,
    .isolation-section,
    .story-cta-section,
    .articles-teaser {
        padding: 4rem 0;
    }
    
    .section-container {
        padding: 0 1.5rem;
    }
    
    /* Timeline adjustments */
    .timeline-newspaper {
        padding: 0 1.5rem;
    }
    
    .timeline-columns {
        gap: 2.5rem;
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    /* Order: narrative-col contains title+text, then visual-col, then move CTA to end */
    .timeline-narrative-col {
        order: 1;
        display: contents; /* Flatten children into parent flex container */
    }
    
    .timeline-narrative-col .section-title {
        order: 1;
    }
    
    .timeline-narrative-col .narrative-text {
        order: 2;
    }
    
    /* Visual timeline comes third */
    .timeline-visual-col {
        order: 3;
    }
    
    /* CTA button appears last */
    .timeline-narrative-col .timeline-cta-block {
        order: 4;
    }.vertical-timeline-art {
        max-        padding: 1.5rem 0;
    }
    
    .timeline-moment {
        margin-bottom: 2rem;
    }
    
    /* Content grids */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Pull quotes */
    .pull-quote-large {
        padding: 2rem 1.5rem;
        margin: 2.5rem 0;
    }
    
    .quote-text {
        font-size: 1.375rem;
    }
    
    .quote-mark-open,
    .quote-mark-close {
        font-size: 6rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .section-title.editorial {
        font-size: 1.3rem; /* Much smaller to fit on one line */
        letter-spacing: -0.01em; /* Tighter letter spacing */
    }
    
    /* Reduce ornament size and spacing for tighter headings */
    .title-ornament {
        font-size: 0.45em;
        margin: 0 0.25rem;
    }
    
    p {
        font-size: 1.0625rem;
    }
    
    .drop-cap-first::first-letter {
        font-size: 3.5rem;
    }
    
    /* Buttons *//* Footer handled by main.css responsive blocks */

}

/* Mobile devices (phones) */
@media (max-width: 480px) {


    html {
        font-size: 14px;
    }
    
    /* Reduce grain opacity on mobile */
    body.grain-texture::before {
        opacity: 0.015;
    }.theme-toggle,
    .menu-toggle {
        width: 48px;
        height: 48px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-layout {
        gap: 1.5rem;
    }
    
    .hero-portrait-wrapper {
        max-width: 300px;
    }
    
    .portrait-vintage-frame {
        padding: 12px;
        max-width: 300px;
    }
    
    .frame-corner {
        width: 20px;
        height: 20px;
    }
    
    .portrait-caption {
        bottom: -30px;
        font-size: 0.8125rem;
    }
    
    .title-line-1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    .title-line-2 {
        font-size: 2.5rem !important;
    }
    
    .subtitle-block {
        padding-left: 1rem;
        border-left-width: 2px;
        max-width: 100%;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .decorative-rule {
        width: 80px;
        margin: 1rem auto;
    }
    
    .signature-text {
        font-size: 2rem;
    }
    
    .signature-line {
        width: 150px;
    }
    
    .cta-signature-group {
        gap: 1.5rem;
    }
    
    /* Sections */
    .section-container {
        padding: 0 1rem;
    }
    
    .timeline-newspaper {
        padding: 0 1rem;
    }
    
    .timeline-teaser,
    .why-section,
    .isolation-section,
    .story-cta-section,
    .articles-teaser {
        padding: 3rem 0;
    }
    
    /* Section titles - smaller to prevent wrapping */
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
        line-height: 1.3;
    }
    
    .section-title.editorial {
        font-size: 1.1rem; /* Very small to guarantee one line */
        letter-spacing: -0.02em; /* Extra tight spacing */
    }
    
    /* Even smaller ornaments on mobile */
    .title-ornament {
        font-size: 0.4em;
        margin: 0 0.15rem;
    }
    
    /* Timeline */
    .timeline-moment {
        padding-left: 60px;
        margin-bottom: 1.75rem;
    }
    
    .moment-dot {
        left: 16px;
        width: 14px;
        height: 14px;
        border-width: 2px;
    }
    
    .timeline-spine {
        left: 22px;
    }
    
    .moment-year {
        font-size: 1.5rem;
    }
    
    .moment-label {
        font-size: 0.9375rem;
    }
    
    /* Pull quotes */
    .pull-quote-large {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }
    
    .quote-text {
        font-size: 1.25rem;
    }
    
    .quote-mark-open {
        font-size: 5rem;
        top: -0.75rem;
        left: 0.5rem;
    }
    
    .quote-mark-close {
        font-size: 5rem;
        bottom: -2.5rem;
        right: 0.5rem;
    }
    
    .pull-quote-side {
        padding: 1rem;
    }
    
    .pull-quote-side p {
        font-size: 1.125rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-title.editorial {
        font-size: 2rem;
    }
    
    .section-title.centered {
        font-size: 1.875rem;
    }
    
    .title-ornament {
        font-size: 0.7em;
        margin: 0 0.35rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .drop-cap-first::first-letter {
        font-size: 3rem;
    }
    
    /* Buttons */.cta-link {
        font-size: 0.9375rem;
    }
    
    .timeline-whisper,
    .micro-copy {
        font-size: 0.8125rem;
    }
    
    /* Footer handled by main.css responsive blocks */
}

/* Small mobile devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .title-line-2 {
        font-size: 2.25rem !important;
    }
    
    .portrait-vintage-frame {
        max-width: 260px;
    }
    
    .signature-text {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
}

/* Touch device optimizations (all tablets and phones) */
@media (hover: none) and (pointer: coarse) {


    /* Larger touch targets */
    .nav-list a {
        padding: 1rem 1.5rem;
        min-height: 44px;
    }.theme-toggle,
    .menu-toggle {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Disable hover effects that don't work on touch */
    .portrait-vintage-frame {
        transform: none !important;
    }
    
    .cta-button:hover {
        transform: none !important;
    }
    
    /* Better active states for touch */
    .cta-button:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .nav-list a:active {
        background-color: var(--bg-highlight);
    }}

/* Landscape phones */
@media (max-width: 896px) and (orientation: landscape) and (max-height: 414px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    
    .hero-portrait-wrapper {
        order: 1;
        max-width: 280px;
    }
    
    .portrait-vintage-frame {
        max-width: 280px;
    }
    
    .hero-text-block {
        text-align: left;
    }
    
    .title-cluster {
        text-align: left;
    }
    
    .cta-signature-group {
        align-items: flex-start;
    }
}
/* =================================================
   iPAD RESPONSIVE (Mini / Air / Pro)
   744px – 1024px
================================================= */


/* =========================================
   iPad Hero Spacing Fix
========================================= */

/* Navigation styles removed - now handled by main.css for consistency */

@media (min-width: 1024px) {
.hero-layout {
        grid-template-columns: 1.2fr 1fr;
        gap: 6rem;
    }
.hero-portrait-wrapper {
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
        width: 480px;
    }
.hero-text-block {
        max-width: 650px;
    }
.timeline-columns {
        grid-template-columns: 1.3fr 1fr;
        gap: 6rem;
    }
}

@media (min-width: 744px) and (max-width: 1024px) {


/* --------------------------------------------
       GLOBAL SAFETY
    -------------------------------------------- */

    html, body {
        overflow-x: hidden;
    }

    .section-container,
    .hero-container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    /* --------------------------------------------
       HEADER
    -------------------------------------------- */.nav-list {
        gap: 1.5rem;
    }

    .cta-button {
        min-height: 44px;
    }

    /* =================================================
       HERO SECTION (KEEP 2 COLUMN)
    ================================================= */

    .hero-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 3rem;
    }

    .hero-portrait-wrapper {
                                                order: 1; /* Portrait on left */
    }
    
    .hero-text-block {
        order: 2; /* Text on right */
    }

    .portrait-vintage-frame {
        max-width: 320px;
            }

    .hero-text-block {
        max-width: 480px;
    }

    .hero-title {
        font-size: clamp(2.3rem, 4vw, 3.2rem);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cta-signature-group {
        margin-top: 1.5rem;
    }

    /* --------------------------------------------
       TIMELINE SECTION
    -------------------------------------------- */

    .timeline-columns {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }

    .vertical-timeline-art {
        max-width: 380px;
            }

    .timeline-moment {
        margin-bottom: 2rem;
    }

    /* --------------------------------------------
       WHY SECTION
    -------------------------------------------- */

    .content-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 3rem;
        align-items: start;
    }

    .visual-column {
        opacity: 0.6; /* soften decorative impact */
    }

    /* --------------------------------------------
       ISOLATION SECTION
    -------------------------------------------- */

    .isolation-page {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Remove fragile margin notes on tablet */
    .margin-note {
        display: none;
    }

    /* Reduce multi-column to avoid narrow text columns */
    .prose-columns {
        column-count: 1;
    }

    .pull-quote-large {
        font-size: 1.6rem;
        max-width: 700px;
        margin: 3rem auto;
        padding: 2rem;
    }

    .pull-quote-side {
        position: relative;
        margin: 2rem auto;
        max-width: 500px;
        text-align: center;
    }

    /* --------------------------------------------
       STORY CTA SECTION
    -------------------------------------------- */

    .cta-content-wrapper {
        max-width: 720px;
                text-align: center;
    }

    .pull-quote.centered {
        max-width: 650px;
        margin: 2rem auto;
    }

    /* --------------------------------------------
       ARTICLES SECTION
    -------------------------------------------- */

    .articles-teaser .content-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .decorative-documents {
        opacity: 0.6;
    }

    /* --------------------------------------------
       FOOTER
    -------------------------------------------- */
    /* Footer iPad stacking handled by main.css */
.hero-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
        min-height: auto; /* critical if you used 100vh */
    }

    .hero-layout {
        gap: 2rem; /* reduce excessive spacing */
        margin-top: 0;
    }

    .hero-container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-paper-fade {
        margin-top: 2rem;
    }

}
