/* ── iptracker.work blog — shared stylesheet ─────────────────────
   Matches the design system of index.html (same tokens, same voice).
   Static, no build step. */

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

:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --text: #111827;
  --text-soft: #4b5563;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --border: #e5e7eb;
  --green: #2ea44f;
  --red: #cb2431;
  --amber-bg: #ffe5b4;
  --amber-text: #7a4d00;
  --amber-wash: #fff7ed;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Top nav ─────────────────────────────────────────────────── */
.topnav {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.topnav-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topnav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topnav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.topnav-links a:hover { color: #fff; }
.topnav-cta {
  background: #fff;
  color: var(--blue-dark) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ── Blog index hero ─────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  top: -140px; right: -100px;
  pointer-events: none;
}
.blog-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.blog-hero p {
  font-size: 17px;
  opacity: 0.94;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

/* ── Blog index cards ────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  padding: 56px 0 80px;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.post-card.featured {
  grid-column: 1 / -1;
  background: var(--bg-soft);
}
.post-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.post-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.post-card.featured .post-title { font-size: 26px; }
.post-blurb {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.post-meta-row {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.read-more {
  color: var(--blue);
  font-weight: 700;
}

/* ── Article page ────────────────────────────────────────────── */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.back-link {
  display: inline-block;
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}
.back-link:hover { text-decoration: underline; }

.article-wrap h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
  margin-bottom: 14px;
}
.post-meta {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.article-body p {
  font-size: 16.5px;
  line-height: 1.68;
  margin-bottom: 18px;
}
.article-body .lede {
  font-size: 19px;
  color: var(--text-soft);
  line-height: 1.6;
}
.article-body h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 38px 0 14px;
  line-height: 1.2;
}
.article-body ul,
.article-body ol {
  margin: 0 0 18px 24px;
}
.article-body li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.article-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* numbered how-to checks */
.article-body ol.steps-list {
  list-style: none;
  margin: 22px 0 24px;
  counter-reset: step;
}
.article-body ol.steps-list > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 16px;
}
.article-body ol.steps-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* real-vs-fake domain blocks */
.domain-compare {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 22px 0 24px;
}
.dc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.dc-row + .dc-row { border-top: 1px solid var(--border); }
.dc-real { background: #ecfdf5; box-shadow: inset 3px 0 0 var(--green); }
.dc-fake { background: #fef2f2; box-shadow: inset 3px 0 0 var(--red); }
.dc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: 42px;
  flex: none;
}
.dc-real .dc-label { color: var(--green); }
.dc-fake .dc-label { color: var(--red); }
.dc-row code {
  background: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}
.dc-note {
  font-size: 13px;
  color: var(--text-soft);
}

/* callouts */
.callout {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 var(--blue);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 22px 0 24px;
  font-size: 15px;
  line-height: 1.6;
}
.callout.warn {
  background: var(--amber-wash);
  box-shadow: inset 3px 0 0 #d97706;
}

/* tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 24px;
  font-size: 14.5px;
}
.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.article-body th {
  background: var(--bg-soft);
  font-weight: 700;
}

/* ── End-of-article CTA ──────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
  border-radius: 16px;
  padding: 34px 32px;
  text-align: center;
  margin: 44px 0 8px;
}
.cta-box h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.cta-box p {
  font-size: 15.5px;
  opacity: 0.94;
  max-width: 460px;
  margin: 0 auto 22px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--blue-dark);
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}
.cta-box .cta-meta {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.85;
}

/* ── More-articles strip ─────────────────────────────────────── */
.more-articles {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 64px;
}
.more-articles h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.more-articles a {
  display: block;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 7px 0;
}
.more-articles a:hover { text-decoration: underline; }

/* ── Footer (matches index.html) ─────────────────────────────── */
footer {
  background: #111827;
  color: #9ca3af;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
}
footer a {
  color: #d1d5db;
  text-decoration: none;
  margin: 0 12px;
}
footer a:hover { color: #fff; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .blog-hero h1 { font-size: 32px; }
  .post-grid { grid-template-columns: 1fr; padding: 40px 0 60px; }
  .post-card.featured .post-title { font-size: 22px; }
  .article-wrap { padding: 40px 24px 32px; }
  .article-wrap h1 { font-size: 30px; }
  .topnav-links { gap: 14px; }
  .topnav-links .nav-home { display: none; }
  .dc-row code { white-space: normal; word-break: break-all; }
}
