/* Routed Gothic by Darren Embry, SIL Open Font License 1.1 (assets/fonts/RoutedGothic-OFL.md).
   A revival of the engraving lettering used on machine panels, dials, and keycaps. */
@font-face {
  font-family: "Routed Gothic";
  src: url("../fonts/routed-gothic.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Routed Gothic Wide";
  src: url("../fonts/routed-gothic-wide.ttf") format("truetype");
  font-display: swap;
}

:root {
  --text: #111111;
  --grey: #595959;
  --rule: #d4d4d4;
  --rule-strong: #a8a8a8;
  --wash: #f2f2f0;
  --blue: #0a3cd1;

  /* Two voices: engraved (labels, wayfinding) and printed (reading). */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --engraved: "Routed Gothic", "Helvetica Neue", Arial, sans-serif;
  --engraved-wide: "Routed Gothic Wide", "Routed Gothic", "Helvetica Neue", Arial, sans-serif;

  /* Type roles */
  --text-meta: 1.0625rem;   /* 17px: dates, venues, captions, footer */
  --text-body: 1.1875rem;   /* 19px */
  --text-lead: 1.4375rem;   /* 23px */
  --text-h3: 1.5rem;        /* 24px */
  --text-h2: 2rem;          /* 32px */
  --text-h1: clamp(1.75rem, 3vw + 1rem, 3rem);
  --text-display: clamp(1.75rem, 4.4vw + 0.5rem, 3.6rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --measure: 40rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
/* Keeps jump-link targets clear of the sticky header as it wraps onto more lines. */
@media (max-width: 800px) { html { scroll-padding-top: 7.5rem; } }
@media (max-width: 480px) { html { scroll-padding-top: 11rem; } }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--text-body);
  line-height: 1.6;
}

img, iframe { display: block; max-width: 100%; }

::selection { background: var(--blue); color: #ffffff; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.page { max-width: 68rem; margin: 0 auto; padding: 0 var(--space-4); }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { font-weight: 400; line-height: 1.2; margin: 0; text-wrap: balance; }
/* Engraved: page titles in wide capitals, section headings and labels in normal case. */
h1 {
  font-family: var(--engraved-wide);
  font-size: var(--text-h1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: var(--space-6) 0 var(--space-4);
}
h2 { font-family: var(--engraved); font-size: var(--text-h2); margin-bottom: var(--space-4); }
h2 i, h2 em { font-family: var(--serif); }
h4 { font-family: var(--engraved); font-size: var(--text-body); margin: var(--space-4) 0 var(--space-2); }
/* Printed: titles of things (shows, works, composers) set like a concert program. */
h3 { font-family: var(--serif); font-size: var(--text-h3); font-weight: 600; line-height: 1.25; margin-bottom: var(--space-2); }

p { margin: 0 0 var(--space-3); text-wrap: pretty; }
ul { margin: 0 0 var(--space-3); padding: 0; list-style: none; }

.measure { max-width: var(--measure); }
.intro { font-size: var(--text-lead); line-height: 1.45; max-width: 36rem; }
.meta { font-size: var(--text-meta); color: var(--grey); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.todo { color: var(--grey); font-style: italic; }
p.todo { border: 1px dashed var(--rule-strong); padding: var(--space-3) var(--space-4); }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--space-4); top: var(--space-3); z-index: 10;
  background: #ffffff; color: var(--blue);
  padding: var(--space-2) var(--space-3);
  outline: 2px solid var(--blue);
}

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: #ffffff;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-4) 0 var(--space-3);
  border-bottom: 2px solid var(--blue);
  font-family: var(--engraved);
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-header--home { justify-content: flex-end; }
.site-name { color: var(--text); text-decoration: none; }
.site-name:hover { text-decoration: underline; }
.site-nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.site-nav a, .site-name { text-underline-offset: 0.3em; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

@media (max-width: 560px) {
  .site-header { letter-spacing: 0.04em; }
  .site-header--home { justify-content: flex-start; }
  .site-nav { gap: var(--space-1) var(--space-3); }
}

/* Home title */

.display {
  font-family: var(--engraved-wide);
  font-size: var(--text-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  max-width: none;
  margin: var(--space-7) 0 var(--space-5);
}
.display > span { display: block; }

/* The slash in the name: winds back, then spins forward once (assets/js/slash.js). */

.slash { display: inline-block; line-height: 1; }
.site-name:hover .slash { text-decoration: underline; text-decoration-thickness: inherit; }
.slash.is-spinning { animation: slash-spin 2.6s both; }

@keyframes slash-spin {
  0%   { transform: rotate(0deg);     animation-timing-function: cubic-bezier(0.3, 0, 0.4, 1); }
  10%  { transform: rotate(-16deg);   animation-timing-function: linear; }
  16%  { transform: rotate(-16deg);   animation-timing-function: cubic-bezier(0.65, 0, 0.25, 1); }
  92%  { transform: rotate(1086deg);  animation-timing-function: ease-in-out; }
  100% { transform: rotate(1080deg); }
}

@media (prefers-reduced-motion: reduce) {
  .slash.is-spinning { animation: none; }
}

/* Sections */

.section { border-top: 1px solid var(--rule); padding: var(--space-6) 0 var(--space-4); }
main > :not(.section) + .section { margin-top: var(--space-5); }
p + h3, ul + h3 { margin-top: var(--space-5); }

h3 .meta { font-family: var(--engraved); font-weight: 400; }
.jump { margin-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); font-family: var(--engraved); font-size: var(--text-meta); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); }
.pair > div { min-width: 0; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Images */

figure { margin: 0 0 var(--space-4); }
figcaption { font-family: var(--engraved); font-size: var(--text-meta); color: var(--grey); margin-top: var(--space-2); }
.photo-slot figcaption.todo { font-family: var(--serif); }
.photo-slot {
  margin-top: var(--space-5);
  max-width: 28rem;
  aspect-ratio: 3 / 2;
  border: 1px dashed var(--rule-strong);
  display: grid; place-items: center;
  padding: var(--space-4);
  text-align: center;
}
.photo-slot figcaption { margin: 0; }
.photo { margin-top: var(--space-5); max-width: var(--measure); }
.photo img { width: 100%; height: auto; }

/* Recordings */

.recording {
  display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: var(--space-4) var(--space-5); align-items: start;
}
.recording-text { max-width: 38rem; min-width: 0; }
.section > .meta + .recording { margin-top: var(--space-4); }
.credits-title { margin-top: var(--space-5); }
.jump + .section { margin-top: var(--space-5); }
@media (max-width: 760px) { .recording { grid-template-columns: 1fr; } }

.bandcamp { border: 0; width: 100%; max-width: 22rem; height: 472px; }

/* Lists */

.works li { margin-bottom: var(--space-2); }

.people li {
  display: grid; grid-template-columns: 14rem 1fr; gap: 0 var(--space-4);
  padding: var(--space-2) 0; border-bottom: 1px solid var(--rule);
}
.people li:first-child { border-top: 1px solid var(--rule); }
.people .name { font-weight: 600; }
.people .what { color: var(--grey); }
@media (max-width: 560px) { .people li { grid-template-columns: 1fr; } }

.composers li { margin-bottom: var(--space-2); }
.composers .years { color: var(--grey); font-size: var(--text-meta); }

.credits { margin: 0 0 var(--space-4); }
.credits div { display: grid; grid-template-columns: 8rem 1fr; gap: 0 var(--space-3); padding: var(--space-1) 0; }
.credits dt { font-family: var(--engraved); color: var(--grey); }
.credits dd { margin: 0; }
@media (max-width: 560px) { .credits div { grid-template-columns: 1fr; } }

/* Live */

.show {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--space-2) var(--space-5);
  border-top: 1px solid var(--rule);
  padding: var(--space-5) 0 var(--space-3);
  scroll-margin-top: var(--space-4);
}
h2 + .show, .show--excerpt { border-top: 0; padding-top: var(--space-2); }
.show-when { font-family: var(--engraved); }
.show-date {
  display: block;
  font-size: var(--text-h3);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}
.show-time { display: block; font-size: var(--text-meta); color: var(--grey); margin-top: var(--space-1); }
.show-what { max-width: var(--measure); min-width: 0; }
.show-what .venue { font-size: var(--text-meta); color: var(--grey); margin-bottom: 0; }
.show-what blockquote { margin: var(--space-3) 0 0; padding-left: var(--space-3); border-left: 1px solid var(--rule-strong); color: var(--grey); }
.show-what blockquote p { margin: 0; }
.show-links { margin-top: var(--space-4); }
@media (max-width: 760px) {
  .show { grid-template-columns: 1fr; }
  .show-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); }
}

/* Press bios */

.bio { border-left: 1px solid var(--rule-strong); padding-left: var(--space-4); margin: 0 0 var(--space-5); max-width: var(--measure); }

/* Footer */

.site-footer {
  margin-top: var(--space-6);
  border-top: 1px solid var(--text);
  padding: var(--space-4) 0 var(--space-6);
  font-family: var(--engraved);
  font-size: var(--text-meta);
  line-height: 1.7;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-4) var(--space-5);
}
.site-footer p { margin: 0; }
.site-footer .todo { font-family: var(--serif); }
