/* Black Crest: black, bone and the Hellcat's red. One dark look by design.
   See .claude/skills/tiddles-brand/SKILL.md before changing how the site looks. */

@font-face { font-family: "IM Fell English"; src: url("../fonts/im-fell-english-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("../fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "IM Fell English SC"; src: url("../fonts/im-fell-english-sc-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --black: #000;
  --bone: #ece5d8;
  --ash: #a79f92;
  --red: #d42a2f;
  --red-text: #f0545a;
  --ember: #8a1015;
  --line: #2a2724;
  --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --small-caps: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --body: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--bone); font: 17px/1.55 var(--body); font-size-adjust: from-font; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
p { margin: 0 0 12px; }

.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 70rem; margin-inline: auto; }
.band { border-top: 1px solid var(--line); }
.band > .inner { padding-block: 56px; }
.lede { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--ash); }
.muted { color: var(--ash); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--bone); color: var(--black); padding: 8px 14px; z-index: 5; }
.skip:focus { top: 8px; }

/* The header and footer */
.wm { display: block; width: 100%; height: auto; }
.site-head .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px; }
.site-head a.home { display: block; width: min(300px, 70vw); color: var(--bone); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--small-caps); font-size: 1.15rem; }
.site-nav a { text-decoration: none; color: var(--ash); padding-block: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--bone); }
.site-foot { border-top: 1px solid var(--line); color: var(--ash); font-size: .95rem; }
.site-foot .inner { display: grid; gap: 18px; padding-block: 36px 48px; }
@media (min-width: 760px) { .site-foot .inner { grid-template-columns: 1fr auto; align-items: end; } }
.site-foot .wm { width: 220px; color: var(--bone); }
.site-foot p { margin: 12px 0 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a:hover { color: var(--bone); }

/* Buttons */
.btn { display: inline-block; font: 500 1.05rem/1 var(--body); padding: 14px 22px; border: 1px solid var(--bone); background: transparent; color: var(--bone); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn:hover { background: var(--bone); color: var(--black); border-color: var(--bone); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Photos that are links stay black and white until someone reaches for them.
   Phones have no hover, so there it's while the finger is down. */
.photo-link { display: block; }
.photo-link img { filter: grayscale(1) contrast(1.15) brightness(.9); transition: filter .3s; }
.photo-link:focus-visible img, .photo-link:active img { filter: grayscale(.2) contrast(1.05); }
@media (hover: hover) { .photo-link:hover img { filter: grayscale(.2) contrast(1.05); } }

/* Home */
.hero { position: relative; text-align: center; padding-block: 8px 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: 42%; width: min(900px, 140vw); aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, var(--ember) 0 35%, transparent 75%); animation: ember 9s ease-in-out infinite alternate; }
@keyframes ember { from { opacity: .55; scale: .92; filter: hue-rotate(0deg); } to { opacity: 1; scale: 1.06; filter: hue-rotate(-28deg); } }
.hero img { position: relative; width: min(500px, 100%); margin-inline: auto; }
.hero .lede { position: relative; margin: 8px 0 28px; }
.hero .actions { position: relative; justify-content: center; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 860px) { .two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.next-gig h2 { margin-bottom: 12px; }
.next-gig .state { font-family: var(--display); font-size: 1.6rem; line-height: 1.25; }
.next-gig p { max-width: 34rem; }
.last-out { border-left: 2px solid var(--red); padding-left: 14px; margin-top: 24px; }
.last-out b { display: block; font-family: var(--small-caps); font-weight: 400; font-size: 1.1rem; color: var(--ash); }
.quote { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; max-width: 46rem; margin: 0; }

/* The player */
.tracks { list-style: none; margin: 0; padding: 0; }
.tracks li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.play { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; border: 1px solid var(--bone); background: transparent; color: var(--bone); }
.play:hover, .play[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.play svg { width: 16px; height: 16px; }
.play .pause, .play[aria-pressed="true"] .tri { display: none; }
.play[aria-pressed="true"] .pause { display: block; }
.tracks .name { font-family: var(--display); font-size: 1.2rem; }
.tracks .time { font-variant-numeric: tabular-nums; color: var(--ash); }
.tracks progress { grid-column: 2 / 4; width: 100%; height: 3px; border: 0; background: var(--line); accent-color: var(--red); cursor: pointer; }
.tracks progress::-webkit-progress-bar { background: var(--line); }
.tracks progress::-webkit-progress-value { background: var(--red); }
.tracks progress::-moz-progress-bar { background: var(--red); }

/* Lists of words: posts and gigs */
.posts { list-style: none; margin: 28px 0 0; padding: 0; }
.posts li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.posts img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.posts img.cat { object-fit: contain; border-radius: 0; }
.posts img.pic { border-radius: 0; }
.posts h3 { font-size: 1.5rem; margin: 2px 0 6px; }
.posts h3 a, .gig-row a { text-decoration: none; }
.posts h3 a:hover, .gig-row a:hover { color: var(--red-text); }
.by { font-family: var(--small-caps); color: var(--ash); font-size: 1.05rem; }
.posts p { margin: 0; color: var(--ash); max-width: 40rem; }
.more { margin: 24px 0 0; }

.gig-list { list-style: none; margin: 18px 0 0; padding: 0; }
.gig-row { display: grid; gap: 2px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .gig-row { grid-template-columns: 15rem minmax(0, 1fr); } }
.gig-row .date { color: var(--ash); }
.gig-row .venue { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.off { font-family: var(--small-caps); color: var(--red-text); }
.year { margin-top: 40px; }
.follow { margin-top: 28px; }

/* Grids of pictures */
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.photos a { background: #111; overflow: hidden; }
.photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photos.strip a:first-child { grid-column: span 2; }
.photos.strip a:first-child img { aspect-ratio: auto; }
@media (min-width: 760px) { .photos.strip { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; } .photos.strip a:first-child { grid-column: auto; grid-row: span 2; } .photos.strip img { aspect-ratio: auto; } }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 28px; margin-top: 28px; }
.albums a.card { text-decoration: none; display: grid; gap: 10px; }
.albums img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.albums strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.credit { margin: 12px 0 0; color: var(--ash); font-size: .9rem; }

.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px; margin-top: 32px; }
.member-card { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.member-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.member-card strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.member-card span { color: var(--ash); }

/* Member page */
.member-head { display: grid; gap: 32px; padding-block: 24px 56px; }
@media (min-width: 860px) { .member-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: 56px; } }
.member-head figure { margin: 0; }
.member-head img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: grayscale(1) contrast(1.2); }
.alter { font-family: var(--small-caps); font-size: 1.25rem; color: var(--red-text); margin: 0 0 6px; }
.role { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--ash); margin: 10px 0 24px; }
.back { display: inline-block; margin-top: 8px; color: var(--ash); }

/* Pages of words */
.page-head { padding-block: 24px 40px; }
.prose { max-width: 42rem; }
.prose h2 { margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--red-text); }
.prose dt { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; margin-top: 24px; }
.prose dd { margin: 6px 0 0; }
.prose li + li { margin-top: 2px; }

/* A gig */
.gig-facts { font-family: var(--display); font-size: 1.35rem; line-height: 1.3; margin: 12px 0 18px; }
.gig-art { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.gig-art figure { margin: 0; width: min(320px, 100%); }
.gig-art figcaption { color: var(--ash); margin-top: 6px; }

/* Video */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px; margin-top: 24px; }
.videos figure { margin: 0; }
.videos video { width: 100%; aspect-ratio: 16 / 9; background: #111; object-fit: contain; }
.videos figcaption { font-family: var(--display); font-size: 1.25rem; margin-top: 8px; }
/* A post's own video: full width, but a portrait phone video stays on screen. */
.page-head > video { width: 100%; max-height: 80vh; background: #111; margin-block: 16px; }
/* A post's main picture, above its video: a portrait one stays on screen too. */
.post-picture { margin: 16px 0; }
.post-picture img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; }

/* The photo viewer */
dialog.lightbox { background: var(--black); color: var(--bone); border: 1px solid var(--line); padding: 12px; width: min(96vw, 1000px); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox img { max-height: 76vh; width: auto; margin-inline: auto; }
.lightbox p { margin: 10px 0; text-align: center; }
.lightbox .actions { justify-content: center; }
.lightbox .btn { padding: 10px 16px; }

/* 404 */
.lost { display: grid; gap: 24px; justify-items: center; text-align: center; padding-block: 40px 72px; }
.lost img { width: min(300px, 70vw); }

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .photo-link img, .btn { transition: none; }
}

/* The admin's preview of a post that isn't on the site yet. */
.preview-banner { position: sticky; top: 0; z-index: 10; margin: 0; padding: 10px 16px; background: var(--ember); color: var(--bone); text-align: center; font-weight: 500; }

/* The mailing-list sign-up (home page and /newsletter) */
.signup { display: grid; gap: 10px; max-width: 36rem; }
.signup label { font-family: var(--small-caps); font-size: 1.15rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type="email"] { flex: 1 1 16rem; min-width: 0; font: 1.05rem/1.2 var(--body); padding: 13px 14px; background: var(--black); color: var(--bone); border: 1px solid var(--ash); border-radius: 0; }
.signup input[type="email"]:focus-visible { border-color: var(--bone); }
.signup-message { color: var(--red-text); margin: 0; }
.signup .small { margin: 0; }
.signup .small a { color: var(--red-text); }
/* For bots only: off the screen, out of the tab order, hidden from screen readers. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
