/* ===========================================================================
   pablo.fail — prose.sh custom theme
   Layered on top of the default prose styles (with_styles: true).
   Additive only: typography, color, and hover polish — no layout surgery.
   =========================================================================== */

:root {
  --bg:        #faf8f4;
  --fg:        #1b1b1d;
  --muted:     #6c6a66;
  --accent:    #c2410c;   /* warm rust */
  --accent-2:  #0e7490;   /* deep teal */
  --border:    #e7e2d9;
  --code-bg:   #f1ede4;
  --sel:       #ffe6c7;

  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "SF Mono",
          Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0f0f12;
    --fg:       #e9e6e1;
    --muted:    #8a8884;
    --accent:   #fb923c;
    --accent-2: #38bdf8;
    --border:   #26262c;
    --code-bg:  #17171b;
    --sel:      #3a2a17;
  }
}

/* ---- base ------------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: 0.1px;
}

::selection { background: var(--sel); }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.2rem 0;
}

/* ---- masthead (blog header) ------------------------------------------ */

header h1 {
  font-family: var(--mono);
  letter-spacing: 1.5px;
  font-weight: 700;
}

header h1 a { color: var(--fg); }
header h1 a:hover { color: var(--accent); text-decoration: none; }

/* subtitle / "A devlog by Pablo Murad" */
header h2,
header .description,
header > p:first-of-type {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.4px;
}

/* top navigation: projects | microblog | github | email | rss */
header nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  color: var(--accent-2);
}
header nav a:hover { color: var(--accent); }

/* ---- blog index: post list ------------------------------------------- */

#blog main a {
  color: var(--fg);
  font-weight: 600;
}
#blog main a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* dates rendered inline before each post link */
#blog time,
#blog main time,
#blog .date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- article (a single post) ----------------------------------------- */

#post article h1,
#post article h2,
#post article h3,
article h1, article h2, article h3 {
  letter-spacing: -0.2px;
  line-height: 1.25;
}

#post article h1, article h1 { margin-top: 0.2em; }

article h2 {
  margin-top: 2.2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--border);
}

article p, article li { color: var(--fg); }

blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

/* inline code */
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.08em 0.38em;
}

/* fenced blocks */
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  line-height: 1.55;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.86em;
}

img { border-radius: 8px; max-width: 100%; height: auto; }

/* ---- footer ----------------------------------------------------------- */

footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
