:root {
    --ink: #132d20;
    --accent: #b2d7bd;
    --paper: #efeee7;
    --muted: #56645c;
    --line: rgba(19, 45, 32, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    width: min(1320px, calc(100% - 48px));
    min-height: max(580px, 100dvh);
    margin-inline: auto;
    display: grid;
    grid-template-rows: 90px minmax(0, 1fr) 74px;
}

header,
footer {
    display: flex;
    align-items: center;
}

header {
    justify-content: space-between;
}

.wordmark {
    font-size: 1.4rem;
    font-weight: 820;
    letter-spacing: -0.06em;
}

header span,
footer,
.identity {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-columns: 0.22fr 1.78fr;
    grid-template-rows: 1fr auto;
    column-gap: 30px;
    align-items: center;
    overflow: hidden;
    padding-block: 30px;
}

.watermark {
    position: absolute;
    z-index: -1;
    right: -3%;
    top: 50%;
    width: min(47vw, 650px);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0.075;
    transform: translateY(-50%) rotate(-6deg);
}

.marker {
    align-self: start;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    writing-mode: vertical-rl;
}

h1 {
    position: relative;
    max-width: 1170px;
    margin: 0;
    font-size: clamp(3.7rem, 7.4vw, 7.5rem);
    font-weight: 760;
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.details {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: clamp(30px, 7vw, 100px);
    align-items: end;
    margin-top: 34px;
}

.details p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.5;
}

.details a {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 0 18px;
    border-bottom: 2px solid var(--ink);
    background: var(--accent);
    font-size: 0.84rem;
    font-weight: 780;
    transition: padding 160ms ease;
}

.details a:hover {
    padding-inline: 23px 13px;
}

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

footer {
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
}

.identity {
    display: grid;
    gap: 5px;
}

footer a {
    color: var(--ink);
}

@media (max-width: 700px) {
    main {
        width: calc(100% - 28px);
        min-height: max(620px, 100dvh);
        grid-template-rows: 68px minmax(0, 1fr) 64px;
    }

    .wordmark {
        font-size: 1.15rem;
    }

    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        align-content: center;
        padding-block: 18px;
    }

    .watermark {
        right: -32vw;
        width: 92vw;
        opacity: 0.07;
    }

    .marker {
        margin: 0 0 16px;
        writing-mode: initial;
    }

    h1 {
        max-width: 360px;
        font-size: clamp(2.65rem, 12.5vw, 3.7rem);
        line-height: 0.94;
    }

    .details {
        grid-column: 1;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 24px;
    }

    .details p {
        max-width: 340px;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .details a {
        min-height: 50px;
    }

    footer {
        font-size: 0.55rem;
        letter-spacing: 0.06em;
    }
}

@media (max-height: 680px) {
    main {
        grid-template-rows: 60px 1fr 46px;
    }

    .hero {
        padding-block: 10px;
    }

    .details {
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
    }
}
