/* Theme: Soft Forest Terminal */
:root {
    --bg: #0d1117;
    --text: #c9d1d9;
    --header-white: #ffffff;
    --link-green: #4ade80;
    --border-muted: #30363d;
    --dim-text: #8b949e;
    --code-bg: #161b22;
    --mono-font: 'JetBrains Mono', monospace;
    --sans-font: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px;
    font-family: var(--sans-font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
    color: var(--header-white);
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 0.85rem;
    color: var(--dim-text);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem;
}

.email-container {
    display: inline-block;
    background: var(--code-bg);
    color: var(--link-green);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-muted);
    font-family: var(--mono-font);
    font-size: 0.85rem;
    margin: 1rem 0;
    word-break: break-all;
}

/* Sections */
section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-muted);
}

section:last-of-type { border-bottom: none; }

p strong { color: var(--header-white); }
.dim { color: var(--dim-text); font-size: 0.95rem; }

/* Grid for Social Links */
.link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 0;
    list-style: none;
    margin-top: 0.5rem;
}

.link-grid li a {
    color: var(--link-green);
    text-decoration: none;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    transition: 0.2s;
}

.link-grid li a:hover {
    color: var(--header-white);
    text-decoration: underline;
}

/* Archive List */
.archive-list {
    list-style: none;
    padding: 0;
}

.archive-list li { margin-bottom: 14px; }
.archive-list a {
    text-decoration: none;
    color: var(--text);
    font-family: var(--mono-font);
    font-size: 0.9rem;
    display: block;
}

.archive-list a:hover { color: var(--link-green); }

/* QR Code */
.qr-container {
    text-align: center;
    padding: 3rem 0;
}

.qr-code {
    max-width: 160px;
    height: auto;
    filter: invert(0.9) hue-rotate(90deg) brightness(0.95);
    opacity: 0.75;
    transition: opacity 0.3s ease;
    margin-top: 1rem;
    border-radius: 4px;
}

.qr-code:hover { opacity: 1; }

footer {
    margin-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    color: var(--dim-text);
    font-size: 0.8rem;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    body { padding: 30px 20px; }
    section { padding: 2rem 0; }
}

.email-link {
    text-decoration: none;
    display: inline-block; /* Keeps the container behavior */
}

.email-link:hover .email-container {
    border-color: var(--link-green);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.1);
}

