@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;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--canvas);
    color: var(--body);
    font-size: 16px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TOP NAV ===== */
.top-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}
.nav-logo span { color: var(--primary); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
}
.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 16px;
}
.nav-mobile a {
    font-size: 15px;
    font-weight: 500;
    color: var(--body);
}
.nav-mobile.open { display: flex; }

/* ===== HERO ===== */
.hero-band {
    padding: 80px 0;
    background: var(--canvas);
}
.hero-band h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 780px;
    margin-bottom: 24px;
}
.hero-band .hero-sub {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.6;
}
.badge-pill {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: 9999px;
    padding: 4px 10px;
    margin-bottom: 20px;
}

/* ===== SECTION LABELS ===== */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.section-head {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 12px;
}
.section-sub {
    font-size: 16px;
    color: var(--body);
    max-width: 580px;
    line-height: 1.6;
}

/* ===== FEATURE CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 15px;
    color: var(--body);
    line-height: 1.6;
}
.feature-card .card-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.article-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card-body .cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.article-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 10px;
}
.article-card-body p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    flex: 1;
}
.article-card-body .read-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.article-card-body .read-link:hover { border-color: var(--primary); }

/* ===== DIVIDER ===== */
.divider {
    border: none;
    border-top: 1px solid var(--hairline);
}

/* ===== HERO IMAGE ===== */
.hero-img-wrap {
    margin-top: 56px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline);
}
.hero-img-wrap img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

/* ===== ARTICLE PAGE ===== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
    padding: 64px 0 80px;
}
.article-content h1 {
    font-size: 42px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.84px;
    margin-bottom: 16px;
}
.article-content .article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.article-content .article-lead {
    font-size: 18px;
    color: var(--body-strong);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}
.article-content h2 {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.325px;
    margin: 40px 0 16px;
}
.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
}
.article-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 20px;
}
.article-content ul, .article-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 8px;
}
.article-content .article-img {
    margin: 32px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--hairline);
}
.article-content .article-img img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}
.article-content .img-caption {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 0 0;
}
.article-content .info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--ink);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 28px 0;
}
.article-content .info-box p {
    margin: 0;
    font-size: 15px;
}
.article-sidebar .sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.article-sidebar h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.article-sidebar ul { list-style: none; }
.article-sidebar li {
    border-bottom: 1px solid var(--hairline-soft);
    padding: 10px 0;
    font-size: 15px;
    color: var(--body);
}
.article-sidebar li:last-child { border-bottom: none; }
.article-sidebar li a { color: var(--body); }
.article-sidebar li a:hover { color: var(--ink); }

/* ===== PAGES (about/privacy/terms) ===== */
.page-layout {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 0 80px;
}
.page-layout h1 {
    font-size: 42px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.84px;
    margin-bottom: 12px;
}
.page-layout .page-date {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
}
.page-layout h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin: 36px 0 12px;
}
.page-layout p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 18px;
}
.page-layout ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 18px;
}
.page-layout ul li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ===== CONTACT FORM ===== */
.contact-section {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 40px;
    margin-top: 48px;
}
.contact-section h2 {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.325px;
    margin-bottom: 8px;
}
.contact-section .form-sub {
    font-size: 15px;
    color: var(--body);
    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: 8px;
    padding: 12px 16px;
    height: 44px;
    font-size: 15px;
    color: var(--ink);
    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-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-submit {
    background: var(--ink);
    color: var(--canvas);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.btn-submit:hover { background: var(--primary); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
}
.form-message.success {
    display: block;
    background: #e6f4f0;
    color: var(--semantic-success);
    border: 1px solid #b3ddd4;
}
.form-message.error {
    display: block;
    background: #fde8ed;
    color: var(--semantic-error);
    border: 1px solid #f4b8c6;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 48px 0 32px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}
.footer-brand .brand-name span { color: var(--primary); }
.footer-brand p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    max-width: 280px;
}
.footer-col h5 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.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;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 20px 24px;
    z-index: 9999;
    display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-inner p {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}
.cookie-inner a { color: var(--canvas); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject {
    background: transparent;
    color: var(--canvas);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s;
}
.btn-cookie-reject:hover { border-color: rgba(255,255,255,0.7); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    padding: 16px 0;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted-soft); }

/* ===== DISCLAIMER STRIP ===== */
.disclaimer-strip {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
    padding: 12px 0;
    text-align: center;
}
.disclaimer-strip p {
    font-size: 13px;
    color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-band h1 { font-size: 56px; letter-spacing: -1.5px; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .articles-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .hero-band { padding: 48px 0; }
    .hero-band h1 { font-size: 36px; letter-spacing: -1px; }
    section { padding: 56px 0; }
    .cards-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .article-content h1 { font-size: 30px; }
    .section-head { font-size: 28px; }
    .contact-section { padding: 28px 20px; }
}
@media (max-width: 640px) {
    .hero-band h1 { font-size: 32px; }
}
