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

:root {
    --civic-green: #2d6a4f;
    --almanac-gold: #e8a44d;
    --ballot-blue: #1a6b8a;
    --earth-dark: #2c1810;
    --earth-light: #f4eed8;
    --bark-mid: #8b6f47;
    --frost-white: rgba(255, 255, 255, 0.8);
    --root-black: #1a120b;
    --spring-fresh: #52b788;
    --spring-light: #95d5b2;
    --autumn-burnt: #a0522d;
    --autumn-dry: #c68b59;
    --winter-muted: #6b7b6e;
    --winter-frost: #9ca89e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    color: var(--earth-dark);
    background: var(--earth-light);
    overflow-x: hidden;
}

/* === Column === */
.column {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    position: relative;
    z-index: 3;
    text-align: left;
}

/* === Sections === */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* === Hero / Canopy === */
#canopy {
    background: linear-gradient(180deg, #1a6b8a 0%, #4a90a8 40%, #e8a44d 100%);
}

.sun-rays {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 30deg, transparent 0deg, rgba(232,164,77,0.15) 2deg, transparent 4deg);
    background-size: 100% 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-panel {
    text-align: left;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: 0.02em;
    color: var(--earth-dark);
    margin-bottom: 1.5rem;
}

.epigraph {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--bark-mid);
    font-style: italic;
}

/* === Pill Button === */
.pill-button {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--earth-dark);
    background: var(--almanac-gold);
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.3);
    z-index: 3;
    position: relative;
    animation: breathe 3s ease-in-out infinite;
}

.pill-button:hover {
    background: #d4913e;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* === Glass Panels === */
.glass-panel {
    background: rgba(244, 238, 216, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* === Animation States === */
.animate-panel {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}

.animate-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Section Titles === */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--earth-dark);
}

.subtitle {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--bark-mid);
    margin-bottom: 2rem;
}

/* === Pull Quotes === */
.pull-quote {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: var(--civic-green);
    border-left: 4px solid var(--almanac-gold);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    transform: skewX(-4deg);
    line-height: 1.5;
}

/* === Body Paragraphs === */
.glass-panel p {
    margin-bottom: 1.5rem;
}

.glass-panel p:last-child {
    margin-bottom: 0;
}

/* === SVG Civic Icons === */
.civic-icon {
    flex-shrink: 0;
}

.civic-icon line,
.civic-icon path,
.civic-icon rect {
    transition: stroke-dashoffset 1200ms ease-in-out;
}

.civic-icon.drawn line,
.civic-icon.drawn path,
.civic-icon.drawn rect {
    stroke-dashoffset: 0 !important;
}

/* === Hills === */
.hills {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 1;
    pointer-events: none;
}

.hill {
    position: absolute;
    border-radius: 50%;
    bottom: 0;
}

.hill-far {
    width: 140%;
    height: 60%;
    left: -20%;
    bottom: -20%;
    opacity: 0.4;
}

.hill-mid {
    width: 120%;
    height: 50%;
    left: -10%;
    bottom: -15%;
    opacity: 0.6;
}

.hill-near {
    width: 130%;
    height: 55%;
    left: -15%;
    bottom: -25%;
    opacity: 1;
}

/* Hero hills */
.hills-hero .hill-far { background: #95d5b2; }
.hills-hero .hill-mid { background: #52b788; }
.hills-hero .hill-near { background: #2d6a4f; }

/* Spring hills */
.hills-spring .hill-far { background: #95d5b2; }
.hills-spring .hill-mid { background: #52b788; }
.hills-spring .hill-near { background: #2d6a4f; }

/* Summer hills */
.hills-summer .hill-far { background: #95d5b2; }
.hills-summer .hill-mid { background: #2d6a4f; }
.hills-summer .hill-near { background: #1e5a3f; }

/* Autumn hills */
.hills-autumn .hill-far { background: #c68b59; }
.hills-autumn .hill-mid { background: #a0522d; }
.hills-autumn .hill-near { background: #7a3e1e; }

/* Winter hills */
.hills-winter .hill-far { background: #9ca89e; }
.hills-winter .hill-mid { background: #6b7b6e; }
.hills-winter .hill-near { background: #4d5c50; }

/* === Season Backgrounds === */
#spring {
    background: linear-gradient(180deg, #e8a44d 0%, #95d5b2 40%, #52b788 100%);
}

#summer {
    background: linear-gradient(180deg, #e8a44d 0%, #1a6b8a 30%, #2d6a4f 100%);
}

#autumn {
    background: linear-gradient(180deg, #e8a44d 0%, #a0522d 50%, #8b6f47 100%);
}

#winter {
    background: linear-gradient(180deg, #9ca89e 0%, #6b7b6e 50%, #4d5c50 100%);
}

/* === Seasonal Transition Borders === */
#spring::before,
#summer::before,
#autumn::before,
#winter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 5;
}

#spring::before {
    background: linear-gradient(90deg, #1a6b8a, #52b788);
}

#summer::before {
    background: linear-gradient(90deg, #52b788, #e8a44d);
}

#autumn::before {
    background: linear-gradient(90deg, #1a6b8a, #a0522d);
}

#winter::before {
    background: linear-gradient(90deg, #a0522d, #6b7b6e);
}

/* === Footer / Root System === */
#roots {
    background: linear-gradient(180deg, #8b6f47 0%, #2c1810 60%, #1a120b 100%);
    min-height: 60vh;
}

.roots-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}

.roots-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.roots-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--earth-light);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.roots-text {
    color: var(--winter-frost);
    margin-bottom: 2rem;
}

.root-links {
    list-style: none;
    margin-bottom: 3rem;
}

.root-links li {
    margin-bottom: 0.75rem;
}

.root-links a {
    color: var(--almanac-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 300ms ease;
}

.root-links a:hover {
    color: var(--earth-light);
}

.seed-domain {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: var(--bark-mid);
    margin-top: 4rem;
    opacity: 0.6;
}
