:root {
    --color-bg: #2c4a58;
    --color-card: #213e4a;
    --color-card-dark: #142830;
    --color-text: #f8f8f8;
    --color-text-muted: #ccc;
    --color-accent: #0196e3;
    --color-line-light: #416371;
    --color-line-dark: #24404c;
    --font-heading: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --max-width: 960px;
    --border-radius: 12px;
    --transition: 0.2s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg) 0%, #1e3640 100%);
    min-height: 100vh;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #4db8ed;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: relative;
    padding: 2rem 0 3rem;
    border-bottom: 1px solid var(--color-line-light);
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-family: Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

nav {
    margin-top: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav a {
    display: block;
    padding: 0.6rem 1.2rem;
    background: var(--color-text);
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition), box-shadow var(--transition);
}

nav a:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

main {
    padding: 2rem 0;
}

article {
    background: var(--color-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

article h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-line-dark);
}

.article-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.article-content figure {
    order: 2;
}

.article-content .text {
    order: 1;
}

figure {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 3px solid var(--color-card-dark);
    transition: transform var(--transition), box-shadow var(--transition);
}

figure:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

figure img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.text p {
    margin-bottom: 1rem;
}

.text p:last-child {
    margin-bottom: 0;
}

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--color-line-light);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

footer p {
    margin-bottom: 1rem;
}

footer .up {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-card);
    border-radius: var(--border-radius);
    transition: background var(--transition);
}

footer .up:hover {
    background: var(--color-card-dark);
    text-decoration: none;
}

@media (max-width: 768px) {
    .article-content {
        grid-template-columns: 1fr;
    }

    .article-content figure {
        order: 1;
    }

    .article-content .text {
        order: 2;
    }

    article {
        padding: 1.5rem;
    }

    nav ul {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #page {
        padding: 0 15px;
    }

    header {
        padding: 1.5rem 0 2rem;
    }

    article {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}
