/* rand.info — shared stylesheet for the modernized site.
   Keeps the original identity: dark green on white, Georgia/Times serif,
   letter-spaced name, small sans-serif menu. */

:root {
  --ink: #004100;          /* the site's original green */
  --ink-soft: #3d6a3d;     /* secondary text: dates, captions */
  --rule: #d5e2d5;         /* thin dividers */
  --wash: #f4f8f4;         /* faint green background for panels */
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 44rem;        /* comfortable reading width */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 18px/1.6 var(--serif);
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Layout ---------- */

.wrap {
  max-width: calc(var(--measure) + 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Site header (every page except home) ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0 1rem;
  margin-bottom: 2.25rem;
}

.site-name {
  display: inline-block;
  margin: 0 0 0.6rem;
  font: normal 1.5rem/1.2 var(--serif);
  letter-spacing: 0.35em;
  text-decoration: none;
}

.site-nav {
  font: 13px/1.4 var(--sans);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}
.site-nav a { text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }

/* ---------- Page content ---------- */

h1 {
  font: italic normal 1.6rem/1.3 var(--serif);
  margin: 0 0 1.5rem;
}
h1.section { font-style: normal; letter-spacing: 0.05em; }

h2 { font: normal 1.25rem/1.3 var(--serif); margin: 2.25rem 0 0.75rem; }

p { margin: 0 0 1rem; }
.prose p { text-align: justify; hyphens: none; }

.note { color: var(--ink-soft); font-size: 0.85rem; }

figure { margin: 0 0 1.75rem; }
figure img { display: block; border: 3px solid var(--ink); }
figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-soft); }
figure.center { text-align: center; }
figure.center img { margin: 0 auto; }

/* Composition fact sheet */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0 0 2rem;
}
.facts dt { font-weight: bold; }
.facts dd { margin: 0; }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 0.75rem; }
}

/* Row of resource links (score, video, audio, note) */
.resources {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.resources a {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 14px/1.4 var(--sans);
  text-decoration: none;
}
.resources a:hover { background: var(--ink); color: #fff; }

/* List of works */
.works { list-style: none; padding: 0; margin: 0; }
.works li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}
.works .year { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.works .title { font-style: italic; }

/* Small print links (publicity photos etc.) */
.link-list { list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.95rem; }
.link-list li { margin: 0.25rem 0; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font: 11px/1.5 var(--sans);
  color: var(--ink-soft);
  text-align: center;
}
.site-footer img { display: block; margin: 0 auto 0.75rem; }

/* ---------- Home page ---------- */

.home { padding-top: 1.5rem; }
.home .site-name { font-size: 1.6rem; margin-bottom: 2rem; }
/* Portrait and menu share one scale factor, so the menu keeps the original
   proportions to the photo (1 = original 250px photo, 13px menu). */
.home { --scale: 1.25; }
.home .portrait { display: block; width: calc(250px * var(--scale)); border: 3px solid var(--ink); }

/* The staggered menu is the site's signature: keep it on wide screens,
   fall back to a simple column on phones. */
.home-nav { font: calc(13px * var(--scale))/normal var(--sans); margin: 1.5rem 0 3rem; }
.home-nav ul { list-style: none; padding: 0; margin: 0; }
.home-nav li { margin: 0.6rem 0; }
@media (min-width: 640px) {
  /* Wide screens: each item sits exactly where it did on the original page. */
  .home-nav { margin: 0 0 2rem; }
  .home-nav ul { position: relative; height: calc(180px * var(--scale)); }
  .home-nav li { position: absolute; left: calc(var(--x) * var(--scale)); top: calc(var(--y) * var(--scale)); margin: 0; white-space: nowrap; }
}

.home h2 {
  font: 13px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.home section { margin-bottom: 3rem; }

.videos { list-style: none; padding: 0; margin: 0; }
.videos li { margin: 0 0 0.7rem; }

/* Nimbus: photo with the caption laid over its darkened bottom edge,
   the same width as the 2 x 2 disc grid below it. */
.nimbus { position: relative; display: block; width: 396px; max-width: 100%; aspect-ratio: 16 / 9; color: #fff; text-decoration: none; }
.nimbus img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nimbus::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 20, 0, 0.8)); }
.nimbus-text { position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 1; }
.nimbus-title { display: block; font: italic 1.4rem/1.2 var(--serif); }
.nimbus-sub { display: block; font-size: 0.8rem; opacity: 0.9; }
.nimbus:hover .nimbus-title, .nimbus:focus-visible .nimbus-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

/* Disc covers: 2 x 2, 188px each (25% larger than the original 150px).
   Columns shrink on narrow phones so the grid always fits. */
.discs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 188px));
  gap: 16px 20px;
}
.discs a { display: block; }
.discs img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.discs img.bordered { border: 1px solid var(--ink); }

/* ---------- Work pages in the original layout (e.g. Rage/Resolve) ---------- */

.work-facts { line-height: 2.1; margin-bottom: 1.5rem; }
.work-links { margin: 0 0 0.9rem; }
.work-links a { font-weight: bold; }
.work-label { font: bold 1rem/1.6 var(--serif); margin: 2rem 0 0.5rem; }

/* Buttons that carry a short description beside them */
.resources.with-notes { flex-direction: column; align-items: flex-start; }
.resources.with-notes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.res-note { font-size: 0.95rem; }
.work .resources { margin: 0.75rem 0 1.5rem; }

/* Pictures inside work pages */
.work-img { margin: 1.5rem 0; }
.work-img img { display: inline-block; border: 1px solid var(--rule); margin: 0 0.75rem 0.75rem 0; vertical-align: top; }
.subtitle { margin: -1rem 0 1.5rem; font-style: italic; color: var(--ink-soft); }

/* ---------- Discography ---------- */
.discog-photo img { width: 100%; border: 3px solid var(--ink); }
.discog-head { font: 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin: 2.75rem 0 0.5rem; }
.discog { border-top: 1px solid var(--rule); }
.disc-entry { display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.disc-cover { display: block; width: 96px; height: 96px; }
.disc-cover img { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--rule); }
.disc-cover--none { background: var(--wash); border: 1px solid var(--rule); }
@media (max-width: 420px) {
  .disc-entry { grid-template-columns: 72px 1fr; gap: 0.85rem; }
  .disc-cover, .disc-cover img { width: 72px; height: 72px; }
}
.disc-entry h3 { font: italic 1.1rem/1.35 var(--serif); margin: 0 0 0.2rem; }
.disc-entry span { display: block; font-size: 0.95rem; line-height: 1.5; }
.disc-entry .disc-label { color: var(--ink-soft); font-size: 0.9rem; }
/* ---------- cd.rand.info (Ecosphere) ---------- */
.album { display: grid; grid-template-columns: 1fr; gap: 1.5rem 2.5rem; align-items: start; margin-bottom: 1rem; }
@media (min-width: 720px) { .album { grid-template-columns: 17rem 1fr; } }
.album-cover img { width: 100%; max-width: 17rem; border: 1px solid var(--rule); box-shadow: 0 10px 24px -14px rgba(0,40,0,.45); }
.album h1 { margin-bottom: .2rem; }
.subtitle { margin: 0 0 1.25rem; font-style: italic; color: var(--ink-soft); }
.album .facts { margin-bottom: 1.25rem; }
.tracks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.tracks li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.tracks .tn { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tracks .tt { font-size: 1.05rem; }
.tracks .dur { color: var(--ink-soft); font-size: .9rem; margin-left: .35rem; font-variant-numeric: tabular-nums; }
.tracks .who { display: block; font-size: .92rem; }
.panels figure { margin: 0 0 1.75rem; }
.panels img { width: 100%; border: 1px solid var(--rule); }
.panels figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }
.wrap-wide { max-width: 72rem; }
.crumb { font: 14px var(--sans); margin: 0 0 1rem; }
.crumb a { text-decoration: none; }

/* Booklet reader: one square page at a time, as large as the window allows */
.reader-stage { position: relative; display: flex; justify-content: center; align-items: center; background: var(--wash); border: 1px solid var(--rule); padding: .75rem; }
.reader-page { display: block; width: min(100%, calc(100vh - 7.5rem)); height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; box-shadow: 0 8px 22px -12px rgba(0,40,0,.45); user-select: none; }
.reader-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--ink); background: rgba(255,255,255,.9); color: var(--ink); font: 2rem/1 var(--serif); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 .2rem; }
.reader-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.reader-btn:disabled { opacity: .25; cursor: default; }
.reader-prev { left: .5rem; }
.reader-next { right: .5rem; }
.reader-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .6rem 0 .25rem; font: 14px var(--sans); }
.reader-count { font-variant-numeric: tabular-nums; }
.reader-hint { margin: 0 0 1.5rem; }
.reader-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: .5rem; }
.reader-thumbs a { display: block; text-decoration: none; color: var(--ink-soft); font: 11px var(--sans); text-align: center; }
.reader-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid transparent; outline: 1px solid var(--rule); }
.reader-thumbs a.current img { border-color: var(--ink); }
.reader-thumbs a.current { color: var(--ink); font-weight: bold; }
@media (max-width: 520px) {
  .reader-stage { padding: .4rem; }
  .reader-btn { width: 2.4rem; height: 2.4rem; font-size: 1.6rem; }
}
/* ---------- end Ecosphere ---------- */

/* Photo grid (Nimbus page) */
.photo-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 2rem 0 1rem; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: 1fr 1fr; } }
.photo-grid figure { margin: 0; }
.photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.photo-grid .tall img { aspect-ratio: 3 / 4; }
.wide-figure { margin: 1rem 0 1.5rem; }
.wide-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.tracks .pf { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: .15rem; }
.small-note { font-size: .9rem; color: var(--ink-soft); margin-top: 1.5rem; }

/* Contact page */
.contact { display: grid; grid-template-columns: 1fr; gap: 1.5rem 2.5rem; align-items: start; }
@media (min-width: 640px) { .contact { grid-template-columns: auto 1fr; } }
.contact-photo { margin: 0; }
.contact-photo img { display: block; border: 1px solid var(--rule); }

/* News page */
.news { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--rule); }
.news li { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.news-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .35rem; font-size: .9rem; }
.news-photo { max-width: 40rem; }
.cycle li .cycle-perf { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: .2rem; }
.cycle li .resources { margin: .5rem 0 0; }
.speech { max-width: 40rem; }
.note-list { margin: 0 0 1rem 1.25rem; padding: 0; }
.note-list li { margin: .2rem 0; }
.note-rule { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0 1.5rem; }
.prose .work-label a { text-decoration: none; }
.note-cols { columns: 2 14rem; column-gap: 2rem; }
.note-section { font: 600 1rem var(--serif); margin: 1.75rem 0 .4rem; display: flex; align-items: center; gap: .75rem; }
.note-section .creature { border: 1px solid var(--rule); }
.prose .note-section + .resources { margin: .25rem 0 .6rem; }

/* ---------- Pages converted 2026-11-20: electronics, conducting, Musings, Ecosphere cues ---------- */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 2rem; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dsp-index { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.dsp-index li { padding: .7rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: baseline; justify-content: space-between; }
.dsp-index a { font-size: 1.1rem; }
.dsp-works { font: italic .9rem/1.4 var(--serif); color: var(--ink-soft); }
.pager { display: flex; justify-content: space-between; gap: 1rem; font: 14px/1.4 var(--sans); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1rem; }
.pager a { text-decoration: none; }
.pager .next { margin-left: auto; text-align: right; }
.photo-pair { display: grid; grid-template-columns: 1fr; gap: 1rem 1.5rem; margin: 0 0 1.5rem; }
/* columns in proportion to each photo's shape, so both photos come out the same height and line up at the top */
@media (min-width: 640px) { .photo-pair { grid-template-columns: 1.336fr 1.992fr; align-items: start; } }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; border: 1px solid var(--rule); }
table.premieres, table.cues { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; margin: 0 0 1rem; }
table.premieres th, table.cues th { font: 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); text-align: left; padding: .3rem .6rem .3rem 0; border-bottom: 1px solid var(--ink); }
table.premieres td, table.cues td { padding: .35rem .75rem .35rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.premieres td:first-child { width: 32%; }
table.premieres td:nth-child(2) { width: 33%; }
table.cues td:first-child, table.cues td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  table.premieres thead { display: none; }
  table.premieres tr { display: block; padding: .45rem 0; border-bottom: 1px solid var(--rule); }
  table.premieres td { display: block; width: auto !important; border: 0; padding: 0; }
  table.premieres td:nth-child(3) { color: var(--ink-soft); font-size: .9rem; }
}
.glossary { grid-template-columns: max-content 1fr; }
.musing { margin: 0 0 .5rem; }
.musing .work-label { margin-bottom: .1rem; }
.musing-collab { color: var(--ink-soft); font-style: italic; margin-bottom: .4rem; }
.musing .resources { margin: .4rem 0 1.5rem; }
.plain-figure { margin: 1rem 0 1.25rem; }
.plain-figure img { border: 0; }
.musing .video-embed { margin-bottom: .75rem; }
/* Musings players 50% wider than the text column, centred, never wider than the screen */
.musing .video-embed { width: min(150%, calc(100vw - 2rem)); margin-left: 50%; transform: translateX(-50%); }
.audio-player { margin: .5rem 0 1rem; }
.audio-player figcaption { margin: 0 0 .25rem; font: 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.audio-player audio { display: block; width: 100%; }
.musing .audio-player + .resources { margin-top: 0; }
/* Large embedded player on a work page: 50% wider than the text column, centred */
.video-embed.video-wide { width: min(150%, calc(100vw - 2rem)); margin-left: 50%; transform: translateX(-50%); }
/* keep the conducting photo captions on one line when there is room */
@media (min-width: 760px) { .photo-pair figure { min-width: 0; } .photo-pair figcaption { white-space: nowrap; } }
