/* GoodLink landing, version 3: photograph-led and quiet. */

:root {
    --ink: #f4f2ea;
    --paper: #f4f2ea;
    --dark: #0e1a10;
    --green: #1f5c34;
    --green-deep: #14401f;
    --muted: #5b6457;
    --focus: #8fd0a4;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--dark);
    color: var(--ink);
    font-family: "Raleway", "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 30;
    background: #fff;
    color: var(--green-deep);
    padding: 0.6rem 1rem;
    border-radius: 0 0 10px 10px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Header, floats over the hero */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
}

.wordmark {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.login-link {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    padding: 0.35rem 0.2rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.login-link:hover {
    text-decoration: underline;
}

/* Hero: one full-bleed photograph, very little text */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(
            to bottom,
            rgba(14, 26, 16, 0.45) 0%,
            rgba(14, 26, 16, 0.28) 40%,
            rgba(14, 26, 16, 0.78) 100%
        ),
        url("/k3/images/unsplash/canopy.jpg") center 35% / cover no-repeat,
        var(--dark);
}

.hero-inner {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 6rem 1.5rem clamp(3rem, 10vh, 6rem);
}

.hero h1 {
    margin: 0 0 2.2rem;
    font-weight: 200;
    font-size: clamp(2.6rem, 10vw, 4.8rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* Claim pill floating in the photograph */

.claim-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    background: rgba(10, 20, 12, 0.62);
    border: 1px solid rgba(244, 242, 234, 0.35);
    border-radius: 999px;
    padding: 0.45rem 0.45rem 0.45rem 1.15rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.claim-row:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.claim-prefix {
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(244, 242, 234, 0.85);
    white-space: nowrap;
}

.claim input {
    flex: 1 1 4ch;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.45rem 0;
}

.claim input::placeholder {
    color: rgba(244, 242, 234, 0.55);
}

.claim input:focus {
    outline: none;
}

.claim button {
    flex: none;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--green-deep);
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.5rem 1.15rem;
    cursor: pointer;
}

.claim button:hover {
    background: #fff;
}

/* Statement section */

.statement {
    background: var(--paper);
    color: #1c2b20;
    padding: clamp(3rem, 9vh, 5.5rem) 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.statement-text {
    max-width: 36rem;
}

.statement-lead {
    margin: 0 0 1.6rem;
    font-weight: 300;
    font-size: clamp(1.35rem, 4.2vw, 1.9rem);
    line-height: 1.4;
    color: #1c2b20;
}

.planet-line {
    margin: 0 0 0.6rem;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--green-deep);
}

.statement-detail {
    margin: 0;
    font-size: 1rem;
    color: var(--muted);
}

.statement-photo {
    width: 100%;
    max-height: 26rem;
    object-fit: cover;
    object-position: center 55%;
    border-radius: 18px;
}

@media (min-width: 56rem) {
    .statement {
        flex-direction: row;
        align-items: center;
    }

    .statement-text {
        flex: 1 1 55%;
    }

    .statement-photo {
        flex: 1 1 45%;
        max-width: 45%;
        max-height: 30rem;
    }
}

/* Footer */

.site-footer {
    background: var(--paper);
    border-top: 1px solid rgba(28, 43, 32, 0.16);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
    padding: 1.4rem 1.5rem 1.8rem;
}

.site-footer .wordmark {
    color: #1c2b20;
    text-shadow: none;
}

.credits {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
