@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

:root {
  --ink: #111210;
  --ink-2: #3a3a38;
  --ink-3: #6b6b68;
  --ink-4: #9a9a96;
  --paper: #fafaf8;
  --paper-2: #f2f2ef;
  --paper-3: #e8e8e4;
  --accent: #1a6b4a;
  --accent-light: #e8f4ee;
  --accent-mid: #2d9468;
  --amber: #c07c1a;
  --amber-light: #fdf3e1;
  --red-soft: #c0392b;
  --border: rgba(0,0,0,0.08);
  --border-mid: rgba(0,0,0,0.13);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max: 1160px;
  --col: 720px;
  --radius: 6px;
  --radius-lg: 12px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─── */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-logo .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-links .nav-cta a {
  background: var(--ink);
  color: var(--paper);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
}

.nav-links .nav-cta a:hover { background: var(--accent); color: #fff; }

/* ─── Disclosure banner ─── */
.disclosure-bar {
  background: var(--amber-light);
  border-bottom: 1px solid rgba(192,124,26,0.18);
  padding: 0.5rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.4;
}

.disclosure-bar a { color: var(--amber); }

/* ─── Hero ─── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--ink-3);
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 24px;
  padding: 10px 22px;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover { background: var(--accent); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-mid);
}

.btn-secondary:hover { border-color: var(--ink); background: var(--paper-2); }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card:nth-child(2) { margin-left: 1.5rem; }

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-icon.green { background: var(--accent-light); }
.stat-icon.amber { background: var(--amber-light); }
.stat-icon.blue { background: #e8f0fd; }

.stat-text .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  display: block;
}

.stat-text .label {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ─── Section headers ─── */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

/* ─── Posts grid ─── */
.posts-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.posts-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.posts-header .see-all {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.post-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.card-thumb.data { background: linear-gradient(135deg, #e8f4ee 0%, #d4ecdf 100%); }
.card-thumb.cyber { background: linear-gradient(135deg, #e8f0fd 0%, #d0e3fb 100%); }
.card-thumb.tech { background: linear-gradient(135deg, #fdf3e1 0%, #fbe5c0 100%); }
.card-thumb .thumb-label {
  position: absolute;
  bottom: 10px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }

.card-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card-category.amber-cat { color: var(--amber); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-4);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.card-read {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Site divider ─── */
.divider {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── Topics strip ─── */
.topics-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.topics-header { margin-bottom: 1.5rem; }

.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.topic-pill {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  text-decoration: none;
  transition: all 0.15s;
}

.topic-pill:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--paper-2);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-4);
}

.footer-bottom a { color: var(--ink-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

.footer-disclosure {
  background: var(--amber-light);
  border: 1px solid rgba(192,124,26,0.15);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-disclosure strong { color: var(--ink); }

/* ─── Article layout ─── */
.article-hero {
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 3rem;
  background: var(--paper-2);
}

.article-hero-inner {
  max-width: var(--col);
  margin: 0 auto;
}

.article-breadcrumb {
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-breadcrumb a { color: var(--ink-3); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb .sep { color: var(--ink-4); }

.article-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.article-cat.amber-cat { color: var(--amber); background: var(--amber-light); }

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.article-deck {
  font-size: 1.1rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.article-byline {
  font-size: 0.8125rem;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.byline-dot { color: var(--ink-4); }

/* ─── Article inline disclosure ─── */
.post-disclosure {
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  padding: 0.875rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.post-disclosure strong { color: var(--amber); }
.post-disclosure a { color: var(--amber); }

/* ─── Article body ─── */
.article-body {
  max-width: var(--col);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.5rem 0 0.875rem;
  line-height: 1.2;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.6rem;
}

.article-body p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.8;
}

.article-body li { margin-bottom: 0.35rem; }

.article-body a { color: var(--accent); }
.article-body a:hover { color: var(--accent-mid); }

/* ─── Affiliate CTA card ─── */
.aff-card {
  background: var(--paper);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.aff-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.4rem;
}

.aff-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.aff-card p {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.55;
}

.aff-card .aff-note {
  font-size: 0.75rem;
  color: var(--ink-4);
  margin-top: 0.5rem;
}

.aff-card .aff-btn {
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
  padding: 11px 22px;
  border-radius: 22px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}

.aff-card .aff-btn:hover { background: #145a3d; }

/* ─── Callout ─── */
.callout {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.callout.info { background: #e8f0fd; border-color: #b5d0f8; }
.callout.success { background: var(--accent-light); border-color: #a8d8be; }
.callout.tip { background: var(--amber-light); border-color: rgba(192,124,26,0.25); }

/* ─── Comparison table ─── */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0 2rem;
}

.comp-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--border-mid);
}

.comp-table td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  vertical-align: top;
}

.comp-table td:first-child { font-weight: 500; color: var(--ink); }

.check { color: var(--accent); font-weight: 600; }
.cross { color: #b0b0ac; }

/* ─── Tags ─── */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink-3);
  border: 1px solid var(--border);
}

/* ─── Back to top ─── */
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  margin-top: 2rem;
  transition: color 0.15s;
}

.back-top:hover { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 1.25rem; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aff-card { grid-template-columns: 1fr; }
  .aff-card .aff-btn { width: fit-content; }
}

@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
  .posts-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.12s; }
.fade-up-3 { animation-delay: 0.2s; }
.fade-up-4 { animation-delay: 0.28s; }
