/* ===== COSMIC CONVERSATIONS ===== */

:root {
    /* Background colors */
    --color-bg-dark: #0a0a0e;
    --color-bg-medium: #1b1f22;
    --color-bg-overlay: rgba(27, 31, 34, 0.85);

    /* Text colors */
    --color-text: #ffffff;
    --color-text-soft: rgba(255,255,255,0.8);
    --color-text-muted: rgba(255,255,255,0.5);

    /* Accent colors */
    --color-primary: #c9a227;
    --color-accent-bright: #FFD700;
    --color-accent-orange: #FFA500;
    --color-border: rgba(255,255,255,0.15);

    /* Typography */
    --font-body: 'Crimson Text', serif;
    --font-heading: 'Playfair Display', serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 17pt;
}

@media (max-width: 1680px) { html { font-size: 15pt; } }
@media (max-width: 980px) { html { font-size: 14pt; } }
@media (max-width: 736px) { html { font-size: 13pt; } }

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg-dark);
    -webkit-text-size-adjust: none;
    overflow-x: hidden;
}

body.is-preload *, 
body.is-preload *:before, 
body.is-preload *:after {
    animation: none !important;
    transition: none !important;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08rem;
    margin: 0 0 1rem 0;
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.2rem;
}

h2 {
    font-size: 1.6rem;
    letter-spacing: 0.15rem;
}

h3 {
    font-size: 1.1rem;
    letter-spacing: 0.1rem;
}

@media (max-width: 736px) {
    h1 { font-size: 2rem; letter-spacing: 0.15rem; }
    h2 { font-size: 1.35rem; letter-spacing: 0.1rem; }
    h3 { font-size: 1rem; letter-spacing: 0.05rem; }
}

p {
    margin: 0 0 1.5rem 0;
    line-height: 1.75;
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--color-text-soft);
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--color-text-muted);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

a:hover { 
    border-bottom-color: transparent; 
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.container {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center, .text-center p { text-align: center; }

/* ===== HEADER NAVIGATION ===== */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    background: rgba(10, 10, 14, 0.88);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.header-nav.scrolled {
    background: rgba(10, 10, 14, 0.95);
    padding: 0.75rem 2rem;
}

.header-nav__content {
    max-width: 70rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-nav__logo {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--color-text);
    border-bottom: none;
    transition: color 0.2s ease;
}

.header-nav__logo:hover {
    color: rgba(255,255,255,0.8);
}

.header-nav__menu {
    display: flex;
    gap: 2.5rem;
}

.header-nav__menu a {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: var(--color-text-soft);
    border-bottom: none;
    transition: color 0.2s ease;
    position: relative;
}

.header-nav__menu a:hover {
    color: var(--color-accent-bright);
}

.header-nav__menu a.active {
    color: var(--color-text);
}

.header-nav__menu a.active::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-text);
}

.header-nav__menu a.cta-link {
    color: var(--color-text-soft);
}

/* Back Button - Positioned below nav in upper left */
.page-back-button {
    position: fixed;
    top: 5rem;
    left: 2rem;
    z-index: 99;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--color-border);
}

.page-back-button:hover {
    color: var(--color-text);
    border-color: var(--color-text-soft);
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--color-text-soft);
}

.header-nav__menu a.cta-link:hover {
    color: var(--color-accent-bright);
}

/* Mobile menu toggle */
.header-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.header-nav__toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.header-nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.header-nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.header-nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

@media (max-width: 980px) {
    .header-nav__menu {
        gap: 1.75rem;
    }
    
    .header-nav__menu a {
        font-size: 0.8rem;
    }
}

@media (max-width: 736px) {
    .header-nav {
        padding: 1rem 1.5rem;
    }

    .header-nav__toggle {
        display: flex;
    }

    .header-nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 14, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--color-border);
    }

    .header-nav__menu.active {
        right: 0;
    }

    .header-nav__menu a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 0.9rem;
    }

    .header-nav__menu a:last-child {
        border-bottom: none;
    }

    .page-back-button {
        left: 1.5rem;
        top: 4rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        letter-spacing: 0.15rem;
    }
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 6rem 2rem 3rem;
    overflow: hidden;
}

/* Parallax scrolling background */
.hero__bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('../bg.webp') center top / cover no-repeat;
    z-index: 1;
    will-change: transform;
}

@media (max-width: 768px) {
    .hero__bg {
        background-image: url('../bg-mobile.webp');
    }
}

/* Dark overlay */
.hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(10, 10, 14, 0.85) 100%),
        linear-gradient(to bottom, transparent 0%, rgba(10, 10, 14, 0.4) 80%, var(--color-bg-dark) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Shining stars - Multiple layers for parallax depth */
.hero__stars {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80%;
    pointer-events: none;
    will-change: transform;
}

/* Far stars layer - Optimized PNG texture */
.hero__stars--far {
    z-index: 3;
    background: url('../images/stars-far.png') repeat;
    animation: starsShine2 7s ease-in-out infinite;
}

/* Mid stars layer - Optimized PNG texture */
.hero__stars--mid {
    z-index: 4;
    background: url('../images/stars-mid.png') repeat;
    animation: starsShine2 7s ease-in-out infinite;
}
/* Near stars layer - Optimized PNG texture */
.hero__stars--near {
    z-index: 5;
    background: url('../images/stars-near.png') repeat;
    animation: starsShine3 5s ease-in-out infinite;
}

@keyframes starsShine1 {
    0%, 100% { opacity: 0.8; }
    33% { opacity: 1; }
    66% { opacity: 0.9; }
}

@keyframes starsShine2 {
    0%, 100% { opacity: 0.9; }
    40% { opacity: 1; }
    80% { opacity: 0.95; }
}

@keyframes starsShine3 {
    0%, 100% { opacity: 0.95; }
    25% { opacity: 1; }
    50% { opacity: 1; }
    75% { opacity: 1; }
}

.header-nav.scrolled {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* --- Lite mode: strip everything for reduced-motion --- */
.perf-lite .hero__stars,
.perf-lite .star-layer {
    animation: none;
    will-change: auto;
    top: 0;
    height: 100%;
}

/* Hero content */
.hero__content {
    position: relative;
    z-index: 10;
    margin-top: 8rem;
    max-width: 900px;
}

/* Hero with image */
.hero__content--with-image {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
    max-width: 1100px;
}

.hero__image {
    flex: 0 0 350px;
    width: 350px;
}

.hero__image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.8));
}

.hero__text {
    flex: 1;
    text-align: center;
}

@media (max-width: 980px) {
    .hero__content--with-image {
        flex-direction: column;
        text-align: center;
    }
    
    .hero__image {
        flex: 0 0 auto;
        width: 280px;
    }
}

.hero__content h1 {
    text-shadow: 0 4px 40px rgba(0,0,0,0.9);
    margin-bottom: 0.75rem;
}

.hero__subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem;
}

.hero__tagline {
    font-size: 1.15rem;
    letter-spacing: 0.2rem;
    line-height: 1.8;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem;
}

.hero__description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-soft);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero__content p,
.section-intro,
.footer-content > .lead {
    text-align: center;
}

@media (max-width: 736px) {
    .hero {
        padding: 4rem 2rem 2rem;
    }
    
    .hero__content { 
        margin-top: 2rem; 
        padding: 0 1rem;
    }
    .hero__nav {
        flex-direction: column;
        min-width: 12rem;
    }
    .hero__nav a {
        border-left: none;
        border-top: 1px solid var(--color-text);
        height: 3.25rem;
        line-height: 3.25rem;
    }
    .hero__nav a:first-child { border-top: none; }
    
    /* Star layers on mobile — brighter PNGs, taller for parallax room */
    .hero__stars {
        height: 120%;
    }
    .hero__stars--far {
        background-image: url('../images/stars-far-mobile.png');
    }
    .hero__stars--mid {
        background-image: url('../images/stars-mid-mobile.png');
    }
    .hero__stars--near {
        background-image: url('../images/stars-near-mobile.png');
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    border-bottom: 1px solid var(--color-text);
    width: max-content;
    max-width: 100%;
    margin: 0 auto 0.75rem;
    padding-bottom: 0.5rem;
    font-size: 2rem;
}

.section-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-text-soft);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* ===== GLASS SECTIONS (Glassmorphism) ===== */
.glass-section {
    padding: 5rem 0;
    background: rgba(20, 23, 26, 0.92);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.85;
}

.intro-text .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.intro-image {
    text-align: center;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.intro-image figure {
    margin: 0;
}

.intro-image figcaption {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    font-style: italic;
}

@media (max-width: 980px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ===== STAR BLOCKS (Repeating star sections) ===== */
.star-block {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-dark);
}

.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    will-change: transform;
}

.star-layer--far {
    z-index: 1;
    background: url('../images/stars-far.png') repeat;
    animation: starsShine1 10s ease-in-out infinite;
}

.star-layer--mid {
    z-index: 2;
    background: url('../images/stars-mid.png') repeat;
    animation: starsShine2 7s ease-in-out infinite;
}

.star-layer--near {
    z-index: 3;
    background: url('../images/stars-near.png') repeat;
    animation: starsShine3 5s ease-in-out infinite;
}

.star-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 14, 0.3) 0%, rgba(10, 10, 14, 0.6) 100%);
    z-index: 4;
    pointer-events: none;
}

.star-block .container {
    position: relative;
    z-index: 10;
}

/* Glass sections with star backgrounds */
.glass-section.star-block {
    background: transparent;
    overflow: hidden;
}

.glass-section.star-block .container {
    position: relative;
    z-index: 10;
}

/* ===== ABOUT / INVITATION ===== */
.intro-text {
    font-size: 1.25rem; /* Bigger intro text */
    line-height: 1.85;
    color: var(--color-text-soft);
    text-align: left;
    margin: 0 auto 4rem;
    max-width: 45rem;
}

.about-card {
    background: var(--color-bg-overlay);
    border-radius: 4px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about-image {
    max-width: 400px;
}

.about-image img {
    border-radius: 4px;
}

.about-content p {
    font-size: 1.05rem; /* Bigger */
    line-height: 1.8;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

@media (min-width: 737px) {
    .about-card {
        flex-direction: row;
        padding: 3rem;
    }
    .about-image {
        flex-shrink: 0;
    }
}

/* ===== OFFERINGS ===== */
.offerings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.offering-card {
    padding: 2.5rem 2rem; /* More padding */
    background: var(--color-bg-overlay);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-align: left;
}

.offering-card:hover {
    background: rgba(27, 31, 34, 0.95);
    border-color: rgba(255,255,255,0.25);
}

.offering-card h3 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.offering-card p {
    font-size: 1rem; /* Bigger */
    line-height: 1.75;
    color: var(--color-text-soft);
    margin: 0;
}

@media (max-width: 736px) {
    .offerings { grid-template-columns: 1fr; }
}

/* ===== BOOKS ===== */
.books {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.book-card {
    text-align: left;
}

.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.book-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.book-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-soft);
    margin-bottom: 1rem;
}

.book-link {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    padding: 0.5rem 0;
}

.book-status {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@media (max-width: 736px) {
    .books { grid-template-columns: 1fr; }
}

/* ===== EVENTS ===== */
.events-list {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.events-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-soft);
    margin-bottom: 2.5rem;
}

.event-link {
    display: block;
    padding: 1.25rem 2rem;
    background: var(--color-bg-overlay);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    border-bottom: none;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.event-link:hover {
    background: rgba(27, 31, 34, 0.95);
    border-color: rgba(255,255,255,0.25);
}

/* ===== CONTACT ===== */
.contact-wrapper {
    display: grid;
    gap: 4rem;
    max-width: 55rem;
    margin: 0 auto;
}

/* Form - HTML5 template style */
form {
    margin: 0;
}

.fields {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% + 1.5rem);
    margin: 0 0 2rem -1.5rem;
}

.field {
    padding: 0.75rem 0 0 1.5rem;
    width: calc(100% - 1.5rem);
}

.field.half { 
    width: calc(50% - 0.75rem); 
}

label {
    display: block;
    font-size: 0.85rem; /* Slightly bigger */
    font-weight: 300;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--color-text);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0 1.25rem;
    height: 3rem; /* Increased from 2.75rem */
    background: transparent;
    border: 1px solid var(--color-text);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    height: auto;
    padding: 1rem 1.25rem;
    resize: vertical;
    min-height: 150px;
}

input:focus, textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.075);
    box-shadow: 0 0 0 1px var(--color-text);
}

::placeholder { 
    color: var(--color-text-muted);
    opacity: 1;
}

.actions {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.button {
    display: inline-block;
    padding: 0 1.5rem;
    height: 3rem; /* Increased */
    line-height: 3rem;
    font-family: var(--font-body);
    font-size: 0.85rem; /* Slightly bigger */
    font-weight: 300;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    background: transparent;
    border: none;
    box-shadow: inset 0 0 0 1px var(--color-text);
    border-radius: 4px;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: none;
}

.button:hover {
    background: rgba(255,255,255,0.075);
}

.button:active {
    background: rgba(255,255,255,0.15);
}

.button.primary {
    background: var(--color-text);
    color: var(--color-bg-dark);
    font-weight: 600;
}

.button.primary:hover {
    background: rgba(255,255,255,0.9);
}

/* Contact info */
.contact-info {
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 0.75rem;
    margin-top: 2.5rem;
    font-size: 1.15rem;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.newsletter-form input {
    flex: 1;
}

/* Social icons */
.icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem; /* Slightly bigger */
    height: 2.5rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--color-text);
    border-bottom: none;
    transition: background-color 0.2s ease;
}

.icons li a:hover { 
    background: rgba(255,255,255,0.075); 
}

.icons li a:active {
    background: rgba(255,255,255,0.15);
}

.icon-fb, .icon-yt, .icon-li {
    display: block;
    width: 1.1rem; 
    height: 1.1rem;
    background: var(--color-text);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.icon-fb { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z'/%3E%3C/svg%3E"); }
.icon-yt { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z'/%3E%3C/svg%3E"); }
.icon-li { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.98 3.5c0 1.381-1.11 2.5-2.48 2.5s-2.48-1.119-2.48-2.5c0-1.38 1.11-2.5 2.48-2.5s2.48 1.12 2.48 2.5zm.02 4.5h-5v16h5v-16zm7.982 0h-4.968v16h4.969v-8.399c0-4.67 6.029-5.052 6.029 0v8.399h4.988v-10.131c0-7.88-8.922-7.593-11.018-3.714v-2.155z'/%3E%3C/svg%3E"); }

@media (min-width: 737px) {
    .contact-wrapper {
        grid-template-columns: 1.5fr 1fr;
    }
    .contact-info { 
        text-align: left; 
    }
}

@media (max-width: 736px) {
    .field.half { 
        width: calc(100% - 1.5rem); 
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* ===== BUTTONS & CTAs ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    text-align: center;
    background: transparent;
    border: 2px solid var(--color-text);
    border-radius: 4px;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: 2px solid var(--color-text);
    box-sizing: border-box;
    line-height: 1.2;
}

.btn:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent-bright) 0%, var(--color-accent-orange) 100%);
    border-color: var(--color-accent-bright);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-accent-orange) 0%, var(--color-accent-bright) 100%);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.btn--buy {
    background: linear-gradient(135deg, var(--color-accent-bright) 0%, var(--color-accent-orange) 100%);
    border-color: var(--color-accent-bright);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn--buy:hover {
    background: linear-gradient(135deg, var(--color-accent-orange) 0%, var(--color-accent-bright) 100%);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.btn--secondary {
    background: var(--color-accent-bright);
    border-color: var(--color-accent-bright);
    color: #000;
    font-weight: 600;
}

.btn--secondary:hover {
    background: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-accent-bright);
    color: var(--color-accent-bright);
}

.btn--outline:hover {
    background: var(--color-accent-bright);
    border-color: var(--color-accent-bright);
    color: #000;
}

.btn--large {
    padding: 1.125rem 3rem;
    font-size: 0.95rem;
}

/* ===== EXPERIENCE CARDS ===== */
.experience-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.experience-card {
    background: rgba(27, 31, 34, 0.92);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.experience-card:hover {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.experience-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.star-block--articles .experience-card__image {
    aspect-ratio: 1 / 1;
}

.experience-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.experience-card h3 {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.experience-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem;
    flex: 1;
}

.experience-card .btn {
    margin-top: auto;
}

@media (max-width: 980px) {
    .experience-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== BOOK SHOWCASE ===== */
.books-showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.book-showcase {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem;
    background: rgba(10, 10, 14, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.book-showcase:hover {
    border-color: rgba(255,255,255,0.2);
}

.book-showcase__cover {
    width: 250px;
    height: 375px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.book-showcase__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.book-showcase__content {
    text-align: center;
}

.book-showcase__content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.book-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.book-showcase__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-soft);
    margin-bottom: 2rem;
}

.book-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .book-showcase {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }
    
    .book-showcase__cover {
        margin: 0 auto;
    }
    
    .book-cta {
        justify-content: center;
    }
}

/* ===== BOOKS GRID (Gallery) ===== */
.books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.book-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    border-color: rgba(255,215,0,0.3);
}

.book-card__cover {
    flex-shrink: 0;
    overflow: hidden;
    height: 380px;
    background: rgba(0,0,0,0.2);
}

.book-card__cover a {
    display: block;
    height: 100%;
}

.book-card__cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.book-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--color-accent-bright);
    border: 1px solid var(--color-accent-bright);
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

.book-card__content {
    padding: 1.5rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-card__content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.book-card__content .book-subtitle {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.book-card__content > p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem;
}

.book-card__content > p:not(.book-subtitle) {
    flex-grow: 1;
}

/* Book Table of Contents accordion */
.book-toc {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    overflow: hidden;
}
.book-toc summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--color-accent-bright);
    background: rgba(255, 255, 255, 0.03);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}
.book-toc summary:hover {
    background: rgba(255, 255, 255, 0.06);
}
.book-toc summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.book-toc[open] summary::after {
    content: '−';
}
.book-toc summary::-webkit-details-marker {
    display: none;
}
.book-toc__content {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}
.book-toc__section {
    color: var(--color-accent-bright);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin: 1rem 0 0.4rem;
}
.book-toc__section:first-child {
    margin-top: 0;
}
.book-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.book-toc__list li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--color-text-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.book-toc__list li:last-child {
    border-bottom: none;
}

.book-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}
.book-card__actions .btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== EVENTS CALENDAR ===== */
.events-calendar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.event-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    padding: 2.5rem;
    background: rgba(27, 31, 34, 0.8);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: rgba(255,215,0,0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(255,165,0,0.2) 100%);
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.event-card__month {
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--color-accent-bright);
    margin-bottom: 0.5rem;
    word-break: keep-all;
    white-space: nowrap;
}

.event-card__day {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.event-card__year {
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    color: var(--color-text-soft);
}

.event-card__content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-card__location {
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--color-accent-bright);
    margin-bottom: 1rem;
}

.event-card__content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem;
}

.event-card--sold-out {
    opacity: 0.7;
}

.event-card--sold-out .event-card__date {
    filter: grayscale(0.5);
}

.event-card__sold-out {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: rgba(180, 0, 0, 0.25);
    border: 1px solid rgba(255, 80, 80, 0.5);
    color: #ff8080;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
}

.events-footer {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.events-footer .lead {
    margin-bottom: 2rem;
}

.event-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }

    .event-card__date {
        padding: 1rem;
    }

    .event-card__day {
        font-size: 2.5rem;
    }
}

/* Past Events Section */
.past-events-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.past-events-title {
    opacity: 0.5;
}

.events-calendar--past .event-card {
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.events-calendar--past .event-card:hover {
    opacity: 0.75;
}

/* ===== FOOTER ===== */
.footer {
    padding: 1rem 2rem 1rem;
    text-align: center;
    background: rgba(10, 10, 14, 0.95);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.footer-content .lead {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    color: var(--color-text-soft);
}

/* Newsletter Form - Large Footer Version */
.newsletter-form--large {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.newsletter-form__fields {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form__fields input {
    flex: 1;
    height: 3.5rem;
    padding: 0 1.5rem;
    font-size: 1rem;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.newsletter-form__fields input:focus {
    outline: none;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.newsletter-form__note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--color-text);
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.footer-social a:hover {
    border-color: var(--color-accent-bright);
    background: rgba(255,215,0,0.1);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-bottom a {
    color: var(--color-text-soft);
    border-bottom: 1px dotted var(--color-text-muted);
}

.footer-bottom a:hover {
    color: var(--color-text);
    border-bottom-color: transparent;
}

@media (max-width: 768px) {
    .newsletter-form__fields {
        flex-direction: column;
    }

    .newsletter-form__fields input,
    .newsletter-form__fields button {
        width: 100%;
    }
}

/* ===== PHOTO CREDIT ===== */
.photo-credit {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.2rem;
    font-style: italic;
}

/* ===== PUBLIC WORKSHOPS ACCORDION ===== */
.workshops-accordion {
    max-width: 800px;
    margin: 2rem auto 0;
}

.workshop-item {
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.workshop-item:first-child {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.workshop-item__title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.1rem 2.5rem 1.1rem 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    list-style: none;
    position: relative;
    transition: color 0.2s ease;
}

.workshop-item__title::-webkit-details-marker { display: none; }

.workshop-item__title::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 1.1rem;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-accent-bright, #FFD700);
    transition: transform 0.25s ease;
    line-height: 1;
}

.workshop-item[open] > .workshop-item__title::after {
    transform: rotate(45deg);
}

.workshop-item__title:hover {
    color: var(--color-accent-bright, #FFD700);
}

.workshop-item__subtitle {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 400;
    font-style: italic;
    opacity: 0.7;
}

.workshop-item__body {
    padding: 0.75rem 0 1.5rem;
    opacity: 0.85;
}

/* ===== PHOTO FRAME & LIGHTBOX ===== */
figure.photo-figure {
    margin: 0;
    display: inline-block;
    width: 100%;
}

/* When the figure wraps an image inside a fixed-aspect container, the figure
   must also fill that container so object-fit on the img still works. */
.experience-card__image figure.photo-figure,
.book-showcase__cover figure.photo-figure,
.book-card__cover figure.photo-figure {
    display: block;
    height: 100%;
}

.experience-card__image figure.photo-figure img,
.book-showcase__cover figure.photo-figure img,
.book-card__cover figure.photo-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

img.photo-frame {
    border: 2px solid rgba(255, 215, 0, 0.45);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: block;
    width: 100%;
}

img.photo-frame:hover {
    border-color: rgba(255, 215, 0, 0.85);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.photo-caption {
    font-style: italic;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 0.4rem 0.5rem 0;
    line-height: 1.4;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem;
    box-sizing: border-box;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    max-width: 600px;
    line-height: 1.4;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10001;
    line-height: 1;
    padding: 0.5rem;
}

.lightbox-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .lightbox-overlay {
        padding: 1rem;
    }

    .lightbox-overlay img {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.75rem;
        font-size: 2rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

@media (max-width: 768px) {
    .header-nav {
        background: rgba(10, 10, 14, 0.95);
    }
}

/* Respect OS-level reduced-motion preference */
/* Section fade-in on scroll (class-based, no forced reflow) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect OS-level reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero__stars,
    .star-layer {
        animation: none !important;
        will-change: auto;
    }
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
