/* Vanlogics site styles. One shared stylesheet; each section wears its theme
   through CSS variables: Clarity (default), Midnight Pro (.t-midnight),
   Ember (.t-ember, Dutch orange). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.blog {
  --b-bg: #fbfbfd;
  --b-surface: #ffffff;
  --b-text: #1d1d1f;
  --b-muted: #6e6e73;
  --b-accent: #0066cc;
  --b-line: #e3e3e6;
  --b-chip: #f5f5f7;
  --b-nav: rgba(251,251,253,.82);
  --b-hero-a: #e8f0fe;
  --b-hero-b: #f3e9fb;
  --b-hero-c: #e6f7ee;
  --b-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --b-radius: 18px;
  --b-card-shadow: 0 2px 14px rgba(0,0,0,.05);
  background: var(--b-bg);
  color: var(--b-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}
.t-midnight {
  --b-bg: #000000;
  --b-surface: #161617;
  --b-text: #f5f5f7;
  --b-muted: #a1a1a6;
  --b-accent: #2997ff;
  --b-line: #2c2c2e;
  --b-chip: #1d1d1f;
  --b-nav: rgba(0,0,0,.72);
  --b-hero-a: #0b2a4a;
  --b-hero-b: #2a1540;
  --b-hero-c: #0d3524;
  --b-card-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.t-ember {
  --b-bg: #fbf3e7;
  --b-surface: #fffaf2;
  --b-text: #221a14;
  --b-muted: #77644f;
  --b-accent: #ff5c00;
  --b-accent-ink: #9a3400;
  --b-line: #f0c48d;
  --b-chip: #ffe0ae;
  --b-nav: rgba(251,243,231,.86);
  --b-hero-a: #ffb347;
  --b-hero-b: #ff6a00;
  --b-hero-c: #ffc53d;
  --b-display: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --b-radius: 10px;
  --b-card-shadow: 0 2px 12px rgba(255,92,0,.18);
}
.t-ember .b-eyebrow,
.t-ember .b-tag,
.t-ember .b-section-head a,
.t-ember .b-links a:hover { color: var(--b-accent-ink); }
.t-ember .b-avatar { color: #241100; }
.t-ember .b-thumb svg { stroke: #6e2a00; }

.blog a { color: var(--b-accent); text-decoration: none; }
.blog-inner { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.b-nav {
  position: sticky; top: 0; z-index: 5;
  background: var(--b-nav);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--b-line);
}
.b-nav-in { display: flex; align-items: center; gap: 26px; height: 52px; }
.b-logo { font-family: var(--b-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--b-text); }
.b-logo span { color: var(--b-accent); }
.b-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.b-links a { color: var(--b-text); opacity: .85; }
.b-links a:hover { opacity: 1; color: var(--b-accent); }

/* Hero / featured post */
.b-hero { padding: 44px 0 8px; }
.b-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--b-accent); margin: 0 0 10px;
}
.b-hero h2 {
  font-family: var(--b-display);
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 14px; max-width: 640px;
}
.t-ember .b-hero h2 { font-weight: 600; letter-spacing: -0.01em; }
.b-hero .lede { font-size: 18px; color: var(--b-muted); margin: 0 0 18px; max-width: 600px; }
.b-meta { font-size: 14px; color: var(--b-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.b-meta .who { color: var(--b-text); font-weight: 500; }

.b-hero-art {
  margin-top: 30px; border-radius: var(--b-radius); overflow: hidden;
  background: linear-gradient(120deg, var(--b-hero-a), var(--b-hero-b) 55%, var(--b-hero-c));
  box-shadow: var(--b-card-shadow);
}
.b-hero-art svg { display: block; width: 100%; height: auto; }
/* Section heading */
.b-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 44px 0 18px; padding-top: 26px; border-top: 1px solid var(--b-line);
}
.b-section-head h3 {
  font-family: var(--b-display); font-size: 26px; font-weight: 700; letter-spacing: -0.015em; margin: 0;
}
.t-ember .b-section-head h3 { font-weight: 600; }
.b-section-head a { font-size: 15px; white-space: nowrap; }
.b-section-head a::after { content: " ›"; }

/* Article cards */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 8px; }
.b-card {
  background: var(--b-surface); border: 1px solid var(--b-line);
  border-radius: var(--b-radius); overflow: hidden; box-shadow: var(--b-card-shadow);
  display: flex; flex-direction: column;
}
.b-thumb {
  height: 118px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--b-hero-a), var(--b-hero-b));
}
.b-thumb.alt { background: linear-gradient(135deg, var(--b-hero-b), var(--b-hero-c)); }
.b-thumb.alt2 { background: linear-gradient(135deg, var(--b-hero-c), var(--b-hero-a)); }
.b-thumb svg { width: 46px; height: 46px; stroke: var(--b-accent); }
.b-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.b-tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--b-accent); background: var(--b-chip); border-radius: 980px; padding: 3px 10px;
}
.t-ember .b-tag { border-radius: 6px; }
.b-card h4 {
  font-family: var(--b-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.3; margin: 0; color: var(--b-text);
}
.b-card p { margin: 0; font-size: 14.5px; color: var(--b-muted); flex: 1; }
.b-card .b-meta { font-size: 13px; }

/* About strip */
.b-about {
  margin: 40px 0 0; padding: 26px 28px;
  background: var(--b-chip); border-radius: var(--b-radius);
  display: flex; gap: 20px; align-items: center;
}
.b-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: var(--b-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--b-display); font-size: 21px; font-weight: 700;
}
.b-about h4 { margin: 0 0 4px; font-family: var(--b-display); font-size: 18px; font-weight: 600; }
.b-about p { margin: 0; font-size: 15px; color: var(--b-muted); }

.b-foot {
  margin-top: 44px; border-top: 1px solid var(--b-line);
  padding: 22px 0 30px; font-size: 13px; color: var(--b-muted);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.b-foot nav { display: flex; gap: 18px; }
.b-foot a { color: var(--b-muted); }
.b-foot a:hover { color: var(--b-text); }

/* Full-width themed section bands (homepage) */
.b-band {
  margin-top: 44px; padding: 42px 0 48px;
  background: var(--b-bg); color: var(--b-text);
}
.b-band + .b-band { margin-top: 0; }
.b-band .b-section-head { margin: 0 0 18px; padding-top: 0; border-top: none; flex-wrap: wrap; }
.b-grid-2 { grid-template-columns: repeat(2, 1fr); }
.b-feature { padding-bottom: 26px; margin-bottom: 22px; border-bottom: 1px solid var(--b-line); }
.b-feature h3 {
  font-family: var(--b-display); font-size: clamp(26px, 3.8vw, 36px); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 10px; max-width: 640px;
}
.b-feature .lede { font-size: 17.5px; color: var(--b-muted); margin: 0 0 14px; max-width: 620px; }

/* Section pages */
.b-page-head { padding: 44px 0 8px; }
.b-page-head h2 {
  font-family: var(--b-display);
  font-size: clamp(30px, 4.6vw, 44px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px;
}
.t-ember .b-page-head h2 { font-weight: 600; }
.b-page-head p { font-size: 17px; color: var(--b-muted); margin: 0; max-width: 620px; }

@media (max-width: 760px) {
  .b-grid { grid-template-columns: 1fr; }
  .b-nav-in { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 8px; }
  .b-links { gap: 14px; flex-wrap: wrap; }
  .b-about { flex-direction: column; align-items: flex-start; }
}

/* Apple patches feed (The Wire) */
.b-feed { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--b-line); }
.b-feed-item {
  display: flex; gap: 18px; padding: 16px 0;
  border-bottom: 1px solid var(--b-line);
}
.b-feed-date { flex: none; width: 104px; font-size: 13px; font-weight: 600; color: var(--b-muted); padding-top: 2px; }
.b-feed-item strong { font-family: var(--b-display); font-size: 17px; }
.b-feed-item p { margin: 4px 0 0; font-size: 14.5px; color: var(--b-muted); }
.b-feed-item .b-flag { color: var(--b-accent); font-weight: 600; }
.b-feed-note { font-size: 13.5px; color: var(--b-muted); }
@media (max-width: 760px) {
  .b-feed-item { flex-direction: column; gap: 4px; }
  .b-feed-date { width: auto; }
  .b-feed-img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
}

/* Cyber feed items */
.b-feed-kicker { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--b-accent); margin-bottom: 2px; }
.b-feed-item.apple { border-left: 3px solid #ff8a3c; background: rgba(255,138,60,.08); padding-left: 15px; }
.b-feed-item.apple .b-feed-kicker { color: #ff8a3c; }
.b-os-badge { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #ffb37a; border: 1px solid rgba(255,138,60,.5); border-radius: 6px; padding: 1px 8px; }

/* The Wire sub-navigation strip (hub + feed pages) */
.b-subnav { position: sticky; top: 52px; z-index: 4; background: var(--b-nav); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--b-line); }
.b-subnav-in { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0; }
.b-subnav a, .b-subnav .active { font-size: 14px; font-weight: 500; border-radius: 980px; padding: 6px 14px; border: 1px solid var(--b-line); }
.b-subnav a { color: var(--b-muted); }
.b-subnav a:hover { color: var(--b-text); border-color: var(--b-accent); }
.b-subnav .active { color: #fff; background: var(--b-accent); border-color: var(--b-accent); font-weight: 600; }
.b-card h4 a { color: inherit; text-decoration: none; }
.b-card h4 a:hover { color: var(--b-accent); }

/* Cyber feed thumbnails */
.b-feed-img { flex: none; width: 128px; height: 84px; object-fit: cover; border-radius: 10px; }

/* Archive list (Cyber Feed past weeks) */
.archive-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--b-line); }
.archive-list li { padding: 12px 0; border-bottom: 1px solid var(--b-line); }

/* CVE Watch rank numbers */
.b-rank { flex: none; width: 40px; font-family: var(--b-display); font-size: 22px; font-weight: 700; color: var(--b-accent); padding-top: 2px; }

/* Standalone post body */
.b-article { max-width: 680px; font-size: 18px; line-height: 1.7; margin: 0 0 40px; }
.b-article p { margin: 0 0 16px; }
.b-article h3 { font-family: var(--b-display); font-size: 22px; margin: 32px 0 10px; }
