:root {
    --public-home-bg: #000;
    --public-home-ink: #f2ede3;
    --public-home-muted: #b9b4ab;
    --public-home-gold: #d9a32d;
    --public-home-rule: #282824;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.public-home {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--public-home-bg);
    color: var(--public-home-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.public-home a {
    color: inherit;
}

.public-home-shell {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
}

.public-home-main {
    display: flex;
    flex: 1 0 auto;
}

.public-home-hero {
    display: grid;
    width: 100%;
    min-height: 100svh;
    place-items: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 4rem) clamp(2.5rem, 6vw, 5rem);
}

.public-home-hero-inner {
    width: min(100%, 78rem);
    text-align: center;
}

.public-home-logo {
    display: block;
    width: clamp(19rem, 46vw, 42rem);
    height: auto;
    margin: 0 auto clamp(1rem, 2vw, 1.75rem);
}

.public-home-statement {
    max-width: 62rem;
    margin: 0 auto;
    color: var(--public-home-ink);
    font-size: clamp(1.15rem, 1.65vw, 1.55rem);
    font-weight: 400;
    line-height: 1.45;
    text-wrap: balance;
}

.public-home-purpose {
    margin: clamp(0.85rem, 1.6vw, 1.35rem) auto 0;
    color: var(--public-home-ink);
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.35;
}

.public-home-purpose strong {
    font-weight: inherit;
}

.public-home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem clamp(2rem, 5vw, 5.75rem);
    margin-top: clamp(2rem, 3.5vw, 2.875rem);
}

.public-home-actions a,
.public-home-license-link {
    color: var(--public-home-gold);
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    line-height: 1.4;
    text-decoration: none;
    text-underline-offset: 0.35em;
}

.public-home-actions a:hover,
.public-home-actions a:focus-visible,
.public-home-license-link:hover,
.public-home-license-link:focus-visible {
    text-decoration: underline;
}

.public-home-footer {
    flex: 0 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 4rem);
}

.public-home-links {
    display: grid;
    grid-template-columns: repeat(6, max-content) minmax(9rem, 1fr) 1px max-content;
    gap: 1.5rem clamp(1.5rem, 3.5vw, 4.5rem);
    align-items: center;
    width: 100%;
    min-height: 154px;
    border-top: 1px solid var(--public-home-rule);
    color: var(--public-home-ink);
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
}

.public-home-links a {
    text-decoration: none;
    text-underline-offset: 0.35em;
}

.public-home-contact-link {
    white-space: nowrap;
}

.public-home-links a:hover,
.public-home-links a:focus-visible {
    text-decoration: underline;
}

.public-home-links span:not(.public-home-link-divider) {
    color: var(--public-home-muted);
}

.public-home-privacy-link {
    margin: -1.75rem 0 0;
    padding: 0 0 0.625rem;
    color: #938f87;
    font-size: 0.625rem;
    line-height: 1;
    text-align: right;
}

.public-home-privacy-link a {
    text-decoration: none;
    text-underline-offset: 0.25em;
}

.public-home-privacy-link a:hover,
.public-home-privacy-link a:focus-visible {
    text-decoration: underline;
}

.public-home-link-divider {
    width: 1px;
    height: 4.5rem;
    background: var(--public-home-rule);
}

.public-home a:focus-visible {
    outline: 2px solid var(--public-home-gold);
    outline-offset: 0.4rem;
}

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

.screen-reader-text:focus {
    z-index: 100000;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    margin: 0;
    clip: auto;
    background: var(--public-home-ink);
    color: var(--public-home-bg);
    white-space: normal;
}

@media (max-width: 1040px) {
    .public-home-hero {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .public-home-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem 2rem;
        padding: 2rem 0;
    }

    .public-home-link-divider {
        display: none;
    }
}

@media (max-width: 620px) {
    .public-home-hero {
        min-height: 100svh;
        padding: 1.5rem 1.25rem 3rem;
    }

    .public-home-logo {
        width: min(94vw, 31rem);
        margin-bottom: 0.5rem;
    }

    .public-home-statement {
        max-width: 22rem;
        font-size: 1.12rem;
    }

    .public-home-purpose {
        max-width: 22rem;
        font-size: 0.88rem;
        letter-spacing: 0.06em;
    }

    .public-home-actions {
        display: grid;
        gap: 1.15rem;
        margin-top: 2.25rem;
    }

    .public-home-actions a,
    .public-home-license-link {
        font-size: 1rem;
    }

    .public-home-footer {
        padding: 0 1.25rem;
    }

    .public-home-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 1.5rem;
        min-height: auto;
        padding: 1.75rem 0 2rem;
        font-size: 0.95rem;
    }

    .public-home-license-link {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }

    .public-home-privacy-link {
        margin-top: -1.5rem;
        padding-bottom: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
