:root {
    --ink: #1e2a24;
    --muted: #5f665b;
    --paper: #f2eadb;
    --paper-deep: #e0d3bd;
    --line: rgba(30, 42, 36, 0.24);
    --button: #2f4a3d;
    --button-text: #fff9ec;
    --cardinal: #9f2f24;
    --robin: #b86b3c;
    --pine: #2c4938;
    --shadow: rgba(41, 35, 25, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    background: var(--paper);
}

body.night {
    --ink: #eae0ce;
    --muted: #b8ad9b;
    --paper: #151b24;
    --paper-deep: #273345;
    --line: rgba(234, 224, 206, 0.22);
    --button: #d5b46f;
    --button-text: #1b1b19;
    --shadow: rgba(0, 0, 0, 0.3);
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.hero-layout {
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 64px));
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
    align-items: stretch;
    border: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.28), transparent 28%),
        var(--paper);
    box-shadow: 0 24px 70px var(--shadow);
}

.scene {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-right: 1px solid var(--line);
    isolation: isolate;
}

.sky {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, #d9c596 0%, #e4d8bc 42%, #c0c8b7 100%);
}

.night .sky {
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 244, 204, 0.12), transparent 18%),
        linear-gradient(to bottom, #172137 0%, #26314a 46%, #3c473f 100%);
}

.variant-meadow .sky {
    background:
        linear-gradient(to bottom, #d7c68e 0%, #efe0b6 38%, #b9c7a0 100%);
}

.variant-twilight .sky {
    background:
        linear-gradient(to bottom, #b98872 0%, #d5b68b 40%, #7f8a73 100%);
}

.sun-moon {
    position: absolute;
    top: 11%;
    right: 15%;
    width: 102px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #c9623c;
    opacity: 0.72;
    box-shadow: 0 0 0 18px rgba(201, 98, 60, 0.08);
}

.night .sun-moon {
    background: #efe5c8;
    opacity: 0.9;
    box-shadow: 0 0 0 18px rgba(239, 229, 200, 0.08);
}

.mountains {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 78%;
    z-index: 3;
}

.ridge {
    stroke: rgba(45, 48, 36, 0.24);
    stroke-width: 3;
}

.ridge-far {
    fill: #8da184;
}

.ridge-mid {
    fill: #657a63;
}

.ridge-near {
    fill: #3f5f4c;
}

.night .ridge-far {
    fill: #48546a;
}

.night .ridge-mid {
    fill: #344556;
}

.night .ridge-near {
    fill: #223a37;
}

.pine {
    fill: var(--pine);
}

.cloud {
    position: absolute;
    width: 260px;
    height: 54px;
    border-radius: 999px;
    background: rgba(247, 239, 216, 0.72);
    border: 1px solid rgba(66, 65, 50, 0.15);
    z-index: 2;
    animation: cloud-drift 54s linear infinite;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.cloud::before {
    width: 92px;
    height: 92px;
    left: 54px;
    top: -44px;
}

.cloud::after {
    width: 122px;
    height: 122px;
    right: 42px;
    top: -62px;
}

.cloud-a {
    top: 22%;
    left: -270px;
}

.cloud-b {
    top: 38%;
    left: -390px;
    width: 340px;
    opacity: 0.62;
    animation-delay: -24s;
    animation-duration: 72s;
}

.bird {
    position: absolute;
    width: 36px;
    height: 20px;
    z-index: 5;
    clip-path: polygon(0 50%, 38% 20%, 58% 46%, 100% 10%, 78% 54%, 100% 92%, 56% 66%, 34% 86%);
    animation: bird-pass 26s linear infinite;
}

.cardinal {
    background: var(--cardinal);
}

.robin {
    background: var(--robin);
}

.bird-a {
    top: 26%;
    left: -50px;
}

.bird-b {
    top: 17%;
    left: -120px;
    transform: scale(0.78);
    animation-delay: -12s;
    animation-duration: 34s;
}

.leaf {
    position: absolute;
    top: 42%;
    left: -24px;
    width: 14px;
    height: 9px;
    border-radius: 100% 0 100% 0;
    background: #ba7650;
    z-index: 4;
    animation: leaf-wind 18s ease-in-out infinite;
}

.leaf-b {
    top: 58%;
    animation-delay: -7s;
    background: #d2a85c;
}

.copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 68px);
    background:
        linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
        repeating-linear-gradient(0deg, transparent 0, transparent 13px, rgba(30, 42, 36, 0.025) 14px);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.95;
    font-weight: 400;
}

.lede {
    max-width: 34rem;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.55;
}

.thanks {
    margin: 22px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--button);
    background: rgba(255, 255, 255, 0.16);
    font-family: Arial, sans-serif;
}

.contact-form {
    display: grid;
    gap: 14px;
    width: min(100%, 440px);
    margin-top: 30px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 12px 13px;
    color: var(--ink);
    font: 1rem Arial, sans-serif;
    background: rgba(255, 255, 255, 0.42);
}

.night .contact-form input,
.night .contact-form textarea {
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    justify-self: start;
    border: 0;
    padding: 12px 18px;
    color: var(--button-text);
    background: var(--button);
    font: 700 0.86rem Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.contact-form button:hover {
    filter: brightness(1.08);
}

.back-link {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 20;
    padding: 9px 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(242, 234, 219, 0.72);
    font: 700 0.78rem Arial, sans-serif;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.night .back-link {
    background: rgba(21, 27, 36, 0.72);
}

.variant-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
}

.variant-nav a,
.variant-nav span {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.14);
}

.variant-nav span {
    color: var(--muted);
}

@keyframes cloud-drift {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 760px)); }
}

@keyframes bird-pass {
    0% { transform: translateX(0) translateY(0) scale(0.82); }
    50% { transform: translateX(54vw) translateY(-22px) scale(0.82); }
    100% { transform: translateX(calc(100vw + 160px)) translateY(4px) scale(0.82); }
}

@keyframes leaf-wind {
    0% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0; }
    12% { opacity: 0.86; }
    60% { opacity: 0.8; }
    100% { transform: translateX(calc(100vw + 80px)) translateY(70px) rotate(260deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cloud,
    .bird,
    .leaf {
        animation: none;
    }
}

@media (max-width: 900px) {
    .page-shell {
        padding: 0;
    }

    .hero-layout {
        min-height: 100vh;
        grid-template-columns: 1fr;
        border: 0;
    }

    .scene {
        min-height: 42vh;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .copy {
        justify-content: start;
        padding: 30px 22px 42px;
    }

    h1 {
        max-width: 11ch;
    }

    .variant-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .back-link {
        top: 12px;
        left: 12px;
    }

    .sun-moon {
        width: 74px;
    }

    .contact-form {
        width: 100%;
    }
}
