
* {
    box-sizing: border-box;
}

:root {
    --ink: #172b25;
    --muted: #718078;
    --green: #1d684b;
    --green-dark: #164d39;
    --paper: #f7f8f4;
    --line: #e8ece6;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
}

.topbar {
    height: 76px;
    padding: 0 7.2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--ink);
    font: 800 13px 'Manrope', sans-serif;
    letter-spacing: 1.5px;
}

.brand-light {
    color: #91a097;
    font-weight: 500;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--green);
    color: white;
    font: 800 17px 'Manrope', sans-serif;
}

.academic-year {
    color: #78867e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

/* Hero section */

main {
    max-width: 1440px;
    margin: auto;
}

.hero {
    min-height: 390px;
    padding: 70px 10% 60px;
    background: #1b513c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #c3dfb1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c5e5a5;
}

h1 {
    margin: 0;
    font: 800 clamp(42px, 5vw, 65px)/1.08 'Manrope', sans-serif;
    letter-spacing: -3px;
}

h1 em {
    color: #d5e9b8;
    font-style: normal;
}

.intro {
    max-width: 470px;
    margin: 20px 0 26px;
    color: #d1dfd6;
    font-size: 14px;
    line-height: 1.7;
}

.lecturer {
    display: flex;
    align-items: center;
    gap: 11px;
}

.lecturer-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 1px solid #6d907c;
    border-radius: 50%;
    color: #e0edcf;
    font-size: 11px;
    font-weight: 700;
}

.lecturer small,
.lecturer strong {
    display: block;
}

.lecturer small {
    margin-bottom: 3px;
    color: #a9c2b2;
    font-size: 8px;
    letter-spacing: 1.3px;
}

.lecturer strong {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* Decorative hero graphic */

.hero-art {
    width: 280px;
    height: 260px;
    margin-right: 3%;
    position: relative;
    display: grid;
    place-items: center;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(220,239,211,.25);
    border-radius: 50%;
}

.orbit-one {
    width: 235px;
    height: 110px;
    transform: rotate(-25deg);
}

.orbit-two {
    width: 180px;
    height: 240px;
    transform: rotate(55deg);
}

.art-center {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #d8e9bd;
    color: var(--green-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 45px #0e38294d;
}

.art-center span {
    font: 800 30px 'Manrope', sans-serif;
}

.art-center small {
    margin-top: 3px;
    text-align: center;
    font-size: 7px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1px;
}

.float-tag {
    position: absolute;
    padding: 7px 11px;
    border: 1px solid #759583;
    border-radius: 20px;
    background: #245d45;
    color: #e5efdf;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.tag-one {
    top: 25px;
    left: 20px;
}

.tag-two {
    right: 0;
    top: 95px;
}

.tag-three {
    bottom: 15px;
    left: 55px;
}

/* Class directory */

.directory {
    padding: 67px 10% 85px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.eyebrow.dark {
    margin-bottom: 10px;
    color: var(--green);
}

h2 {
    margin: 0;
    font: 800 clamp(25px, 3vw, 34px) 'Manrope', sans-serif;
    letter-spacing: -1.3px;
}

h2 span {
    color: #80a95f;
}

.total {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.total strong {
    font: 800 27px 'Manrope', sans-serif;
    color: var(--green);
}

.total span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

/* Search */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.search-box {
    min-height: 49px;
    max-width: 520px;
    width: 100%;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #e4e9e2;
    border-radius: 8px;
    box-shadow: 0 3px 12px #1b392408;
}

.search-icon {
    color: var(--green);
    font-size: 25px;
}

.search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: 12px 'DM Sans', sans-serif;
}

.search-box input::placeholder {
    color: #9aa59d;
}

kbd {
    white-space: nowrap;
    padding: 4px 6px;
    border: 1px solid #e7ebe5;
    border-radius: 4px;
    color: #8a968e;
    font: 9px 'DM Sans', sans-serif;
}

.result-count {
    color: #89958d;
    font-size: 11px;
}

/* Student cards */

.student-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.student-card {
    min-width: 0;
    min-height: 104px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: white;
    border: 1px solid #e9ede7;
    border-radius: 9px;
    transition: transform .18s ease,
                border-color .18s ease,
                box-shadow .18s ease;
}

.student-card:hover {
    transform: translateY(-3px);
    border-color: #c9d9c8;
    box-shadow: 0 8px 20px #1b39240c;
}

.student-info {
    min-width: 0;
    flex: 1;
}

.student-info h3 {
    overflow-wrap: anywhere;
    margin: 0 0 7px;
    color: #263a30;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.student-info p {
    margin: 0;
    color: #849187;
    font-size: 10px;
    line-height: 1.6;
}

.initials {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf3e8;
    color: #477452;
    font: 700 10px 'Manrope', sans-serif;
}

.empty-state {
    padding: 35px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* Footer */

footer {
    min-height: 70px;
    padding: 20px 7.2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: #fff;
    border-top: 1px solid var(--line);
    color: #89958d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

/* Tablet */

@media (max-width: 950px) {
    .student-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero,
    .directory {
        padding-left: 7%;
        padding-right: 7%;
    }
}

/* Mobile */

@media (max-width: 620px) {
    .topbar {
        height: 64px;
        padding: 0 5%;
    }

    .academic-year {
        font-size: 8px;
        letter-spacing: .8px;
    }

    .hero {
        min-height: 0;
        padding: 54px 7% 48px;
    }

    .hero-art {
        display: none;
    }

    .directory {
        padding: 48px 5% 60px;
    }

    .section-heading {
        align-items: start;
        gap: 10px;
    }

    .total {
        gap: 5px;
    }

    .total strong {
        font-size: 22px;
    }

    .total span {
        max-width: 55px;
        font-size: 8px;
        line-height: 1.4;
    }

    .student-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .student-card {
        min-height: 90px;
    }

    .toolbar {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .search-box {
        max-width: none;
    }

    .result-count {
        align-self: end;
    }

    footer {
        padding: 20px 5%;
        flex-wrap: wrap;
        font-size: 8px;
    }

    footer span:nth-child(2) {
        order: 3;
        width: 100%;
    }
}
