:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;

    --accent: #14b8c4;
    --accent-hover: #0ea5b1;

    --link: #0f766e;
    --link-hover: #0d9488;
    --link-visited: #115e59;

    --focus: #22d3ee;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2937;

    --accent: #22d3ee;
    --accent-hover: #06b6d4;

    --link: #2dd4bf;
    --link-hover: #5eead4;
    --link-visited: #14b8a6;

    --focus: #22d3ee;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    padding: 24px;
}

/* Layout */

.container {
    max-width: 920px;
    margin: auto;
    background: var(--card);
    border-radius: 14px;
    padding: 36px;
    border: 1px solid var(--border);
}

/* Header */

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

header a.logo {
    display: inline-block;
}

header img {
    max-width: 170px;
    height: auto;
}

/* Navigation (menu links only) */

nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

nav a {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    background: transparent;
    transition: all 0.2s ease;
}

nav a.active,
nav a:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Theme Toggle */

.theme-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
}

/* Typography */

h1 {
    font-size: 28px;
    margin-bottom: 18px;
}

h2 {
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 14px;
}

ul {
    margin-left: 18px;
    margin-bottom: 14px;
}

/* =========================================
   GLOBAL LINK STYLING (non-menu links)
   ========================================= */

.container a:not(nav a):not(.logo) {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.container a:not(nav a):not(.logo):hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

.container a:not(nav a):not(.logo):visited {
    color: var(--link-visited);
}

.container a:not(nav a):not(.logo):focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Email links slightly emphasized */

.container a[href^="mailto:"]:not(nav a) {
    font-weight: 500;
}

/* Footer */

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* Mobile */

@media (max-width: 600px) {
    .container {
        padding: 22px;
    }

    h1 {
        font-size: 24px;
    }

    nav {
        justify-content: center;
    }

    .theme-toggle {
        position: static;
        margin-bottom: 10px;
    }
}

