:root {
    --ink: #17211a;
    --muted: #5b675f;
    --paper: #fbfaf5;
    --surface: #ffffff;
    --soft-green: #dce9dc;
    --elm: #276441;
    --elm-dark: #153c2a;
    --moss: #8da86d;
    --sun: #f2bf5e;
    --clay: #c66f4d;
    --line: #d8ddd2;
    --shadow: 0 24px 70px rgba(23, 33, 26, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(242, 191, 94, 0.85);
    outline-offset: 3px;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    color: #fff;
    text-shadow: 0 2px 18px rgba(10, 22, 14, 0.45);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.wordmark-logo {
    display: block;
    width: clamp(220px, 28vw, 340px);
    height: auto;
    filter:
        drop-shadow(0 2px 2px rgba(255, 255, 255, 0.45))
        drop-shadow(0 5px 16px rgba(8, 18, 12, 0.5));
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
    font-weight: 650;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover {
    color: #fff;
}

.section-band,
.content-section {
    padding-inline: clamp(18px, 5vw, 72px);
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(112px, 15vh, 150px) clamp(18px, 5vw, 72px) clamp(72px, 10vh, 120px);
    overflow: hidden;
    isolation: isolate;
}

.hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(180deg, rgba(10, 24, 15, 0.52), rgba(10, 24, 15, 0.1) 34%, rgba(10, 24, 15, 0.24) 68%, rgba(10, 24, 15, 0.68)),
        radial-gradient(circle at 50% 55%, rgba(251, 250, 245, 0.3), transparent 31%);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("../images/linkelm-elm-hero.webp");
    background-position: center;
    background-size: cover;
    transform: scale(1.01);
}

.hero-copy {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: min(880px, 100%);
    max-width: 880px;
    color: #fff;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--clay);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    color: var(--elm-dark);
    font-size: clamp(4rem, 12vw, 9.5rem);
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    color: var(--elm-dark);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    color: var(--elm-dark);
    font-size: 1.08rem;
}

.hero-tagline {
    margin-bottom: 14px;
    color: var(--elm);
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.08;
}

.hero-text {
    max-width: 600px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 1.15rem;
}

.hero .eyebrow,
.hero h1,
.hero-tagline,
.hero-text {
    color: #fff;
    text-shadow: 0 3px 24px rgba(8, 18, 12, 0.72);
}

.hero .eyebrow {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-text {
    max-width: 680px;
    margin-bottom: 32px;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.search-panel {
    width: min(760px, 100%);
    max-width: 760px;
    padding: clamp(16px, 3vw, 24px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    box-shadow: 0 28px 80px rgba(8, 18, 12, 0.28);
    backdrop-filter: blur(18px);
    text-align: left;
}

.search-panel label {
    display: block;
    margin-bottom: 12px;
    color: var(--elm-dark);
    font-weight: 800;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    align-items: center;
    gap: 0;
    border: 1px solid #c9d2c6;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.search-row input,
.search-row button,
.domain-suffix {
    min-height: 56px;
}

.search-row input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 0 16px;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: right;
}

.domain-suffix {
    display: inline-flex;
    align-items: center;
    padding-inline: 10px 16px;
    color: var(--muted);
    white-space: nowrap;
}

.search-row button {
    border: 0;
    padding-inline: 24px;
    color: #fff;
    background: var(--elm);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.search-row button:hover {
    background: var(--elm-dark);
}

.field-help,
.field-message {
    margin: 10px 0 0;
    font-size: 0.94rem;
}

.field-help {
    color: var(--muted);
}

.field-message[data-type="success"] {
    color: var(--elm);
    font-weight: 800;
}

.field-message[data-type="error"] {
    color: #a13e28;
    font-weight: 800;
}

.content-section {
    max-width: 1220px;
    margin: 0 auto;
    padding-top: clamp(58px, 8vw, 104px);
    padding-bottom: clamp(58px, 8vw, 104px);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 72px);
}

.prose {
    color: var(--muted);
    font-size: 1.08rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.steps-list li,
.plan-card,
.branch-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.steps-list li {
    padding: 22px;
}

.steps-list span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    color: #fff;
    background: var(--elm);
    border-radius: 50%;
    font-weight: 800;
}

.steps-list p,
.plan-card p,
.branch-item small {
    color: var(--muted);
}

.plan-section {
    max-width: none;
    background: #f4f5ed;
}

.plan-section > * {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.plan-card {
    padding: 24px;
}

.planned-label {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 5px 8px;
    color: var(--elm-dark);
    background: var(--soft-green);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.plan-card strong {
    display: block;
    margin-top: 24px;
    color: var(--elm);
    overflow-wrap: anywhere;
}

.ecosystem-section {
    border-bottom: 1px solid var(--line);
}

.branch-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.branch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.branch-item span {
    color: var(--elm-dark);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.branch-item small {
    white-space: nowrap;
}

.philosophy-section {
    max-width: 900px;
    text-align: center;
}

.philosophy-section p:last-child {
    color: var(--muted);
    font-size: 1.12rem;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 22px;
    padding: 28px clamp(18px, 5vw, 72px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--elm);
    font-weight: 800;
}

@media (max-width: 920px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 100svh;
    }

    .steps-list,
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header {
        gap: 12px;
        padding: 16px 18px;
    }

    .site-nav {
        gap: 8px 14px;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 156px;
    }

    .hero-background {
        background-position: center top;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .domain-suffix {
        justify-content: flex-end;
        min-height: 42px;
        padding: 0 16px 10px;
    }

    .search-row button {
        width: 100%;
    }

    .steps-list,
    .plans-grid,
    .branch-list {
        grid-template-columns: 1fr;
    }

    .branch-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .branch-item small {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
