* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f0ede8;
    color: #1c1c1e;
    padding: 1.5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1240px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    transition: all 0.2s ease;
}

/* --- Header --- */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e7e2da;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1c1c1e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-text .logo-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #1c1c1e;
}

.logo-text span {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a6e5e;
    margin-top: 0.1rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-top: 0.5rem;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #2c2c2e;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a:focus {
    border-bottom-color: #b45a3a;
    color: #b45a3a;
}

/* --- Hero --- */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem;
    background: #f7f5f2;
    border-radius: 18px;
    padding: 2.5rem 2.8rem;
    margin-bottom: 2.8rem;
}

.hero-content {
    flex: 2 1 320px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    color: #1c1c1e;
}

.hero-content .sub {
    font-size: 1.2rem;
    font-weight: 300;
    color: #4f4a44;
    max-width: 520px;
}

.hero-content .tagline {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #6a625a;
    border-left: 4px solid #b45a3a;
    padding-left: 1.2rem;
}

.hero-image {
    flex: 1 1 180px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 0.3rem;
}

/* --- Featured links (highlight) --- */
.featured {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: #faf8f6;
    border-radius: 14px;
    border: 1px solid #e9e3dc;
}

.featured a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1c1c1e;
    text-decoration: none;
    padding: 0.25rem 0.75rem 0.25rem 0;
    border-right: 1px solid #d6cec4;
    transition: color 0.2s ease;
}

.featured a:last-child {
    border-right: none;
}

.featured a:hover {
    color: #b45a3a;
}

/* --- Resource grid --- */
.section-head {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 2.4rem 0 1.2rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #ece7e0;
    color: #1c1c1e;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem 1.8rem;
    margin-bottom: 0.5rem;
}

.grid a {
    display: block;
    padding: 0.5rem 0.2rem;
    font-size: 0.95rem;
    font-weight: 450;
    color: #2c2c2e;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.grid a:hover {
    border-bottom-color: #b45a3a;
    color: #b45a3a;
}

.grid .cat {
    font-weight: 600;
    color: #7a6e5e;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-top: 0.8rem;
    border-bottom: none;
    cursor: default;
}

.grid .cat:hover {
    border-bottom-color: transparent;
    color: #7a6e5e;
}

/* --- Footer --- */
.footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e7e2da;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #5f5952;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.8rem;
}

.footer-links a {
    color: #3d3a36;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #b45a3a;
}

.footer-copy {
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* --- Mobile first adjustments --- */
@media (max-width: 768px) {
    body {
        padding: 0.75rem;
    }

    .container {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .nav {
        gap: 0.25rem 1rem;
    }

    .nav a {
        font-size: 0.85rem;
    }

    .hero {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .hero-content .sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content .tagline {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid #b45a3a;
        padding-top: 0.8rem;
    }

    .hero-image {
        order: -1;
    }

    .featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 1.25rem;
    }

    .featured a {
        border-right: none;
        border-bottom: 1px solid #e0d8ce;
        padding: 0.3rem 0;
        width: 100%;
    }

    .featured a:last-child {
        border-bottom: none;
    }

    .section-head {
        font-size: 1.3rem;
        margin-top: 1.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-text .logo-title {
        font-size: 1.3rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .container {
        padding: 0.9rem;
    }
}