/* ============================================
   Thought Follower — tokens
   ============================================ */
:root {
  --ink: #10181B;
  --ink-2: #182225;
  --line: #283638;
  --paper: #ECE9E1;
  --muted: #92A19B;
  --muted-2: #66746F;
  --signal: #E8A33D;

  --t-ai: #E8A33D;
  --t-cybersecurity: #C97B3A;
  --t-cloud: #7B93B0;
  --t-career: #5B8C7B;
  --t-culture: #B0748F;
  --t-example: #66746F;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; }
}

/* ============================================
   Topbar
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 24, 27, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

.topnav {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.topnav a { text-decoration: none; color: var(--muted); transition: color 0.15s ease; }
.topnav a:hover, .topnav a:focus-visible { color: var(--paper); }

/* ============================================
   Hero
   ============================================ */
.hero { padding: 64px 24px 48px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
  margin: 0 0 20px;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--signal);
}

.hero__dek {
  max-width: 58ch;
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* ============================================
   Archive
   ============================================ */
.archive {
  padding: 24px 0 80px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 0 24px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0;
}

.section-head__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  margin: 0;
}

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.posts__empty,
.posts__noscript {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

.post {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.post__topic {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--tag-color, var(--muted-2)) 18%, transparent);
  color: var(--tag-color, var(--muted));
}
.post__topic--ai { --tag-color: var(--t-ai); }
.post__topic--cybersecurity { --tag-color: var(--t-cybersecurity); }
.post__topic--cloud { --tag-color: var(--t-cloud); }
.post__topic--career { --tag-color: var(--t-career); }
.post__topic--culture { --tag-color: var(--t-culture); }
.post__topic--example { --tag-color: var(--t-example); }

.post__date { color: var(--muted-2); }

.post__embed {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
}
.post__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.post__embed--missing {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 12px;
}

.post__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.post__desc {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 10px;
  max-width: 60ch;
}

.post__source {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  margin: 0 0 16px;
}
.post__source-link {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.post__source-link:hover, .post__source-link:focus-visible { border-color: var(--signal); }

.post__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.post__link {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.post__link:hover, .post__link:focus-visible {
  color: var(--signal);
  border-color: var(--signal);
}

/* ============================================
   About
   ============================================ */
.about {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 72px;
}

.about h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 16px;
}

.about__bio {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 24px;
}

.about__links {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.about__link {
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.about__link:hover, .about__link:focus-visible {
  color: var(--signal);
  border-color: var(--signal);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 24px 0 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 560px) {
  .hero { padding: 48px 20px 36px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}