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

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

:root {
    --canvas: #f5f1ec;
    --surface-1: #ffffff;
    --surface-2: #ede9e3;
    --ink: #111111;
    --ink-muted: #626260;
    --ink-subtle: #7b7b78;
    --hairline: #d3cec6;
    --hairline-soft: #e4e0d8;
    --accent: #2b6cb0;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-xxl: 24px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* NAV */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 56px;
    display: flex;
    align-items: center;
}

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

.site-nav .nav-logo {
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-nav .nav-logo span {
    color: var(--ink-muted);
    font-weight: 400;
    font-size: 13px;
    margin-left: 6px;
}

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

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

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

.nav-links .nav-link-active a {
    color: var(--ink);
    font-weight: 500;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

/* MAIN LAYOUT */
.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HERO */
.hero {
    padding: 80px 0 72px;
}

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

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--ink);
    max-width: 780px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-muted);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-image-wrap {
    margin-top: 48px;
    border-radius: var(--rounded-xl);
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--surface-1);
    max-height: 460px;
}

.hero-image-wrap img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

/* SECTION */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--ink-muted);
    max-width: 600px;
    margin-bottom: 48px;
}

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

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--surface-1);
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    overflow: hidden;
    transition: border-color 0.15s;
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-eyebrow {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 8px;
    text-transform: none;
}

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

.card-text {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 2px;
    transition: border-color 0.15s;
    display: inline-block;
}

.card-link:hover {
    text-decoration: none;
    border-color: var(--ink);
}

/* ARTICLE PAGE */
.article-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

.article-header {
    margin-bottom: 40px;
}

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

.article-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--ink);
    margin-bottom: 16px;
}

.article-meta {
    font-size: 13px;
    color: var(--ink-subtle);
}

.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--rounded-xl);
    border: 1px solid var(--hairline);
    margin-bottom: 40px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--ink);
    margin-top: 48px;
    margin-bottom: 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 12px;
}

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

.article-body ul, .article-body ol {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
}

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

.article-body blockquote {
    border-left: 3px solid var(--hairline);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--surface-1);
    border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
}

.article-body blockquote p {
    font-size: 18px;
    color: var(--ink-muted);
    font-style: italic;
    margin: 0;
}

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

.info-box h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.info-box ul {
    margin-bottom: 0;
}

.article-img {
    width: 100%;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin: 32px 0;
}

.article-img-caption {
    font-size: 13px;
    color: var(--ink-subtle);
    margin-top: -24px;
    margin-bottom: 32px;
}

/* FEATURE STRIP */
.feature-strip {
    background: var(--surface-1);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
    padding: 48px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* CONTACT FORM */
.contact-section {
    background: var(--surface-1);
    border-radius: var(--rounded-xxl);
    border: 1px solid var(--hairline);
    padding: 48px;
    max-width: 640px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.contact-section p {
    font-size: 15px;
    color: var(--ink-muted);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--ink);
}

.form-control {
    width: 100%;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
    min-height: 44px;
}

.form-control:focus {
    border-color: var(--ink);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.btn-primary {
    background: var(--ink);
    color: #ffffff;
    border: none;
    border-radius: var(--rounded-md);
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    min-height: 40px;
    transition: opacity 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.form-success {
    display: none;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 15px;
    color: var(--ink-muted);
    margin-top: 16px;
}

/* BREADCRUMB */
.breadcrumb-wrap {
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 13px;
    color: var(--ink-subtle);
}

.breadcrumb-list li + li::before {
    content: '/';
    color: var(--hairline);
}

.breadcrumb-list a {
    color: var(--ink-muted);
}

.breadcrumb-list a:hover {
    color: var(--ink);
    text-decoration: none;
}

/* PAGE CONTENT (about, privacy, terms) */
.page-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

.page-content h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.12;
    margin-bottom: 12px;
}

.page-content .page-meta {
    font-size: 13px;
    color: var(--ink-subtle);
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 12px;
}

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

.page-content ul, .page-content ol {
    font-size: 16px;
    line-height: 1.7;
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content li { margin-bottom: 6px; }

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline-soft);
    padding: 56px 24px 40px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--ink-subtle);
    line-height: 1.5;
    max-width: 220px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--ink-muted);
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: var(--ink);
    text-decoration: none;
}

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

.footer-bottom p {
    font-size: 12px;
    color: var(--ink-subtle);
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    border-radius: var(--rounded-xl);
    padding: 20px 28px;
    max-width: 600px;
    width: calc(100% - 48px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

#cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255,255,255,0.85);
}

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

.btn-cookie-accept {
    background: #fff;
    color: var(--ink);
    border: none;
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    min-height: 36px;
    white-space: nowrap;
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    min-height: 36px;
    white-space: nowrap;
}

.btn-cookie-reject:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* RELATED ARTICLES */
.related-section {
    border-top: 1px solid var(--hairline-soft);
    padding-top: 48px;
    margin-top: 64px;
}

.related-section h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    transition: border-color 0.15s;
    display: block;
}

.related-card:hover {
    border-color: var(--ink-muted);
    text-decoration: none;
}

.related-card-eyebrow {
    font-size: 12px;
    color: var(--ink-muted);
    margin-bottom: 6px;
}

.related-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.35;
}

/* ABOUT HEADER */
.about-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline-soft);
    margin-bottom: 48px;
}

.about-header h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.about-header p {
    font-size: 18px;
    color: var(--ink-muted);
    max-width: 560px;
    line-height: 1.6;
}

/* LOADING SPINNER */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .hero { padding: 48px 0; }
    .section { padding: 56px 0; }
    .hero-title { letter-spacing: -0.8px; }
    .cards-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .contact-section { padding: 32px 24px; }
    .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 56px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline-soft); padding: 12px 0; }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links li a { display: block; padding: 12px 24px; font-size: 15px; }
    .nav-toggle { display: flex; }
    .site-nav { position: relative; }
    #cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px 20px; }
    .cookie-actions { width: 100%; }
    .article-hero-img { height: 240px; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .hero-image-wrap img { height: 240px; }
    .article-wrap { padding: 40px 20px 64px; }
    .page-content { padding: 40px 20px 64px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
