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

:root {
    --ink: #1a1410;
    --paper: #f5f0e8;
    --accent: #c0392b;
    --muted: #7a6e62;
    --rule: #d4c9b8;
    --expand-bg: #ede8de;
}

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    line-height: 1.75;
    min-height: 100vh;
    position: relative;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.5;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 32px 120px;
}

header {
    margin-bottom: 64px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 40px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(48px, 8vw, 80px);
    line-height: 1;
    letter-spacing: -1px;
    color: var(--ink);
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

.tagline {
    margin-top: 20px;
    color: var(--muted);
    max-width: 520px;
    font-size: 13px;
}

section { margin-bottom: 56px; }

.section-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.entry {
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
}

.entry:last-child { border-bottom: none; }

.entry-title {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 6px;
}

.entry-meta {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.entry-body { color: var(--ink); font-size: 13px; }

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: 'DM Mono', monospace;
    transition: opacity 0.2s;
    text-decoration: none;
}

.more-link:hover { opacity: 0.65; }

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 9px;
}

.more-link.open .arrow { transform: rotate(90deg); }

/* Expandable content */
.expandable {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.expandable.open {
    max-height: 1200px;
    opacity: 1;
}

.expandable-inner {
    background: var(--expand-bg);
    border-left: 3px solid var(--accent);
    margin-top: 18px;
    padding: 20px 24px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--ink);
}

.expandable-inner p + p { margin-top: 12px; }

.undergrad-note {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 28px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tag {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid var(--rule);
    color: var(--muted);
}

footer {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 15px;
}
