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

/* === DESIGN TOKENS === */
:root {
  --navy: #0d1b2a;
  --navy-mid: #152a40;
  --navy-lite: #1e3a5f;
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --violet: #7c3aed;
  --text: #1e293b;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --bg: #f0f4f8;
  --surface: #ffffff;
  --border: #dde3ea;
  --shadow-sm: 0 1px 3px rgba(13,27,42,.07), 0 2px 8px rgba(13,27,42,.05);
  --shadow-md: 0 4px 16px rgba(13,27,42,.10), 0 1px 4px rgba(13,27,42,.06);
}

/* === BASE === */
body {
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--sky-dark); text-decoration: none; }
a:hover { color: var(--sky); text-decoration: underline; }

/* === SITE HEADER === */
.site-header { background: var(--navy); }
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--sky);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.logo-mark svg { display: block; }
.logo-text { display: flex; flex-direction: column; gap: 3px; }
.site-name {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1;
}
.site-name em { color: var(--sky); font-style: normal; }
.site-tagline {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

/* === SITE NAV === */
.site-nav { background: var(--navy-mid); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  color: #8fa3bc;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 14px;
  display: inline-block;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--sky); text-decoration: none; }

/* === PAGE WRAPPER === */
.page-wrap { max-width: 1080px; margin: 44px auto 0; padding: 0 28px 64px; }

/* === HOME: HERO INTRO === */
.hero {
  background: var(--surface);
  border-radius: 12px;
  padding: 44px 48px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--sky);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(14,165,233,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.hero p { color: var(--text-mid); margin-bottom: 12px; font-size: 15.5px; }
.hero a { color: var(--sky-dark); text-decoration: underline; }

/* === HOME: ARTICLES SECTION === */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--text-light);
}
.section-line { flex: 1; height: 1px; background: var(--border); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}

/* === CARD === */
.card {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img { width: 100%; display: block; aspect-ratio: 820/400; object-fit: cover; }
.card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--sky-dark);
  margin-bottom: 8px;
}
.card h2 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-dark);
  text-decoration: none;
}
.card-link:hover { color: var(--sky); text-decoration: none; }
.card-link::after { content: '→'; }

/* === ARTICLE PAGE === */
.article-layout { max-width: 780px; }
.breadcrumb {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--text-light); text-decoration: underline; }
.breadcrumb span { opacity: .5; }
.article-hero { width: 100%; border-radius: 10px; margin-bottom: 32px; display: block; }
.article-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.article-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-meta::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}

/* Article content */
.article-body h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin: 34px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--sky);
}
.article-body p { margin-bottom: 18px; color: var(--text); line-height: 1.78; }
.article-body a { color: var(--sky-dark); text-decoration: underline; }
.article-body a:hover { color: var(--sky); }

.callout {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--sky);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--navy-lite);
  line-height: 1.7;
}

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: #4a6280;
  text-align: center;
  padding: 30px 28px;
  font-size: 13px;
  margin-top: 0;
}
.site-footer a { color: #64849e; text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 680px) {
  .hero { padding: 28px 24px; }
  .hero h1 { font-size: 22px; }
  .article-title { font-size: 22px; }
  .article-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 20px 20px; }
  .nav-inner { padding: 0 20px; }
  .page-wrap { padding: 0 20px 48px; }
}
