/* rational.group - Ethereal Pastoral-Romantic Design */

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

:root {
    --gold-primary: #D4A574;
    --gold-deep: #C69C6D;
    --black-deep: #1A1A1A;
    --charcoal: #2B2B2B;
    --charcoal-light: #3F3F3F;
    --cream: #F5F0E8;
    --sage: #6B7B5E;
    --sage-light: #8B9D7F;
    --sienna: #8B4513;
    --forest: #2F4F2F;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: var(--charcoal);
    background-color: var(--cream);
    overflow-x: hidden;
    position: relative;
}

/* Grain Canvas */
#grain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
}

/* Fish Layer - Floating ambient fish */
#fish-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.drift-fish {
    position: absolute;
    opacity: 0.05;
    transition: none;
}

.drift-fish.fish-1 {
    width: 80px;
    top: 12%;
    left: 8%;
    color: var(--gold-primary);
}

.drift-fish.fish-2 {
    width: 55px;
    top: 28%;
    right: 12%;
    color: var(--black-deep);
}

.drift-fish.fish-3 {
    width: 90px;
    top: 45%;
    left: 5%;
    color: var(--gold-primary);
}

.drift-fish.fish-4 {
    width: 42px;
    top: 62%;
    right: 8%;
    color: var(--gold-deep);
}

.drift-fish.fish-5 {
    width: 65px;
    top: 75%;
    left: 15%;
    color: var(--black-deep);
}

.drift-fish.fish-6 {
    width: 50px;
    top: 18%;
    right: 25%;
    color: var(--gold-primary);
}

.drift-fish.fish-7 {
    width: 38px;
    top: 55%;
    right: 20%;
    color: var(--gold-deep);
}

.drift-fish.fish-8 {
    width: 60px;
    top: 88%;
    left: 30%;
    color: var(--gold-primary);
}

/* Hidden tiny fish */
.hidden-fish {
    position: absolute;
    width: 18px;
    opacity: 0.06;
    pointer-events: none;
    z-index: 5;
}

.hidden-fish.hf-1 {
    top: 22%;
    right: 3%;
    color: var(--gold-primary);
    transform: rotate(15deg);
}

.hidden-fish.hf-2 {
    top: 58%;
    left: 2%;
    color: var(--charcoal);
    transform: rotate(-10deg);
}

.hidden-fish.hf-3 {
    top: 84%;
    right: 5%;
    color: var(--gold-deep);
    transform: rotate(25deg);
}

/* Sections - Full Bleed */
.full-bleed {
    width: 100%;
    position: relative;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem;
    position: relative;
}

.section-inner {
    max-width: 760px;
    width: 100%;
    position: relative;
    z-index: 20;
}

/* Stagger Offsets */
.offset-left {
    margin-left: -5%;
}

.offset-right {
    margin-left: 5%;
}

/* Section Backgrounds */
.section-dark {
    background-color: var(--black-deep);
    color: var(--cream);
}

.section-cream {
    background-color: var(--cream);
    color: var(--charcoal);
}

.section-deep {
    background-color: var(--charcoal);
    color: var(--cream);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
}

h1 {
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--gold-primary);
}

h2.section-heading {
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--gold-primary);
    margin-bottom: 0.25rem;
}

h2.heading-dark {
    color: var(--black-deep);
}

h3 {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.section-dark h3 {
    color: var(--gold-primary);
}

.section-deep h3 {
    color: var(--gold-primary);
}

p {
    margin-bottom: 1.5rem;
    color: inherit;
}

.section-dark p {
    color: #d9d3c9;
}

.section-deep p {
    color: #d9d3c9;
}

/* Hero */
#hero {
    background-color: var(--black-deep);
    text-align: center;
}

.hero-title {
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--gold-deep);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.hero-body {
    font-size: 1.1rem;
    color: #c4bdb3;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Headline Underline SVG */
.headline-underline {
    width: 100%;
    max-width: 350px;
    height: 8px;
    margin-bottom: 2rem;
    overflow: visible;
}

#hero .headline-underline {
    margin-left: auto;
    margin-right: auto;
}

.underline-path {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    transition: stroke-dashoffset 1.2s ease-in-out;
}

.underline-path.drawn {
    stroke-dashoffset: 0;
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Botanical Accents */
.botanical-accent {
    position: absolute;
    pointer-events: none;
    z-index: 15;
    opacity: 0.12;
}

.botanical-top-right {
    top: 5%;
    right: 5%;
    width: 100px;
    color: var(--sage);
}

.botanical-left {
    top: 10%;
    left: 3%;
    width: 80px;
    color: var(--sage);
}

.botanical-bottom-left {
    bottom: 8%;
    left: 5%;
    width: 120px;
    color: var(--sage-light);
}

/* Fish Divider */
.fish-divider {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    opacity: 0.35;
}

.fish-divider svg {
    width: 160px;
    height: auto;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2.5rem;
    margin-top: 2rem;
}

.principle-card {
    padding: 1.5rem 0;
}

.principle-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--gold-primary);
}

.principle-icon svg {
    width: 100%;
    height: 100%;
}

.principle-title {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.principle-card p {
    font-size: 1rem;
    color: var(--charcoal-light);
    margin-bottom: 0;
}

/* Exploration List */
.exploration-list {
    margin-top: 2.5rem;
}

.exploration-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(107, 123, 94, 0.15);
}

.exploration-item:last-child {
    border-bottom: none;
}

.exploration-number {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--gold-deep);
    line-height: 1;
    min-width: 3rem;
    text-align: right;
}

.exploration-content h3 {
    color: var(--black-deep);
    font-size: 1.2rem;
}

.exploration-content p {
    color: var(--charcoal-light);
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* Meditation Section */
.meditation-block {
    text-align: center;
    padding: 3rem 0;
}

.meditation-quote p {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    line-height: 1.3;
    color: var(--gold-primary);
    font-style: italic;
    margin-bottom: 1rem;
}

.meditation-attribution {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--gold-deep);
    display: block;
    margin-top: 0.5rem;
}

.meditation-reflection {
    text-align: center;
    font-size: 1.1rem;
    color: #b8b0a4;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

/* Community Section */
.community-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.community-card {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 2px;
    background: rgba(212, 165, 116, 0.03);
}

.community-card h3 {
    color: var(--gold-primary);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.community-card p {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    margin-bottom: 0;
}

/* Closing Section */
#closing {
    text-align: center;
}

.closing-text {
    font-size: 1.15rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    color: #c4bdb3;
}

.closing-sigil {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.closing-sigil svg {
    width: 60px;
    height: 60px;
}

.footer-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--gold-deep);
    text-transform: uppercase;
    margin-top: 1rem;
}

/* Hover States */
a, .community-card {
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.community-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 5rem 1.5rem;
    }

    .offset-left,
    .offset-right {
        margin-left: 0;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .community-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .exploration-item {
        gap: 1.2rem;
    }

    .exploration-number {
        font-size: 1.5rem;
        min-width: 2rem;
    }

    .botanical-accent {
        display: none;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 4rem 1rem;
    }

    .section-inner {
        max-width: 100%;
    }

    .hero-body {
        max-width: 100%;
    }
}
