/* Masterpiece — project page.
   Self-contained on purpose: no CDN, no fonts fetched, no analytics. The page
   loads from a file:// URL as happily as from a web server, and nobody reading
   about an organ sampler gets tracked for it. */

:root {
  --bg: #15171c;
  --panel: #1b1e24;
  --edge: #2a2f3a;
  --ink: #e8e6e1;
  --dim: #9aa0aa;
  --faint: #6b727d;
  --accent: #c8a97e;      /* the warm oak of an organ case */
  --accent-dim: #8a7a5e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------------------------------------------------------------- header */

header {
  border-bottom: 1px solid var(--edge);
  background: linear-gradient(180deg, #1a1d23 0%, var(--bg) 100%);
}
.masthead { padding: 72px 0 56px; }
h1 {
  margin: 0;
  font-size: 58px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.tagline {
  margin: 14px 0 0;
  font-size: 21px;
  color: var(--dim);
  max-width: 44em;
}
.badges { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--dim);
  background: var(--panel);
}

/* ------------------------------------------------------------------ hero */

.hero { margin: 0 0 8px; }
.hero img {
  width: 100%;
  display: block;
  border: 1px solid var(--edge);
  border-radius: 10px;
}
figure { margin: 0 0 44px; }
figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-size: 14px;
}

/* -------------------------------------------------------------- sections */

section { padding: 56px 0; border-bottom: 1px solid var(--edge); }
section:last-of-type { border-bottom: 0; }

h2 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
h3 { margin: 0 0 18px; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 16px; max-width: 40em; color: var(--dim); }
p strong { color: var(--ink); font-weight: 600; }
p.lead { font-size: 18px; color: var(--ink); }

/* ------------------------------------------------------------- galleries */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.grid img {
  width: 100%;
  display: block;
  border: 1px solid var(--edge);
  border-radius: 8px;
}
.grid figcaption { margin-top: 8px; }
.grid figure { margin: 0; }

/* A screen and the reasoning beside it, alternating so the page does not
   read as a list of pictures with labels. */
.shot {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
  margin: 0 0 52px;
}
.shot:nth-child(even) .shot-img { order: 2; }
.shot img {
  width: 100%;
  display: block;
  border: 1px solid var(--edge);
  border-radius: 8px;
}
.shot h4 { margin: 0 0 10px; font-size: 21px; font-weight: 600; }
.shot p { margin: 0; font-size: 15px; }

/* ----------------------------------------------------------------- lists */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 28px; }
.feature h4 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.feature p { font-size: 15px; margin: 0; }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
pre {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  color: var(--ink);
  max-width: 100%;
}

.note {
  border-left: 2px solid var(--accent-dim);
  padding-left: 16px;
  color: var(--faint);
  font-size: 15px;
  max-width: 40em;
}

footer {
  padding: 44px 0 64px;
  color: var(--faint);
  font-size: 14px;
  border-top: 1px solid var(--edge);
}
footer p { color: var(--faint); }

@media (max-width: 820px) {
  h1 { font-size: 40px; }
  h3 { font-size: 24px; }
  .shot { grid-template-columns: 1fr; gap: 18px; }
  .shot:nth-child(even) .shot-img { order: 0; }
  .masthead { padding: 48px 0 36px; }
}

/* ------------------------------------------------------------- recital */

/* The film is a release asset rather than a file in this repository: it is
   65 MB, it changes when the programme changes, and a page in git history
   should not carry a new copy of it each time. preload="none" means the
   poster costs a JPEG and nothing else until somebody presses play. */
video.recital {
  width: 100%;
  display: block;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: #000;
  margin: 26px 0 18px;
}

.topnav { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 20px; }
.topnav a { font-size: 15px; color: var(--dim); }
.topnav a:hover { color: var(--accent); }

/* The line under a console picture that says whose recording it is. */
.credit { color: var(--faint); font-size: 13px; }

/* ---------------------------------------------------- attribution page */

table.credits {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 8px;
  font-size: 15px;
}
table.credits th {
  text-align: left;
  font-weight: 600;
  color: var(--dim);
  border-bottom: 1px solid var(--edge);
  padding: 8px 14px 8px 0;
}
table.credits td {
  border-bottom: 1px solid var(--edge);
  padding: 9px 14px 9px 0;
  vertical-align: top;
}
table.credits tr:hover td { background: var(--panel); }
table.credits td.who { color: var(--dim); white-space: nowrap; }

.callout {
  border-left: 3px solid var(--accent-dim);
  background: var(--panel);
  padding: 14px 18px;
  margin: 24px 0;
  color: var(--dim);
}
