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

:root {
  --primary: #ff385c;
  --primary-active: #e00b41;
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --hairline: #dddddd;
  --hairline-soft: #ebebeb;
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #f2f2f2;
  --on-primary: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --nav-h: 72px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--body); background: var(--canvas); line-height: 1.5; -webkit-font-smoothing: antialiased; }

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

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

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.brand-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: var(--ink);
  text-decoration: none;
}
.brand-logo svg { flex-shrink: 0; }
.brand-tagline { font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: background 0.15s;
}
.site-nav a:hover { background: var(--surface-soft); }
.site-nav a.active { color: var(--primary); }

.burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm);
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: all 0.2s;
}

/* MOBILE NAV */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--canvas); flex-direction: column;
  padding: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  align-self: flex-end; background: none; border: none;
  font-size: 28px; cursor: pointer; color: var(--ink); margin-bottom: 24px;
}
.mobile-nav a {
  font-size: 20px; font-weight: 600; color: var(--ink);
  padding: 16px 0; border-bottom: 1px solid var(--hairline-soft);
}

/* HERO */
.hero {
  padding: 80px 0 64px;
  background: var(--canvas);
}
.hero-kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; color: var(--ink); line-height: 1.2;
  max-width: 720px; margin-bottom: 20px;
}
.hero-lead {
  font-size: 18px; color: var(--muted); max-width: 560px;
  margin-bottom: 32px; line-height: 1.6;
}
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--primary); color: var(--on-primary);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  text-decoration: none; transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-active); }

/* HERO IMAGE PLACEHOLDER */
.hero-image-placeholder {
  width: 100%; max-width: 900px; margin: 0 auto;
  aspect-ratio: 16/7; background: var(--surface-strong);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
}

/* SECTIONS */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--hairline-soft); }

.section-title {
  font-size: 22px; font-weight: 700; color: var(--ink);
  margin-bottom: 8px;
}
.section-lead { font-size: 16px; color: var(--muted); margin-bottom: 40px; }

/* CARDS GRID */
.cards-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); overflow: hidden;
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.card-image {
  width: 100%; aspect-ratio: 16/9;
  background: var(--surface-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
}
.card-body { padding: 20px; }
.card-category {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 8px;
}
.card-title { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.35; }
.card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; }
.card-meta { font-size: 13px; color: var(--muted); margin-top: 12px; }
.card a { display: block; color: inherit; }
.card a:hover .card-title { color: var(--primary); }

/* FEATURED ARTICLE */
.featured-article {
  display: grid; gap: 40px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.featured-article-image {
  width: 100%; aspect-ratio: 4/3;
  background: var(--surface-strong); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
}
.featured-article-content {}
.featured-article h2 { font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 12px; line-height: 1.3; }
.featured-article p { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 20px; }
.btn-secondary {
  display: inline-flex; align-items: center;
  background: var(--canvas); color: var(--ink);
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline); font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--ink); }

/* ARTICLE PAGE */
.article-header { padding: 48px 0 32px; border-bottom: 1px solid var(--hairline); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }
.article-category-badge {
  display: inline-block; background: var(--primary); color: var(--on-primary);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.article-title { font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.article-meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 16px; }
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-summary {
  background: var(--surface-soft); border-left: 4px solid var(--primary);
  padding: 20px 24px; margin: 32px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px; font-style: italic; color: var(--body); line-height: 1.6;
}
.article-toc {
  background: var(--surface-soft); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 32px 0;
}
.article-toc h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); margin-bottom: 12px; }
.article-toc ol { padding-left: 20px; }
.article-toc li { font-size: 14px; color: var(--primary); margin-bottom: 4px; }
.article-toc a { color: var(--primary); }
.article-body { font-size: 16px; line-height: 1.75; color: var(--body); }
.article-body h2 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 40px 0 16px; }
.article-body h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; }
.article-image-wrap { margin: 32px 0; }
.article-image-wrap .img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: var(--surface-strong); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
}
.article-image-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.not-covered-box {
  background: var(--surface-strong); border-radius: var(--radius-sm);
  padding: 24px; margin: 32px 0;
}
.not-covered-box h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.not-covered-box ul { padding-left: 20px; }
.not-covered-box li { font-size: 14px; color: var(--body); margin-bottom: 6px; }
.related-articles { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.related-articles h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 24px; }

/* LAYOUT: ARTICLE COLUMNS */
.article-layout { display: grid; gap: 48px; grid-template-columns: 1fr 300px; align-items: start; }
.article-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-box { background: var(--surface-soft); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 24px; }
.sidebar-box h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); margin-bottom: 12px; }

/* FORMS */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font); color: var(--ink);
  background: var(--canvas); transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--primary); color: var(--on-primary);
  padding: 14px 32px; border: none; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: background 0.15s;
}
.form-submit:hover { background: var(--primary-active); }
.form-msg { display: none; background: var(--surface-soft); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 16px; margin-top: 16px; font-size: 15px; color: var(--ink); }

/* STATIC PAGES */
.static-header { padding: 48px 0 32px; border-bottom: 1px solid var(--hairline); }
.static-header h1 { font-size: 32px; font-weight: 700; color: var(--ink); }
.static-content { padding: 40px 0; max-width: 800px; }
.static-content h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.static-content p { font-size: 16px; line-height: 1.75; color: var(--body); margin-bottom: 16px; }
.static-content ul { padding-left: 24px; margin-bottom: 16px; }
.static-content li { font-size: 16px; line-height: 1.6; color: var(--body); margin-bottom: 6px; }

/* CONTACT */
.contact-layout { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; }

/* FOOTER */
.site-footer {
  background: var(--canvas); border-top: 1px solid var(--hairline);
  padding: 48px 0 24px; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--hairline-soft); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-copyright { font-size: 13px; color: var(--muted); }
.footer-disclaimer-note { font-size: 12px; color: var(--muted); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px; z-index: 300;
  max-width: 480px;
  background: var(--ink); color: var(--on-primary);
  border-radius: var(--radius-md); padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.cookie-banner p { font-size: 14px; line-height: 1.5; margin-bottom: 16px; color: #e0e0e0; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; font-family: var(--font); transition: opacity 0.15s;
}
.cookie-btn-accept { background: var(--primary); color: var(--on-primary); }
.cookie-btn-reject { background: rgba(255,255,255,0.15); color: #fff; }
.cookie-btn-settings { background: transparent; color: #ccc; text-decoration: underline; font-weight: 400; }
.cookie-btn:hover { opacity: 0.85; }

/* PAGE GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-strong); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .featured-article, .article-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .site-nav { display: none; }
  .burger { display: flex; flex-direction: column; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
  .article-header { padding: 32px 0 24px; }
}

/* UTILITY */
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.key-context-box {
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 24px; margin: 32px 0;
}
.key-context-box h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.key-context-box ul { padding-left: 20px; }
.key-context-box li { font-size: 15px; color: var(--body); margin-bottom: 8px; line-height: 1.5; }
