:root {
  /* night blue, the same sky as the home page, on every page */
  --bg: #0c1838;
  --sky: radial-gradient(ellipse 120% 90% at 50% 42%, #1a2f63 0%, #11224b 45%, #0a1430 100%);
  --card: #11224b;
  --text: rgba(230, 235, 247, .82);
  --soft: rgba(230, 235, 247, .55);
  --dark: #f2f4fa;   /* the strongest text: names, titles, links */
  --line: rgba(230, 235, 247, .22);
  --serif: "Cardo", "Times New Roman", Times, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--sky) fixed var(--bg); color: var(--text); min-height: 100vh;
  font: 15px/1.9 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--dark); text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover { border-bottom-color: var(--dark); }
p { margin: 0 0 1.1em; }
h1, h2 { font-size: 15px; font-weight: 700; margin: 0 0 1.1em; color: var(--text); }
ul { margin: 0 0 1.1em; padding-left: 40px; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* top bar: lowercase name left, small spaced menu right */
header.top { display: flex; justify-content: space-between; align-items: baseline; padding: 26px 0 0; }
.name { font-size: 17px; letter-spacing: .08em; color: var(--dark); border: 0; }
nav.menu { display: flex; flex-wrap: wrap; gap: 4px 30px; font-size: 12px; letter-spacing: .08em; }
nav.menu a { color: var(--soft); border: 0; }
nav.menu a:hover { color: var(--dark); }

/* intro: words left, portrait right */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: 64px 0 120px; }
.intro .words { padding-top: 8px; }
.intro img { width: 100%; height: auto; display: block; }
.intro .more a { font-weight: 700; }

section { margin: 0 0 110px; scroll-margin-top: 24px; }
.cols p { max-width: 36em; }
.quote { font-style: italic; color: var(--soft); }

/* releases: a spacious timeline of covers, years down the middle */
.timeline { position: relative; padding: 10px 0 20px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: start; }
.row .yr { grid-column: 6 / span 2; grid-row: 1; align-self: center; justify-self: center; font-size: 12px; letter-spacing: .12em; color: var(--soft); background: var(--sky) fixed var(--bg); padding: 2px 8px; position: relative; z-index: 1; }
.row figure { grid-row: 1; margin: 0; }
.row figure a { border: 0; display: block; }
.row figure img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.row figure .noimg { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); padding: 14px; font-style: italic; text-align: center; }
.row figcaption { font-size: 13px; line-height: 1.5; margin-top: 8px; text-align: left; }
.row figure.right figcaption { text-align: right; }
.row figcaption .t { color: var(--dark); }
.row figcaption .m { color: var(--soft); display: block; }
.row figure a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.row figure .pic { opacity: .2; transition: opacity 1.2s ease; }
.row figure.seen .pic { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .row figure .pic { transition: none; } }

/* news: Tumblr posts, one quiet column */
/* one column, like the Tumblr page itself; every photo, in Tumblr's own rows */
.post { max-width: 640px; margin: 0 0 4.8em; }
.post .row-imgs > * { min-width: 0; }
.post .row-imgs img { width: 100%; height: auto; margin: 0; }
.post .date { font-size: 12px; letter-spacing: .12em; color: var(--soft); margin: 0 0 .9em; }
.post .date a { color: var(--soft); border: 0; }
.post .date a:hover { color: var(--dark); }
.post img { display: block; max-width: 100%; height: auto; margin: 0 0 1.1em; }
.post figure { margin: 0; }
.post .row-imgs { display: flex; gap: 8px; margin: 0 0 1.1em; }
.post h2, .post h3 { font-size: 15px; font-weight: 700; margin: 0 0 .6em; color: var(--dark); }
.post blockquote { margin: 0 0 1.1em; padding-left: 1.2em; border-left: 1px solid var(--line); }
.post .video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.1em; }
.post .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post .tags { font-size: 12px; color: var(--soft); }
.news-wait { color: var(--soft); }
/* ▲ back to top, ▼ more posts: stacked at the bottom, as on the old site */
.news-arrows { max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 20px; }
.news-arrows button { font: 18px/1 var(--serif); color: var(--soft); background: none; border: 0; padding: 8px 14px; cursor: pointer; }
.news-arrows button:hover { color: var(--dark); }
.news-arrows button[hidden] { display: none; }
.news-arrows .busy { opacity: .35; }

/* plain lines */
.lines { list-style: none; padding: 0; }
.lines li { padding: 1px 0; }
.lines .y, .lines .m { color: var(--soft); }
.year { margin: 1.6em 0 .2em; color: var(--soft); font-size: 12px; letter-spacing: .12em; }
.year:first-child { margin-top: 0; }

.projects article { max-width: 36em; margin: 0 0 2.2em; }
.projects h3 { font-size: 15px; font-weight: 400; color: var(--dark); margin: 0; }
.projects p { margin: 0 0 .4em; }
.projects .m { color: var(--soft); font-style: italic; }

.links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
footer { font-size: 12px; letter-spacing: .08em; color: var(--soft); padding: 0 0 48px; }
footer a { color: var(--soft); border: 0; }

@media (max-width: 720px) {
  header.top { flex-direction: column; align-items: center; gap: 10px; padding-top: 20px; }
  nav.menu { justify-content: center; gap: 2px 18px; }
  .intro { grid-template-columns: 1fr; margin: 44px 0 80px; }
  .intro .pic-col { order: 2; margin-top: 12px; }
  section { margin-bottom: 80px; }
  .timeline::before { display: none; }
  .row { grid-template-columns: repeat(6, 1fr); column-gap: 12px; margin-top: 22px !important; }
  .row .yr { grid-column: 1 / -1; grid-row: 1; margin-bottom: 6px; }
  .row figure { grid-row: 2; grid-column: var(--mcol) !important; }
}

/* the monarch is the mouse pointer (mouse/trackpad only; phones keep normal touch) */
#monarch { display: none; }
html.monarch-on, html.monarch-on * { cursor: none !important; }
html.monarch-on #monarch {
  display: block; position: fixed; left: 0; top: 0; z-index: 9999;
  width: 36px; height: auto; pointer-events: none;
  transform-origin: 2px 19px;  /* the antenna tip is the point that clicks */
  will-change: transform;
}
#monarch img { display: block; width: 100%; height: auto; transition: filter .6s ease; }
/* a click lights the monarch up for a moment */
#monarch.glow img { transition: none; filter: brightness(1.35) saturate(1.2) drop-shadow(0 0 3px #ffd77a) drop-shadow(0 0 9px #ffb02e); }
nav.menu a[aria-current="page"] { color: var(--dark); }
main { padding-top: 64px; min-height: 60vh; }
main .intro { margin-top: 0; }
main > section { margin-bottom: 80px; }
@media (max-width: 720px) { main { padding-top: 40px; } }
/* news sits in a centred column; its heading lines up with the posts */
.page-news h1, .post, .news-arrows { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Bandcamp pop-up */
.bc-pop { position: fixed; inset: 0; z-index: 9000; background: rgba(6, 12, 32, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bc-pop[hidden] { display: none; }
html.bc-open { overflow: hidden; }
.bc-card { position: relative; background: var(--card); width: min(880px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 40px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); outline: none; }
.bc-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font: 26px/1 var(--serif); color: var(--soft); cursor: pointer; }
.bc-close:hover { color: var(--dark); }
.bc-close { display: none; } /* no ×: clicking outside closes it */
/* a little milkweed: click it for something else */
.bc-next { position: absolute; top: 4px; right: 10px; width: 56px; height: 66px; padding: 0; border: 0;
  background: url(images/milkweed-blue.png?v=2) center / contain no-repeat; cursor: pointer; opacity: .85;
  transition: opacity .3s ease, filter .3s ease; }
.bc-next:hover, .bc-next:focus-visible { opacity: 1; filter: brightness(1.25) drop-shadow(0 0 6px rgba(160, 185, 245, .45)); outline: none; }
.bc-next[hidden] { display: none; }
.bc-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 36px; align-items: start; }
.bc-grid.no-art { grid-template-columns: 1fr; }
.bc-art { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.bc-art[hidden] { display: none; }
.bc-meta { margin: 0 0 .3em; font-size: 12px; letter-spacing: .12em; color: var(--soft); }
.bc-meta:empty, .bc-artist:empty { display: none; }
.bc-title { font-size: 22px; font-weight: 400; color: var(--dark); margin: 0 0 .2em; line-height: 1.3; }
.bc-artist { margin: 0 0 .6em; color: var(--soft); }
.bc-player iframe { display: block; width: 100%; border: 0; margin: 14px 0 10px; }
@media (max-width: 720px) {
  .bc-card { padding: 28px 18px; }
  .bc-grid { grid-template-columns: 1fr; gap: 18px; }
  .bc-art { max-width: 220px; }
}

/* bigger click targets: every link and button reaches ~12-16px past its text,
   so a click that lands just beside a word still counts. Invisible. */
a, button { position: relative; }
a::after, button::after { content: ""; position: absolute; inset: -12px -16px; }
/* in the film list, the whole line is the link: year, title and details */
#films li { position: relative; }
#films li a { position: static; }
#films li a::after { inset: 0 -10px; }
.row figure a::after, .post a:has(img)::after { inset: -6px; }
/* about sits in a centred column too; heading lines up with the text */
.page-about h1, .page-about p { max-width: 36em; margin-left: auto; margin-right: auto; }
/* video pop-up: wider, 16:9 player */
.bc-card.is-video { width: min(1000px, 100%); }
.bc-video { position: relative; aspect-ratio: 16 / 9; margin-top: 14px; background: #0a1430; }
.bc-player .bc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
/* the words under the player: Alex's own description, then his part in it */
.bc-about { margin-top: 18px; max-width: 40em; }
.bc-about p { margin: 0 0 .8em; line-height: 1.7; }
.bc-about .bc-role { font-size: 13px; color: var(--soft); }
.bc-about:empty { display: none; }
.bc-credits { list-style: none; margin: .2em 0 0; padding: 0; font-size: 13px; line-height: 1.6; color: var(--soft); }
.bc-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 1em 0 0; }

/* monarch films page: one centred column, a full-width player per film */
.page-monarchs .monarch-film { max-width: 760px; margin: 0 auto 110px; }
.film-meta { font-size: 12px; letter-spacing: .12em; color: var(--soft); margin: -.4em 0 1.4em; }
.film-frame { position: relative; aspect-ratio: 16 / 9; background: #000; margin: 0 0 1.2em; }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-lang { display: flex; gap: 18px; margin: -.2em 0 1.4em; font-size: 13px; letter-spacing: .08em; }
.film-lang button { font: inherit; background: none; border: 0; padding: 0; color: var(--soft); cursor: pointer; }
.film-lang button[aria-pressed="true"] { color: var(--dark); border-bottom: 1px solid var(--dark); }
.film-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
/* a project's own website, live inside its pop-up */
.bc-site { margin-top: 18px; height: min(60vh, 560px); border: 1px solid var(--line); }
.bc-site iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Bandcamp's player only comes in white or dark grey: tint its grey to the
   same night blue (same lightness), without touching how it works */
.bc-player.is-bc { position: relative; }
.bc-player.is-bc::after { content: ""; position: absolute; inset: 0; background: #3d5288; mix-blend-mode: color; pointer-events: none; }
/* while a player loads, the space it fills stays night blue, never white */
.bc-player, .bc-player iframe, .bc-video, .bc-video iframe { background-color: var(--card); color-scheme: normal; }
.bc-photo { display: block; width: 100%; height: auto; margin: .4em 0 1em; }
/* News: the heading and posts in one centred column inside the pop-up */
.bc-card.is-news .bc-copy { max-width: 640px; margin: 0 auto; }
.bc-card.is-news .bc-about { max-width: none; }
/* a tall picture (e.g. a booklet cover) shows whole instead of cropped square */
.bc-art.tall { aspect-ratio: auto; object-fit: contain; }

/* the index: everything on the site, one line each */
.idx h3 { margin: 1.6em 0 .5em; font-size: 12px; font-weight: 400; letter-spacing: .14em; color: var(--soft); text-transform: lowercase; }
.idx h3:first-child { margin-top: .4em; }
.idx ul { list-style: none; margin: 0; padding: 0; }
.idx li { margin: 0; }
.idx button { display: flex; gap: 14px; width: 100%; padding: 5px 0; border: 0; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.idx button:hover, .idx button:focus-visible { color: var(--dark); outline: none; }
.idx .yr { flex: 0 0 3em; color: var(--soft); font-variant-numeric: tabular-nums; }
