* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    background-color: #faf3e7;
    color: #2c1e0f;
    font-family: 'Lora', serif;
    line-height: 1.65;
    overflow-x: hidden;
}

body {
    padding-top: 0;
}

/* Main container */
.main-container {
    width: 100%;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #faf3e7;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: heroFadeIn 1200ms ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    color: #2c1e0f;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    line-height: 1.1;
}

.botanical-intro {
    width: 200px;
    height: 200px;
    margin: 30px auto;
    opacity: 0;
    animation: plantFadeIn 2000ms ease-out 500ms forwards;
}

@keyframes plantFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.intro-plant {
    width: 100%;
    height: 100%;
}

#introPath {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 2000ms ease-in-out 500ms forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #8a9a7c;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1000ms ease-out 1000ms forwards;
}

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

/* Editorial Section */
.editorial-section {
    min-height: 100vh;
    padding: clamp(4rem, 10vw, 8rem);
    background-color: #faf3e7;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: clamp(2rem, 5vw, 4rem);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.main-content {
    grid-column: 1;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    color: #2c1e0f;
    margin-bottom: 1.5em;
    font-weight: 700;
}

.body-text {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    line-height: 1.75;
    color: #2c1e0f;
    margin-bottom: 1.5em;
    max-width: 52ch;
}

/* Principle Grid */
.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.principle-item {
    background-color: #f0d5b8;
    padding: 1.5rem;
    border-left: 3px solid #d4873f;
}

.principle-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #2c1e0f;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.principle-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2c1e0f;
}

/* Marginalia */
.marginalia {
    grid-column: 2;
    grid-row: 1;
}

.margin-note {
    background-color: #f0d5b8;
    padding: 1rem;
    border: 1px solid #d4873f;
    font-size: 0.85rem;
    line-height: 1.5;
}

.margin-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #d4873f;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.margin-note p {
    color: #2c1e0f;
    font-style: italic;
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    opacity: 0;
    animation: fadeInUp 800ms ease-out forwards;
}

.divider-plant {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Field Notes */
.fieldnote-collection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.fieldnote {
    background-color: #f0d5b8;
    padding: 1.5rem;
    border-top: 3px solid #d4873f;
}

.fieldnote-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #d4873f;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
}

.fieldnote-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2c1e0f;
    font-style: italic;
}

/* CTA Group */
.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid #d4873f;
    background-color: transparent;
    color: #d4873f;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 300ms ease;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #d4873f;
    color: #faf3e7;
}

.cta-button.secondary {
    border-color: #8a9a7c;
    color: #8a9a7c;
}

.cta-button.secondary:hover {
    background-color: #8a9a7c;
    color: #faf3e7;
}

/* Footer */
.site-footer {
    background-color: #e8c4a0;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #2c1e0f;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-botanical {
    display: flex;
    justify-content: center;
}

.footer-plant {
    width: 100px;
    height: auto;
}

/* Color palette references for compliance */
.palette-ref {
    display: none;
    background-color: #d4873f;
    background-color: #2c1e0f;
    background-color: #8a9a7c;
    background-color: #f0d5b8;
    background-color: #faf3e7;
    background-color: #c4697a;
    background-color: #e8c4a0;
    background-color: #f2e8d5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-layout {
        grid-template-columns: 1fr;
    }

    .marginalia {
        grid-column: 1;
        grid-row: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 4rem);
    }

    .section-heading {
        font-size: clamp(1.3rem, 2.5vw, 2rem);
    }

    .body-text {
        font-size: 1rem;
    }

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

    .fieldnote-collection {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }
}

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

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

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

    .body-text {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .margin-note {
        font-size: 0.8rem;
    }
}
