/* === ROOT VARIABLES === */
:root {
    --bg: #F2EAD8;
    --bg-darker: #EAE0C9;
    --paper: #FBF6E7;
    --paper-edge: #ECE3CB;
    --ink: #2A1F15;
    --ink-soft: #5A4A3A;
    --ink-faint: #8A7E6F;
    --moss: #3D5238;
    --moss-deep: #2A3A26;
    --ochre: #B8732A;
    --rust: #8B3A1F;
    --gold: #C9A14A;
    --rule: #C8B894;
    --rule-fine: #DDD2B8;
}

/* === RESET / BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    font-size: clamp(15px, 1.05vw, 17px);
    background-image:
        radial-gradient(ellipse at 25% 15%, rgba(184, 115, 42, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 85%, rgba(61, 82, 56, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.3 0 0 0 0.07 0' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem clamp(1.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    background: rgba(242, 234, 216, 0.92);
    z-index: 100;
    backdrop-filter: blur(6px);
}
.wordmark {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    letter-spacing: 0.02em;
    color: var(--ink);
}
.wordmark .article {
    font-style: italic;
    font-weight: 400;
    color: var(--ochre);
}
.site-nav ul {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    list-style: none;
}
.site-nav a {
    color: var(--ink-soft);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--ochre); }
.cta-mini {
    border: 1px solid var(--ink);
    padding: 0.55rem 1.15rem;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    font-weight: 500;
}
.cta-mini:hover { background: var(--ink); color: var(--bg); }

/* === HERO === */
.hero {
    padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    width: clamp(200px, 28vw, 380px);
    height: clamp(200px, 28vw, 380px);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}
.hero::before { background: var(--moss); top: -10%; left: -8%; }
.hero::after { background: var(--ochre); bottom: -15%; right: -10%; }
.hero-meta {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--moss);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    position: relative;
}
.hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(4rem, 13vw, 11rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
    margin-bottom: 1.75rem;
    color: var(--ink);
    position: relative;
}
.hero h1 .article {
    display: block;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--moss);
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}
.hero-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    color: var(--ink-soft);
    max-width: 32ch;
    margin: 0 auto 2.5rem;
    line-height: 1.45;
    position: relative;
}
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.75rem;
    color: var(--ochre);
    font-size: 1.1rem;
    position: relative;
}
.hero-divider .line {
    width: clamp(40px, 8vw, 80px);
    height: 1px;
    background: var(--rule);
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--ink);
    color: var(--bg);
    padding: 1.1rem 2.5rem;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.hero-cta:hover {
    background: var(--moss);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 31, 21, 0.15);
}
.hero-cta::after {
    content: '→';
    transition: transform 0.3s;
}
.hero-cta:hover::after { transform: translateX(4px); }

/* === MANIFESTO === */
.manifesto {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
    background: linear-gradient(to bottom, transparent, var(--bg-darker) 30%, var(--bg-darker));
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    position: relative;
}
.manifesto-inner { max-width: 56rem; margin: 0 auto; }
.section-eyebrow {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ochre);
    margin-bottom: 1.5rem;
    text-align: center;
}
.manifesto h2 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--ink);
}
.manifesto h2 em { color: var(--moss); font-weight: 500; font-style: italic; }
.manifesto p {
    font-size: clamp(1.05rem, 1.3vw, 1.18rem);
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}
.pull-quote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--moss-deep);
    line-height: 1.4;
    text-align: center;
    margin: 3rem auto;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    max-width: 38rem;
}

/* === LATEST FROM ORCHARD === */
.latest-from-orchard {
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
}
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
.section-head p {
    color: var(--ink-soft);
    font-style: italic;
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
}
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.75rem;
    max-width: 78rem;
    margin: 0 auto;
}
.post-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    transition: all 0.35s ease;
    overflow: hidden;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(42, 31, 21, 0.08);
}
.post-card a { display: block; height: 100%; }
.post-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-darker);
}
.post-card-content { padding: 1.75rem 1.5rem; }
.post-card-date {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--ochre);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}
.post-card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--ink);
}
.post-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}
.read-more {
    color: var(--moss);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.95rem;
}

/* === CURRICULUM === */
.curriculum {
    padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 6vw, 5rem);
}
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    max-width: 78rem;
    margin: 0 auto;
}
.row-card {
    background: var(--paper);
    padding: 2rem 1.75rem;
    border: 1px solid var(--rule);
    position: relative;
    transition: all 0.35s ease;
}
.row-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--moss);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.row-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(42, 31, 21, 0.08);
}
.row-card:hover::before { transform: scaleX(1); }
.row-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--ochre);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.row-card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--ink);
}
.row-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* === MEMBERSHIP === */
.membership {
    padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 6vw, 5rem);
    background: var(--moss-deep);
    color: var(--bg);
    position: relative;
    overflow: hidden;
}
.membership::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.91 0 0 0 0 0.81 0 0 0 0.05 0' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise2)' /%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}
.membership-inner { max-width: 78rem; margin: 0 auto; position: relative; }
.membership .section-eyebrow { color: var(--gold); }
.membership .section-head h2 { color: var(--bg); }
.membership .section-head p { color: var(--gold); opacity: 0.85; }
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: 1.5rem;
}
.tier {
    background: var(--bg);
    color: var(--ink);
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.35s ease;
}
.tier:hover { transform: translateY(-5px); }
.tier.featured {
    background: var(--paper);
    border: 2px solid var(--gold);
}
.tier.featured::before {
    content: 'most planted';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--moss-deep);
    padding: 0.4rem 1.1rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 600;
    white-space: nowrap;
}
.tier-name {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ochre);
    margin-bottom: 0.85rem;
}
.tier-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: var(--ink);
}
.tier-price {
    font-family: 'Fraunces', serif;
    font-size: 2.6rem;
    font-weight: 300;
    margin: 1.5rem 0 0.75rem;
    color: var(--moss-deep);
}
.tier-price .currency { font-size: 1.2rem; vertical-align: super; }
.tier-price .period { font-size: 1rem; color: var(--ink-soft); font-style: italic; font-weight: 400; }
.tier-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.4;
}
.tier-features { list-style: none; margin-bottom: 2rem; }
.tier-features li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.92rem;
    color: var(--ink-soft);
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}
.tier-features li::before {
    content: '❀';
    color: var(--ochre);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.tier-cta {
    display: block;
    width: 100%;
    background: var(--ink);
    color: var(--bg);
    border: none;
    padding: 1.05rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.tier-cta:hover { background: var(--moss); }
.tier.featured .tier-cta { background: var(--ochre); }
.tier.featured .tier-cta:hover { background: var(--rust); }

/* === POST ARTICLE === */
.post-article, .page-article {
    max-width: 44rem;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3rem);
}
.post-header, .page-header { margin-bottom: 3rem; text-align: center; }
.post-meta {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.post-tag {
    color: var(--ochre);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-style: normal;
}
.post-article h1, .page-article h1 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
    color: var(--ink);
}
.post-subtitle, .page-subtitle {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: var(--ink-soft);
    line-height: 1.4;
    max-width: 36ch;
    margin: 0 auto;
}
.post-feature-image, .page-feature-image {
    margin: 0 calc(-1 * clamp(1.5rem, 5vw, 3rem)) 3rem;
    border-bottom: 1px solid var(--rule);
}
.post-feature-image figcaption {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--ink-faint);
    text-align: center;
    padding: 1rem;
}
.post-content, .page-content {
    font-size: clamp(1.05rem, 1.3vw, 1.18rem);
    line-height: 1.78;
    color: var(--ink);
}
.post-content p, .page-content p { margin-bottom: 1.5rem; }
.post-content h2, .page-content h2 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.2;
    margin: 3rem 0 1.25rem;
    color: var(--ink);
}
.post-content h3, .page-content h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    line-height: 1.3;
    margin: 2.25rem 0 1rem;
    color: var(--ink);
}
.post-content blockquote, .page-content blockquote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    color: var(--moss-deep);
    line-height: 1.45;
    margin: 2.5rem 0;
    padding: 1.5rem 0 1.5rem 2rem;
    border-left: 3px solid var(--ochre);
}
.post-content a, .page-content a {
    color: var(--ochre);
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s;
}
.post-content a:hover, .page-content a:hover { border-bottom-color: var(--ochre); }
.post-content ul, .post-content ol,
.page-content ul, .page-content ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
}
.post-content li, .page-content li { margin-bottom: 0.6rem; }
.post-content code, .page-content code {
    background: var(--paper-edge);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.92em;
    font-family: 'Menlo', 'Monaco', monospace;
    color: var(--rust);
}
.post-content pre, .page-content pre {
    background: var(--ink);
    color: var(--bg);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 2rem 0;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}
.post-content pre code, .page-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.post-content hr, .page-content hr {
    border: none;
    text-align: center;
    margin: 3rem 0;
}
.post-content hr::before, .page-content hr::before {
    content: '❦';
    color: var(--ochre);
    font-size: 1.5rem;
    letter-spacing: 0.5em;
}
.post-content img, .page-content img {
    margin: 2rem 0;
    border: 1px solid var(--rule);
}

/* Drop cap on first paragraph of post body */
.post-content > p:first-of-type::first-letter {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 4em;
    float: left;
    line-height: 0.85;
    margin: 0.1em 0.1em 0 0;
    color: var(--ochre);
}

/* === POST FOOTER === */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    text-align: center;
}
.post-author .signed {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--moss);
    font-size: 1.05rem;
}
.post-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.post-tag-pill {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--ochre);
    border: 1px solid var(--rule);
    padding: 0.35rem 0.85rem;
    transition: all 0.2s;
}
.post-tag-pill:hover { background: var(--ochre); color: var(--bg); }

/* === PAYWALL === */
.paywall {
    margin: 3rem calc(-1 * clamp(1.5rem, 5vw, 3rem)) 0;
    padding: 3rem clamp(1.5rem, 5vw, 3rem);
    background: var(--moss-deep);
    color: var(--bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.paywall::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise3'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.91 0 0 0 0 0.81 0 0 0 0.05 0' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise3)' /%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}
.paywall-inner { position: relative; max-width: 32rem; margin: 0 auto; }
.paywall .section-eyebrow { color: var(--gold); }
.paywall h3 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    margin-bottom: 1rem;
}
.paywall p {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
}
.paywall-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.paywall-cta, .paywall-cta-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}
.paywall-cta {
    background: var(--ochre);
    color: var(--ink);
}
.paywall-cta:hover { background: var(--gold); }
.paywall-cta-secondary {
    background: transparent;
    color: var(--bg);
    border: 1px solid var(--gold);
}
.paywall-cta-secondary:hover { background: var(--gold); color: var(--moss-deep); }

/* === TAG ARCHIVE === */
.tag-archive {
    padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 6vw, 5rem);
    max-width: 78rem;
    margin: 0 auto;
}
.tag-header { text-align: center; margin-bottom: 4rem; }
.tag-header h1 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    text-transform: capitalize;
}
.tag-description {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--ink-soft);
    font-size: 1.15rem;
    max-width: 38rem;
    margin: 0 auto;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.75rem;
}

/* === ERROR PAGE === */
.error-page {
    padding: clamp(5rem, 12vw, 9rem) clamp(1.5rem, 6vw, 5rem);
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-inner { max-width: 32rem; margin: 0 auto; }
.error-code {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(5rem, 14vw, 10rem);
    color: var(--ochre);
    line-height: 1;
    margin: 1rem 0;
}
.error-page h1 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--ink);
}
.error-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--ink-soft);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    font-family: 'Fraunces', serif;
    font-style: italic;
}
.pagination a {
    color: var(--ochre);
    transition: color 0.2s;
}
.pagination a:hover { color: var(--rust); }
.pagination .page-number { color: var(--ink-soft); }

/* === FOOTER === */
.site-footer {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem) 2.5rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--rule);
    text-align: center;
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.footer-ornament {
    margin: 0 auto 2rem;
    color: var(--ochre);
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    letter-spacing: 0.7em;
    opacity: 0.5;
    padding-left: 0.7em;
}
.site-footer p { margin-bottom: 0.5rem; }
.site-footer .signed {
    font-family: 'Fraunces', serif;
    font-style: italic;
    margin-top: 1.5rem;
    color: var(--moss);
    font-size: 1.05rem;
}

/* === KOENIG (Ghost editor) CARDS === */
/* Width modifiers used by Ghost's editor for wide and full-bleed images/embeds */

.kg-width-wide {
    position: relative;
    width: calc(100% + 8rem);
    margin-left: -4rem;
    margin-right: -4rem;
    max-width: none;
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
}

@media (max-width: 700px) {
    .kg-width-wide {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Image cards */
.kg-image-card {
    margin: 2.5rem 0;
}
.kg-image-card img {
    width: 100%;
    height: auto;
    border: 1px solid var(--rule);
    display: block;
}
.kg-image-card figcaption,
.kg-card figcaption {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.92rem;
    color: var(--ink-faint);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Bookmark cards */
.kg-bookmark-card {
    margin: 2rem 0;
    border: 1px solid var(--rule);
    background: var(--paper);
    overflow: hidden;
    transition: all 0.25s;
}
.kg-bookmark-card:hover { border-color: var(--ochre); }
.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}
.kg-bookmark-content {
    flex: 1;
    padding: 1.25rem 1.5rem;
}
.kg-bookmark-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.kg-bookmark-description {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.kg-bookmark-metadata {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.82rem;
    color: var(--ink-faint);
    font-family: 'Fraunces', serif;
    font-style: italic;
}
.kg-bookmark-thumbnail { flex: 0 0 200px; }
.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Embed and gallery cards */
.kg-embed-card,
.kg-gallery-card,
.kg-video-card,
.kg-audio-card,
.kg-file-card {
    margin: 2.5rem 0;
}
.kg-gallery-image img { border: 1px solid var(--rule); }

/* Callout cards */
.kg-callout-card {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--paper);
    border-left: 4px solid var(--ochre);
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.55;
}
.kg-callout-card-grey { background: var(--bg-darker); border-left-color: var(--ink-soft); }

/* Toggle cards */
.kg-toggle-card {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--rule);
    background: var(--paper);
}
.kg-toggle-heading-text {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--ink);
}
.kg-toggle-content {
    margin-top: 1rem;
    color: var(--ink-soft);
}

/* Button cards */
.kg-button-card {
    margin: 2rem 0;
    text-align: center;
}
.kg-button-card .kg-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--ink);
    color: var(--bg);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.25s;
    text-decoration: none;
}
.kg-button-card .kg-btn:hover { background: var(--moss); }

/* Header cards */
.kg-header-card {
    margin: 2.5rem 0;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--rule);
}
.kg-header-card-text {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--ink);
}

/* Product and CTA cards */
.kg-product-card,
.kg-cta-card {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--rule);
}

/* === GHOST PORTAL CUSTOMIZATION === */
:root {
    --gh-portal-button-color: var(--ochre);
    --gh-portal-button-text-color: #ffffff;
}

/* === ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.75s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.85s; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.95s; }
.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
    .site-nav ul { display: none; }
    .hero h1 { font-size: clamp(3rem, 16vw, 6rem); }
    .site-header { padding: 1.25rem 1.5rem; }
    .post-feature-image, .page-feature-image { margin-left: -1.5rem; margin-right: -1.5rem; }
    .paywall { margin-left: -1.5rem; margin-right: -1.5rem; }
    .paywall-actions { flex-direction: column; }
    .paywall-cta, .paywall-cta-secondary { width: 100%; }
}
