@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::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 {
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--canvas);
    color: var(--body);
    line-height: 1.5;
    font-weight: 400;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.11px;
    line-height: 1.3;
}

.nav-logo span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--ink);
}

.nav-hamburger svg { width: 24px; height: 24px; }

/* HERO */
.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.hero-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 800px;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-meta {
    font-size: 13px;
    color: var(--muted);
}

/* SECTION */
.section { padding: 80px 0; }
.section-border { border-bottom: 1px solid var(--hairline); }

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 32px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.5;
    margin-bottom: 48px;
}

/* CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body { padding: 24px; }

.card-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.card-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: 12px;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary); }

.card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: 20px;
}

.card-date {
    font-size: 13px;
    color: var(--muted);
}

/* ARTICLE */
.article-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); }

.article-hero .breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.article-hero .breadcrumb a { color: var(--muted); }
.article-hero .breadcrumb a:hover { color: var(--ink); }
.article-hero .breadcrumb span { color: var(--muted-soft); }

.article-hero h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: 20px;
}

.article-hero .lead {
    font-size: 18px;
    color: var(--body);
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 20px;
}

.article-layout {
    padding: 64px 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}

.article-body { max-width: 680px; }

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 48px 0 16px;
    line-height: 1.25;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    margin: 32px 0 12px;
    line-height: 1.3;
}

.article-body p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 20px;
    letter-spacing: 0.08px;
}

.article-body ul, .article-body ol {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin: 0 0 20px 24px;
}

.article-body li { margin-bottom: 8px; }

.article-body blockquote {
    border-left: 3px solid var(--primary);
    padding: 16px 20px;
    margin: 32px 0;
    background: var(--surface-card);
    border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
}

.article-body blockquote p {
    font-size: 18px;
    font-style: italic;
    color: var(--ink);
    margin: 0;
}

.article-body .article-img {
    width: 100%;
    border-radius: var(--rounded-lg);
    margin: 32px 0;
    border: 1px solid var(--hairline);
}

.article-body .img-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: -24px;
    margin-bottom: 32px;
    text-align: center;
}

.article-body .info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin: 32px 0;
}

.article-body .info-box h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 12px;
}

.article-body .info-box p { margin: 0; font-size: 14px; }

.article-body a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--hairline-strong);
    text-underline-offset: 3px;
}

.article-body a:hover { text-decoration-color: var(--ink); }

.article-sidebar { position: sticky; top: 80px; }

.sidebar-widget {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.sidebar-widget h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--hairline-soft); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    color: var(--body-strong);
    line-height: 1.4;
}
.sidebar-links a:hover { color: var(--primary); }

/* FEATURED HERO ARTICLE */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.featured-article .featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}

.featured-content .tag {
    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(--rounded-pill);
    margin-bottom: 20px;
}

.featured-content h2 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.featured-content h2 a { color: inherit; }
.featured-content h2 a:hover { color: var(--primary); }

.featured-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 24px;
}

.featured-content .date { font-size: 13px; color: var(--muted); }

/* BUTTON */
.btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    line-height: 1.0;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
}

.btn-secondary:hover { background: var(--surface-strong); }

/* FORM */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-strong);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }

.form-group textarea { height: 120px; resize: vertical; }

.form-msg {
    display: none;
    padding: 16px;
    border-radius: var(--rounded-md);
    font-size: 14px;
    margin-top: 16px;
}

.form-msg.success {
    background: #e8f5f0;
    color: var(--success);
    border: 1px solid #b8ddd2;
}

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-brand .logo span { color: var(--primary); }

.footer-brand p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    max-width: 240px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 20px 24px;
    z-index: 1000;
    display: none;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text { font-size: 14px; line-height: 1.5; flex: 1; }
.cookie-text a { color: var(--canvas); text-decoration: underline; }

.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

.cookie-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    cursor: pointer;
    border: none;
}

.cookie-btn-accept { background: var(--primary); color: var(--on-primary); }
.cookie-btn-reject { background: transparent; color: var(--canvas); border: 1px solid rgba(255,255,255,0.3); }

/* PAGE HEADER */
.page-header {
    padding: 64px 0;
    border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.5;
}

.page-content { padding: 64px 0; }

.page-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 48px 0 16px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 16px;
    max-width: 720px;
}

.page-content ul {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin: 0 0 16px 24px;
    max-width: 720px;
}

.page-content li { margin-bottom: 8px; }

.page-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hairline-strong); }

/* CONTACT FORM SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h3 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 15px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.contact-detail span {
    font-size: 14px;
    color: var(--body);
}

.contact-detail strong { color: var(--ink); }

/* DIVIDER */
.divider { height: 1px; background: var(--hairline); margin: 48px 0; }

/* BADGE */
.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(--rounded-pill);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 56px; letter-spacing: -1.5px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-article { grid-template-columns: 1fr; gap: 32px; }
    .featured-article .featured-img { height: 280px; }
    .article-layout { grid-template-columns: 1fr; gap: 48px; }
    .article-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .hero { padding: 48px 0; }
    .hero h1 { font-size: 36px; letter-spacing: -0.9px; }
    .hero-desc { font-size: 16px; }
    .section { padding: 48px 0; }
    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid-2 { grid-template-columns: 1fr; }
    .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: 16px 24px; gap: 0; }
    .nav-links.open { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--hairline-soft); }
    .nav-links a { display: block; padding: 12px 0; }
    .nav-hamburger { display: flex; }
    .site-nav { position: relative; }
    .article-hero h1 { font-size: 32px; letter-spacing: -0.5px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; }
    .page-header h1 { font-size: 36px; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 32px; }
    .section-title { font-size: 28px; }
}
