/* =========================================
   dylanku2077 — publish.css
   Drop this file into your vault root.
   ========================================= */

/* --- Google Fonts Import --- */
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600&display=swap");

/* --- Color Palette --- */
:root {
  --background-primary: #f7f4ef;
  --background-secondary: #ffffff;
  --background-secondary-alt: #f0ece4;
  --text-normal: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-faint: #aaa;
  --interactive-accent: #8b5e3c; /* warm brown — replaces Obsidian purple */
  --interactive-accent-hover: #6e4a2e;
  --link-color: #8b5e3c;
  --link-color-hover: #6e4a2e;
  --divider-color: #e0dbd3;
  --border-radius: 6px;
}

/* --- Base Typography --- */
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--background-primary);
  color: var(--text-normal);
}

/* Note body text — serif for readability */
.markdown-preview-view {
  font-family: "Lora", Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
  color: #1a1a1a;
}

/* Headings — back to Inter for contrast */
.markdown-preview-view h1,
.markdown-preview-view h2,
.markdown-preview-view h3,
.markdown-preview-view h4 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: #111111;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.markdown-preview-view h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--divider-color);
  padding-bottom: 0.3em;
}

.markdown-preview-view h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

/* --- Sidebar --- */
.nav-folder-title,
.nav-file-title {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
}

.site-body-left-column {
  background-color: var(--background-secondary);
  border-right: 1px solid var(--divider-color);
}

/* Site name */
.site-body-left-column .site-name {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text-normal);
}

/* Active nav item */
.nav-file-title.is-active {
  color: var(--interactive-accent);
  font-weight: 500;
  background-color: var(--background-secondary-alt);
  border-radius: var(--border-radius);
}

/* --- Links --- */
.markdown-preview-view a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid #c8a882;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

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

/* --- Graph Panel — shrink and soften --- */
.graph-view-container {
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius);
  background-color: var(--background-secondary);
}

.site-body-right-column {
  opacity: 0.85;
}

/* Label */
.graph-view-container .graph-view-header {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

/* --- Content Area --- */
.markdown-preview-view .markdown-preview-section {
  max-width: 680px;
  /* for margin */
  max-width: 55%;
  margin-left: 5%;
}

/* Blockquotes */
.markdown-preview-view blockquote {
  border-left: 3px solid var(--interactive-accent);
  background-color: var(--background-secondary);
  padding: 0.8em 1.2em;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Inline code */
.markdown-preview-view code {
  font-family: "JetBrains Mono", "Fira Code", "Menlo", monospace;
  font-size: 0.84em;
  background-color: #e8e0d4;
  padding: 0.2em 0.45em;
  border-radius: 4px;
  color: #1a1a1a;
  border: 1px solid #d4cbbe;
}

/* Code blocks */
.markdown-preview-view pre {
  background-color: #282c34;
  border-radius: var(--border-radius);
  padding: 1.4em 1.6em;
  border: 1px solid #3a3f4b;
  overflow-x: auto;
}

.markdown-preview-view pre code {
  font-family: "JetBrains Mono", "Fira Code", "Menlo", monospace;
  font-size: 0.85em;
  background-color: transparent;
  border: none;
  padding: 0;
  color: #abb2bf;
  line-height: 1.7;
}

/* Horizontal rule */
.markdown-preview-view hr {
  border: none;
  border-top: 1px solid var(--divider-color);
  margin: 2.5em 0;
}

/* Strong — make bold feel intentional */
.markdown-preview-view strong {
  font-weight: 600;
  color: #111;
}

/* --- Search bar --- */
.search-input-container input {
  background-color: var(--background-secondary);
  border: 1px solid var(--divider-color);
  border-radius: 20px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  padding: 6px 12px;
  transition: border-color 0.2s ease;
}

.search-input-container input:focus {
  border-color: var(--interactive-accent);
  outline: none;
}

/* --- Published with Obsidian footer --- */
.published-with-obsidian {
  opacity: 0.4;
  font-size: 11px;
}

/* --- Contact nudge footer --- */
#dylan-contact-footer {
  margin-top: 3.5em;
  padding-top: 1.2em;
  border-top: 1px solid var(--divider-color);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
}

#dylan-contact-footer .footer-separator {
  margin-right: 0.4em;
  color: var(--divider-color);
}

#dylan-contact-footer a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--divider-color);
  text-decoration: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

#dylan-contact-footer a:hover {
  color: var(--interactive-accent);
  border-bottom-color: var(--interactive-accent);
}

/* for margin */
.callout[data-callout="margin"] {
  float: right;
  clear: right;
  width: 35%;
  margin: 0 -38% 1em 1em;
  font-size: 0.88em;
  background: var(--background-secondary);
  border-left: 3px solid var(--interactive-accent);
  padding: 0.6em 0.8em;
}

/* Collapse to inline on narrow screens */
@media (max-width: 1000px) {
  .callout[data-callout="margin"] {
    float: none;
    width: 100%;
    margin: 0.5em 0;
  }
}
