/* ============================================================
   Dankrad Feist — dark editorial theme
   ============================================================ */

:root {
  --bg:          #0e0f13;
  --surface:     #16171c;
  --surface-2:   #101116;
  --text:        #e7e8ec;
  --muted:       #9a9fa8;
  --muted-2:     #8a8f98;
  --faint:       #6f747d;
  --line:        rgba(255,255,255,0.09);
  --line-2:      rgba(255,255,255,0.14);
  --line-strong: rgba(255,255,255,0.28);
  --accent:      #5b9bff;
  --accent-2:    #7fb0ff;
  --accent-tint: rgba(91,155,255,0.10);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

::selection { background: rgba(91,155,255,0.26); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 30px; }
.wrap--narrow { max-width: 720px; }
.wrap--mid { max-width: 860px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,19,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 980px; margin: 0 auto; padding: 0 30px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav a { position: relative; color: #b4b7c0; padding: 4px 0; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav__sep { width: 1px; height: 18px; background: var(--line-2); }
.nav__rss { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.02em; }

/* ---------- hero ---------- */
.hero { display: flex; align-items: center; gap: 48px; padding: 72px 0 48px; flex-wrap: wrap; }
.hero__text { flex: 1; min-width: 280px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; }
.hero__title { font-family: var(--serif); font-size: clamp(44px,7vw,72px); line-height: 1.02; font-weight: 500; letter-spacing: -0.02em; margin: 18px 0 0; }
.lead { max-width: 540px; font-size: 17px; line-height: 1.7; color: var(--muted); margin: 24px 0 0; }
.social-row { display: flex; gap: 22px; margin-top: 26px; font-family: var(--mono); font-size: 13px; }
.social-row a { color: var(--accent); }
.social-row a:hover { color: var(--accent-2); }
.hero__photo { flex: none; position: relative; }
.hero__photo .ring { position: absolute; inset: -14px; border: 1px solid rgba(91,155,255,0.2); border-radius: 24px; pointer-events: none; }
.hero__photo img { display: block; width: 230px; height: 230px; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 50px -22px rgba(0,0,0,0.7); }

/* ---------- channels ---------- */
.channels { border-top: 1px solid var(--line); padding-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color .15s; }
.channel:hover { border-color: var(--line-strong); }
.channel__top { display: flex; align-items: center; justify-content: space-between; }
.channel__ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #fff; }
.channel__meta { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.channel__name { font-size: 14px; font-weight: 600; color: var(--text); }
.channel__sub { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 2px; }
.channel__cta { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.tri { width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }

/* ---------- ask-me / x card ---------- */
.sayhi { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ama { padding: 18px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ama__copy { flex: 1; min-width: 180px; }
.ama__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.ama__text { font-size: 14px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.ama__form { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; }
.input {
  flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 9px 12px; font-family: var(--sans); font-size: 14px; color: var(--text);
  background: #1c1d23; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--accent); }
.btn { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: #0e0f13; background: var(--accent); border: none; border-radius: 9px; padding: 9px 14px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--accent-2); }
.btn--light { color: #11141d; background: #fff; }
.btn--light:hover { background: #e6e8f0; }

.xcard { padding: 16px 18px; display: flex; align-items: center; gap: 13px; }
.xcard img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.xcard__name { font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.1; }
.xcard__handle { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 2px; }
.follow { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: #fff; background: #111114; border: none; border-radius: 999px; padding: 8px 16px; cursor: pointer; flex: none; transition: background .15s; }
.follow:hover { background: #000; }

/* ---------- section heads + post rows ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; margin-top: 8px; }
.section-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0; }
.section-head .meta { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.06em; }
.section-head a { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.section-head a:hover { color: var(--accent-2); }

.post-list { margin-top: 4px; }
.post-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: baseline;
  padding: 14px; margin: 0 -14px; border-top: 1px solid var(--line); border-radius: 9px;
  transition: background .15s;
}
.post-row:first-child { border-top: 1px solid var(--line); }
.post-row:hover { background: var(--surface); }
.post-row__date { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.post-row__title { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.post-row__topic { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.archive-link { display: block; border-top: 1px solid var(--line); padding: 18px 14px 0; margin: 0 -14px; }
.archive-link a { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.archive-link a:hover { color: var(--accent-2); }

/* archive page year groups */
.year-row { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--line-2); padding: 22px 0 8px; margin-top: 8px; }
.year-row__y { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.year-row__rule { flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.year-row__n { font-family: var(--mono); font-size: 11px; color: #5a5f68; }

/* ---------- webinar ---------- */
.section-block { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 34px; }
.webinar {
  background: linear-gradient(135deg, #1f2433, #11141d); border-radius: 18px; padding: 32px 34px;
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap; position: relative; overflow: hidden;
}
.webinar__ring { position: absolute; border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; pointer-events: none; }
.webinar__ring--a { top: -60px; right: -30px; width: 240px; height: 240px; }
.webinar__ring--b { top: 10px; right: 60px; width: 140px; height: 140px; border-color: rgba(255,255,255,0.06); }
.webinar__copy { position: relative; max-width: 480px; }
.webinar__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: #7fa6ff; text-transform: uppercase; }
.webinar h2 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 12px 0 0; line-height: 1.12; }
.webinar p { font-size: 15px; line-height: 1.65; color: #b9bdcb; margin: 12px 0 0; }
.webinar__form { position: relative; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 260px; max-width: 380px; }
.input--dark { border: 1px solid rgba(255,255,255,0.18); color: #fff; background: rgba(8,9,12,0.4); font-family: var(--mono); font-size: 13px; padding: 12px 14px; border-radius: 10px; }
.input--dark:focus { border-color: #7fa6ff; }

/* ---------- tempo ---------- */
.tempo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 24px; }
.tempo__id { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 300px; }
.tempo__logo { width: 54px; height: 54px; border-radius: 13px; background: #11141d; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; font-weight: 600; flex: none; border: 1px solid var(--line); }
.tempo__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.tempo h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; margin: 5px 0 0; line-height: 1.15; }
.tempo__id p { font-size: 14px; line-height: 1.6; color: var(--muted-2); margin: 7px 0 0; max-width: 440px; }
.tempo__note { flex: 1; min-width: 260px; border-left: 3px solid rgba(91,155,255,0.3); padding-left: 18px; }
.tempo__note p { font-size: 13.5px; line-height: 1.65; color: var(--muted-2); margin: 0; }
.tempo__note strong { color: var(--text); font-weight: 600; }
.tempo__note a { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); margin-top: 12px; }
.tempo__note a:hover { color: var(--accent-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 44px; padding: 40px 0 64px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-col { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.footer-col__head { color: var(--muted-2); margin-bottom: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px 16px; max-width: 520px; }
.tag-row a { color: var(--accent); }

/* ---------- article / prose ---------- */
.article { padding: 54px 0 120px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.back-link:hover { color: var(--accent-2); }
.article__head { margin-top: 34px; }
.article__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.article__title { font-family: var(--serif); font-size: clamp(34px,5.2vw,50px); line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; margin: 16px 0 0; }
.tags { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent); border: 1px solid rgba(91,155,255,0.3); border-radius: 20px; padding: 4px 12px; }

.prose { margin-top: 38px; font-family: var(--serif); font-size: 19px; line-height: 1.75; color: #c4c7d4; }
.prose p { margin: 0 0 24px; }
.prose h2 { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--text); margin: 42px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--text); margin: 32px 0 12px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ol, .prose ul { margin: 0 0 28px; padding-left: 24px; color: #c4c7d4; }
.prose li { margin-bottom: 10px; }
.prose code {
  font-family: var(--mono); font-size: 15px; background: #23242b;
  padding: 1px 6px; border-radius: 4px; color: var(--accent-2);
}
.prose pre {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #c4c7d4;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 16px; overflow-x: auto; margin: 0 0 28px;
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: 13.5px; }
.prose blockquote {
  border-left: 3px solid var(--accent); background: var(--accent-tint);
  border-radius: 0 8px 8px 0; padding: 16px 22px; margin: 0 0 28px;
  font-family: var(--sans); font-size: 15px; color: #d6d8e4;
}
.prose img { max-width: 100%; border-radius: 10px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* author + prev/next */
.author-card { display: flex; gap: 16px; align-items: center; margin-top: 50px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.author-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.author-card__name { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.author-card__role { color: var(--muted-2); font-size: 13px; margin-top: 2px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.prevnext__item { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); transition: border-color .15s; }
.prevnext__item:hover { border-color: rgba(91,155,255,0.4); }
.prevnext__label { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; }
.prevnext__title { font-family: var(--serif); font-size: 16px; margin-top: 8px; line-height: 1.35; }
.prevnext__item--next { text-align: right; }

/* ---------- generic page (about / disclosures) ---------- */
.page { padding: 62px 0 120px; }
.page__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; }
.page__title { font-family: var(--serif); font-size: clamp(36px,5vw,50px); line-height: 1.04; font-weight: 500; letter-spacing: -0.02em; margin: 14px 0 0; }
.about-head { display: grid; grid-template-columns: 200px 1fr; gap: 40px; margin-top: 26px; align-items: start; }
.about-head img { width: 200px; height: 200px; border-radius: 16px; object-fit: cover; box-shadow: 0 16px 40px -20px rgba(0,0,0,0.7); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.research-item { padding: 22px 0; border-top: 1px solid var(--line); }
.research-item__t { font-size: 16px; font-weight: 600; color: var(--text); }
.research-item__d { color: var(--muted-2); font-size: 13.5px; line-height: 1.6; margin-top: 7px; }
.sub-head { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 52px; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .channels { grid-template-columns: 1fr 1fr; }
  .sayhi { grid-template-columns: 1fr; }
  .tempo { flex-direction: column; align-items: flex-start; }
  .tempo__note { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .about-head { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .channels { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .post-row__topic { justify-self: start; }
  .nav { gap: 16px; }
  .nav__sep, .nav a:not(.is-active) { }
}
