/* Student Starter styles: simple, readable baseline */

:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #1c2430;
    --muted: #5a6573;
    --accent: #0d66d0;
    --accent-hover: #0a4f9f;
    --border: #d9e0e8;
    --radius: 12px;
    --shadow: 0 8px 20px rgba(15, 30, 56, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(180deg, #f7fafe 0%, var(--bg) 100%);
}

.container {
    width: min(100% - 2rem, 960px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #111;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 0 0 6px 6px;
}

.skip-link:focus {
    left: 1rem;
    z-index: 1000;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.nav-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--accent-hover);
    text-decoration: underline;
}

main {
    padding: 1.25rem 0 2rem;
}

main > section,
main > aside {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    margin-top: 0;
}

.site-footer {
    background: #152033;
    color: #d8e2f1;
    padding: 1.2rem 0;
}

.site-footer p {
    margin: 0.35rem 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: #9fd0ff;
}

@media (max-width: 720px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
