:root {
    --ink: #171717;
    --muted: #68635d;
    --paper: #fbfaf7;
    --line: #ded9d0;
    --accent: #0b7a75;
    --accent-2: #c48a3a;
    --night: #101312;
    --white: #fffaf0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration-color: var(--accent);
    text-underline-offset: 0.22em;
}

img {
    display: block;
    max-width: 100%;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 250, 240, 0.18);
    background: rgba(16, 19, 18, 0.56);
    color: var(--white);
    backdrop-filter: blur(16px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.brand__logo {
    width: auto;
    max-width: 168px;
    height: 38px;
    object-fit: contain;
}

.links {
    display: flex;
    gap: 16px;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
}

.links a {
    text-decoration: none;
    opacity: 0.82;
}

.links a:hover {
    opacity: 1;
}

h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(46px, 8.5vw, 118px);
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.1;
}

.home-hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(16, 19, 18, 0.96), rgba(11, 122, 117, 0.44)),
        radial-gradient(circle at 78% 18%, rgba(196, 138, 58, 0.32), transparent 34%),
        var(--night);
    color: var(--white);
}

.home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
}

.home-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 19, 18, 0.88) 0%, rgba(16, 19, 18, 0.55) 50%, rgba(16, 19, 18, 0.22) 100%),
        linear-gradient(0deg, rgba(16, 19, 18, 0.78) 0%, rgba(16, 19, 18, 0) 42%);
}

.home-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    padding: 116px 0 88px;
}

.home-hero__eyebrow {
    margin: 0 0 18px;
    color: #ead7b2;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero__lede {
    max-width: 650px;
    margin: 28px 0 0;
    color: rgba(255, 250, 240, 0.82);
    font-size: clamp(18px, 2vw, 25px);
}

.home-hero__lede_sub {
    max-width: 650px;
    margin: 28px 0 0;
    color: rgba(255, 250, 240, 0.82);
    font-size: clamp(14px, 2vw, 16px);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.home-hero__scroll {
    position: absolute;
    z-index: 3;
    right: 32px;
    bottom: 28px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 250, 240, 0.42);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
}

.section {
    padding: 84px 0;
}

.lede {
    max-width: 680px;
    color: var(--muted);
    font-size: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.item {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.meta {
    color: var(--muted);
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--ink);
    padding: 10px 15px;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--light {
    border-color: var(--white);
    background: var(--white);
    color: var(--night);
}

.button--ghost {
    border-color: rgba(255, 250, 240, 0.48);
    color: var(--white);
}

.button--ghost:hover {
    background: rgba(255, 250, 240, 0.12);
}

.content {
    max-width: 760px;
    font-size: 18px;
}

.home-content {
    font-size: 20px;
}

pre {
    overflow: auto;
    border: 1px solid var(--line);
    padding: 16px;
    background: #fff;
}

.footer {
    border-top: 1px solid var(--line);
    background: #f2eee6;
    padding: 38px 0;
}

.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.footer p {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--muted);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
}

.footer__links a {
    text-decoration: none;
}

@media (max-width: 680px) {
    .nav {
        min-height: 62px;
    }

    .links {
        gap: 10px;
    }

    .brand__logo {
        max-width: 136px;
        height: 32px;
    }

    .home-hero__inner {
        padding-top: 104px;
    }

    .home-hero__scroll {
        right: 16px;
        bottom: 16px;
    }

    .footer__inner {
        flex-direction: column;
    }

    .footer__links {
        justify-content: flex-start;
    }
}
