/* mattpendragon.com — one page, no build step. */

:root {
    --bg: #f7f3ec;
    --surface: #fffdf9;
    --text: #2a2522;
    --muted: #6f655d;
    --rule: #ddd3c6;
    --accent: #8a2a1e;
    --hero-bg: #1d1a18;
    --hero-text: #f3ece2;
    --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "EB Garamond", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #161412;
        --surface: #1f1c19;
        --text: #e9e2d8;
        --muted: #a39789;
        --rule: #3a342e;
        --accent: #d9775f;
        --hero-bg: #0e0c0b;
    }
}

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

body {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* Hero */

.hero {
    background: var(--hero-bg);
    color: var(--hero-text);
    text-align: center;
    padding: 6rem 1rem 3rem;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.7;
}

h1 {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: clamp(2.4rem, 9vw, 5rem);
    line-height: 1.1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow + h1 { margin-top: 0.5rem; }

.tagline {
    margin-top: 1rem;
    font-style: italic;
    font-size: 1.3rem;
    opacity: 0.85;
}

nav {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: var(--hero-text);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
}

nav a:hover { opacity: 1; }

/* Sections */

main {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--rule);
}

section:last-child { border-bottom: none; }

h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

p + p { margin-top: 1rem; }

/* Books */

.book {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 2rem;
}

.book + .book { margin-top: 2rem; }

.status {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2rem;
    margin: 0.25rem 0 1rem;
}

.question,
.epigraph {
    font-style: italic;
    color: var(--muted);
}

.epigraph span { font-style: normal; white-space: nowrap; }

/* Contact */

#contact { text-align: center; }

.email { font-size: 1.4rem; }

footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    padding: 2rem 1rem 3rem;
}
