/* ========================================
   Dirk Loss - Personal Homepage
   Clean, minimal design
   ======================================== */

/* Variables */
:root {
    --color-text: #1a1a1a;
    --color-text-secondary: #555;
    --color-text-muted: #777;
    --color-accent: #2a7d4f;
    --color-accent-hover: #1d5a38;
    --color-bg: #fff;
    --color-bg-subtle: #f8f8f8;
    --color-border: #e5e5e5;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 680px;
    --spacing-section: 4rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
    margin: 0.75rem 0 0.5rem;
}

h2 {
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
}

h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
}

p {
    margin: 0 0 1rem;
}

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

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Section Labels */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    text-align: center;
    padding-bottom: var(--spacing-section);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-section);
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
}

.tagline {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.social a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* ========================================
   Featured Section
   ======================================== */
.featured {
    margin-bottom: var(--spacing-section);
}

.featured-card {
    display: block;
    background: var(--color-bg-subtle);
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.featured-card img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-content {
    padding: 1.5rem;
}

.featured-content h2 {
    color: var(--color-text);
}

.featured-content p {
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.link-arrow {
    font-weight: 500;
    color: var(--color-accent);
}

/* ========================================
   Work Section
   ======================================== */
.work {
    margin-bottom: var(--spacing-section);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.work-category ul {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.work-category li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.work-category li a {
    font-weight: 500;
    line-height: 1.4;
}

.work-category li .desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ========================================
   About Section
   ======================================== */
.about {
    margin-bottom: var(--spacing-section);
}

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

/* ========================================
   Archive Section
   ======================================== */
.archive {
    margin-bottom: var(--spacing-section);
}

.archive details {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.archive summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.archive summary:hover {
    color: var(--color-accent);
}

.archive summary::marker {
    color: var(--color-text-muted);
}

.archive ul {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.archive li {
    font-size: 0.95rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    text-align: center;
}

footer p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    main {
        padding: 2rem 1.25rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-content {
        padding: 1.25rem;
    }

    :root {
        --spacing-section: 3rem;
    }
}
