/* impactdialing — contemporary soft / premium light fintech */

:root {
  --canvas: #ECEAF2;
  --card:   #FBFAF7;
  --ink:    #0F1115;
  --muted:  #4A4D55;
  --hair:   #D8D5E0;
  --signal: #D4F03C;
  --signal-ink: #161A0A;
  --warn:   #9A1C2A;
  --shell-max: 1080px;
  --col: 720px;

  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans:  'Switzer', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }

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

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout shell */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 720px) {
  .shell { padding: 0 40px; }
}

/* ---- Masthead ---- */
.masthead {
  padding: 28px 0 24px;
}

.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark .mark {
  flex-shrink: 0;
}

.wordmark__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background-color: var(--canvas);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 32px;
  margin: 12px 24px 64px;
  padding: 96px 0 120px;
  overflow: hidden;
  filter: saturate(1.05);
}

@media (min-width: 720px) {
  .hero {
    margin: 12px 40px 80px;
    padding: 120px 0 160px;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.hero__h1 {
  margin: 16px 0 20px;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 1.02;
}

.hero__h1 em {
  font-style: italic;
}

.hero__dek {
  max-width: 64ch;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 36px;
}

.hero__pulse {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero__pulse span:first-child { color: var(--ink); }

/* ---- Eyebrows / display / dek ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.display em { font-style: italic; }

.dek {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

/* ---- Page heads ---- */
.page-head {
  padding: 24px 0 56px;
}

.page-head .display {
  font-size: clamp(56px, 7vw, 96px);
  margin: 18px 0 16px;
}

.page-head .dek {
  max-width: 60ch;
}

/* ---- Post meta (mono telemetry row) ---- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.post-meta__num { color: var(--ink); }
.post-meta__cat {
  background: var(--signal);
  color: var(--signal-ink);
  padding: 3px 10px;
  border-radius: 999px;
}
.post-meta__date { }
.post-meta__read { color: var(--ink); }

/* ---- Inline post on homepage ---- */
.post-inline {
  margin: 64px 0 96px;
}

.post-inline__head {
  max-width: 880px;
}

.post-inline__title {
  margin: 14px 0 16px;
  font-size: clamp(40px, 5vw, 64px);
}

.post-inline__title a {
  color: var(--ink);
  text-decoration: none;
}

.post-inline__title a:hover {
  border-bottom: 2px solid var(--signal);
  padding-bottom: 4px;
}

/* ---- Plate (CSS-rendered blob illustration) ---- */
.post-plate {
  margin: 32px 0;
  height: clamp(220px, 38vw, 440px);
  border-radius: 24px;
  background-color: var(--canvas);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  filter: saturate(1.05) blur(0px);
  box-shadow: 0 1px 0 var(--hair) inset;
}

.post-plate__inner {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1200px 600px at 50% 100%, rgba(255,255,255,0.15), transparent 70%);
}

/* ---- Prose ---- */
.prose {
  max-width: var(--col);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.18;
  margin: 56px 0 18px;
  letter-spacing: -0.005em;
}

.prose h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  margin: 32px 0 10px;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--signal);
  padding-bottom: 1px;
  transition: background-color .15s;
}

.prose a:hover {
  background-color: rgba(212, 240, 60, 0.35);
}

.prose ul, .prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}

.prose li { margin: 0 0 .35em; }

.prose code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 1px 6px;
}

.prose pre {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  margin: 24px 0;
}

.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

.more {
  margin-top: 24px;
}

.more a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--signal);
  padding-bottom: 2px;
}

.more a:hover {
  background-color: rgba(212, 240, 60, 0.35);
}

/* ---- Article page head ---- */
.post-page__head {
  padding: 16px 0 8px;
}

.post-page__head .display {
  margin: 14px 0 16px;
  font-size: clamp(44px, 6vw, 76px);
  max-width: 18ch;
}

.post-page__body {
  padding-block: 40px 56px;
}

/* ---- Articles index cards ---- */
.cards-section {
  padding: 16px 0 96px;
}

.cards {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
}

.card__plate {
  height: 200px;
  background-color: var(--canvas);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

.card__title a {
  color: var(--ink);
  text-decoration: none;
}

.card__title a:hover {
  border-bottom: 2px solid var(--signal);
  padding-bottom: 2px;
}

.card__dek {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}

.card__cta {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--signal);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: filter .15s;
}

.card__cta:hover { filter: brightness(.95); }

/* ---- Related ---- */
.related {
  border-top: 1px solid var(--hair);
  padding: 56px 0 24px;
  margin-top: 24px;
}

.related h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 16px;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related li {
  margin: 0 0 8px;
}

.related a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--signal);
  padding-bottom: 1px;
}

/* ---- 404 ---- */
.fourohfour {
  padding: 96px 0 160px;
}

.fourohfour .display {
  font-size: clamp(120px, 18vw, 240px);
  line-height: 1;
  margin-top: 12px;
}

/* ---- Footer ---- */
.site {
  border-top: 1px solid var(--hair);
  padding: 48px 0 64px;
  margin-top: 64px;
  background: var(--canvas);
}

.foot-ticker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.foot-ticker .sep { color: var(--hair); }

.foot-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr 2fr; }
}

.foot-grid h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}

.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-grid li { margin: 0 0 6px; }

.foot-grid a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.foot-grid a:hover {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

.foot-grid p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 10px;
  max-width: 50ch;
}
