/* Base reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS variables for easy theming */
:root {
    --bg-main: #f6f7f9;
    --bg-surface: #ffffff;
    --text-primary: #1f2937;   /* slate-800 */
    --text-secondary: #4b5563; /* slate-600 */
    --text-muted: #6b7280;     /* slate-500 */
    --accent: #2563eb;         /* soft blue */
    --border-subtle: #e5e7eb;
    --radius: 10px;
}

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.65;
}

/* Layout */
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Header */
.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.site-header .container {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.site-header h1 {
    font-size: 2.4rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Sections */
main section {
    margin-top: 3.5rem;
}

h2 {
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Intro */
.intro p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Writing list */
.writing-list {
    list-style: none;
}

.writing-list li {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.writing-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.writing-list a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.writing-list a:hover {
    color: var(--accent);
}

.description {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Footer */
.site-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-surface);
}

.site-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
}
