:root {
  --ink: #2a241d;
  --paper: #faf6ee;
  --accent: #a8542e;
  --muted: #8a7f6d;
  --rule: #ded4c0;
}

[data-theme="dark"] {
  --ink: #f1e8d4;
  --paper: #120f0c;
  --accent: #e08a5c;
  --muted: #9c9180;
  --rule: #332a1d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2.5rem 2rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.site-header nav a {
  margin-left: 1.25rem;
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.site-header nav a:hover .nav-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 4px var(--accent));
}

.site-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 1.25rem;
  vertical-align: middle;
}

.site-search .search-icon {
  position: absolute;
  left: 0.5rem;
  color: var(--muted);
  pointer-events: none;
}

.site-search-input {
  width: 110px;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.35rem 0.5rem 0.35rem 1.7rem;
  transition: width 0.15s ease, border-color 0.15s ease;
}

.site-search-input:focus {
  outline: none;
  border-color: var(--accent);
  width: 160px;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: 240px;
  max-height: 320px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.site-search-results[hidden] {
  display: none;
}

.site-search-results li {
  padding: 0.4rem 0.3rem;
  border-bottom: 1px dotted var(--rule);
}

.site-search-results li:last-child {
  border-bottom: none;
}

.site-search-results li a {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
}

.site-search-results li.no-results {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}

@media (max-width: 800px) {
  .site-search-input { width: 90px; }
  .site-search-input:focus { width: 130px; }
  .site-search-results { right: auto; left: 0; width: 200px; }
}

.theme-toggle {
  margin-left: 1.25rem;
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 50%;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list li a {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
}

.tag-list li a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.about-photo-btn {
  display: block;
  width: 180px;
  padding: 0;
  margin-bottom: 1.5rem;
  border: none;
  background: none;
  cursor: zoom-in;
}

.about-photo {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-photo-btn:hover .about-photo {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-header h1 {
  margin: 0 0 0.25rem;
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 2.4rem;
}

[data-theme="dark"] .section-header h1 {
  position: relative;
  padding-bottom: 0.85rem;
}

[data-theme="dark"] .section-header h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 1px;
  background: var(--accent);
}

.section-subtitle {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}

.section-icon {
  width: 56px;
  height: 56px;
  color: var(--muted);
  opacity: 0.8;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .section-icon {
    width: 36px;
    height: 36px;
  }
}

.link-section {
  margin-bottom: 2.5rem;
}

.link-section h2 {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-h2-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
}

.link-list li:last-child {
  border-bottom: none;
}

.link-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.5rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.link-icon:hover {
  color: var(--accent);
}

.link-icon-svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.link-icon:hover .link-icon-svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px var(--accent));
}

.link-tagline {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--muted);
  margin-top: 0.2rem;
}

.stat-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.25rem;
}

.stat-grid li {
  display: flex;
  flex-direction: column;
}

.stat-count {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
}

.stat-label {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.3rem;
}

.search-input {
  width: 100%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0.1rem;
  margin-bottom: 1.5rem;
}

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

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.home-intro {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-list li {
  display: grid;
  grid-template-columns: 1fr 140px;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dotted var(--rule);
}

.entry-list--home li {
  grid-template-columns: 1fr 90px 140px;
}

.entry-list .entry-kind {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.entry-list .entry-date {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.box-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.box-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.box-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.6rem 0.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: #f1e8d4;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}

.text-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 200px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.text-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.text-card-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.text-card-preview {
  flex: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
  overflow: hidden;
}

.text-card-preview:empty::before {
  content: "instrumental";
  opacity: 0.6;
}

.text-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  height: 2.4rem;
  background: linear-gradient(to top, var(--paper), transparent);
  pointer-events: none;
}

.text-card-date {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.breadcrumb {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumb:hover {
  color: var(--accent);
}

.gallery {
  margin-bottom: 1.5rem;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-hero {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.gallery-hero img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 2px;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.gallery-thumb {
  width: 84px;
  height: 84px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--accent);
}

.ledger-preview-wrap {
  margin: 1.25rem 0 1rem;
}

.ledger-preview-thumb {
  display: block;
  width: 280px;
  max-width: 100%;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: none;
  cursor: zoom-in;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ledger-preview-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ledger-preview-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.ledger-features {
  margin: 0;
  padding-left: 1.2rem;
}

.ledger-features li {
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: 2px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #f4ede0;
  font-family: "Space Mono", monospace;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  padding: 0.5rem 0.8rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--accent);
}

body.lightbox-open {
  overflow: hidden;
}

.post-kind {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.spotlight-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.post h1 {
  margin: 0 0 0.25rem;
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.2;
}

.post-date {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.reader-toolbar-wrap {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--paper);
  padding: 0.6rem 0;
}

.reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.reader-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.reader-tool:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.reader-tool[hidden] {
  display: none;
}

.reader-tool-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.reader-info-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.reader-info-panel p {
  margin: 0 0 0.4rem;
}

.reader-info-panel p:last-child {
  margin-bottom: 0;
}

.reader-info-panel[hidden] {
  display: none;
}

.reader-toc-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.5rem 1.1rem;
  margin-bottom: 1.5rem;
  max-height: 320px;
  overflow-y: auto;
}

.reader-toc-panel[hidden] {
  display: none;
}

.reader-toc-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reader-toc-panel li {
  border-bottom: 1px dotted var(--rule);
}

.reader-toc-panel li:last-child {
  border-bottom: none;
}

.reader-toc-panel a {
  display: block;
  padding: 0.5rem 0;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
}

.reader-toc-panel a:hover {
  color: var(--accent);
}

.post-body p { margin: 0 0 1.2rem; }
.post-body img { max-width: 100%; border-radius: 2px; }

.post-body h2,
.post-body h3 {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 2.4rem 0 0.6rem;
  scroll-margin-top: 5.5rem;
}

.post-body h2 { font-size: 0.85rem; }
.post-body h3 { font-size: 0.78rem; }

.post-body h2:first-child,
.post-body h3:first-child {
  margin-top: 0;
}

.lyric-block, .poem-block {
  white-space: pre-wrap;
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Same treatment, applied automatically to any lyric/poem post body —
   even one written as plain markdown paragraphs with no <div
   class="lyric-block"> wrapper at all. Markdown already keeps a single
   line break inside a paragraph as a literal newline in the HTML (it
   just doesn't LOOK like one without this), so as long as lyrics/poems
   are pasted in as normal text — a blank line between stanzas, same as
   any other writing — the line breaks show up correctly with zero
   manual HTML required. This is what makes it safe to just paste lyrics
   straight into a post without remembering the lyric-block/<br> trick. */
.post-body-lyric p,
.post-body-poem p {
  white-space: pre-wrap;
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* For a one-off quoted verse/lyric/soliloquy dropped into an otherwise
   prose post (kind: story or kind: box) — the pre-wrap rule above only
   applies to whole lyric/poem posts, not this one. Normal prose
   paragraphs in stories/boxes still need markdown's default behavior
   of collapsing soft-wrapped source lines back into flowing sentences,
   so this can't be a blanket rule for the whole post body. Wrap just
   the quoted lines: <div class="verse-quote">...</div> — and, same as
   lyric-block/poem-block, keep it free of any blank line inside, or
   CommonMark will end the div early at that blank line (checked by
   scripts/check-lyric-blocks.js after every build). */
.verse-quote {
  white-space: pre-wrap;
  font-style: italic;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.post-tags {
  margin: 2rem 0 0;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-button {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  cursor: pointer;
}

.share-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.share-feedback {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer p {
  margin: 0;
}

.footer-mark-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.footer-mark {
  width: 34px;
  height: auto;
  opacity: 0.85;
  flex-shrink: 0;
}

.footer-sigils {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-sigil {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

[data-theme="dark"] .footer-mark {
  filter: invert(1);
}

/* The homepage is wider than every other page, to make room for the sidebar */
body.is-home .site-header,
body.is-home main,
body.is-home .site-footer {
  max-width: 980px;
}

.home-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.home-sidebar {
  border-left: 1px solid var(--rule);
  padding-left: 2rem;
}

.sidebar-section {
  margin-bottom: 2.5rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h2 {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sidebar-section h2 .section-h2-icon {
  width: 14px;
  height: 14px;
}

/* Sidebar lists stack title-over-date instead of using the wide grid columns */
.sidebar-section .entry-list li {
  display: block;
  padding: 0.6rem 0;
}

.sidebar-section .entry-list .entry-date,
.sidebar-section .entry-list .entry-kind {
  display: block;
  text-align: left;
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.featured-post .read-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
}

@media (max-width: 800px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 2rem;
    margin-top: 1rem;
  }
}

/* Stacked list of videos on the Arcana page. */
.magic-video { margin-bottom: 2rem; }
.magic-video-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

/* Guitar-pick bullet in front of each paragraph of a post that sets
   `bodyClass: pick-bullets` in its front matter (used by the guitar tips
   post). Skips a paragraph that is entirely italic (the subtitle lines at
   the top). The pick is a mask, so it takes the
   accent color and follows the light/dark theme. */
.pick-bullets > p {
  position: relative;
  padding-left: 1.7rem;
}

.pick-bullets > p:not(:has(> em:only-child))::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 1rem;
  height: 1rem;
  background-color: var(--accent);
  transform: rotate(-12deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c-.7 0-1.300-.4-1.800-1.100C7 16.800 3.500 12.400 3.500 8.500 3.500 4.900 6.500 3 12 3s8.500 1.900 8.500 5.500c0 3.900-3.500 8.300-6.700 12.400-.5.700-1.100 1.100-1.800 1.100z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c-.7 0-1.300-.4-1.800-1.100C7 16.800 3.500 12.400 3.500 8.500 3.500 4.900 6.500 3 12 3s8.500 1.900 8.500 5.500c0 3.900-3.500 8.300-6.700 12.400-.5.700-1.100 1.100-1.800 1.100z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Quoted passage (markdown "> ..."). */
.post-body blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--muted);
}

.post-body blockquote p:last-child { margin-bottom: 0; }

/* Zoomable inline images: a post that sets `bodyClass: zoom-images` in its
   front matter. Click an image to open it full-screen; click again (or
   use + / - / the mouse wheel with Ctrl or a trackpad pinch) to zoom, and
   drag to pan. */
.zoom-images img {
  cursor: zoom-in;
}

.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 5, 0.94);
}

.zoom-overlay[hidden] {
  display: none;
}

.zoom-stage {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: auto;
  overscroll-behavior: contain;
  cursor: zoom-in;
  touch-action: pan-x pan-y;
}

.zoom-stage.is-zoomed { cursor: grab; }
.zoom-stage.is-dragging { cursor: grabbing; }

.zoom-stage img {
  display: block;
  flex: none;
  margin: auto;
  max-width: none;
  border-radius: 2px;
  user-select: none;
  -webkit-user-drag: none;
}

.zoom-controls {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.zoom-controls button {
  background: rgba(10, 8, 5, 0.6);
  border: none;
  border-radius: 2px;
  color: #f4ede0;
  font-family: "Space Mono", monospace;
  font-size: 1.6rem;
  line-height: 1;
  min-width: 2.4rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.zoom-controls button:hover {
  color: var(--accent);
}
