/* Chris Juby — site styles. A narrow black header, a calm reading column with a browse menu on the right, a black footer. Phone first. */

:root {
  --ink: #1f1d1a;
  --text: #36332e;
  --muted: #7a746b;
  --bg: #fbfaf7;
  --soft: #f3f0ea;
  --line: #e7e2d9;
  --black: #0d0d0c;
  --menu-text: #c9c3b9;
  --orange: #efa54a;
  --orange-text: #a35a10;
  --column: 680px;
  --sidebar: 270px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--orange-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; }
pre { overflow-x: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--black); padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-inline { width: 1em; height: 1em; vertical-align: -0.15em; }

/* ---------- Shell: narrow header, content with a browse menu on the right, footer ---------- */

.site-header { background: var(--black); border-bottom: 3px solid var(--orange); position: relative; z-index: 10; }
.site-header-inner { max-width: 1060px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-name { color: var(--orange); font-weight: 800; font-size: 1.2rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; line-height: 1.1; }
.site-name:hover { color: #fff; }
.nav-toggle { display: inline-flex; background: none; border: 0; color: var(--orange); padding: 4px; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); border-bottom: 3px solid var(--orange); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 4px 20px 14px; }
.site-nav a { display: block; color: #fff; text-decoration: none; font-weight: 700; padding: 10px 0; border-bottom: 1px solid #2a2926; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange); }
@media (min-width: 700px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; }
  .site-nav ul { display: flex; gap: 28px; padding: 0; }
  .site-nav a { border: 0; padding: 2px 0; font-size: .98rem; border-bottom: 2px solid transparent; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
}

.site-body { max-width: 1060px; margin: 0 auto; padding: 32px 20px 56px; }
.site-main { min-width: 0; min-height: 60vh; }
.site-aside { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .95rem; }
@media (min-width: 1000px) {
  .site-body { display: grid; grid-template-columns: minmax(0, var(--column)) 230px; gap: 72px; justify-content: center; padding-top: 48px; padding-bottom: 80px; }
  .site-aside { margin: 0; padding: 0; border: 0; position: sticky; top: 32px; align-self: start; }
}
.aside-search { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); }
.aside-search:focus-within { border-color: var(--orange); }
.aside-search input { flex: 1; min-width: 0; background: none; border: 0; font: inherit; font-size: .92rem; color: var(--ink); outline: 0; }
.aside-search .icon { width: 17px; height: 17px; }
.aside-heading { margin: 26px 0 8px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aside-browse { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px 16px; }
@media (min-width: 1000px) { .aside-browse { grid-template-columns: 1fr; } }
.aside-browse a { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--text); text-decoration: none; }
.aside-browse a .icon { width: 18px; height: 18px; color: var(--orange-text); }
.aside-browse a:hover, .aside-browse a[aria-current="page"] { color: var(--orange-text); }
.aside-browse a[aria-current="page"] { font-weight: 700; }
.aside-rss { margin: 22px 0 0; font-size: .88rem; }
.aside-rss a { color: var(--muted); text-decoration: none; }
.aside-rss a:hover { color: var(--orange-text); }

.site-footer { background: var(--black); color: #b5afa5; border-top: 3px solid var(--orange); }
.site-footer-inner { max-width: 1060px; margin: 0 auto; padding: 36px 20px 20px; display: grid; gap: 28px; }
@media (min-width: 800px) { .site-footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 56px; } }
.site-footer h2 { color: var(--orange); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; }
.site-footer p { margin: 0; font-size: .95rem; line-height: 1.6; }
.site-footer a { color: #e8e3da; }
.site-footer a:hover { color: var(--orange); }
.footer-links ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.footer-links li { padding: 3px 0; }
.footer-links a { text-decoration: none; }
.footer-small { max-width: 1060px; margin: 0 auto !important; padding: 12px 20px 28px; font-size: .8rem !important; color: #7d776e; }

/* ---------- General page elements ---------- */

.page-heading { font-size: 2.1rem; margin: 0 0 14px; letter-spacing: -.01em; }
.listing-heading { margin-bottom: 8px; }
.section-heading { font-size: 1.3rem; margin: 44px 0 14px; }
.small-heading { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 8px; }
.eyebrow { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.eyebrow a { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--ink); line-height: 1.6; }
.back-link { margin-top: 40px; font-size: .95rem; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.float-image { float: right; margin: 6px 0 16px 24px; border-radius: 6px; }
.prose::after { content: ""; display: block; clear: both; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pill:hover { border-color: var(--orange); color: var(--orange-text); }
.pill-type { font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: .05em; }

/* ---------- Feed ---------- */

/* Posts flow down one column, separated by space and a hairline; each has its type icon and date at the top left. */
.feed { display: block; }
.feed-empty { color: var(--muted); }
.post { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.feed > .post:first-child, .feed-single > .post { border-top: 0; padding-top: 0; }
@media (min-width: 700px) { .post { grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 30px 0; } }

.entry-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 2px; }
.entry-badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--orange-text); background: var(--bg); }
.entry-badge-icon .icon { width: 20px; height: 20px; }
.post-featured .entry-badge-icon { background: var(--orange); border-color: var(--orange); color: var(--black); }
.entry-badge-date { display: block; text-decoration: none; color: var(--muted); line-height: 1.05; }
.entry-badge-date time, .entry-badge-date > span { display: flex; flex-direction: column; align-items: center; }
.entry-badge-day { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.entry-badge-month { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.entry-badge-year { font-size: .68rem; margin-top: 2px; }
.entry-badge { text-decoration: none; }
.entry-badge:hover .entry-badge-day, .entry-badge:hover .entry-badge-month, .entry-badge:hover .entry-badge-year, .entry-badge:hover .entry-badge-date { color: var(--orange-text); }
.entry-badge:hover .entry-badge-icon { border-color: var(--orange); color: var(--orange-text); }
.post-featured .entry-badge:hover .entry-badge-icon { color: var(--black); }
.post-main { min-width: 0; }
.post-main > :first-child { margin-top: 0; }

.post-title { font-size: 1.4rem; margin: 2px 0 10px; letter-spacing: -.005em; }
h1.post-title { font-size: 2.1rem; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--orange-text); }
.post-body > :first-child { margin-top: 0; }
.post-body > :last-child { margin-bottom: 0; }
.post-body h2 { font-size: 1.3rem; margin-top: 32px; }
.post-body img, .post-photo img, .post-lead-image img { display: block; border-radius: 4px; }
.post-body figure, .post-photo, .post-lead-image { margin: 18px 0; }
.post-body figcaption, .post-photo figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.post-lead-image:first-child { margin-top: 0; }
.post-caption + .post-place::before { content: "· "; }
.post-more { margin: 12px 0 0; }
.post-more a { font-weight: 700; text-decoration: none; }
.post-via { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }

/* Footer line: type, featured and tags */
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; color: var(--muted); margin-top: 12px; }
.post-meta a { color: var(--muted); text-decoration: none; }
.post-meta a:hover { color: var(--orange-text); text-decoration: underline; }
.post-meta .post-tag { color: var(--orange-text); }
.post-featured-label { color: var(--orange-text); font-weight: 700; }

/* Quotes */
.post-quote { margin: 0 0 6px; }
.post-quote blockquote { margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--orange); font: 1.35rem/1.55 var(--serif); color: var(--ink); }
.post-quote figcaption { margin: 12px 0 0 25px; color: var(--muted); }
.post-quote cite { font-style: italic; }

/* Link preview cards */
.post-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 14px 0 0; background: #fff; text-decoration: none; color: inherit; }
.post-body + .post-card { margin-top: 18px; }
.post-card:hover { border-color: var(--orange); }
.post-card-image { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; flex: none; }
.post-card-text { display: grid; gap: 4px; min-width: 0; }
.post-card-site { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.post-card-title { font-weight: 700; color: var(--ink); line-height: 1.35; }
.post-card-description { color: var(--muted); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card--large { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.post-card--large .post-card-image { width: 100%; height: auto; max-height: 420px; border-radius: 0; }
.post-card--large .post-card-text { padding: 14px 18px 16px; }
.post-card--large .post-card-title { font-size: 1.15rem; }

/* Books */
.post-book { display: flex; gap: 22px; align-items: flex-start; }
.post-book-cover { width: 96px; height: auto; flex: none; border-radius: 2px; box-shadow: 0 3px 12px rgba(0, 0, 0, .18); }
@media (min-width: 700px) { .post-book-cover { width: 120px; } }
.post-book .post-title { margin-bottom: 4px; }
.post-book p { margin: 2px 0; }
.post-book-authors { color: var(--ink); }
.post-book-finished { font-size: .9rem; color: var(--muted); }
.post-book-buy { font-size: .9rem; }
.post-book + .post-body { margin-top: 18px; }

/* Players */
.post-player { margin: 0 0 6px; }
.post-embed-frame, .video-wrapper { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.post-embed-frame iframe, .video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-embed-audio iframe { width: 100%; border: 0; border-radius: 10px; display: block; }
.post-player + .post-body, .post-player + .post-own-song { margin-top: 16px; }
.post-own-song { font-size: .95rem; }
.post-embedded { border-left: 3px solid var(--orange); padding: 6px 0 6px 16px; margin: 18px 0; }
.post-embedded a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* Fields of post types added in the CMS */
.post-fields { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.post-fields dt { font-weight: 700; color: var(--ink); }
.post-fields dd { margin: 0; }

/* Setlists */
.post-setlist-where { margin: -8px 0 12px; color: var(--muted); font-size: .9rem; }
.post-setlist-songs, .setlist-songs { margin: 0; padding-left: 22px; }
.post-setlist-songs li, .setlist-songs li { margin: 3px 0; }
.post-setlist-new-block { margin-top: 18px !important; }
.post-setlist-title { color: var(--ink); }
.post-setlist-title a { color: var(--ink); text-decoration-color: var(--orange); }
.post-setlist-part { color: var(--muted); font-size: .9rem; }
.post-setlist-authors { color: var(--muted); font-size: .86rem; }
.post-setlist-authors::before { content: " – "; }
.setlist-songs { list-style: none; padding: 0; margin: 24px 0; }
.setlist-songs li { display: flex; gap: 14px; align-items: baseline; }
.setlist-key { flex: none; min-width: 2.4em; text-align: center; font-size: .78rem; font-weight: 700; color: var(--orange-text); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.setlist-song-text .post-setlist-authors { display: block; }
.setlist-song-text .post-setlist-authors::before { content: ""; }
.setlist-archive details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.setlist-archive summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.setlist-archive ul { list-style: none; padding: 8px 0 4px; margin: 0; columns: 2 260px; column-gap: 28px; }
.setlist-archive li { break-inside: avoid; padding: 2px 0; font-size: .92rem; }
.setlist-archive-date { display: inline-block; min-width: 3.6em; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); }

/* Pager, previews, search */
.feed-pager { display: flex; gap: 12px; margin: 16px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.feed-pager a { font-weight: 700; text-decoration: none; }
.feed-pager a[rel="next"] { margin-left: auto; }
.preview-notice { background: #fff4e3; border-left: 3px solid var(--orange); padding: 10px 14px; color: #6b4a12; margin: 0 0 32px; }
.search-form { display: flex; gap: 8px; margin: 0 0 24px; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.search-form button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; background: var(--black); color: var(--orange); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.search-songs { padding-left: 20px; }

/* ---------- Songs ---------- */

.songs-section { margin-top: 44px; }
.songs-section .section-heading { margin-top: 0; }
.song-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.song-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); text-decoration: none; }
.song-card:hover { border-color: var(--orange); }
.song-card-title { color: var(--ink); font-weight: 700; line-height: 1.3; }
.song-card-blurb { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.song-subtitle { font-weight: 400; color: var(--muted); }

.song-header { margin-bottom: 28px; }
.song-header .page-heading { margin-bottom: 4px; }
.song-author { margin: 0; color: var(--muted); }
.song-blurb { margin: 14px 0 0; font-size: 1.15rem; color: var(--ink); }
.song-player { margin: 0 0 28px; }
.song-resources { padding: 4px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; margin: 36px 0 0; }
.tabs button { font: inherit; font-weight: 700; border: 0; background: none; padding: 6px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--black); color: var(--orange); }
.has-tabs .section-heading { display: none; }
.song-lyrics, .song-chords { margin-top: 18px; }
.song-lyrics p { margin: 0 0 1em; }
.song-chords pre { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 18px; font-size: .92rem; line-height: 1.5; }
.song-keys { color: var(--muted); }
.album-card { display: flex; gap: 20px; align-items: flex-start; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.album-card img { border-radius: 4px; flex: none; }
.album-title { margin: 0; font-size: 1.15rem; }
.album-artist { margin: 0 0 12px; color: var(--muted); }
.song-footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.song-footer p { margin: 4px 0; }

@media (max-width: 599px) {
  body { font-size: 16px; }
  .page-heading, h1.post-title { font-size: 1.7rem; }
  .post-title { font-size: 1.3rem; }
  .post-quote blockquote { font-size: 1.15rem; }
  .float-image { width: 90px; margin-left: 16px; }
}

/* ---------- Later additions ---------- */

/* Phones: the icon and date sit in a row above the post, so the content gets the full width. */
@media (max-width: 599px) {
  .post { display: block; }
  .entry-badge { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0; }
  .entry-badge-icon { width: 30px; height: 30px; border-width: 1px; }
  .entry-badge-icon .icon { width: 16px; height: 16px; }
  .entry-badge-date time, .entry-badge-date > span { flex-direction: row; align-items: baseline; gap: 4px; }
  .entry-badge-day { font-size: .9rem; color: var(--muted); font-weight: 700; }
  .entry-badge-month, .entry-badge-year { font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; margin: 0; }
  .post-featured .entry-badge::after { content: "Featured"; font-size: .8rem; font-weight: 700; color: var(--orange-text); }
}

/* Site icons before links to SongSelect and Resound Worship */
.favicon { width: 16px; height: 16px; flex: none; border-radius: 3px; }
.footer-links .favicon { vertical-align: -3px; margin-right: 6px; }

/* Songs index: one column */
.songs-intro { margin-bottom: 8px; }
.songs-jump { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.songs-jump a { font-weight: 600; text-decoration: none; }
.songs-jump a:hover { text-decoration: underline; }
.song-rows { list-style: none; padding: 0; margin: 0; }
.song-rows li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.song-rows li:first-child { border-top: 1px solid var(--line); }
.song-rows a { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.song-rows a:hover { color: var(--orange-text); }
.song-rows p { margin: 2px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.songs-section { scroll-margin-top: 16px; }

/* Tweets: shown much as they looked on Twitter */
.tweet { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 12px; background: #fff; max-width: 560px; }
.tweet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; line-height: 1.2; }
.tweet-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.tweet-name { font-weight: 700; color: var(--ink); }
.tweet-handle { color: var(--muted); font-size: .92rem; }
.tweet-text { font-size: 1.05rem; line-height: 1.5; color: var(--ink); margin: 0 0 10px; overflow-wrap: anywhere; }
.tweet-text a { text-decoration: none; }
.tweet-text a:hover { text-decoration: underline; }
.tweet-mention, .tweet-tag { color: var(--muted); }
.tweet-media { display: grid; gap: 3px; border-radius: 14px; overflow: hidden; margin: 0 0 10px; }
.tweet-media img, .tweet-media video { display: block; width: 100%; border-radius: 0; }
.tweet-media--2, .tweet-media--3, .tweet-media--4 { grid-template-columns: 1fr 1fr; }
.tweet-media--2 img, .tweet-media--3 img, .tweet-media--4 img { aspect-ratio: 1; height: 100%; object-fit: cover; }
.tweet-media--3 > :first-child { grid-row: span 2; }
.tweet-video { height: auto; background: #000; }
.tweet-embed { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.tweet-embed p { margin: 0; }
.tweet-embed-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 4px !important; }
.tweet-embed-author { margin-bottom: 4px !important; line-height: 1.2; }
.tweet-embed-text { font-size: .98rem; line-height: 1.45; color: var(--ink); }
.tweet-embed-date { font-size: .82rem; margin-top: 6px !important; }
.tweet-embed-date a { color: var(--muted); }
.tweet-thread-part { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.tweet-foot { margin: 4px 0 0; font-size: .84rem; color: var(--muted); }
.tweet-foot a { color: var(--muted); }
.tweet + .post-body { margin-top: 16px; }

/* Tweets: link cards and players, embedded tweets (before and after Twitter's script turns them into the real thing) */
.tweet-card { margin: 0 0 10px; }
.tweet-card-player { margin: 0 0 10px; }
.tweet-handle { color: var(--muted); font-size: .92rem; text-decoration: none; }
a.tweet-handle:hover, .tweet-mention:hover { text-decoration: underline; color: var(--orange-text); }
.tweet-mention { color: var(--orange-text); text-decoration: none; }
.tweet-embed-wrap { margin: 0 0 10px; }
.tweet-embed-wrap .tweet-embed { margin: 0; }
blockquote.tweet-embed { font: inherit; }
.tweet-embed-wrap .twitter-tweet-rendered { margin: 0 !important; }

/* Setlists: the songs in a box, each with its key in front */
.setlist-box { list-style: none; margin: 4px 0 0; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.setlist-box li { display: flex; gap: 12px; align-items: baseline; margin: 4px 0; }
.setlist-box li.post-setlist-new-block { margin-top: 16px !important; }
.setlist-box .setlist-key { min-width: 2.6em; }
.setlist-box .setlist-song-text .post-setlist-authors { display: inline; }
.setlist-box .setlist-song-text .post-setlist-authors::before { content: " – "; }
.setlist-box + .post-body, .setlist-box + .prose { margin-top: 14px; }
.setlist-page .setlist-box { margin: 20px 0; }

/* Photo and short bio at the top of the right-hand menu */
.aside-about { margin-bottom: 22px; }
.aside-photo { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 12px; }
.aside-about p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--text); }
@media (max-width: 999px) {
  .aside-about { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
  .aside-photo { margin: 0; }
}
/* The footer now has just the Explore and Elsewhere lists */
@media (min-width: 800px) { .site-footer-inner { grid-template-columns: 1fr 1fr; max-width: 640px; margin-left: auto; margin-right: auto; } }
@media (min-width: 800px) { .footer-small { max-width: 640px !important; } }
/* With the photo the menu is tall: only keep it in place while scrolling when it fits on the screen. */
@media (min-width: 1000px) and (max-height: 820px) { .site-aside { position: static; } }
/* Same gap between a comment and a player as between a comment and a link preview */
.post-body + .post-player { margin-top: 18px; }

/* ---------- Boxed design: an off-white page with posts, pages and each part of the sidebar in white boxes ---------- */

:root { --page: #f1eee8; --box-line: #e4ded3; --box-radius: 12px; --box-shadow: 0 1px 2px rgba(29, 27, 24, .04); }
body { background: var(--page); }

/* Posts */
.feed { display: grid; gap: 16px; }
.post, .feed > .post:first-child, .feed-single > .post { background: #fff; border: 1px solid var(--box-line); border-radius: var(--box-radius); box-shadow: var(--box-shadow); padding: 22px 22px 18px; }
@media (min-width: 700px) {
  .post, .feed > .post:first-child, .feed-single > .post { padding: 28px 30px 22px 22px; }
}
.post-featured { border-color: var(--orange); }
.feed-pager { border-top: 0; padding-top: 8px; }
.entry-badge-icon { background: #fff; }

/* Boxes inside posts sit on the page colour so they stand out from the white post */
.post .post-card, .post .tweet, .post .setlist-box, .post .tweet-embed, .post .post-embedded { background: var(--bg); }
.post .post-card:hover { background: #f6f3ee; }

/* Pages (songs, setlists, about, search…) */
.page-wrap, .songs-page { background: #fff; border: 1px solid var(--box-line); border-radius: var(--box-radius); box-shadow: var(--box-shadow); padding: 24px 22px 28px; }
@media (min-width: 700px) { .page-wrap, .songs-page { padding: 36px 40px 40px; } }
.listing-heading { margin: 4px 0 18px; }

/* Sidebar: each part in its own box */
.site-aside { display: grid; gap: 14px; align-content: start; border-top: 0; padding-top: 0; }
.aside-box { background: #fff; border: 1px solid var(--box-line); border-radius: var(--box-radius); box-shadow: var(--box-shadow); padding: 14px 16px 16px; margin: 0; }
.aside-about { margin-bottom: 0; padding: 12px 12px 16px; }
.aside-about p { padding: 0 4px; }
.aside-photo { border-radius: 8px; }
.aside-box--search { padding: 10px; }
.aside-box--search .aside-search { background: var(--bg); }
.aside-box .aside-heading { margin-top: 0; }
.aside-box .aside-rss { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
p.aside-box.aside-rss { padding-top: 12px; }
@media (max-width: 999px) {
  .site-aside { margin-top: 32px; }
  .aside-about { display: grid; }
}

/* Tighter boxes, a narrower gap to the sidebar, and the header lined up with the content below it */
:root { --sidebar-width: 230px; --sidebar-gap: 32px; --shell: calc(var(--column) + var(--sidebar-gap) + var(--sidebar-width)); }
.feed { gap: 12px; }
.post, .feed > .post:first-child, .feed-single > .post { padding: 16px 16px 14px; }
@media (min-width: 700px) {
  .post, .feed > .post:first-child, .feed-single > .post { padding: 20px 22px 16px 16px; gap: 18px; }
}
@media (min-width: 1000px) {
  .site-header-inner, .site-body { max-width: calc(var(--shell) + 40px); }
  .site-body { grid-template-columns: minmax(0, var(--column)) var(--sidebar-width); gap: var(--sidebar-gap); justify-content: space-between; }
}
