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

:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --primary: #f54e00;
    --primary-active: #d04200;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --success: #1f8a65;
    --error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

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

body {
    background: var(--canvas);
    color: var(--body);
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

/* NAV */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}
.nav-logo-mark {
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    padding: 6px 12px;
    border-radius: var(--rounded-sm);
    transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link--active {
    color: var(--ink);
    background: var(--surface-strong);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s;
}

/* HERO */
.hero {
    padding: 80px 0 64px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline-soft);
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 17px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 32px;
}
.hero-img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface-strong);
}
.hero-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}
.section--alt {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
}
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.section-title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-desc {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 48px;
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    transition: border-color 0.15s;
}
.card:hover {
    border-color: var(--hairline-strong);
}
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--rounded-md);
    margin-bottom: 16px;
    background: var(--surface-strong);
}
.card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 10px;
}
.card-title a {
    color: var(--ink);
}
.card-title a:hover {
    color: var(--primary);
}
.card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 16px;
}
.card-meta {
    font-size: 13px;
    color: var(--muted-soft);
}
.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}
.card-link:hover { color: var(--primary-active); }

/* ARTICLE PAGE */
.article-hero {
    padding: 64px 0 0;
    background: var(--canvas);
}
.article-meta-bar {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}
.article-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 20px;
}
.article-h1 {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.8px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 16px;
}
.article-deck {
    font-size: 18px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 24px;
}
.article-dateline {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hairline);
}
.article-cover {
    max-width: 800px;
    margin: 0 auto 0;
    padding: 0 24px;
}
.article-cover img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}
.article-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.4;
}
.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: var(--ink);
    line-height: 1.25;
    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 {
    padding-left: 20px;
    margin-bottom: 20px;
}
.article-body li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 6px;
    list-style: disc;
}
.article-body ol li { list-style: decimal; }
.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-body a:hover { color: var(--primary-active); }
.article-body blockquote {
    border-left: 3px solid var(--hairline-strong);
    padding: 12px 20px;
    margin: 28px 0;
    background: var(--canvas-soft);
    border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0;
}
.article-body blockquote p {
    font-size: 17px;
    color: var(--ink);
    margin: 0;
    font-style: italic;
}
.article-img-inline {
    margin: 32px 0;
}
.article-img-inline img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}
.fact-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-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; }

/* INTERNAL LINKS */
.related-articles {
    border-top: 1px solid var(--hairline);
    padding-top: 48px;
    margin-top: 0;
}
.related-articles h3 {
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.1px;
    margin-bottom: 24px;
}

/* PAGES */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}
.page-content h1 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 8px;
}
.page-updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--hairline);
}
.page-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin: 40px 0 12px;
}
.page-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 16px;
}
.page-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.page-content li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 6px;
    list-style: disc;
}
.page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* CONTACT FORM */
.contact-section {
    padding: 80px 0;
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
}
.contact-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}
.contact-inner .section-title { margin-bottom: 8px; }
.contact-inner .section-desc { margin-bottom: 32px; }
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color 0.15s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}
.form-group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}
.form-error {
    font-size: 13px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}
.form-error.visible { display: block; }
.form-status {
    font-size: 15px;
    color: var(--success);
    padding: 14px 16px;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    margin-top: 16px;
    display: none;
}
.form-status.visible { display: block; }

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    text-decoration: none;
}
.btn-secondary:hover { background: var(--surface-strong); }
.btn-submit {
    height: 44px;
    padding: 12px 24px;
    font-size: 15px;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 640px;
    background: var(--ink);
    color: var(--canvas);
    border-radius: var(--rounded-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 200;
    box-shadow: 0 4px 24px rgba(38,37,30,0.18);
    transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
    display: none;
}
.cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
.cookie-banner a { color: var(--canvas); text-decoration: underline; }
.cookie-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-btns .btn-primary {
    background: var(--primary);
}
.cookie-btns .btn-secondary {
    background: transparent;
    border-color: rgba(247,247,244,0.3);
    color: var(--canvas);
}
.cookie-btns .btn-secondary:hover { background: rgba(247,247,244,0.1); }

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 0;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}
.footer-tagline {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}
.footer-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}
.footer-disclaimer {
    font-size: 12px;
    color: var(--muted-soft);
}

/* LOADING SPINNER */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 38px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
    .hero-img { order: -1; }
    .hero-img img { height: 240px; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        padding: 12px 24px;
        gap: 4px;
    }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .card-grid { grid-template-columns: 1fr; }
    .card-grid--2 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
    .article-h1 { font-size: 28px; }
    .article-cover img { height: 260px; }
    .cookie-banner { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .section-title { font-size: 26px; }
    .hero h1 { font-size: 26px; }
}
