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

:root {
    --cream: #f5f4ea;
    --cream-dark: #ebe9df;
    --ink: #111111;
    --ink-muted: #5c5c5c;
    --ink-faint: #999999;
    --border: rgba(17, 17, 17, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    background-image: url('/img/paper-bg.png');
    background-repeat: repeat;
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-narrow {
    max-width: 760px;
}

/* Nav */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}

.nav-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-muted);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cream);
    background: var(--ink);
    padding: 0.625rem 1.25rem;
    border-radius: 2px;
    transition: opacity 0.2s;
}

.nav-cta:hover {
    opacity: 0.82;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--ink);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 6rem 0 5rem;
}

.hero-content {
    max-width: 520px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
}

.hero-body {
    font-size: 1.0625rem;
    color: var(--ink-muted);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--cream);
    background: var(--ink);
    padding: 0.875rem 1.75rem;
    border-radius: 2px;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
}

.btn-ghost {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Pillars */
.pillars {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.pillars-header {
    max-width: 560px;
    margin-bottom: 3.5rem;
}

.pillars-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.pillars-header p {
    color: var(--ink-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--border);
    border-radius: 2px;
}

.pillar-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--ink-faint);
    margin-bottom: 1rem;
    line-height: 1;
}

.pillar h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.625rem;
}

.pillar p {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.65;
}

/* Blog preview on homepage */
.blog-preview {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.blog-preview-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-preview-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.25;
}

.blog-preview-header p {
    color: var(--ink-muted);
    font-size: 0.9375rem;
    max-width: 360px;
    text-align: right;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover {
    border-color: rgba(17, 17, 17, 0.25);
    transform: translateY(-2px);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--ink-faint);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.post-card-tag {
    color: var(--ink-muted);
}

.post-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.post-card p {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.65;
    flex: 1;
}

.post-card-link {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.02em;
}

/* Blog listing page */
.page-header {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.0625rem;
    color: var(--ink-muted);
    max-width: 540px;
    line-height: 1.7;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tag-pill {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-muted);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tag-pill:hover,
.tag-pill[aria-current="page"] {
    color: var(--ink);
    border-color: rgba(17, 17, 17, 0.25);
    background: rgba(255, 255, 255, 0.8);
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 4rem;
}

.post-list-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.post-list-item:first-child {
    padding-top: 0;
}

.post-list-item:hover {
    opacity: 0.75;
}

.post-list-date {
    font-size: 0.8125rem;
    color: var(--ink-faint);
    padding-top: 0.25rem;
}

.post-list-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.625rem;
}

.post-list-content p {
    font-size: 0.9375rem;
    color: var(--ink-muted);
    line-height: 1.65;
    margin-bottom: 0.875rem;
}

.post-list-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Article */
.article-header {
    padding: 4rem 0 2.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.article-meta a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.article-meta a:hover {
    color: var(--ink);
}

.article-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.article-description {
    font-size: 1.125rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.article-content {
    padding: 2.5rem 0 4rem;
    border-top: 1px solid var(--border);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--ink);
}

.article-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--ink-muted);
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.25rem 1.5rem;
    color: var(--ink-muted);
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--ink);
    background: rgba(255, 255, 255, 0.45);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ink);
    line-height: 1.6;
}

.article-content a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content code {
    font-size: 0.875em;
    background: rgba(17, 17, 17, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 2px;
}

.article-content pre {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--ink);
    color: var(--cream);
    border-radius: 2px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-footer {
    padding: 2rem 0 4rem;
    border-top: 1px solid var(--border);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.back-link svg {
    width: 16px;
    height: 16px;
}

/* Newsletter CTA */
.newsletter {
    margin: 2rem 0 5rem;
    padding: 3.5rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--border);
    border-radius: 2px;
    text-align: center;
}

.newsletter h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.newsletter p {
    font-size: 0.9375rem;
    color: var(--ink-muted);
    max-width: 440px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    font-family: inherit;
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--cream);
    color: var(--ink);
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(17, 17, 17, 0.3);
}

.newsletter-form button {
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--ink);
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    opacity: 0.85;
}

/* CTA band */
.cta-band {
    margin: 2rem 0 5rem;
    padding: 4rem;
    background: var(--ink);
    color: var(--cream);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-band-text h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.cta-band-text p {
    font-size: 0.9375rem;
    opacity: 0.65;
    max-width: 420px;
}

.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--ink);
    background: var(--cream);
    padding: 0.875rem 1.75rem;
    border-radius: 2px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-light:hover {
    opacity: 0.88;
}

.btn-light svg {
    width: 16px;
    height: 16px;
}

/* Footer */
footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    font-size: 0.8125rem;
    color: var(--ink-faint);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

footer a {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--ink);
}

/* Responsive */
@media (max-width: 860px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 2rem;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.is-open {
        display: flex;
    }

    nav {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .nav-actions {
        order: 3;
        width: 100%;
        justify-content: flex-end;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 0 3rem;
        text-align: center;
    }

    .hero-content {
        max-width: none;
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-logo {
        width: 200px;
    }

    .hero-actions {
        justify-content: center;
    }

    .pillars-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .blog-preview-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-preview-header p {
        text-align: left;
    }

    .post-list-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .cta-band {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .cta-band-text p {
        max-width: none;
    }

    .newsletter-form {
        flex-direction: column;
    }
}
