@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&f[]=cabinet-grotesk@800&display=swap');

:root {
  --ink-primary:   #0f172a;
  --ink-secondary: #6b7280;
  --ink-tertiary:  #9ca3af;
  --surface:       #f5f6f8;
  --surface-2:     #eceff3;
  --surface-3:     #e1e5eb;
  --border:        #d9dee7;
  --border-strong: #b2bac7;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --ease-out:      cubic-bezier(0.23, 1, 0.32, 1);
  --nav-h:         64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; overflow-x: clip; }
body { font-family: 'Satoshi', system-ui, sans-serif; background: var(--surface); color: var(--ink-primary); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; width: 100%; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; width: 100%; }

.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: rgba(245,246,248,0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-back { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-secondary); transition: color 0.15s ease; }
.nav-back:hover { color: var(--ink-primary); }
.nav-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.article-hero { padding: 48px 0 0; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.article-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-tertiary); }
.article-date, .article-read { font-size: 13px; color: var(--ink-tertiary); }
.article-meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
.article-title { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.12; color: var(--ink-primary); max-width: 20ch; margin-bottom: 20px; }
.article-lead { font-size: 18px; color: var(--ink-secondary); line-height: 1.65; max-width: 58ch; margin-bottom: 36px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 56px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article-body { padding-bottom: 64px; }
.article-body h2 { font-family: 'Cabinet Grotesk', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 40px 0 14px; color: var(--ink-primary); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 16px; color: var(--ink-secondary); line-height: 1.75; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 1.25em; color: var(--ink-secondary); font-size: 16px; line-height: 1.75; }
.article-body li { margin-bottom: 8px; }
.article-body li strong { color: var(--ink-primary); font-weight: 600; }
.article-body blockquote { margin: 28px 0; padding: 20px 24px; background: var(--surface-2); border-left: 3px solid var(--ink-primary); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 16px; color: var(--ink-primary); font-weight: 500; line-height: 1.6; }

.article-cta { margin: 48px 0 64px; padding: 32px 36px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.article-cta h2 { font-family: 'Cabinet Grotesk', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.article-cta p { font-size: 14px; color: var(--ink-secondary); max-width: 46ch; }

.related { padding: 56px 0 80px; border-top: 1px solid var(--border); }
.related-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-tertiary); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s var(--ease-out); }
.related-card:hover { border-color: var(--border-strong); box-shadow: 0 8px 28px rgba(15,23,42,0.06); transform: translateY(-2px); }
.related-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--border); }
.related-card-body { padding: 18px 20px 20px; }
.related-card-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-tertiary); margin-bottom: 8px; }
.related-card-title { font-family: 'Cabinet Grotesk', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; border-radius: var(--radius-md); padding: 11px 20px; border: 1px solid transparent; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s var(--ease-out); white-space: nowrap; cursor: pointer; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink-primary); color: #fff; }
.btn-primary:hover { background: #1e293b; }
.btn-secondary { background: transparent; color: var(--ink-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-3); }

.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 12px; color: var(--ink-tertiary); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--ink-tertiary); transition: color 0.12s ease; }
.footer-links a:hover { color: var(--ink-secondary); }

@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 16px; }
  .article-cta { grid-template-columns: 1fr; padding: 24px 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-title { max-width: none; }
}
