:root {
    color-scheme: light dark;
    --bg: #fafafa;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, 0.09);
    --border-strong: rgba(0, 0, 0, 0.18);
    --text: #18181b;
    --muted: #52525b;
    --subtle: #71717a;
    --accent: #0b63ce;
    --radius: 12px;
    --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111113;
        --surface: #18181b;
        --border: rgba(255, 255, 255, 0.08);
        --border-strong: rgba(255, 255, 255, 0.2);
        --text: #f4f4f5;
        --muted: #a1a1aa;
        --subtle: #8b8b94;
        --accent: #8ab4f8;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-underline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    z-index: 10;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 650;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 32px;
    height: 32px;
}

.site-nav {
    display: flex;
    gap: 24px;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.9375rem;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--text);
}

main {
    flex: 1;
}

.hero {
    padding-top: 96px;
    padding-bottom: 72px;
}

.hero h1 {
    max-width: 18ch;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.lede {
    max-width: 52ch;
    margin-top: 20px;
    font-size: 1.1875rem;
    color: var(--muted);
}

.section {
    position: relative;
    padding-top: 56px;
    padding-bottom: 56px;
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    border-top: 1px solid var(--border);
}

.section h2 {
    margin-bottom: 24px;
    font-size: 1.375rem;
    font-weight: 650;
}

.section-body {
    max-width: 60ch;
    color: var(--muted);
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.company-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s;
}

.company-card:hover {
    border-color: var(--border-strong);
}

.company-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.company-card h3 {
    margin-bottom: 8px;
    font-size: 1.125rem;
    font-weight: 650;
}

.company-card p {
    flex: 1;
    color: var(--muted);
}

.company-url {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--accent);
}

.company-url::after {
    content: " \2197";
}

.site-footer {
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--subtle);
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.site-footer a {
    color: inherit;
}

.site-footer a:hover {
    color: var(--text);
}

.page-header {
    padding-top: 72px;
    padding-bottom: 32px;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.page-header p {
    margin-top: 12px;
    color: var(--muted);
}

.prose {
    max-width: 68ch;
    padding-bottom: 72px;
}

.prose h2 {
    margin: 36px 0 10px;
    font-size: 1.125rem;
    font-weight: 650;
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose p + p,
.prose ul + p,
.prose p + ul {
    margin-top: 12px;
}

.prose ul {
    margin: 0;
    padding-left: 1.25em;
}

.prose li {
    margin: 4px 0;
}

@media (max-width: 600px) {
    .site-nav {
        gap: 16px;
    }

    .site-nav a {
        font-size: 0.875rem;
    }

    .hero {
        padding-top: 56px;
        padding-bottom: 48px;
    }

    .lede {
        font-size: 1.0625rem;
    }

    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .brand span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .company-card {
        transition: none;
    }
}
