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

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #222;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #7eb8da;
    --accent-hover: #a3d0ea;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

main {
    max-width: 640px;
    width: 100%;
    padding: 4rem 2rem;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

h1 {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Link Cards */
.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.card:hover {
    border-color: var(--accent);
    background: #1a1a1a;
}

.card-icon {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.card-label {
    font-weight: 600;
    font-size: 1.05rem;
    display: block;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.15rem;
}

/* Publications */
.publications {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

h2 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pub {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

a.pub {
    transition: border-color 0.2s, background 0.2s;
}

a.pub:hover {
    border-color: var(--accent);
    background: #1a1a1a;
}

.pub.featured {
    border-color: var(--accent);
    position: relative;
}

.pub-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.pub-title {
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.pub.featured .pub-title {
    font-size: 1.1rem;
    color: var(--accent);
}

.pub-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.15rem;
}

.pub-meta {
    font-size: 0.75rem;
    color: #555;
    display: block;
    margin-top: 0.3rem;
}

/* Footer / Contact */
footer {
    padding-top: 0;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
}

.contact a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.contact-note {
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.3rem;
}

/* Back link */
.back {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

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

/* Book info */
.book-info {
    margin-bottom: 3rem;
}

.book-info p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.book-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.book-info li {
    font-size: 0.9rem;
    padding: 0.4rem 0 0.4rem 1.2rem;
    position: relative;
    color: var(--text);
}

.book-info li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.book-info em {
    color: var(--accent);
    font-style: italic;
}

.book-info a {
    color: var(--accent);
    text-decoration: none;
}

.book-info a:hover {
    text-decoration: underline;
}

/* Personal sections */
.personal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.personal-section p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.coming-soon {
    font-size: 0.8rem;
    color: var(--accent);
    font-style: italic;
}

/* Subtle personal link */
.personal-link {
    color: #333;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
    margin-top: 0.5rem;
}

.personal-link:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 480px) {
    main {
        padding: 2.5rem 1.2rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1rem;
    }
}
