:root {
    /* Color Palette */
    --bg-primary: #f3eee8;
    --bg-secondary: #e8e0d5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --nav-bg-transparent: rgba(243, 238, 232, 0);
    --nav-bg-solid: rgba(243, 238, 232, 0.95);
    --footer-bg: #1a1a1a;
    --footer-text: #e5e5e5;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 8rem 2rem;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
}

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

video {
    pointer-events: none;
    /* Prevent interaction and default hover controls */
    -webkit-user-select: none;
    user-select: none;
}

/* Aggressively hide Safari/Chrome injected play buttons on background videos */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.small-container {
    max-width: 800px;
    text-align: center;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.main-nav.scrolled {
    background-color: var(--nav-bg-solid);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.logo {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--text-primary);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: transform 0.2s, opacity 0.2s;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.icon-btn:hover {
    opacity: 0.7;
}

.nav-link,
.nav li a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after,
.nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav li a:hover::after,
.nav li.nav-current a::after {
    width: 100%;
}

.nav-link.primary-cta {
    border: 1px solid currentColor;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.3s, color 0.3s;
}

.nav-link.primary-cta::after {
    display: none;
}

.nav-link.primary-cta:hover {
    background: currentColor;
    color: var(--bg-primary);
}

.nav-left,
.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    /* Distribute space equally to keep center absolutely centered */
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    flex-shrink: 0;
    /* Prevent the logo from shrinking */
}

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Header Utilities */
.nav-left-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Menu Backdrop */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Side Menu Drawer */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 90vw;
    max-width: 450px;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
}

.menu-overlay.is-open {
    transform: translateX(0);
}

.menu-overlay-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.close-menu-btn {
    background: transparent;
    border: none;
    color: var(--default-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.close-menu-btn:hover {
    transform: rotate(90deg);
    opacity: 0.5;
}

/* Menu Content Layout */
.menu-overlay-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.primary-nav-container {
    margin-bottom: 4rem;
}

.secondary-nav-container {
    align-self: flex-end;
    text-align: right;
    margin-top: auto;
    padding-bottom: 2rem;
}

/* Navigation Lists */
.overlay-nav-list,
.primary-nav-container .nav,
.secondary-nav-container .nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.primary-nav-container .nav {
    align-items: flex-start;
    gap: 1.5rem;
}

.secondary-nav-container .nav,
.secondary-nav-container .overlay-nav-list {
    align-items: flex-end;
    gap: 1.2rem;
}

/* Typography styles matching image */
/* Base style for ALL links in the menu before it's open */
.menu-overlay-content a {
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateX(-20px);
    opacity: 0;
    display: block;
}

/* When menu is open, bring them to 0 */
.menu-overlay.is-open .menu-overlay-content a {
    transform: translateX(0);
    opacity: 1;
}

/* Staggered animation for ALL links (primary and secondary combined) */
/* We target li:nth-child so that Ghost's generated <li> tags trigger the delay for their inner <a> */
.menu-overlay.is-open li:nth-child(1)>a {
    transition-delay: 0.4s;
}

.menu-overlay.is-open li:nth-child(2)>a {
    transition-delay: 0.48s;
}

.menu-overlay.is-open li:nth-child(3)>a {
    transition-delay: 0.56s;
}

.menu-overlay.is-open li:nth-child(4)>a {
    transition-delay: 0.64s;
}

.menu-overlay.is-open li:nth-child(5)>a {
    transition-delay: 0.72s;
}

.menu-overlay.is-open li:nth-child(6)>a {
    transition-delay: 0.8s;
}

.menu-overlay.is-open li:nth-child(7)>a {
    transition-delay: 0.88s;
}

.menu-overlay.is-open li:nth-child(8)>a {
    transition-delay: 0.96s;
}

.menu-overlay.is-open li:nth-child(9)>a {
    transition-delay: 1.04s;
}

.menu-overlay.is-open li:nth-child(10)>a {
    transition-delay: 1.12s;
}

/* ── Grouped Nav (覺茶學 / 覺茶課 groups) ── */
.nav-group {
    margin-bottom: 2rem;
}

.nav-group-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    opacity: 0.55;
}

.nav-group-links {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nav-sub-link {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--default-text);
    text-decoration: none;
    padding: 0.35rem 0;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateX(-20px);
    opacity: 0;
}

.menu-overlay.is-open .nav-sub-link {
    transform: translateX(0);
    opacity: 1;
}

.nav-sub-link:hover {
    opacity: 0.5;
}

.nav-sub-link--soon {
    opacity: 0 !important;
    pointer-events: none;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.menu-overlay.is-open .nav-sub-link--soon {
    opacity: 0.3 !important;
}

.nav-sub-link--soon::after {
    content: '（即將）';
    font-size: 0.72rem;
    margin-left: 0.4rem;
    opacity: 0.6;
}

/* Stagger for .nav-sub-link inside groups */
.nav-group:nth-child(1) .nav-sub-link:nth-child(1) { transition-delay: 0.35s; }
.nav-group:nth-child(1) .nav-sub-link:nth-child(2) { transition-delay: 0.42s; }
.nav-group:nth-child(1) .nav-sub-link:nth-child(3) { transition-delay: 0.49s; }
.nav-group:nth-child(1) .nav-sub-link:nth-child(4) { transition-delay: 0.56s; }
.nav-group:nth-child(1) .nav-sub-link:nth-child(5) { transition-delay: 0.63s; }
.nav-group:nth-child(1) .nav-sub-link:nth-child(6) { transition-delay: 0.70s; }
.nav-group:nth-child(2) .nav-sub-link:nth-child(1) { transition-delay: 0.77s; }
.nav-group:nth-child(2) .nav-sub-link:nth-child(2) { transition-delay: 0.84s; }
.nav-group:nth-child(2) .nav-sub-link:nth-child(3) { transition-delay: 0.91s; }
.nav-group:nth-child(2) .nav-sub-link:nth-child(4) { transition-delay: 0.98s; }
.nav-group:nth-child(2) .nav-sub-link:nth-child(5) { transition-delay: 1.05s; }

/* Standalone links (活動、城市有光、遊牧覺茶、關於這裡) */
.nav-standalone {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    margin-top: 0.5rem;
}

.nav-standalone .overlay-nav-link {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--default-text);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 0.35rem 0;
    transition-delay: 0.88s;
}
.nav-standalone .overlay-nav-link:hover { opacity: 0.5; }
.nav-standalone .overlay-nav-link:nth-child(2) { transition-delay: 0.95s; }
.nav-standalone .overlay-nav-link:nth-child(3) { transition-delay: 1.02s; }
.nav-standalone .overlay-nav-link:nth-child(4) { transition-delay: 1.09s; }

/* Page/Post Overlap Fix */
.page-template .main-nav,
.post-template .main-nav {
    background-color: var(--nav-bg-solid);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.page-template .post-header,
.post-template .post-header {
    padding-top: 120px;
    margin-bottom: 2rem;
}

.page-template .post-title,
.post-template .post-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Post Meta & Tags */
.post-meta-container {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-meta-tag {
    color: var(--text-primary);
    font-weight: 500;
}

.meta-divider {
    opacity: 0.5;
}

/* Post Excerpt */
.post-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-sans);
    font-weight: 300;
}

/* Author Info */
.post-author-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Post Feature Image */
.post-feature-image {
    margin-bottom: 4rem;
}

.post-feature-image img {
    border-radius: 4px;
    width: 100%;
}

/* Page Feature Image Constraints */
.page-template .post-feature-image {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-template .post-feature-image img {
    max-height: 60vh;
    object-fit: cover;
}

.post-feature-image figcaption {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Post Content Typography & Ghost Grid Layout */
.post-full-content {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-primary);

    /* Ghost Content Grid System */
    display: grid;
    grid-template-columns:
        [full-start] minmax(4vw, auto) [wide-start] minmax(auto, 240px) [main-start] min(720px, calc(100% - 8vw)) [main-end] minmax(auto, 240px) [wide-end] minmax(4vw, auto) [full-end];
}

.post-full-content>* {
    grid-column: main-start / main-end;
}

.post-full-content p {
    margin-bottom: 1.8rem;
}

.post-full-content h2,
.post-full-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.post-full-content figure,
.post-full-content img {
    margin: 3rem 0;
    border-radius: 4px;
}

.post-full-content blockquote {
    border-left: 2px solid var(--text-primary);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Post Footer & Tags */
.post-footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 5rem;
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.tags-label {
    color: var(--text-secondary);
}

.tag-link {
    background: rgba(0, 0, 0, 0.04);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.3s ease;
}

.tag-link:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    /* White text on hero usually looks best */
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
}

.hero-bg-img,
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subtle overlay to ensure text readability if image is bright */
.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
    color: #fff;
    /* Enforce white here */
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.hero-body-text {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-family: var(--font-serif);
}

.hero-body-text p {
    margin-bottom: 0.5rem;
}

.hero-body-text p:last-child {
    margin-bottom: 0;
}

.cta-link {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
    transition: all 0.3s ease;
}

.cta-link:hover {
    background: #fff;
    color: var(--text-primary);
}

/* Intro Text */
.intro-text-section {
    padding: 8rem 2rem;
}

.editorial-lead {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.4;
    color: var(--text-primary);
}

/* Magazine Section */
.magazine-section {
    padding: var(--section-padding);
    padding-bottom: 3rem;
}

/* Hide Ghost's built-in pagination inside magazine section when unneeded */
.magazine-section .pagination {
    display: none;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.section-title {
    font-size: 3rem;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.story-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
    cursor: pointer;
}

.story-card.large.highlight {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.story-card.large.highlight .story-image {
    height: 600px;
}

.story-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
    /* Context for absolute positioning if needed */
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s linear;
    /* Smooth out JS updates, but keep it snappy */
    will-change: transform;
}

/* Hover effect now handled by JS parallax or we can keep a subtle scale if desired, 
   but strictly JS parallax usually conflicts with CSS hover scale. 
   Disabling CSS hover scale given JS parallax controls transform. */
/*.story-card:hover .story-image img {
    transform: scale(1.05);
}*/

.story-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.story-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--text-secondary);
}

.story-title {
    font-size: 1.8rem;
    line-height: 1.2;
}

.story-excerpt {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 400px;
}

.read-more {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-top: 1rem;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.story-card:hover .read-more {
    border-bottom: 1px solid var(--text-primary);
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 6rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 2rem;
    opacity: 0.6;
}


.footer-threads-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-threads-link:hover {
    color: #fff;
}
.footer-col address,
.footer-links {
    font-family: var(--font-serif);
    font-style: normal;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Animations */
.fade-in-up,
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.active-anim {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1024px) {
    .story-card {
        grid-column: span 6;
    }

    .story-card.large.highlight {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-card.large.highlight .story-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .story-card {
        grid-column: span 1 !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .main-nav {
        padding: 1rem 1.5rem;
        flex-direction: row;
        gap: 0;
    }

    .main-nav .nav-left {
        flex: 1;
        justify-content: flex-start;
    }

    .main-nav .nav-center {
        flex: 1;
        text-align: center;
        display: flex;
        justify-content: center;
        order: 0;
    }

    .main-nav .nav-right {
        flex: 1;
        justify-content: flex-end;
        gap: 1rem;
    }

    .main-nav .nav-right .nav-link:not(.primary-cta) {
        display: none;
        /* Hide desktop text links on mobile to save space */
    }

    .menu-overlay {
        width: 100vw;
        max-width: 100vw;
        padding: 2rem 1.5rem;
    }

    .overlay-nav-link,
    .menu-overlay-content .nav a {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
    }

    .secondary-nav-container .nav a,
    .secondary-nav-container .overlay-nav-link {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }
}

/* Method Section (Golden Triangle) */
.method-section {
    padding: var(--section-padding);
    background-color: #fcfaf8;
    /* Slightly lighter than bg-primary */
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 1rem;
}

.method-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    background: var(--bg-primary);
    transition: transform 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
}

.method-icon {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.method-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
}

.method-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.method-pivot {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}

/* ── Method Section: Hook ── */
.method-hook {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.method-hook-title {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0.75rem 0 1rem;
}

.method-hook-sub {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

/* ── Method Cards: Before / After ── */
.method-card--before-after {
    /* inherits base .method-card padding, background, and flex layout */
    text-align: center;
}

.method-states {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.method-state {
    padding: 0.9rem 1rem;
    border-radius: 6px;
    position: relative;
    text-align: left;
}

.method-state--before {
    background: transparent;
    border: 1px dashed rgba(0, 0, 0, 0.15);
}

.method-state--after {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.state-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.method-state--before .state-label {
    color: var(--text-secondary);
    opacity: 0.8;
}

.method-state--after .state-label {
    color: var(--text-primary);
    font-weight: 600;
}

.method-state p {
    margin: 0;
    line-height: 1.5;
    font-family: var(--font-serif);
}

.method-state--before p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.method-state--after p {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.state-arrow {
    display: flex;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.4;
    padding: 0.2rem 0;
}

/* ── Method Section: CTA Banner ── */
.method-cta-banner {
    background: #2a2416;
    padding: 6rem 2rem;
    text-align: center;
    margin-top: 5rem;
}

.method-cta-title {
    font-size: 2.5rem;
    color: #e8e0d4;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.method-cta-sub {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: rgba(232, 224, 212, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 2.5rem;
}

.method-cta-btn {
    display: inline-block;
    border: 1px solid rgba(232, 224, 212, 0.6);
    color: #e8e0d4;
    background: transparent;
    padding: 0.85rem 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    border-radius: 50px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.method-cta-btn:hover {
    background: #e8e0d4;
    color: #2a2416;
    border-color: #e8e0d4;
}

@media (max-width: 768px) {
    .method-hook-title {
        font-size: 2.2rem;
    }

    .method-cta-title {
        font-size: 1.8rem;
    }
}


/* Footer Manifesto */
.footer-manifesto {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.manifesto-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .method-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Ensure links remain visible */

    .nav-left .icon-btn {
        display: block;
        /* We removed icon-btn from html, need to handle mobile nav properly if we want it back. 
                         For now, desktop first approach as requested. */
    }
}

/* Parallax Banners */
.parallax-banner {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Override section padding */
    margin: 4rem 0;
}

.banner-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller than container for parallax movement */
    top: -10%;
    /* Start slightly above */
    background-color: #000;
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-content h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.banner-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.banner-body-text p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.banner-body-text p:last-child {
    margin-bottom: 0;
}

/* =========================================
   EVENTS ARCHIVE PAGE (page-events.hbs)
   ========================================= */
.events-archive {
    padding-top: 160px;
    padding-bottom: 8rem;
    min-height: 80vh;
}

.events-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.events-title {
    font-size: 3.5rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.1;
}

.events-intro {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* Section dividers */
.events-section {
    margin-bottom: 5rem;
}

.events-section--past {
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.events-section-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.events-section-label--past {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Status dot */
.events-status-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}

.events-status-dot--open {
    background: #4a9e6b;
    box-shadow: 0 0 0 5px rgba(74, 158, 107, 0.35);
    animation: pulse-green 1.8s ease-in-out infinite;
}

.events-status-dot--closed {
    background: rgba(0, 0, 0, 0.25);
    width: 10px;
    height: 10px;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0px rgba(74, 158, 107, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 158, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(74, 158, 107, 0);
    }
}

/* Event cards grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.events-grid--past {
    gap: 1.5rem;
}

/* Event card */
.event-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.event-card--open:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.event-card--past {
    opacity: 0.65;
}

.event-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c2416 0%, #4a3a28 100%);
}

.event-card-image--past {
    filter: grayscale(40%);
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Status badge on image */
.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
}

.event-badge--open {
    background: #4a9e6b;
    color: #fff;
}

.event-badge--past {
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.8);
}

/* Card content */
.event-card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.event-card-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0;
}

.event-card-title--past {
    color: var(--text-secondary);
}

.event-card-excerpt {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.event-card-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.event-card-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-secondary);
}

/* Register button */
.event-register-btn {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.event-register-btn:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

/* Past events record link */
.event-record-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.event-record-link:hover {
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .events-title {
        font-size: 2.5rem;
    }
}


/* =========================================
   STORIES ARCHIVE PAGE (page-stories.hbs)

   ========================================= */
.stories-archive {
    padding-top: 160px;
    padding-bottom: 8rem;
    min-height: 80vh;
}

.stories-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.stories-title {
    font-size: 3.5rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.1;
}

.stories-intro {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 3-column grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.5rem;
}

/* Archive card */
.story-card-archive {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}

.story-image--archive {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 2px;
}

.story-image--archive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Featured badge */
.featured-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
}

.story-title--archive {
    font-size: 1.4rem;
    line-height: 1.25;
    margin: 0;
}

/* Date meta */
.story-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: var(--text-secondary);
}

.story-meta-dot {
    color: var(--text-secondary);
    opacity: 0.4;
    font-size: 0.75rem;
}

.story-date--updated {
    opacity: 0.65;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 4rem 0;
}

@media (max-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stories-title {
        font-size: 2.2rem;
    }

    .story-image--archive {
        height: 200px;
    }
}

/* =========================================
   NEW UX IMPROVEMENTS — TEA LAB
   ========================================= */


/* Text nav links – separated slightly from portal links */
.text-nav-link {
    opacity: 0.75;
}

.text-nav-link:hover {
    opacity: 1;
}

/* Nav right separator before portal links */
.nav-right {
    gap: 1.5rem;
}

/* Hero — Dual CTA Group */
.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0;
}

.cta-primary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.cta-primary:hover {
    background: #fff;
    color: var(--text-primary);
    border-color: #fff;
}

.cta-secondary {
    border-color: transparent;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.cta-secondary:hover {
    color: #fff;
    border-bottom-color: #fff;
    background: transparent;
}

/* Hero Scroll Cue */
.hero-scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: color 0.3s ease;
}

.hero-scroll-cue:hover {
    color: #fff;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* Section-header left-aligned variant */
.section-header--left {
    text-align: left;
}

/* =========================================
   COURSES SECTION
   ========================================= */
.courses-section {
    padding: var(--section-padding);
    background-color: #fcfaf8;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Real images replacing gradients */
.course-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.05);
}

.course-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* Coming Soon State */
.course-card.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.course-card.disabled .course-cta {
    color: var(--text-secondary);
    border-bottom-color: transparent;
}

.badge-soon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.1rem;
    z-index: 2;
}

.course-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-card-content h3 {
    font-size: 1.3rem;
    line-height: 1.3;
}

.course-card-content p {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.course-cta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-top: 0.5rem;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    color: var(--text-primary);
}

.course-cta:hover {
    border-bottom-color: var(--text-primary);
}

@media (max-width: 900px) {
    .courses-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #e8e2da 0%, #ece8e0 100%);
}

.testimonials-section .label {
    text-align: center;
    display: block;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    margin: 0;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-serif);
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-card p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    margin-top: 1rem;
}

.testimonial-card footer {
    margin-top: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-secondary);
}

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

/* =========================================
   EDITORIAL GRID V2 — featured left + sidebar right
   ========================================= */
.editorial-grid--v2 {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem 4rem;
    align-items: start;
}

/* Featured card — left column */
.story-card--featured {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 0;
}

.story-image--featured {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 2px;
}

.story-image--featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-card--featured:hover .story-image--featured img {
    transform: scale(1.03);
}

.story-title--featured {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0;
}

/* Tag pill (shared between featured + sidebar) */
.story-tag-pill {
    display: inline-block;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    padding: 0.2rem 0.85rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    color: var(--text-secondary);
}

/* Sidebar — right column */
.story-sidebar {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 2px;
    overflow: hidden;
}

/* Compact sidebar card */
.story-card--small {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

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

.story-image--small {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.story-image--small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.story-content--small {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.2rem 1.4rem 1.4rem;
}

.story-title--small {
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0;
}

/* Rest of articles if sidebar is not used (fallback) */
.editorial-grid--v2 .story-card {
    grid-column: auto;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .editorial-grid--v2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image--featured {
        height: 280px;
    }

    .story-title--featured {
        font-size: 1.7rem;
    }

    .story-image--small {
        height: 160px;
    }
}

/* Reading time meta */
.story-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.story-reading-time {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: var(--text-secondary);
}

/* "View all" footer */
.editorial-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.view-all-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 3px;
    transition: opacity 0.3s ease;
}

.view-all-link:hover {
    opacity: 0.5;
}

@media (max-width: 900px) {
    .editorial-grid--v2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .editorial-grid--v2 .story-card.is-featured {
        grid-template-columns: 1fr;
    }

    .editorial-grid--v2 .story-card.is-featured .story-image {
        height: 300px;
    }

    .editorial-grid--v2 .story-card.is-featured .story-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .story-image--small {
        width: 100%;
        height: 180px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .text-nav-link {
        display: none;
    }
}

/* Ghost Required Classes */

/* Alignment classes mapping to CSS Grid */
.kg-width-wide {
    grid-column: wide-start / wide-end;
}

.kg-width-full {
    grid-column: full-start / full-end;
}

.kg-width-full img,
.kg-width-wide img {
    width: 100%;
}

/* Base kg-card styles */
.kg-card {
    margin: 3rem 0;
    grid-column: main-start / main-end;
    /* Ensure normal cards stay within text flow */
}

/* Ghost Native Images */
.kg-image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kg-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

figcaption {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    width: 100%;
}

/* Ghost Bookmarks */
.kg-bookmark-card {
    width: 100%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: var(--text-primary);
    min-height: 140px;
}

.kg-bookmark-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.5rem;
    justify-content: space-between;
}

.kg-bookmark-title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.kg-bookmark-description {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.kg-bookmark-icon {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

.kg-bookmark-thumbnail {
    position: relative;
    min-width: 30%;
    max-height: 100%;
}

.kg-bookmark-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 4px 4px 0;
    margin: 0;
}

/* Ghost Galleries */
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
}

.kg-gallery-row:not(:first-of-type) {
    margin-top: 1vw;
}

.kg-gallery-image:not(:first-of-type) {
    margin-left: 1vw;
}

/* Responsiveness for small containers */
@media (max-width: 800px) {
    .kg-bookmark-container {
        flex-direction: column;
    }

    .kg-bookmark-thumbnail {
        width: 100%;
        min-height: 150px;
        order: -1;
    }

    .kg-bookmark-thumbnail img {
        border-radius: 4px 4px 0 0;
    }
}

/* =========================================
   NEWSLETTER BANNER
   ========================================= */
.newsletter-banner {
    background: var(--text-primary);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
}

.newsletter-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.newsletter-banner p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
}

.newsletter-form form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.newsletter-form input {
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    border-radius: 50px;
    outline: none;
}

.newsletter-form button {
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    background: #fff;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.8rem;
    transition: opacity 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.8;
}

.newsletter-form .message-success,
.newsletter-form .message-error {
    flex-basis: 100%;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

.newsletter-form form.success .message-success {
    display: block;
    color: #4a9e6b;
}

.newsletter-form form.error .message-error {
    display: block;
    color: #e96d6d;
}

.newsletter-form form.success input,
.newsletter-form form.success button {
    display: none;
}
/* =========================================
   MOBILE & RESPONSIVE FIXES
   ========================================= */

/* H4: Reduce section padding on mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }
}

/* M3: Parallax banner headings on small screens */
@media (max-width: 600px) {
    .banner-content h2 {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .banner-body-text p {
        font-size: 0.9rem;
    }
}

/* M6: Respect user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in-up,
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .parallax-img,
    .story-image img,
    .banner-image-container img,
    .banner-image-container video {
        transform: none !important;
    }
}

/* ===================================
   Events Strip (Homepage Calendar)
   =================================== */

.events-strip-section {
    padding: var(--section-padding);
    background-color: var(--bg-secondary);
}

.events-strip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.events-strip-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    margin-top: 0.5rem;
    color: var(--text-primary);
}

.events-strip-all-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    white-space: nowrap;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--text-secondary);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.events-strip-all-link:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    opacity: 1;
}

.events-strip-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.events-strip-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.12);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.events-strip-item:hover {
    opacity: 1;
}

.events-strip-item:hover .events-strip-name {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(26, 26, 26, 0.35);
}

.events-strip-item:hover .events-strip-btn {
    color: var(--text-primary);
}

/* Date column */
.events-strip-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    border-radius: 4px;
    padding: 0.6rem 0.4rem;
    min-width: 64px;
    text-align: center;
}

.events-strip-month {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.events-strip-day {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1;
}

/* Body column */
.events-strip-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.events-strip-tag {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.events-strip-name {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.35;
    transition: text-decoration 0.2s ease;
}

.events-strip-excerpt {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.1rem;
}

/* Action column */
.events-strip-action {
    flex-shrink: 0;
}

.events-strip-btn {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 640px) {
    .events-strip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .events-strip-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
    }

    .events-strip-action {
        grid-column: 2;
        grid-row: 2;
        margin-top: -0.4rem;
    }

    .events-strip-date {
        grid-row: span 2;
        align-self: start;
        margin-top: 0.2rem;
    }
}

/* ===================================
   Post HTML Card Overrides
   Fix layout gap when full-page HTML
   is embedded in Ghost post HTML cards
   =================================== */

/* Hide standalone page navs (they're fixed-position and duplicate Ghost's nav) */
.post-full-content nav {
    display: none !important;
}

/* Allow full-width breakout sections to work without JS escape */
.post-full-content,
.post-full-content .kg-html-card {
    overflow: visible !important;
}

/* Fix hero spacing: collapse 100vh/100svh height */
.post-full-content .hero,
.post-full-content .tl-hero {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 3rem !important;
}



