/* ============================================
   VARIABLES & BASE STYLES
   ============================================ */

:root {
    --ink: #18201d;
    --paper: #f4f1ea;
    --moss: #1F3D2C;
    --lime: #C5A047;
    --line: rgba(24, 32, 29, 0.18);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Manrope', sans-serif;
    --mono: 'DM Mono', monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 5;
    background: var(--paper);
}

.wordmark {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wordmark span {
    background: var(--ink);
    color: var(--lime);
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    letter-spacing: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 12px;
}

.nav-link.active {
    border-bottom: 1px solid;
}

.member-link {
    border: 1px solid var(--ink);
    padding: 9px 14px;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--lime);
    border-radius: 50%;
    margin-right: 7px;
}

.menu-button {
    display: none;
    background: none;
    border: 0;
    font: inherit;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    height: calc(100vh - 86px);
    min-height: 620px;
    position: relative;
    overflow: hidden;
    background: #294239;
    color: #fff;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 25, 20, 0.78), rgba(10, 25, 20, 0.18)),
        url('https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?auto=format&fit=crop&w=2200&q=85')
        center / cover;
    animation: reveal 1.4s ease both;
}

.hero-copy {
    position: absolute;
    left: 11vw;
    top: 18vh;
    max-width: 580px;
    animation: rise 0.9s 0.2s ease both;
}

.eyebrow {
    font-family: var(--mono);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.12em;
    margin: 0 0 24px;
}

.hero h1,
.page-hero h1,
.members-welcome h1 {
    font-family: var(--serif);
    font-size: clamp(64px, 9vw, 145px);
    font-weight: 500;
    line-height: 0.91;
    letter-spacing: -0.04em;
    margin: 0 0 28px;
}

.hero h1 em,
.page-hero h1 em,
.members-welcome h1 em,
h2 em,
h3 em {
    font-weight: 500;
}

.hero-text {
    max-width: 350px;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 34px;
}

.hero-scroll {
    position: absolute;
    bottom: 34px;
    left: 11vw;
    font: 10px var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-scroll span {
    margin-left: 20px;
    font-size: 16px;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */

.button {
    display: inline-flex;
    gap: 34px;
    align-items: center;
    border: 0;
    padding: 15px 18px;
    font: 600 11px var(--sans);
    letter-spacing: 0.04em;
    cursor: pointer;
}

.button span,
.text-link span {
    font-size: 17px;
    font-weight: 400;
}

.button-light {
    background: var(--lime);
    color: var(--ink);
}

.button-dark {
    background: var(--ink);
    color: var(--paper);
}

.text-link {
    display: inline-flex;
    gap: 34px;
    border-bottom: 1px solid var(--ink);
    padding: 8px 0;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================
   INTRO BAND & CONTENT SECTIONS
   ============================================ */

.intro-band {
    padding: 130px 11vw;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 8vw;
}

.intro-band h2,
.story-section h2,
.details-section h2,
.form-panel h2 {
    font: 500 clamp(42px, 5vw, 74px) / 0.98 var(--serif);
    letter-spacing: -0.035em;
    margin: 0 0 28px;
}

.intro-band div {
    max-width: 610px;
}

.intro-band div p {
    max-width: 430px;
}

/* ============================================
   FEATURE GRID
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.feature-card {
    min-height: 440px;
    padding: 44px 5vw;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.feature-card h3 {
    font: 500 clamp(42px, 5vw, 72px) / 0.9 var(--serif);
    margin: 0;
    letter-spacing: -0.04em;
}

.card-invitational {
    background: linear-gradient(0deg, rgba(20, 39, 32, 0.85), rgba(20, 39, 32, 0.1)),
        url('https://images.unsplash.com/photo-1535131749006-b7f58c99034b?auto=format&fit=crop&w=1200&q=80')
        center / cover;
}

.card-open {
    background: linear-gradient(0deg, rgba(55, 53, 36, 0.86), rgba(55, 53, 36, 0.12)),
        url('https://images.unsplash.com/photo-1592919505780-303950717480?auto=format&fit=crop&w=1200&q=80')
        center / cover;
}

.arrow {
    font-size: 25px;
    align-self: flex-end;
}

/* ============================================
   PAGE HERO SECTIONS
   ============================================ */

.page-hero {
    min-height: 610px;
    padding: 130px 11vw;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.page-hero-about {
    background-image: linear-gradient(90deg, rgba(18, 36, 29, 0.8), rgba(18, 36, 29, 0.15)),
        url('https://images.unsplash.com/photo-1551884831-bbf3cdc6469e?auto=format&fit=crop&w=2200&q=85');
}

.page-hero-invitation {
    background-image: linear-gradient(90deg, rgba(18, 36, 29, 0.8), rgba(18, 36, 29, 0.2)),
        url('https://images.unsplash.com/photo-1562204320-319a97f2e7e2?auto=format&fit=crop&w=2200&q=85');
}

.page-hero .hero-text {
    max-width: 420px;
}

/* ============================================
   STORY & DETAILS SECTIONS
   ============================================ */

.story-section,
.details-section {
    padding: 120px 11vw;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10vw;
}

.story-copy {
    max-width: 540px;
}

.large-copy {
    font: 500 28px / 1.3 var(--serif);
    margin-top: 0;
}

.story-copy p:not(.large-copy) {
    max-width: 430px;
}

.story-copy .text-link {
    margin-top: 24px;
}

.details-section {
    display: block;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
}

.details-grid h2 {
    margin: 0;
}

.details-grid p {
    max-width: 460px;
    margin: 0 0 30px;
}

/* ============================================
   OPEN & MEMBERS LAYOUT
   ============================================ */

.open-layout,
.members-layout {
    min-height: calc(100vh - 86px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.open-aside,
.members-welcome {
    padding: 110px 11vw;
    background: var(--moss);
    color: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.open-aside h1,
.members-welcome h1 {
    font-size: clamp(62px, 7vw, 108px);
}

.open-image {
    height: 220px;
    margin-top: 60px;
    background: url('ff4c0f18-73e2-44fe-b9c1-5fc751122952.jpg')
        center / cover;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.form-panel,
.auth-panel {
    padding: 110px 11vw;
    background: var(--paper);
}

.form-panel h2 {
    font-size: clamp(43px, 5vw, 67px);
}

form {
    max-width: 450px;
}

label {
    display: block;
    font: 10px var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 20px 0;
}

input,
select {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 12px 0;
    font: 15px var(--sans);
    outline: none;
    color: var(--ink);
}

input:focus,
select:focus {
    border-color: var(--moss);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-panel .button,
.auth-panel .button {
    margin-top: 20px;
}

/* ============================================
   NOTICES & MESSAGES
   ============================================ */

.notice {
    font-size: 12px;
    padding: 14px;
    margin: 0 0 18px;
    border-left: 3px solid;
}

.success {
    background: #e2e9cf;
    border-color: var(--moss);
}

.error {
    background: #f0d8cb;
    border-color: #ad5f45;
}

/* ============================================
   AUTHENTICATION
   ============================================ */

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    max-width: 450px;
    margin-bottom: 25px;
}

.tab {
    border: 0;
    background: none;
    padding: 10px 18px 12px 0;
    margin-right: 22px;
    font: 11px var(--sans);
    cursor: pointer;
}

.tab.active {
    border-bottom: 2px solid var(--ink);
    font-weight: 700;
}

.hidden {
    display: none;
}

/* ============================================
   MEMBERS SECTION
   ============================================ */

.members-welcome {
    background: linear-gradient(120deg, rgba(47, 66, 54, 0.97), rgba(52, 80, 68, 0.86)),
        url('https://images.unsplash.com/photo-1593111774240-d529f12cf4bb?auto=format&fit=crop&w=1300&q=80')
        center / cover;
}

.members-welcome p {
    max-width: 330px;
}

.member-note {
    max-width: 370px;
}

.member-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lime);
    font: italic 18px var(--serif);
    margin-bottom: 30px;
}

.member-note h3 {
    font: 500 40px / 0.95 var(--serif);
    margin: 0 0 20px;
}

.member-note p {
    max-width: 300px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--ink);
    color: var(--paper);
    padding: 46px 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer .wordmark span {
    background: var(--lime);
    color: var(--ink);
}

footer p {
    font-size: 12px;
    margin: 0;
}

.mono {
    font: 10px var(--mono);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 800px) {
    .site-header {
        height: 72px;
        padding: 0 6vw;
    }

    .site-header nav {
        display: none;
    }

    .site-header nav.mobile-open {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 20px 6vw;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .menu-button {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .hero {
        height: calc(100vh - 72px);
        min-height: 650px;
    }

    .hero-copy {
        left: 8vw;
        top: 18vh;
        right: 8vw;
    }

    .hero h1 {
        font-size: 76px;
    }

    .hero-scroll {
        left: 8vw;
    }

    .intro-band,
    .story-section,
    .details-grid {
        display: block;
        padding: 80px 8vw;
    }

    .intro-band > p {
        margin-bottom: 40px;
    }

    .feature-grid,
    .open-layout,
    .members-layout {
        display: block;
    }

    .feature-card {
        min-height: 360px;
        padding: 34px 8vw;
    }

    .page-hero {
        min-height: 570px;
        padding: 80px 8vw;
    }

    .page-hero h1 {
        font-size: 76px;
    }

    .story-section h2 {
        margin-bottom: 50px;
    }

    .details-section {
        padding: 80px 8vw;
    }

    .details-grid h2 {
        margin-bottom: 42px;
    }

    .open-aside,
    .members-welcome,
    .form-panel,
    .auth-panel {
        padding: 75px 8vw;
    }

    .open-aside {
        min-height: 620px;
    }

    .open-image {
        margin-top: 40px;
    }

    .form-row {
        gap: 18px;
    }

    footer {
        padding: 35px 8vw;
        display: block;
    }

    footer p {
        margin-top: 22px;
    }

    .mono {
        margin-top: 35px;
    }
}
