/* Jason Ader - Personal Site
   Design: Editorial, sophisticated, minimal
   Fonts: Instrument Serif + Inter */

:root {
    --black: #111;
    --gray-900: #1a1a1a;
    --gray-700: #444;
    --gray-500: #666;
    --gray-400: #888;
    --gray-200: #ddd;
    --gray-100: #f4f4f4;
    --white: #fefefe;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'Inter', -apple-system, system-ui, sans-serif;
}

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

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: var(--gray-400);
}

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

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    padding: 32px 0;
    position: relative;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.wordmark {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-header nav {
    display: flex;
    gap: 32px;
}

.site-header nav a {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-decoration: none;
}

.site-header nav a:hover {
    color: var(--black);
}

/* Hero */
.hero {
    padding: 80px 0 60px;
}

.hero h1 {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    max-width: 640px;
}

.lede {
    font-size: 1.15rem;
    color: var(--gray-700);
    line-height: 1.7;
    max-width: 580px;
}

/* Bio */
.bio {
    padding: 40px 0 80px;
}

.prose p {
    margin-bottom: 1.5em;
    line-height: 1.75;
}

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

/* Experience */
.experience {
    padding: 60px 0;
    background: var(--gray-100);
}

.experience h2 {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-500);
    margin-bottom: 40px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.role {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
}

.period {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.details .title {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 8px;
}

.details p:last-child {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Writing Preview */
.writing-preview {
    padding: 60px 0;
}

.writing-preview h2 {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.articles {
    list-style: none;
}

.articles li {
    border-top: 1px solid var(--gray-200);
}

.articles a {
    display: block;
    padding: 20px 0;
    text-decoration: none;
}

.articles a:hover .headline {
    text-decoration: underline;
}

.headline {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.description {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Footer */
.site-footer {
    padding: 60px 0 40px;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-info {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-info a {
    color: var(--gray-400);
}

.footer-info a:hover {
    color: var(--white);
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Page Content */
.page-content {
    padding: 60px 0 100px;
}

.page-header {
    margin-bottom: 48px;
}

.page-header h1 {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Long-form Prose */
.prose.long-form {
    font-size: 1.05rem;
}

.prose.long-form h2 {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2.5em;
    margin-bottom: 1em;
}

.prose.long-form h2:first-of-type {
    margin-top: 0;
}

.prose .intro {
    font-size: 1.2rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 2em;
}

/* Writing List Page */
.writing-intro {
    margin-bottom: 48px;
}

.articles-list {
    list-style: none;
}

.articles-list li {
    border-top: 1px solid var(--gray-200);
}

.article-preview a {
    display: block;
    padding: 32px 0;
    text-decoration: none;
}

.article-preview h2 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.article-preview a:hover h2 {
    color: var(--gray-700);
}

.article-preview .excerpt {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 8px;
}

.article-preview .date {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Article Page */
.article-page .article-header {
    margin-bottom: 48px;
}

.article-page .article-header h1 {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-page .article-meta {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.article-nav {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.back-link {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--gray-500);
}

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

/* Contact Page */
.contact-content h2 {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
}

.contact-content h2:first-of-type {
    margin-top: 0;
}

.contact-email {
    font-size: 1.1rem;
}

.contact-email a {
    color: var(--gray-700);
}

/* Active Nav */
.site-header nav a.active {
    color: var(--black);
}

/* Responsive */
@media (max-width: 640px) {
    html { font-size: 16px; }

    .hero h1 { font-size: 2rem; }

    .role {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .site-header nav { display: none; }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
}
