:root {
    --canvas:           #f7f7f4;
    --canvas-soft:      #fafaf7;
    --surface-card:     #ffffff;
    --surface-strong:   #e6e5e0;
    --hairline:         #e6e5e0;
    --hairline-soft:    #efeee8;
    --hairline-strong:  #cfcdc4;
    --ink:              #26251e;
    --body:             #5a5852;
    --muted:            #807d72;
    --muted-soft:       #a09c92;
    --primary:          #f54e00;
    --primary-active:   #d04200;
    --on-primary:       #ffffff;
    --success:          #1f8a65;
    --error:            #cf2d56;
    --font-sans:        'Inter', system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono:        'JetBrains Mono', monospace;
    --radius-xs:        4px;
    --radius-sm:        6px;
    --radius-md:        8px;
    --radius-lg:        12px;
    --radius-xl:        16px;
    --radius-pill:      9999px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--canvas);
    color: var(--body);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }

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

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ── Navigation ── */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav-wordmark {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.nav-wordmark span { color: var(--primary); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: var(--surface-strong); }
.nav-link--active { color: var(--ink); font-weight: 600; }
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    height: 40px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-card);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    height: 40px;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.btn-secondary:hover { background: var(--surface-strong); }

/* ── Hero ── */
.hero {
    padding: 80px 0 64px;
    border-bottom: 1px solid var(--hairline);
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.hero-badge {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-sans);
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    max-width: 800px;
    margin-bottom: 24px;
}
.hero-title em { font-style: normal; color: var(--primary); }
.hero-desc {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.hero-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 48px;
}
.hero-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    margin-top: 48px;
}

/* ── Section headings ── */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-sans);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
}
.section-desc {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 48px;
}

/* ── Article cards grid ── */
.articles-section {
    padding: 80px 0;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s;
}
.article-card:hover { border-color: var(--hairline-strong); }
.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.article-card-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
}
.article-card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    flex: 1;
}
.article-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--hairline-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.article-card-footer a {
    font-weight: 500;
    color: var(--ink);
    font-size: 13px;
    margin-left: auto;
}
.article-card-footer a:hover { color: var(--primary); }

/* ── Info band ── */
.info-band {
    padding: 80px 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.info-text h2 { margin-bottom: 16px; }
.info-text p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 16px;
}
.info-text p:last-child { margin-bottom: 0; }
.info-image {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    object-fit: cover;
    height: 340px;
}

/* ── Contact form ── */
.contact-section {
    padding: 80px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}
.form-input,
.form-textarea {
    background: var(--surface-card);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    height: 44px;
    outline: none;
    transition: border-color .15s;
    width: 100%;
}
.form-textarea { height: auto; min-height: 120px; resize: vertical; }
.form-input:focus, .form-textarea:focus { border-color: var(--ink); }
.form-message {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: none;
}
.form-message--success { background: #e8f5f0; color: var(--success); border: 1px solid #b8ddd0; }
.form-message--error   { background: #fdeef2; color: var(--error);   border: 1px solid #f2b8c6; }
.contact-info p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 12px; }
.contact-info a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Article page ── */
.article-page { padding: 64px 0 80px; }
.article-page-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.article-header { margin-bottom: 48px; }
.article-header .section-label { margin-bottom: 16px; }
.article-title {
    font-family: var(--font-sans);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 20px;
}
.article-intro {
    font-size: 18px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 16px;
}
.article-meta {
    font-size: 13px;
    color: var(--muted);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 24px;
}
.article-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    margin: 0 0 48px;
}
.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 48px 0 16px;
}
.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 12px;
}
.article-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 20px;
}
.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
}
.article-body li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 8px;
}
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--primary); }
.article-body figure {
    margin: 32px 0;
}
.article-body figure img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
}
.article-body figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.4;
}
.article-body blockquote {
    border-left: 3px solid var(--hairline-strong);
    padding: 8px 0 8px 20px;
    margin: 24px 0;
    font-size: 17px;
    color: var(--body);
    font-style: italic;
    line-height: 1.6;
}
.fact-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
}
.fact-box-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.fact-box p { margin-bottom: 8px; }
.fact-box p:last-child { margin-bottom: 0; }

.article-nav {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.article-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    background: var(--surface-card);
}
.article-nav a:hover { background: var(--surface-strong); }

/* ── Page (about / privacy / terms) ── */
.page-wrap { padding: 64px 0 80px; }
.page-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.page-title {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 8px;
}
.page-updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 48px;
}
.page-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin: 40px 0 12px;
}
.page-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 16px;
}
.page-body ul { margin: 0 0 16px 24px; }
.page-body li { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 6px; }
.page-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 64px 0 0;
    background: var(--canvas);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-wordmark {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}
.footer-wordmark span { color: var(--primary); }
.footer-tagline {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 8px;
    max-width: 280px;
}
.footer-col-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.footer-link {
    font-size: 14px;
    color: var(--body);
    display: block;
    margin-bottom: 8px;
    transition: color .15s;
}
.footer-link:hover { color: var(--ink); }
.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-copy {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
}
.footer-disclaimer {
    font-size: 12px;
    color: var(--muted-soft);
    line-height: 1.5;
}

/* ── Cookie banner ── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 560px;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: none;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
    z-index: 200;
    box-shadow: 0 4px 24px rgba(38,37,30,.08);
}
.cookie-banner.is-visible { display: flex; }
.cookie-text { font-size: 14px; color: var(--body); line-height: 1.5; }
.cookie-actions { display: flex; gap: 8px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-title { font-size: 48px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 8px 0; }
    .nav-links.is-open { display: flex; }
    .nav-hamburger { display: flex; }
    .hero-title { font-size: 36px; }
    .articles-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .article-title { font-size: 34px; }
}

@media (max-width: 640px) {
    .hero { padding: 48px 0; }
    .hero-title { font-size: 32px; letter-spacing: -0.5px; }
    .section-title { font-size: 28px; }
    .page-title { font-size: 32px; }
}
