/* lupine.day — Alpine field survey
   Coastal-blend palette / grainy photographic aesthetic / mountain-landscape motifs
*/

:root {
    --sky-slate: #7A8FA0;
    --sand-cream: #E8DCC8;
    --mountain-charcoal: #3A3A3A;
    --lupine-purple: #6A5090;
    --cliff-gray: #9A9A90;
    --ocean-foam: #B8C8CA;
    --deep-earth: #2A2A28;

    --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Lora", Georgia, "Times New Roman", serif;
    --font-mono: "Inconsolata", "Courier New", monospace;

    --col-width: 720px;
    --gutter: clamp(20px, 4vw, 56px);
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--deep-earth);
    line-height: 1.8;
    background: linear-gradient(180deg,
        var(--sky-slate) 0%,
        var(--sky-slate) 8%,
        #92a3af 22%,
        #aebbb9 38%,
        #c8c9b8 56%,
        #d8d2bf 74%,
        var(--sand-cream) 92%,
        var(--sand-cream) 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* ---------------------------------------------------------- */
/* Persistent grain overlay (photographic film layer)          */
/* ---------------------------------------------------------- */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.18;
    mix-blend-mode: multiply;
}
.grain-overlay svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* SVG filter holder */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------------------------------------------------------- */
/* Topographic background lines                                */
/* ---------------------------------------------------------- */
.topo-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* ---------------------------------------------------------- */
/* HERO                                                         */
/* ---------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.mountain-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    display: block;
}

.ridge-far {
    fill: #6E8290;
    opacity: 0.65;
}
.ridge-mid {
    fill: #4F5C66;
    opacity: 0.85;
}
.ridge-near {
    fill: var(--mountain-charcoal);
    opacity: 0.96;
}
.ridge-stroke {
    fill: none;
    stroke: var(--deep-earth);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: drawRidge 2.5s ease-out 0.2s forwards;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--gutter);
    max-width: 880px;
    margin: 0 auto;
    color: var(--deep-earth);
}

.logotype {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(42px, 7vw, 92px);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--deep-earth);
    margin: 18px 0 26px;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 1.4s ease-out 1.5s forwards;
}

.logotype .dot {
    color: var(--lupine-purple);
    display: inline-block;
}

.hero-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(16px, 1.5vw, 21px);
    line-height: 1.55;
    color: var(--deep-earth);
    opacity: 0;
    animation: fadeUp 1.4s ease-out 2.0s forwards;
    max-width: 480px;
    margin: 0 auto 28px;
}

.meta-line {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mountain-charcoal);
    opacity: 0;
    animation: fadeUp 1.4s ease-out 2.4s forwards;
}
.meta-top { margin-bottom: 6px; }
.meta-bottom { margin-top: 12px; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--deep-earth);
    text-align: center;
    opacity: 0;
    animation: fadeUp 1.4s ease-out 2.8s forwards, bob 2.4s ease-in-out 3.2s infinite;
}
.scroll-cue span {
    display: block;
    margin-bottom: 6px;
}
.scroll-cue svg {
    display: block;
    margin: 0 auto;
    color: var(--deep-earth);
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

/* ---------------------------------------------------------- */
/* Mountain peak dividers                                       */
/* ---------------------------------------------------------- */
.peak-divider {
    position: relative;
    width: 100%;
    height: 90px;
    z-index: 2;
    pointer-events: none;
}

.peak-divider-down {
    background: var(--mountain-charcoal);
    clip-path: polygon(
        0 0,
        8% 65%, 16% 25%, 24% 70%, 32% 30%,
        40% 78%, 50% 18%, 60% 75%, 68% 28%,
        76% 70%, 84% 22%, 92% 68%, 100% 35%,
        100% 0
    );
    margin-top: -2px;
}

.peak-divider-up {
    background: var(--mountain-charcoal);
    clip-path: polygon(
        0 100%,
        8% 35%, 16% 70%, 24% 28%, 32% 65%,
        40% 22%, 50% 80%, 60% 25%, 68% 72%,
        76% 30%, 84% 78%, 92% 32%, 100% 65%,
        100% 100%
    );
    margin-bottom: -2px;
}

/* ---------------------------------------------------------- */
/* CONTENT SECTIONS                                             */
/* ---------------------------------------------------------- */
.content-section {
    position: relative;
    width: 100%;
    max-width: var(--col-width);
    margin: 0 auto;
    padding: 96px var(--gutter) 96px;
    z-index: 2;
    color: var(--deep-earth);
}

.section-subject {
    background: transparent;
}

.section-habitat,
.section-method,
.section-findings,
.section-notes {
    /* sections sit on the body gradient; column has subtle paper-like wash */
}

/* Add a soft paper backing for readability behind the centered column */
.content-section::before {
    content: "";
    position: absolute;
    inset: 24px calc(var(--gutter) * -0.4);
    background: rgba(232, 220, 200, 0.32);
    border-radius: 2px;
    z-index: -1;
    box-shadow: 0 0 0 1px rgba(58, 58, 58, 0.06);
}

.section-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 4.2vw, 52px);
    letter-spacing: -0.015em;
    line-height: 1.05;
    color: var(--deep-earth);
    margin: 6px 0 28px;
    text-align: center;
}

.section-heading::after {
    content: "";
    display: block;
    width: 56px;
    height: 1px;
    background: var(--lupine-purple);
    margin: 18px auto 0;
}

.lead {
    font-family: var(--font-body);
    font-size: clamp(17px, 1.4vw, 21px);
    font-style: italic;
    line-height: 1.65;
    text-align: center;
    color: var(--mountain-charcoal);
    margin: 0 auto 32px;
    max-width: 560px;
}

.content-section p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.85;
    color: var(--deep-earth);
    margin: 0 0 20px;
}

.content-section p em {
    color: var(--lupine-purple);
    font-style: italic;
}

.data-line {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cliff-gray) !important;
    text-align: center;
    border-top: 1px solid rgba(58, 58, 58, 0.18);
    border-bottom: 1px solid rgba(58, 58, 58, 0.18);
    padding: 12px 0 !important;
    margin-top: 28px !important;
}

/* ---------------------------------------------------------- */
/* Section illustrations                                       */
/* ---------------------------------------------------------- */
.section-illustration {
    margin: 0 auto 48px;
    max-width: 100%;
    text-align: center;
}

.section-illustration svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 720px;
    margin: 0 auto;
}

.caption {
    font-family: var(--font-mono);
    font-size: 12px !important;
    letter-spacing: 0.03em;
    color: var(--cliff-gray) !important;
    text-align: center;
    margin: 16px auto 0 !important;
    max-width: 600px;
    line-height: 1.5 !important;
}

.caption em {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--cliff-gray) !important;
}

/* ---------------------------------------------------------- */
/* Figure rows / data display                                  */
/* ---------------------------------------------------------- */
.figure-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 36px 0 12px;
    border-top: 1px solid rgba(58, 58, 58, 0.15);
    border-bottom: 1px solid rgba(58, 58, 58, 0.15);
    padding: 22px 0;
}

.figure-cell {
    text-align: center;
    padding: 0 6px;
}

.figure-label {
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    letter-spacing: 0.25em;
    color: var(--cliff-gray) !important;
    margin: 0 0 6px !important;
}

.figure-value {
    font-family: var(--font-display) !important;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 40px) !important;
    color: var(--lupine-purple) !important;
    line-height: 1;
    margin: 0 0 8px !important;
}

.figure-value .unit {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.42em;
    color: var(--cliff-gray);
    margin-left: 2px;
    letter-spacing: 0.05em;
}

.figure-desc {
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--mountain-charcoal) !important;
    margin: 0 !important;
}

/* ---------------------------------------------------------- */
/* Checklist                                                   */
/* ---------------------------------------------------------- */
.checklist {
    list-style: none;
    margin: 24px 0 0;
    padding: 22px 26px;
    background: rgba(232, 220, 200, 0.4);
    border-left: 2px solid var(--lupine-purple);
}
.checklist li {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--deep-earth);
    margin: 0 0 8px;
    display: flex;
    gap: 12px;
    align-items: baseline;
}
.checklist li:last-child { margin-bottom: 0; }
.check-mark {
    color: var(--lupine-purple);
    font-family: var(--font-mono);
    font-size: 14px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------- */
/* Findings grid                                               */
/* ---------------------------------------------------------- */
.findings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 36px 0 0;
}

.finding {
    padding: 22px 18px;
    border: 1px solid rgba(58, 58, 58, 0.18);
    background: rgba(232, 220, 200, 0.45);
    text-align: center;
    position: relative;
}

.finding-tag {
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    letter-spacing: 0.28em;
    color: var(--cliff-gray) !important;
    margin: 0 0 10px !important;
}

.finding-stat {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    font-size: clamp(24px, 2.6vw, 36px) !important;
    color: var(--lupine-purple) !important;
    line-height: 1;
    margin: 0 0 12px !important;
    letter-spacing: -0.01em;
}

.finding-detail {
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: var(--mountain-charcoal) !important;
    margin: 0 !important;
}

/* ---------------------------------------------------------- */
/* Field entries                                               */
/* ---------------------------------------------------------- */
.field-entry {
    margin: 28px 0;
    padding: 20px 0 24px;
    border-top: 1px dashed rgba(58, 58, 58, 0.28);
}
.field-entry:last-child { border-bottom: 1px dashed rgba(58, 58, 58, 0.28); }
.field-entry:first-of-type { border-top: 1px dashed rgba(58, 58, 58, 0.28); }

.entry-meta {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lupine-purple) !important;
    margin: 0 0 12px !important;
    line-height: 1.4 !important;
}

.field-entry > p:not(.entry-meta) {
    font-family: var(--font-body);
    font-style: italic;
    line-height: 1.85;
    color: var(--mountain-charcoal);
}

/* ---------------------------------------------------------- */
/* Colophon footer                                             */
/* ---------------------------------------------------------- */
.colophon {
    position: relative;
    padding: 90px var(--gutter) 60px;
    background: var(--deep-earth);
    color: var(--sand-cream);
    z-index: 2;
}

.colophon-content {
    max-width: var(--col-width);
    margin: 0 auto;
    text-align: center;
}

.colophon .section-heading {
    color: var(--sand-cream);
}

.colophon .section-heading::after {
    background: var(--ocean-foam);
}

.colophon p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--sand-cream);
    opacity: 0.86;
    margin: 0 0 18px;
}

.colophon p em {
    color: var(--ocean-foam);
    font-style: italic;
}

.colophon-meta,
.colophon-coords {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.18em;
    color: var(--cliff-gray) !important;
    text-transform: uppercase;
    margin-top: 28px !important;
}

.colophon-coords {
    margin-top: 8px !important;
    color: var(--ocean-foam) !important;
    opacity: 0.7;
}

/* ---------------------------------------------------------- */
/* Reveal animation for sections                                */
/* ---------------------------------------------------------- */
.content-section,
.colophon {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.content-section.is-visible,
.colophon.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------- */
/* Responsive                                                  */
/* ---------------------------------------------------------- */
@media (max-width: 720px) {
    .figure-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .figure-row > .figure-cell:not(:last-child) {
        padding-bottom: 18px;
        border-bottom: 1px dashed rgba(58, 58, 58, 0.18);
    }
    .findings-grid {
        grid-template-columns: 1fr;
    }
    .content-section {
        padding: 72px var(--gutter) 72px;
    }
    .peak-divider {
        height: 60px;
    }
    .colophon {
        padding: 64px var(--gutter) 44px;
    }
}

@media (max-width: 480px) {
    .logotype {
        font-size: 44px;
    }
    .meta-line {
        font-size: 10px;
        letter-spacing: 0.14em;
    }
}
