@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Homepage: Quarto's own title block IS the hero heading — trim its default
   Bootstrap spacing down to feel intentional rather than accidental. */
#title-block-header.quarto-title-block {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
#title-block-header .title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}
.quarto-title .subtitle {
  color: #52525b;
  font-size: 1.1rem;
  max-width: 46ch;
  font-weight: 400;
  margin-top: 0.25rem;
}

/* Simple link-card row, used on the homepage */
.link-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2.5rem 0;
}
.link-row a {
  display: inline-block;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  color: #111 !important;
  border-bottom: 1px solid #e4e4e7 !important;
}
.link-row a:hover {
  background: #fafafa;
  border-color: #111 !important;
}

/* Homepage "Recent writing" cards.
   Note: each `#### heading` gets wrapped in its own <section> by Quarto, so
   sibling/first-child selectors on h4 itself don't distinguish entries —
   target the section wrapper instead. */
.home-listing h4 { margin-bottom: 0.35rem; margin-top: 0; }
.home-listing section + section {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e4e4e7;
}
.home-listing h4 a {
  border-bottom: none !important;
  color: #0a0a0a !important;
}
.home-listing h4 a:hover { color: #52525b !important; }
.home-listing p {
  color: #52525b;
  margin-bottom: 0;
}

/* Quarto's built-in listing pages wrap the whole card in one <a> — the global
   underline-on-hover link style then shows on every wrapped text line, which
   looks broken. Disable it specifically inside listings. */
.quarto-listing a,
.quarto-listing a:hover {
  border-bottom: none !important;
}

/* Download button block, used on post pages and the CV page */
.download-block {
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  background: #fafafa;
}
.download-block .dl-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.download-block a.btn {
  margin-right: 0.5rem;
  margin-bottom: 0.4rem;
}

/* Data-quality / caveat note style, matches the honesty theme in the trading write-ups */
.note {
  border: 1px solid #e4e4e7;
  border-left: 3px solid #111;
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  background: #fafafa;
  font-size: 0.94rem;
  margin: 1.5rem 0;
}
.note strong { color: #111; }
