:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --radius: 12px;
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  white-space: nowrap;
}

.brand-wordmark {
  font-weight: 800;
}

.brand-dot {
  color: var(--accent);
  font-weight: 800;
  margin: 0 1px;
}

.brand-light {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.925rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a {
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Hero / Featured */
.hero-section {
  padding: 40px 0 28px;
}

.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.featured-card h1 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text);
}

.featured-card p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 11px 20px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: #1e40af;
}

.featured-summary-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}

.featured-summary-box h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.featured-summary-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.featured-summary-box li + li {
  margin-top: 8px;
}

/* Posts Grid */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.section-header span {
  font-size: 0.875rem;
  color: var(--text-light);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 48px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.post-card .category {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.post-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.post-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-light);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.read-more {
  color: var(--accent);
  font-weight: 600;
}

/* Article Page */
.article-wrapper {
  max-width: 740px;
  margin: 36px auto 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-wrapper h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.article-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.article-body h2 {
  margin: 30px 0 12px;
  font-size: 1.32rem;
  letter-spacing: -0.015em;
}

.article-body h3 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
}

.article-body p {
  margin: 0 0 16px;
  color: #1e293b;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #1e293b;
}

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

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 0.95rem;
  color: #1e293b;
}

.offer-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offer-box-home {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.offer-box-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.offer-box h3,
.offer-box-home h3 {
  margin: 4px 0 8px;
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--text);
}

.offer-box p,
.offer-box-home p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.offer-meta {
  font-size: 0.82rem;
  color: var(--text-light);
}

.author-box {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-box h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.author-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.related-posts {
  max-width: 740px;
  margin: 0 auto 56px;
}

.related-posts h3 {
  font-size: 1.05rem;
  margin: 0 0 14px;
}

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

.related-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.related-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.disclaimer {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .featured-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .offer-box-home {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .posts-grid,
  .related-list {
    grid-template-columns: 1fr;
  }

  .article-wrapper {
    padding: 26px 20px;
    margin: 20px auto 40px;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.875rem;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
}
