/* ========================================
   joeybream.com — styling
   Warm-minimal theme. No build step, no CDN deps.
   ======================================== */

/* ----- Minimal utility classes (the few used from the templates) ----- */
.max-w-3xl { max-width: 48rem; }
.max-w-none { max-width: none; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* ----- Base ----- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #faf9f6;
  color: #2b2b2b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

/* ----- Prose ----- */
.prose {
  max-width: 100%;
  color: #1F2937;
}
.prose h1 { font-size: 2rem; margin-bottom: 1rem; font-weight: bold; }
.prose h2 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: bold; }
.prose h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: bold; }
.prose a { color: #000; text-decoration: underline; }
.prose a:hover { color: #2563EB; }
.prose ul { list-style-type: disc; margin-left: 1.5rem; margin-bottom: 1rem; }
.prose ol { list-style-type: decimal; margin-left: 1.5rem; margin-bottom: 1rem; }
.prose li > ul, .prose li > ol { margin-bottom: 0; }
.prose p { margin-bottom: 1rem; margin-top: 1rem; line-height: 1.7; }
.prose img { max-width: 100%; height: auto; border-radius: 0.375rem; }
.prose blockquote {
  font-style: italic;
  margin: 1.5em 0;
  padding: 0 1em;
  border-left: 4px solid #ccc;
  color: #4B5563;
}
.prose pre {
  background: #f6f8fa;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 1rem 0;
}
.prose code {
  background: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}
.prose pre code { background: none; padding: 0; }
.prose hr { border: none; border-top: 1px solid #E5E7EB; margin: 2rem 0; }

/* ----- Home ----- */
.home { max-width: 48rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.home-intro h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 .5rem; }
.home-intro p { color: #3a3a3a; }
.home-intro a { color: #2b2b2b; text-decoration: none; border-bottom: 1px solid #ccc; }
.home-intro a:hover { color: #2563EB; }
.home-intro .links { font-size: .9rem; color: #a8a196; margin-top: 1.25rem; }
.home-intro .links a { color: #0645ad; text-decoration: none; border-bottom: none; }
.home-intro .links a:hover { text-decoration: underline; }

.section-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #b0a99a; font-weight: 600; margin: 3rem 0 1rem; }
.filter-hint { font-size: .78rem; color: #b0a99a; margin: 0 0 1rem; }
.filter-hint button { all: unset; cursor: pointer; color: #0645ad; }
.filter-hint button[hidden] { display: none; }

.post-index { list-style: none; margin: 0; padding: 0; }
.post-index li { display: flex; gap: 1rem; padding: .45rem 0; align-items: baseline; }
.post-index time { flex: 0 0 3rem; color: #a8a196; font-size: .85rem; font-variant-numeric: tabular-nums; }
.row-main { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.post-title { color: #2b2b2b; text-decoration: none; }
.post-title:hover { color: #000; text-decoration: underline; }
.post-tags { display: inline-flex; gap: .3rem; }
.tag { font-size: .68rem; color: #999; background: #efece4; border: none; border-radius: 999px; padding: .05rem .5rem; cursor: pointer; font-family: inherit; }
.tag:hover, .tag.active { background: #2b2b2b; color: #fff; }
.ext { color: #a8a196; font-size: .75rem; }
.post-index li.hidden { display: none; }

.background p { color: #444; }
.background a { color: #2b2b2b; }

/* ----- Post pages ----- */
.back-home { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2.5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: #b0a99a; text-decoration: none; }
.back-home:hover { color: #2b2b2b; }
.back-home .arrow { transition: transform .15s ease; }
.back-home:hover .arrow { transform: translateX(-3px); }

.post-header { margin-bottom: 1.5rem; }
.prose > :first-child { margin-top: 0; }
.post-header h1 { font-size: 2.25rem; line-height: 1.15; letter-spacing: -.01em; font-weight: 700; color: #1a1a1a; margin: 0 0 .5rem; }
.post-subtitle { font-size: 1.1rem; color: #6b6b6b; margin: 0 0 .9rem; font-weight: 400; }
.post-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; }
.post-meta time { color: #a8a196; font-size: .85rem; font-variant-numeric: tabular-nums; }
.post-meta .post-tags { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.post-meta .tag { text-decoration: none; }

.canonical-note { font-size: .85rem; color: #8a8378; margin: 0 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #ece8e0; }
.canonical-note a { color: #0645ad; text-decoration: none; }
.canonical-note a:hover { text-decoration: underline; }

/* Substack leaves subscription/share widgets in the feed HTML — hide them. */
.subscription-widget-wrap, .subscribe-widget, .button-wrapper, .image-link-expand { display: none; }
