
/* Englisch Family Website */

:root {
    --navy: #263b55;
    --blue: #426b91;
    --light-blue: #eaf0f6;
    --background: #f7f8fa;
    --text: #354052;
    --muted: #718096;
    --white: #ffffff;
    --border: #e1e6ec;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

/* Header */

.site-header {
    background: var(--navy);
    color: var(--white);
}

.header-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-title {
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 650;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.main-nav a {
    color: #e0e8f0;
    text-decoration: none;
    font-size: 0.9rem;
}

.main-nav a:hover {
    color: var(--white);
}

/* Welcome */

.welcome {
    text-align: center;
    padding: 75px 20px 65px;
    background: var(--white);
    margin: 30px 0 45px;
    border-radius: 12px;
}

.eyebrow {
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
}

.welcome h1 {
    color: var(--navy);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2;
    margin: 15px 0;
}

.intro {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.1rem;
}

.family-members {
    margin-top: 28px;
    color: var(--blue);
    font-weight: 600;
}

.today {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Sections */

.content-section {
    margin: 55px 0;
}

.content-section h2 {
    color: var(--navy);
    font-size: 1.7rem;
    margin-bottom: 25px;
}

.section-intro {
    color: var(--muted);
    margin-top: -15px;
    margin-bottom: 25px;
}

/* Link cards */

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-card {
    display: block;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 50, 75, 0.09);
}

.card-icon {
    font-size: 1.5rem;
}

.link-card h3 {
    color: var(--navy);
    margin: 12px 0 5px;
    font-size: 1.1rem;
}

.link-card p {
    color: var(--muted);
    margin: 0 0 15px;
    font-size: 0.9rem;
}

.card-more {
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-card {
    background: var(--light-blue);
    border-color: #d5e1ed;
}

/* Other links */

.simple-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.simple-links a {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 20px;
    color: var(--blue);
    text-decoration: none;
}

.simple-links a:hover {
    background: var(--light-blue);
}

/* Photographs */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.photo-grid figure {
    margin: 0;
    background: var(--white);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.photo-grid img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: contain;
    background: #f0f2f5;
    border-radius: 6px;
}

.photo-grid figcaption {
    padding: 12px 5px 5px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Footer */

.site-footer {
    margin-top: 70px;
    padding: 35px 0;
    background: var(--navy);
    color: #dce5ed;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer span {
    padding: 0 10px;
    color: #9aafc2;
}

.copyright {
    margin-top: 25px;
    color: #aebdcb;
    font-size: 0.8rem;
}

/* Mobile layout */

@media (max-width: 750px) {

    .header-content {
        flex-direction: column;
        padding: 18px 0;
    }

    .main-nav {
        justify-content: center;
        gap: 12px 20px;
    }

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

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

}

@media (max-width: 500px) {

    .link-grid,
    .simple-links,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .welcome {
        padding: 45px 15px;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

}

