/* ==========================================================================
   Personal site theme — minimal & clean, single accent color
   Applies to the whole Publish site (Obsidian snippets are global).
   ========================================================================== */

/* Obsidian's own app.css sets --accent-h/s/l on body/.theme-light/.theme-dark,
   which outranks a plain :root override regardless of load order — so we
   match that specificity here instead of using :root. */
body.theme-light,
body.theme-dark {
  --accent-h: 212;
  --accent-s: 60%;
  --accent-l: 38%;
  --text-accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --text-accent-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%));
  --interactive-accent: var(--text-accent);
  --interactive-accent-hover: var(--text-accent-hover);

  --file-line-width: 720px;
}

.markdown-preview-view {
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ---- Headings --------------------------------------------------------- */

.markdown-preview-view h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 0.75em;
}

.markdown-preview-view h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-accent);
  margin-top: 2.6em;
  margin-bottom: 1em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--background-modifier-border);
}

.markdown-preview-view h2:first-of-type {
  margin-top: 0.6em;
}

.markdown-preview-view h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.3em;
}

/* ---- Body text ---------------------------------------------------------- */

.markdown-preview-view p {
  margin-bottom: 1.1em;
}

.markdown-preview-view strong {
  font-weight: 600;
}

.markdown-preview-view ul li {
  margin-bottom: 0.4em;
}

/* ---- Profile photo ------------------------------------------------------ */

.markdown-preview-view img.profile-photo {
  float: left;
  width: 220px;
  margin: 0.2em 1.5em 1em 0;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
}

@media (max-width: 640px) {
  .markdown-preview-view img.profile-photo {
    float: none;
    display: block;
    width: 160px;
    margin: 0 auto 1.5em auto;
  }
}

/* ---- Callouts (e.g. the "open to roles" note) --------------------------- */

.markdown-preview-view .callout[data-callout="note"] {
  --callout-color: var(--accent-h), var(--accent-s), var(--accent-l);
  border-radius: 6px;
  border-left: 3px solid var(--text-accent);
  background-color: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.07);
}

/* ---- Links ---------------------------------------------------------------- */

.markdown-preview-view a {
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.markdown-preview-view a:hover {
  color: var(--text-accent-hover);
  border-bottom-color: var(--text-accent-hover);
}

/* Internal wiki-links get a slightly lighter treatment so external CTAs
   (LinkedIn, Email) still stand out as the primary action */
.markdown-preview-view a.internal-link {
  border-bottom-style: dashed;
}
