/* Blog theme for williammunnich.com: the same look as the main page (site.css).
   The blog engine ships Obsidian's default theme; this file re-skins it the way an Obsidian theme does, by
   overriding its variables with the Ukiyo palette and type used on the home page. Loaded after obsidian.css
   through "stylesheets" in blog.config.json. Keep the values in step with site.css.
   One theme only (William, 2026-11-13): no dark values. blog.config.json sets "theme": "light", so the engine
   writes no dark rules and no theme button either. The front page is the engine's "simple" index
   ("indexStyle": "simple"): the heading "Blog", bold titles, a short preview, a line between posts.
   @date Last edited 2026-11-13 */

@font-face { font-family: "CMU Typewriter Text"; src: url("/assets/fonts/CMUTypewriterText-500-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono-400-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --font-text: "CMU Typewriter Text", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-interface: var(--font-text);
  --font-monospace: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-text-size: 17px;
  --line-height-normal: 1.6;

  /* parchment and maroon, the home page's palette */
  --color-base-00: #e1c4a6; --color-base-05: #dcbd9d; --color-base-10: #d6b593; --color-base-20: #d0ae8b; --color-base-25: #c9a784;
  --color-base-30: #c4a281; --color-base-35: #b89777; --color-base-40: #a58a6f; --color-base-50: #8c7566; --color-base-60: #75635a;
  --color-base-70: #66574f; --color-base-100: #3b302c;
  --accent-h: 0; --accent-s: 100%; --accent-l: 25%;
  --color-accent: #800000; --color-accent-1: #900000; --color-accent-2: #a00000;
  --text-accent: #800000; --text-accent-hover: #a00000;
  --highlight: rgba(128, 0, 0, 0.16);
  --wm-glass: #e1c4a6e0;
}

/* the top bar, like the home page's nav */
.view-header {
  height: 56px; padding: 0 16px; background: var(--wm-glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  font-size: .875rem;
}
.view-header-breadcrumb { font-weight: 600; }
.view-header-breadcrumb:first-child { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }

/* links underlined the way they are on the home page */
.markdown-rendered a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* the simple front page (/blog/): the heading and the list, in the home page's type.
   Values mirror site.css: .prose h1 for the heading, strong (maroon #a00000) for the bold titles, --quiet for
   the preview text, --line-strong for the divider. */
.is-index-simple .inline-title { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin-bottom: 28px; }
/* The site's typewriter font ships in one weight, so font-weight alone does not look bold. A thin outline in the
   text's own colour thickens the strokes, which is what makes the titles read as bold. */
.is-index-simple .post-simple .post-title { font-size: 1.25rem; line-height: 1.3; color: #a00000 !important; -webkit-text-stroke: .6px currentColor; }
.is-index-simple .post-simple .post-title:hover { text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: .22em; }
.is-index-simple .post-simple .post-excerpt { margin-top: 8px; font-size: .9375rem; color: #66574f; max-width: 40em; }
/* The preview text is a link to the post too (site-engine writes it as .post-excerpt-link); it keeps the look of
   plain preview text, so the whole entry is clickable without a second underlined link. */
.is-index-simple .post-simple .post-excerpt-link { display: block; color: inherit !important; text-decoration: none !important; }
.is-index-simple hr.post-divider { border-top: 1px solid #5f4f4947; margin: 28px 0; }

/* **bold** in a post. The typewriter font has one weight, so bold text would look the same as the rest; the same
   thin outline as on the front page's titles makes it read as bold, as it does in Obsidian. (Added 2026-11-13.) */
.markdown-rendered strong, .markdown-rendered b { -webkit-text-stroke: .5px currentColor; }
