@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --ink: #16233A;
  --ink-soft: #45526B;
  --bg: #F3F5F7;
  --panel: #FFFFFF;
  --line: #DDE2E8;
  --teal: #1F8A94;
  --teal-deep: #146069;
  --amber: #E2A63B;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'IBM Plex Mono', monospace; }

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.35rem; }
.brand-tag { display:block; font-family: 'IBM Plex Mono', monospace; font-size: .68rem; color: var(--teal-deep); letter-spacing: .04em; margin-top: -2px;}
nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--teal-deep); border-color: var(--teal); }

/* hero */
.hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-eyebrow { display:flex; align-items:center; gap:8px; font-size:.85rem; color: var(--teal-deep); font-weight:600; margin-bottom: 14px;}
.eyebrow-dot { width:9px; height:9px; background: var(--amber); border-radius: 2px; display:inline-block; }
.hero h1 { font-size: 2.6rem; max-width: 14ch; }
.hero .dek { color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; margin-bottom: 18px; }
.hero .byline { font-size: .85rem; color: var(--ink-soft); }
.hero-art { width: 100%; height: auto; }

/* grid of posts */
.section { padding: 44px 0; }
.section-head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px;}
.section-head h2 { font-size: 1.4rem; }
.section-head a { font-size: .85rem; font-weight: 600; color: var(--teal-deep); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card-art { width: 100%; aspect-ratio: 16/10; border-radius: 6px; }
.card .cat { display:flex; align-items:center; gap:7px; font-size:.78rem; font-weight:600; color: var(--ink-soft); }
.cat-swatch { width: 8px; height: 8px; border-radius: 2px; display:inline-block; }
.card h3 { font-size: 1.1rem; }
.card p.excerpt { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.card .meta { font-size: .78rem; color: var(--ink-soft); }

/* most-read */
.ranked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ranked-list li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.rank-num { font-family: 'IBM Plex Mono', monospace; font-size: 1.1rem; color: var(--teal); }
.ranked-list h4 { margin: 0; font-size: .98rem; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.ranked-list .spec { font-size: .78rem; color: var(--ink-soft); }

/* newsletter */
.newsletter { background: var(--ink); color: #EDF1F5; border-radius: 10px; padding: 36px; display:flex; align-items:center; justify-content:space-between; gap: 24px; flex-wrap: wrap; }
.newsletter h3 { color: #fff; font-size: 1.3rem; }
.newsletter p { color: #B9C4D3; margin: 4px 0 0; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input[type=email] { padding: 11px 14px; border-radius: 5px; border: none; font-family: inherit; min-width: 220px; }
.newsletter button { padding: 11px 18px; border-radius: 5px; border: none; background: var(--teal); color: #fff; font-weight: 600; cursor: pointer; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 20px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--ink-soft);}

/* single post */
.post-head { max-width: 74ch; margin: 0 auto; padding: 48px 24px 0; }
.post-head .cat { color: var(--teal-deep); font-weight: 600; font-size: .85rem; }
.post-head h1 { font-size: 2.1rem; margin-top: 8px; }
.post-body { max-width: 74ch; margin: 24px auto 0; padding: 0 24px 60px; font-size: 1.05rem; }
.post-body p { margin: 0 0 1.1em; }
.post-body h2 { margin-top: 1.4em; font-size: 1.4rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-family: 'IBM Plex Mono', monospace; font-size: .88rem; }
.spec-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--ink-soft); width: 40%; }

/* list/category page */
.page-head { padding: 44px 0 20px; }
.page-head h1 { font-size: 2rem; }

@media (max-width: 880px) {
  .hero-grid, .post-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
}
