:root {
    /* User Provided Colors */
    --main-brand-color: #652D90;
    --main-brand-color-light: #F188B6;
    --main-brand-color-pale: #FAD5E5;
    --main-brand-color-dark: #9D2066;
    --secondary-brand-color: #00ACDC;
    --secondary-brand-color-light: #7884BD;
    --secondary-brand-color-pale: #CACDE6;
    --tertiary-brand-color: #524FA0;
    --black: #020407;
    --white: #ECECF6;
    --surface-light: #ffffff;
    --text-grey: #555;
    --text-light-grey: #ccc;

    /* User Provided Font Sizing */
    --font-size-sm: clamp(0.8rem, 0.17vw + 0.76rem, 0.89rem);
    --font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
    --font-size-md: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
    --font-size-lg: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
    --font-size-xl: clamp(1.95rem, 1.56vw + 1.56rem, 2.81rem);
    --font-size-xxl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
    --font-size-xxxl: clamp(3.05rem, 3.54vw + 2.17rem, 5rem);

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, var(--main-brand-color) 0%, var(--tertiary-brand-color) 100%);
    --brand-gradient-hover: linear-gradient(135deg, var(--main-brand-color-dark) 0%, var(--main-brand-color) 100%);
    --accent-gradient: linear-gradient(90deg, var(--main-brand-color-light), var(--secondary-brand-color));
    --hero-bg-gradient: radial-gradient(circle at top right, var(--main-brand-color-dark), transparent 40%),
        radial-gradient(circle at bottom left, var(--secondary-brand-color), transparent 40%),
        linear-gradient(135deg, var(--main-brand-color) 0%, #2a1b3d 100%);

    /* Layout Variables */
    --gutter: clamp(1.5rem, 5vw, 3rem);
    --border-radius-xsm: 3px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --font-serif: 'Fraunces', serif;
    --font-sans: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

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

/* default focus overrides (needs to be adjusted for edge cases like footer links) */
*:focus-visible {
  outline: 0.125rem solid contrast-color(var(--surface-light));
  outline-offset: 0.125rem;
  box-shadow: 0 0 0.125rem 0 contrast-color(contrast-color(var(--surface-light)));
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    font-size: var(--font-size-base);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-variation-settings: "SOFT" 100;
    line-height: 1.1;
    margin-bottom: 0.75em;
}

h1 {
    font-size: var(--font-size-xxxl);
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 0.875;
    text-shadow: 0.125rem 0.125rem 0.25rem var(--black);
}

h2 {
    font-size: var(--font-size-xxl);
    color: var(--black);
    letter-spacing: -0.02em;
    line-height: 0.875;
}

h3 {
    font-size: var(--font-size-lg);
    color: var(--main-brand-color);
    line-height: 0.875;
}

p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.2s;
}

strong {
    font-weight: 700;
}

/* Utilities */
.block {
    display: block;
}

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

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--sibling {
    border-top: 0.0625rem solid var(--secondary-brand-color-light);
    margin-top: 3rem;
    padding-top: 3rem;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    border-bottom: 0.125rem solid var(--secondary-brand-color);
    color: var(--white);
    padding: 0.1rem 0.25rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(101, 45, 144, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn__small {
    background: var(--black);
    padding: 0.5rem 1.5rem;
    font-size: var(--font-size-sm);
}

.btn__small--alt {
    background: var(--secondary-brand-color-pale);
    color: var(--black)
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(101, 45, 144, 0.4);
    filter: brightness(1.1);
}

.btn-ghost {
    background: transparent;
    border: 1px solid white;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-white {
    background: white;
    color: black;
    border: none;
}

.btn-white:hover {
    background: var(--white);
    color: var(--main-brand-color);
}
.btn-white:focus-visible {
  outline: 0.125rem solid contrast-color(var(--black));
  outline-offset: 0.125rem;
  box-shadow: 0 0 0.125rem 0 contrast-color(contrast-color(var(--black)));
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: white;
    padding: 1rem 2rem;
    z-index: 1000;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.skip-link:focus {
    top: 0;
}

/* Navbar */
.navbar {
    background: rgba(2, 4, 7, 0.2);
    border-bottom: 0.0625rem solid rgba(2, 4, 7, 0.1);
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}
.navbar::after {
    background: red;
    background: linear-gradient(180deg, rgba(2, 4, 7, 0.56) 0%, rgba(2, 4, 7, 0) 100%);
    bottom: -5px;
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    z-index: -1;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.logo img {
    height: 4.5rem;
    width: auto;
}

@media screen and (max-width: 768px) {
    .logo img {
        height: 3rem;
    }
}

.nav-links {
    display: none;
}

/* --- Mobile Menu & Hamburger Styles --- */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100; /* Above the dropdown */
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--secondary-brand-color-pale);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Hamburger Animation States */
.mobile-menu-btn[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Dropdown Styles */
.nav-links.show-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(2, 4, 7, 0.77);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    animation: slideDown 0.3s ease-out forwards;
    z-index: 99;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.nav-links.show-menu a {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--black);
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: white;
}

.nav-links.show-menu a:last-child {
    border-bottom: none;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
    
    /* Ensure standard flex behavior overrides mobile styles on resize */
    .nav-links.show-menu {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background: transparent;
        padding: 0;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        animation: none;
    }
    
    .nav-links.show-menu a {
        font-size: 0.95rem;
        padding: 0;
        border: none;
        width: auto;
        color: rgba(255,255,255,0.9);
    }
}

@media(min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .nav-links a {
        border-bottom: 0.125rem solid var(--secondary-brand-color);
        color: var(--white);
        font-weight: 400;
        font-family: var(--font-serif);
        font-size: 0.95rem;
        transition: all 0.2s;
        text-decoration: none;
    }

    .nav-links a:hover {
        color: var(--surface-light);
        border-bottom-color: var(--surface-light);
    }
}

/* Hero Section */
.hero {
    background: var(--hero-bg-gradient);
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: clamp(8rem, 15vh, 12rem); 
    padding-bottom: clamp(3rem, 5vh, 5rem);
    overflow: hidden;
    color: white;
}

/*@media(min-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 10.5rem;
    }
}*/

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-accent svg {
    width: 100%;
    height: 100%;
    /* Make it cover the area nicely */
    min-width: 1000px; 
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 64rem;
    /* 1024px */
    text-align: center;
    margin: 0 auto;
}

.hero p {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 2.5rem auto;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    color: var(--white);
}

/* Features / About Section */
.section-padding {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-wrapper ul {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

.about-wrapper a {
    background: var(--surface-light);
    border-bottom: 0.125rem solid var(--main-brand-color-light);
    /*border-radius: var(--border-radius-xsm);*/
    color: var(--black);
    padding: 0 0.125rem;
    text-decoration: none;
    transition: all 0.2s;
}

.about-wrapper a:hover {
    border-bottom-color: var(--black);
}

.story-intro {
    font-family: var(--font-serif);
    font-size: var(--font-size-md);
    letter-spacing: -0.02em;
    line-height: 1.125;
    color: var(--black);
}

@media(min-width: 900px) {
    .about-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.quote-card {
    background: var(--surface-light);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    position: relative;
}

.quote-card::before {
    content: '“';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-family: var(--font-serif);
    font-size: 8rem;
    line-height: 1;
    color: var(--main-brand-color);
    opacity: 0.2;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: var(--font-size-lg);
    color: var(--main-brand-color);
    letter-spacing: -0.02em;
    line-height: 1.125;
    position: relative;
    z-index: 1;
}

/* Events Grid */
.events-bg {
    background-color: var(--surface-light);
}

.events-bg__alt {
    background-color: var(--secondary-brand-color-pale);
}

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

.section-header h2 {
    margin-bottom: 0.875rem;
}

.section-header--alt h2 {
    color: var(--black);
}

.section-header p {
    margin: 0 auto;
    color: var(--main-brand-color);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.event-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--secondary-brand-color-pale);
    background: var(--white) radial-gradient(at left top, var(--surface-light), var(--white));
}

.date-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tertiary-brand-color);
    margin-bottom: 0.5rem;
    display: block;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin-bottom: 0.5rem;
    color: var(--black);
}

.event-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.location {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.location__icon::before {
    content: "💜";
    font-style: normal;
    /*"📍";*/
    margin-right: 0.25rem;
}

.card-desc {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    text-decoration: none;
    border-bottom: 0.125rem solid var(--tertiary-brand-color);
    color: var(--black);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.card-link::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.event-card:hover .card-link::after {
    transform: translateX(4px);
}

/* CTA Section */
.cta-section {
    background: var(--black);
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: var(--main-brand-color);
    filter: blur(150px);
    opacity: 0.2;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

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

.cta-content h2 {
    filter: drop-shadow(0.125rem 0.125rem 0.125rem #000000);
}

.cta-subtitle {
    margin: 0 auto 2rem auto;
    color: var(--text-light-grey);
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
    background: var(--secondary-brand-color);
    transform: scale(1.1);
    border-color: transparent;
}
.social-btn:focus-visible {
  outline: 0.125rem solid contrast-color(var(--black));
  outline-offset: 0.125rem;
  box-shadow: 0 0 0.125rem 0 contrast-color(contrast-color(var(--black)));
}

footer {
    background: var(--black);
    color: var(--secondary-brand-color-light);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    border-top: 1px solid #222;
}