@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

:root {
    --canvas: #f5f1ec;
    --surface-1: #ffffff;
    --surface-2: #ede9e2;
    --hairline: #d3cec6;
    --hairline-soft: #e5e0d9;
    --ink: #111111;
    --ink-muted: #626260;
    --ink-subtle: #7b7b78;
    --ink-tertiary: #9c9fa5;
    --inverse-canvas: #000000;
    --inverse-ink: #ffffff;
    --accent: #ff5600;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

.top-nav {
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 200;
    height: 56px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-brand {
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--ink);
    line-height: 1;
}

.nav-mobile {
    display: none;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
}

.nav-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-mobile a {
    font-size: 15px;
    color: var(--ink-muted);
    text-decoration: none;
}

.nav-mobile.open { display: block; }

.hero {
    padding: 96px 0;
    text-align: center;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.4px;
    color: var(--ink);
    max-width: 820px;
    margin: 0 auto 24px;
}

.hero-body {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.1px;
    color: var(--ink-muted);
    max-width: 580px;
    margin: 0 auto;
}

.section { padding: 96px 0; }

.section-sm { padding: 64px 0; }

.section-header { margin-bottom: 48px; }

.section-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 12px;
}

.section-body {
    font-size: 18px;
    color: var(--ink-muted);
    line-height: 1.5;
    max-width: 620px;
}

.divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.card:hover { border-color: var(--ink-subtle); }

.card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--surface-2);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-img-wrap img { transform: scale(1.03); }

.card-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.card-category {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-subtle);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-bottom: 10px;
}

.card-body {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.55;
    flex: 1;
}

.card-meta {
    font-size: 12px;
    color: var(--ink-tertiary);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--hairline-soft);
}

.article-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

.article-back {
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 40px;
    transition: color 0.15s;
}

.article-back:hover { color: var(--ink); }

.article-category {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.article-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 16px;
}

.article-lead {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.2px;
    color: var(--ink-muted);
    margin-bottom: 24px;
}

.article-meta {
    font-size: 13px;
    color: var(--ink-subtle);
    padding-top: 16px;
    border-top: 1px solid var(--hairline);
    margin-bottom: 48px;
}

.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 48px;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin: 48px 0 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.2px;
    color: var(--ink);
    margin: 32px 0 12px;
}

.article-body p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-body li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 8px;
}

.article-body a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--hairline);
    transition: text-decoration-color 0.15s;
}

.article-body a:hover { text-decoration-color: var(--ink); }

.info-box {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
}

.info-box-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 12px;
}

.info-box p,
.info-box li {
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.info-box ul { padding-left: 20px; }

.disclaimer {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 32px;
}

.related-articles { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--hairline); }

.related-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-bottom: 24px;
}

.form-section {
    background: var(--surface-1);
    border-radius: 24px;
    padding: 48px;
    border: 1px solid var(--hairline);
}

.form-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 16px;
    color: var(--ink-muted);
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.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(--canvas);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--ink);
    font-family: inherit;
    transition: border-color 0.2s, background-color 0.2s;
    min-height: 44px;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ink-muted);
    background: var(--surface-1);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group input.error,
.form-group textarea.error { border-color: #c0392b; }

.btn {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: opacity 0.15s;
    min-height: 40px;
    line-height: 1.4;
}

.btn:hover { opacity: 0.82; }
.btn:active { opacity: 0.7; }

.btn-primary {
    background: var(--ink);
    color: var(--inverse-ink);
}

.btn-secondary {
    background: var(--surface-1);
    color: var(--ink);
    border: 1px solid var(--hairline);
}

.form-status {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    margin-top: 16px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--inverse-canvas);
    color: var(--inverse-ink);
    padding: 18px 24px;
    z-index: 999;
    display: none;
}

.cookie-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}

.cookie-text a { color: rgba(255,255,255,0.9); }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
    background: white;
    color: #111;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
}

.footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    color: var(--ink-subtle);
    line-height: 1.55;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13px;
    color: var(--ink-subtle);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--ink); }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px;
    margin-top: 48px;
    border-top: 1px solid var(--hairline-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-copy {
    font-size: 12px;
    color: var(--ink-tertiary);
}

.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 64px;
}

.page-eyebrow {
    font-size: 13px;
    color: var(--ink-subtle);
    margin-bottom: 12px;
}

.page-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 12px;
}

.page-updated {
    font-size: 13px;
    color: var(--ink-tertiary);
}

.page-body h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin: 40px 0 14px;
}

.page-body h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin: 28px 0 10px;
}

.page-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.page-body ul,
.page-body ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.page-body li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.page-body a {
    color: var(--ink);
    text-decoration: underline;
}

.page-content {
    max-width: 800px;
    padding-bottom: 96px;
}

@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 768px) {
    .hero { padding: 64px 0; }
    .hero-title { font-size: 36px; letter-spacing: -0.8px; }
    .hero-body { font-size: 16px; }
    .section { padding: 64px 0; }
    .section-title { font-size: 28px; letter-spacing: -0.4px; }
    .card-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .form-section { padding: 32px 24px; }
    .article-title { font-size: 28px; }
    .article-hero-img { height: 240px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-title { font-size: 28px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .footer-inner { grid-template-columns: 1fr; }
}
