:root {
    --sky-blue: #87ceeb;
    --sky-blue-dark: #55b8dd;
    --sky-blue-light: #dff5ff;

    --text: #111111;
    --gray: #666666;
    --border: #cdefff;
}

* {
    box-sizing: border-box;
}


body {
    margin: 0;

    background: white;
    color: var(--text);

    font-family:
        Helvetica,
        Arial,
        system-ui,
        sans-serif;
}


/* -------------------------
   Top bar
------------------------- */

.topbar {
    height: 72px;

    display: flex;
    align-items: center;

    padding: 0 40px;

    background: var(--sky-blue);
}

.brand {
    font-size: 22px;
    font-weight: 700;
}


/* -------------------------
   Main
------------------------- */

main {
    min-height: calc(100vh - 170px);
}


/* -------------------------
   Hero
------------------------- */

.hero {
    text-align: center;

    padding:
        80px 20px
        45px;
}

.eyebrow {
    margin: 0;

    color: var(--sky-blue-dark);

    font-weight: 700;
    font-size: 16px;
}

.hero h1 {
    margin:
        10px 0
        16px;

    font-size: clamp(
        42px,
        7vw,
        72px
    );

    line-height: 1;
}

.subtitle {
    max-width: 650px;

    margin: auto;

    color: var(--gray);

    font-size: 19px;
    line-height: 1.6;
}


/* -------------------------
   Portal chooser
------------------------- */

.chooser {
    max-width: 950px;

    margin: auto;

    padding:
        20px 25px
        90px;
}

.chooser h2 {
    text-align: center;

    font-size: 28px;

    margin-bottom: 30px;
}


.cards {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}


/* -------------------------
   Cards
------------------------- */

.portal-card {
    min-height: 310px;

    padding: 35px;

    border:
        2px solid
        var(--sky-blue);

    border-radius: 22px;

    background: white;

    color: inherit;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}


a.portal-card:hover {
    transform:
        translateY(-5px);

    border-color:
        var(--sky-blue-dark);

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.08);
}


.icon {
    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    background:
        var(--sky-blue-light);

    font-size: 34px;
}


.portal-card h3 {
    margin:
        22px 0
        10px;

    font-size: 27px;
}


.portal-card p {
    max-width: 330px;

    margin:
        0 0
        25px;

    color: var(--gray);

    line-height: 1.5;
}


/* -------------------------
   Buttons
------------------------- */

.button {
    margin-top: auto;

    display: inline-block;

    padding:
        12px 24px;

    border-radius: 10px;

    background:
        var(--sky-blue);

    color: #111;

    font-weight: 700;
}


.button.disabled {
    background: #e9e9e9;

    color: #888;
}


.teacher-card small {
    margin-top: 10px;

    color: var(--gray);
}


/* -------------------------
   Footer
------------------------- */

footer {
    padding: 25px;

    text-align: center;

    border-top:
        1px solid
        var(--border);

    color: var(--gray);
}


footer p {
    margin: 4px;
}


/* -------------------------
   Mobile
------------------------- */

@media (max-width: 700px) {

    .topbar {
        padding:
            0 22px;
    }

    .hero {
        padding-top:
            55px;
    }

    .cards {
        grid-template-columns:
            1fr;
    }

}
