/* Shared stylesheet. Plain, self contained, no external assets. */

html {
    font-size: 100%;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #16202a;
    background: #ffffff;
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem 1.5rem;
    -webkit-text-size-adjust: 100%;
}

h1 {
    font-size: 2.1rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 0.9rem 0;
}

h2 {
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #5a6875;
    margin: 0 0 0.9rem 0;
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: #1f4e79;
}

a:hover,
a:focus {
    color: #12324e;
}

code {
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    font-size: 0.95em;
}

/* Homepage hero: photo to the side, details stacked beside it. */

.hero {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    margin: 0 0 3rem 0;
}

.photo {
    flex: 0 0 auto;
    width: 12.5rem;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(22, 32, 42, 0.16),
        0 8px 24px rgba(22, 32, 42, 0.12);
}

.hero-text {
    flex: 1 1 16rem;
    min-width: 0;
}

ul.affil {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #45525f;
    line-height: 1.5;
}

ul.affil li {
    margin: 0 0 0.2rem 0;
}

ul.affil li.role {
    color: #16202a;
    font-weight: 600;
}

.contact {
    margin: 1rem 0 0 0;
    font-size: 0.95rem;
}

/* Research section and its link cards. */

section h2 {
    padding-top: 1.5rem;
    box-shadow: inset 0 1px 0 #e4e9ee;
}

section + section {
    margin-top: 2.75rem;
}

ul.cards {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 22rem));
    gap: 1rem;
}

a.card {
    display: block;
    padding: 1.1rem 1.25rem;
    border-radius: 10px;
    background: #f6f8fa;
    box-shadow: inset 0 0 0 1px #e4e9ee, inset 4px 0 0 #1f4e79;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, background 0.15s ease;
}

a.card:hover,
a.card:focus {
    background: #eef3f8;
    box-shadow: inset 0 0 0 1px #cfdae4, inset 4px 0 0 #1f4e79,
        0 4px 14px rgba(22, 32, 42, 0.09);
}

.card-title {
    display: block;
    font-weight: 620;
    color: #1f4e79;
}

.card-sub {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.92rem;
    color: #5a6875;
}

/* Collection pages. */

ul.plain {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.plain li {
    margin: 0 0 0.5rem 0;
}

ul.orders {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.4rem 1.5rem;
}

ul.orders li {
    font-variant-numeric: tabular-nums;
}

.subtitle {
    color: #45525f;
    margin: 0 0 1.5rem 0;
}

.note {
    color: #5a6875;
}

footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    box-shadow: inset 0 1px 0 #e4e9ee;
    color: #5a6875;
    font-size: 0.9rem;
}

@media (max-width: 36rem) {
    body {
        padding-top: 2rem;
    }
    .hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2.25rem;
    }
    .photo {
        width: 10rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    ul.cards {
        grid-template-columns: 1fr;
    }
}
