*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #d4d4d4;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10;
    padding: 8px 16px;
    background: #1a1a1a;
    color: #7eb4f0;
    border-radius: 0 0 4px 4px;
    font-size: 0.875rem;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

.noscript-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d4d4d4;
    font-size: 1.25rem;
    text-align: center;
    padding: 0 24px;
}

#logo-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 300px auto 0;
    padding: 60px 100px 80px;
    /* Starts transparent; JS adjusts opacity on scroll */
    background: rgba(10, 10, 10, 0);
}

section h2 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 0.8125rem;
    color: #777;
    margin-bottom: 20px;
}

section {
    margin-bottom: 56px;
}

ul {
    list-style: none;
}

li {
    margin-bottom: 28px;
}

li p {
    color: #999;
    font-size: 0.875rem;
    margin-top: 4px;
}

a {
    color: #7eb4f0;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #b8d8ff;
    text-decoration: underline;
}

a:focus-visible {
    color: #b8d8ff;
    text-decoration: underline;
    outline: 2px solid #7eb4f0;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Matches main max-width */
@media (max-width: 600px) {
    main {
        margin-top: 180px;
        padding: 40px 24px 60px;
    }
}

/* Small phones (iPhone SE / Galaxy S8) */
@media (max-width: 380px) {
    main {
        margin-top: 140px;
        padding: 32px 16px 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #logo-canvas {
        display: none;
    }

    main {
        margin-top: 80px;
        background: rgba(10, 10, 10, 1);
    }
}

@media (prefers-contrast: more) {
    section h2,
    li p {
        color: #ccc;
    }
}
