:root {
    --ink: #3c3937;
    --paper: #fefcf8;
    --stone: #edebe8;
    --cream: #f4f1e2;
    --muted: #746f6b;
    --line: rgba(60, 57, 55, .13);
    --shadow: 0 24px 70px rgba(60, 57, 55, .08);
    --font-display: "Lora", Georgia, serif;
    --font-body: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --lift: -3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding-top: 96px;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 52% 42% at 17% 18%, rgba(255, 247, 194, .3), transparent 72%),
        linear-gradient(var(--paper), #f7f4eb 72%, var(--cream));
    pointer-events: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(calc(100% - 48px), 1180px); margin-inline: auto; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: white; font-weight: 800; }
.skip-link:focus { top: 18px; }

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 0 12px 30px rgba(60, 57, 55, .12);
    color: white;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 270ms cubic-bezier(.22, .61, .36, 1);
}
.button:hover { transform: translateY(var(--lift)); }
.button:active { transform: none; }
.button:focus-visible, .blog-card-link:focus-visible, .text-link:focus-visible { outline: 3px solid rgba(60, 57, 55, .28); outline-offset: 4px; }

.blog-hero { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 132px) 0 88px; }
.blog-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -360px;
    width: 900px;
    height: 640px;
    transform: translateX(-50%);
    border: 1px solid rgba(60, 57, 55, .09);
    border-radius: 50%;
    box-shadow: 0 0 0 100px rgba(255,255,255,.18), 0 0 0 220px rgba(255,255,255,.13);
    pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 820px; margin-inline: auto; text-align: center; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: .77rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.blog-hero h1, .article-header h1 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
.blog-hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
.blog-hero .intro { max-width: 660px; margin: 26px auto 0; color: #57514e; font-family: var(--font-display); font-size: clamp(1.06rem, 2vw, 1.3rem); line-height: 1.5; }

.blog-list { padding: 36px 0 128px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 500; }
.section-head p { max-width: 430px; margin: 0; color: var(--muted); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { min-width: 0; overflow: hidden; border-radius: 30px; background: white; box-shadow: 0 16px 52px rgba(60, 57, 55, .055); transition: transform 270ms cubic-bezier(.22, .61, .36, 1); }
.blog-card:hover { transform: translateY(var(--lift)); }
.blog-card:active { transform: none; }
.blog-card-link { min-height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.card-visual { height: 230px; overflow: hidden; border-bottom: 1px solid rgba(60, 57, 55, .06); background: #e9e6e1; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 28px 28px 30px; }
.card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-body h2 { margin: 17px 0 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; line-height: 1.19; letter-spacing: -.02em; text-wrap: balance; }
.card-body p { margin: 18px 0 0; color: #5b5551; font-size: .9rem; line-height: 1.55; }
.read-link { margin-top: auto; padding-top: 26px; font-size: .82rem; font-weight: 800; }

.article-header { padding: clamp(72px, 9vw, 120px) 0 48px; }
.article-head-copy { width: min(100%, 980px); margin-inline: auto; text-align: center; }
.article-header h1 { font-size: clamp(2.8rem, 5.5vw, 5.7rem); }
.article-dek { max-width: 760px; margin: 28px auto 0; color: #56504c; font-family: var(--font-display); font-size: clamp(1.12rem, 2.1vw, 1.45rem); line-height: 1.5; text-wrap: balance; }
.article-meta { justify-content: center; margin-top: 28px; }
.article-visual { width: min(calc(100% - 48px), 1180px); height: clamp(360px, 49vw, 610px); margin: 18px auto 0; overflow: hidden; border-radius: 30px; background: #ebe8e3; box-shadow: var(--shadow); }
.article-visual img { width: 100%; height: 100%; object-fit: cover; }
.article-body { width: min(calc(100% - 48px), 760px); margin: 0 auto; padding: 86px 0 112px; }
.article-body > p:first-child { margin-top: 0; color: var(--ink); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.62; }
.article-body h2 { margin: 64px 0 18px; font-family: var(--font-display); font-size: clamp(1.85rem, 4vw, 2.65rem); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.article-body p { margin: 0 0 24px; color: #4d4845; font-size: 1.06rem; line-height: 1.82; }
.sources { margin-top: 72px; padding-top: 42px; border-top: 1px solid var(--line); }
.sources h2 { margin-top: 0; }
.sources ol { margin: 24px 0 0; padding-left: 24px; }
.sources li { padding: 7px 0 7px 8px; color: var(--muted); }
.sources a { font-weight: 700; text-underline-offset: 3px; }

.article-end { padding: 76px 0; background: var(--cream); text-align: center; }
.article-end h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 500; }
.article-end p { max-width: 560px; margin: 18px auto 28px; color: #5a5551; }
.end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.text-link { min-height: 48px; display: inline-flex; align-items: center; padding: 11px 18px; font-size: .86rem; font-weight: 800; text-underline-offset: 4px; }

.site-footer { padding: 68px 0 42px; background: #e8e3d5; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 80px; }
.footer-brand img { width: 100px; }
.footer-col h2 { margin: 0 0 20px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.footer-col a { display: block; margin: 0 0 11px; color: #57514d; font-size: .8rem; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin: 60px 0 0; color: var(--muted); font-size: .72rem; text-align: center; }

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    body { padding-top: 82px; }
    .shell { width: min(calc(100% - 32px), 1180px); }
    .blog-hero { padding-top: 72px; }
    .blog-grid { grid-template-columns: 1fr; }
    .section-head { align-items: start; flex-direction: column; }
    .card-visual { height: 220px; }
    .article-visual { width: min(calc(100% - 32px), 1180px); height: min(78vw, 440px); border-radius: 22px; }
    .article-body { width: min(calc(100% - 38px), 760px); padding: 60px 0 88px; }
    .article-body > p:first-child { font-size: 1.2rem; }
    .article-body p { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 38px; }
    .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
    .button:hover, .blog-card:hover { transform: none; }
}
