:root {
    --bg: #f4efe7;
    --paper: #fffaf1;
    --surface: rgba(255, 250, 241, 0.86);
    --text: #152425;
    --muted: #566b6d;
    --primary: #0c5c57;
    --primary-dark: #094742;
    --accent: #b85c24;
    --line: rgba(21, 36, 37, 0.1);
    --shadow: 0 24px 60px rgba(10, 28, 28, 0.12);
    --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(12, 92, 87, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(184, 92, 36, 0.14), transparent 22%),
        linear-gradient(180deg, #f6f0e4 0%, #edf4f2 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
    width: min(1160px, calc(100% - 28px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(246, 240, 228, 0.72);
    border-bottom: 1px solid rgba(21, 36, 37, 0.06);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255,255,255,0.8);
    padding: 6px;
}

.brand strong {
    display: block;
    font-size: 1rem;
}

.brand span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.nav-links {
    display: flex;
    gap: 22px;
    font-weight: 500;
}

.nav-links a,
.footer-link,
.access-back {
    text-decoration: none;
}

.nav-cta,
.button,
.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.nav-cta,
.button-primary,
.footer-link {
    background: var(--primary);
    color: #fff;
}

.nav-cta,
.footer-link {
    padding: 12px 18px;
}

.button {
    padding: 14px 22px;
}

.button:hover,
.nav-cta:hover,
.footer-link:hover {
    transform: translateY(-1px);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.65);
    color: var(--text);
}

.hero {
    padding: 56px 0 32px;
}

.hero-grid,
.feature-grid,
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero-copy h1,
.section-heading h2,
.feature-copy h2,
.about-copy h2,
.access-card h1 {
    margin: 0;
    font-family: "DM Serif Display", serif;
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.hero-copy h1 { font-size: clamp(3rem, 6vw, 5.7rem); }
.section-heading h2,
.feature-copy h2,
.about-copy h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.access-card h1 { font-size: clamp(2rem, 4vw, 3rem); }

.eyebrow {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 800;
}

.lead,
.about-copy p,
.access-card p,
.section-heading p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 30px 0 20px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-badges li,
.access-points span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 600;
}

.hero-visual {
    position: relative;
    min-height: 560px;
}

.hero-card {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.7);
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.64));
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-top {
    inset: 0 18% 28% 0;
}

.hero-card-bottom {
    inset: 42% 0 0 20%;
}

.section {
    padding: 42px 0;
}

.section-accent {
    background: linear-gradient(180deg, rgba(255,250,241,0.58), rgba(255,255,255,0.36));
}

.section-dark {
    background: linear-gradient(135deg, #143c3f, #0c5c57);
    color: #f9f5ee;
}

.section-dark .eyebrow,
.section-dark p {
    color: rgba(249,245,238,0.78);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 24px;
}

.subject-grid,
.resource-grid,
.interest-grid {
    display: grid;
    gap: 18px;
}

.subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.subject-card,
.resource-card,
.feature-panel,
.access-card,
.interest-grid article {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.74);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.subject-card,
.resource-card,
.interest-grid article {
    padding: 24px;
}

.subject-card img,
.resource-card img,
.about-media img {
    border-radius: 22px;
}

.subject-card h3,
.resource-card h3 {
    margin: 18px 0 10px;
    font-size: 1.35rem;
}

.subject-card p,
.resource-card p,
.interest-grid span {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.feature-panel {
    padding: 16px;
    display: grid;
    gap: 14px;
}

.panel-block {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(241,246,245,0.88));
    border: 1px solid rgba(21,36,37,0.08);
}

.panel-block span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.panel-block strong {
    font-size: 1.1rem;
}

.flow-list {
    margin: 20px 0 30px;
    padding-left: 22px;
    line-height: 1.75;
    color: var(--muted);
}

.logo-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.logo-strip img {
    width: 100%;
    max-height: 110px;
    object-fit: contain;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.76);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(10,28,28,0.08);
}

.interest-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.interest-grid article img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 12px;
}

.site-footer {
    padding: 18px 0 34px;
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    border-radius: 26px;
    background: rgba(16, 31, 31, 0.94);
    color: #f6f0e4;
}

.footer-brand img {
    max-width: 96px;
    max-height: 64px;
    object-fit: contain;
}

.footer-copy p {
    margin: 0;
    text-align: center;
}

.access-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.access-main {
    width: min(780px, calc(100% - 28px));
    padding: 34px 0;
}

.access-card {
    padding: 42px;
}

.access-back {
    color: var(--primary);
    font-weight: 700;
}

.access-logo {
    width: 96px;
    margin: 22px 0 12px;
}

.access-points {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (max-width: 1100px) {
    .resource-grid,
    .interest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logo-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-grid,
    .feature-grid,
    .about-grid,
    .subject-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 420px;
    }

    .hero-card-top {
        inset: 0 14% 26% 0;
    }

    .hero-card-bottom {
        inset: 40% 0 0 16%;
    }

    .footer-shell {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, 1160px);
    }

    .nav-shell {
        flex-wrap: wrap;
    }

    .brand {
        width: 100%;
    }

    .nav-cta {
        width: 100%;
    }

    .hero,
    .section {
        padding: 28px 0;
    }

    .resource-grid,
    .interest-grid,
    .logo-strip {
        grid-template-columns: 1fr;
    }

    .subject-card,
    .resource-card,
    .interest-grid article,
    .access-card {
        padding: 20px;
        border-radius: 22px;
    }

    .hero-card-top {
        inset: 0 8% 34% 0;
    }

    .hero-card-bottom {
        inset: 44% 0 0 10%;
    }

    .hero-visual {
        min-height: 340px;
    }
}
