:root {
    --bg: #FAFAF8;
    --surface: #FFFFFF;
    --text: #222222;
    --muted: #6B6B6B;
    --border: #CFCFCF;
}

* {
    box-sizing: border-box;
}

html,
body {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--text);

    font-family: system-ui, -apple-system, sans-serif;
}

.container {
    width: min(90%, 560px);
    margin: 0 auto;
    padding: 70px 0 40px;
}


/* Header */

.header {
    text-align: center;
    margin-bottom: 42px;
}

h1 {
    margin: 0;

    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 600;
    line-height: 1.2;
}

.authors {
    margin: 16px auto 4px;

    font-size: 0.9rem;
    line-height: 1.5;
}

.affiliation {
    margin: 0;

    color: var(--muted);
    font-size: 0.75rem;
}


/* Main links */

.resources {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 78px;
    padding: 16px 20px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text);
    text-decoration: none;

    transition:
        background 150ms ease,
        border-color 150ms ease;
}

.resource:hover {
    background: #F0F0ED;
    border-color: #B5B5B2;
}

.resource:focus-visible {
    outline: 2px solid #aaa;
    outline-offset: 3px;
}


/* Button text */

.resource-text {
    display: block;
}

.resource-text strong {
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: 0.08em;
}

.resource-text small,
.arrow,
.resource-icon {
    display: none;
}


/* Stay in touch */

.connect {
    margin-top: 52px;
    text-align: center;
}

.divider {
    width: 40px;
    height: 1px;

    margin: 0 auto 26px;

    background: var(--border);
}

.connect h2 {
    margin: 0 0 18px;

    color: var(--muted);

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--muted);

    transition: color 150ms ease;
}

.social-links a:hover {
    color: var(--text);
}

.social-links svg {
    width: 26px;
    height: 26px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Mobile */

@media (max-width: 500px) {
    .container {
        width: min(90%, 560px);
        padding-top: 45px;
    }

    .header {
        margin-bottom: 32px;
    }

    .authors {
        padding: 0 10px;
    }

    .resource {
        min-height: 72px;
    }
}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .resource,
    .social-links a {
        transition: none;
    }
}
