/* =========================================================
   Evans Harrell — personal site
   Shared stylesheet

   Palette borrowed from the zellij tilework of a Marrakech
   fountain he photographed in 2008: indigo, ochre, terracotta,
   sage, and old plaster.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink:        #161b26;   /* near-black, faintly blue */
  --ink-soft:   #4a5468;   /* body text at rest */
  --ink-faint:  #77809a;   /* captions, meta */

  --navy:       #22304e;   /* deep tile blue */
  --indigo:     #35507e;
  --ochre:      #b8822c;   /* the amber starbursts */
  --ochre-lite: #d8ab5c;
  --terracotta: #a1512c;
  --sage:       #3d6a52;

  --paper:      #fcfaf6;   /* warm off-white */
  --paper-2:    #f5f0e6;   /* tinted band */
  --paper-3:    #ece5d6;

  --rule:       rgba(34, 48, 78, 0.14);
  --rule-soft:  rgba(34, 48, 78, 0.08);

  --shadow:     0 18px 48px rgba(22, 27, 38, 0.13);
  --shadow-sm:  0 6px 20px rgba(22, 27, 38, 0.09);
  --radius:     4px;
  --radius-lg:  8px;

  --display: 'Spectral', Georgia, 'Times New Roman', serif;
  --body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* height:auto matters — the width/height attributes on <img> are there to
   reserve layout space, and without this they would fix the rendered height
   and squash the aspect ratio */
img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 80, 126, 0.3);
  transition: color 0.18s, border-color 0.18s;
}
a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 500; }
h4 { font-size: 1.02rem; font-weight: 600; font-family: var(--body); color: var(--ink); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--rule-soft);
  margin: 3rem 0;
}

::selection { background: var(--ochre-lite); color: var(--ink); }

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

.wrap    { width: min(1140px, 90vw); margin: 0 auto; }
.wrap-nr { width: min(760px, 90vw);  margin: 0 auto; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.band-tint  { background: var(--paper-2); }
.band-deep  { background: var(--navy); color: rgba(255,255,255,0.82); }
.band-deep h1, .band-deep h2, .band-deep h3 { color: #fff; }
.band-deep a { color: var(--ochre-lite); border-bottom-color: rgba(216,171,92,0.4); }
.band-deep a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Small type ---------- */

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1rem;
}
.band-deep .eyebrow { color: var(--ochre-lite); }

.lede {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 300;
}

.meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.prose { max-width: 68ch; }
.prose p + h3 { margin-top: 2.2rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 250, 246, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--ink);
  border: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--terracotta); }
.brand svg { flex: none; }

.nav-links {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 0;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-3); }
.nav-links a.active { color: var(--navy); background: var(--paper-3); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--rule-soft);
}
/* eigenfunction motif, drawn in the page and pinned behind the text */
.hero-motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero .title-line {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.6rem;
  line-height: 1.8;
}

/* framed portrait: an offset ochre rule behind the photo */
.portrait-frame { position: relative; }
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--ochre);
  border-radius: var(--radius);
  z-index: 0;
}
.portrait-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.portrait-frame figcaption {
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.68rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--indigo); color: #fff; border-color: transparent; }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); background: rgba(34,48,78,0.04); color: var(--ink); }
.band-deep .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.band-deep .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

/* ---------- Facts strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fact { background: var(--paper); padding: 1.6rem 1.5rem; }
.band-tint .fact { background: var(--paper-2); }
.fact dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.5rem;
}
.fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.45;
}
.fact dd span { display: block; font-family: var(--body); font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.2rem; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.band-tint .card { background: var(--paper); }
.card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.94rem; margin-bottom: 0; }
.card .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ochre);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.9rem;
}

/* linked cards at the foot of a page */
.next-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.next-card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.next-card:hover { border-color: var(--ochre); box-shadow: var(--shadow-sm); }
.next-card h3 { margin-bottom: 0.4rem; }
.next-card p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
.next-card .arrow { color: var(--ochre); font-family: var(--mono); font-size: 0.8rem; display: block; margin-top: 1rem; }

/* ---------- Split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* for splits whose image is portrait-format: cap the media column so a tall
   photograph does not dominate the section */
.split.narrow-media { grid-template-columns: minmax(0, 380px) 1fr; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.split figure { margin: 0; }
.split figcaption { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-faint); }

/* ---------- Timeline ---------- */

.timeline { border-left: 1px solid var(--rule); padding-left: 2rem; margin-top: 2.5rem; }
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 4.5px);
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ochre);
}
.tl-item .yr {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ochre);
  display: block;
  margin-bottom: 0.25rem;
}
.tl-item h4 { margin-bottom: 0.2rem; }
.tl-item p { font-size: 0.93rem; margin-bottom: 0; }

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

.ref-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.ref-list > li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.ref-list > li:first-child { border-top: 1px solid var(--rule-soft); }
.ref-list .ttl {
  font-family: var(--display);
  font-size: 1.06rem;
  color: var(--ink);
  font-style: italic;
  display: block;
  margin-bottom: 0.18rem;
}
.ref-list .where { font-size: 0.89rem; color: var(--ink-faint); display: block; }
/* .ttl is display:block, so the global link border-bottom would draw a
   full-width rule and read as a divider — underline the text itself instead */
.ref-list a.ttl {
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-color: rgba(53, 80, 126, 0.35);
  text-underline-offset: 4px;
}
.ref-list a.ttl:hover { color: var(--terracotta); text-decoration-color: var(--terracotta); }

.plain-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.plain-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--rule-soft);
}
.plain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25em;
  width: 6px;
  height: 1px;
  background: var(--ochre);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  padding: 0.32rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
}

/* ---------- Pull quote ---------- */

.pullquote {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.5;
  color: #fff;
  max-width: 30ch;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
}
.pullquote .attr {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre-lite);
  margin-top: 1.6rem;
}

/* ---------- Photo gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.gallery figure:hover img { transform: scale(1.015); }
.gallery figcaption {
  margin-top: 0.75rem;
  font-size: 0.87rem;
  color: var(--ink-faint);
  line-height: 1.5;
}
.gallery .tall img { aspect-ratio: 3 / 4; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 16 / 9; }

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

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.66);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.9rem;
}
.site-footer a { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.25); }
.site-footer a:hover { color: #fff; border-bottom-color: #fff; }
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.foot-name { font-family: var(--display); font-size: 1.3rem; color: #fff; margin-bottom: 0.4rem; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-lite);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 0.5rem; }
.foot-bottom {
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   Mathematical diagrams (Mathematics page)
   ========================================================= */

/* --- the equation, hand-set --- */

.eq-panel {
  margin: 2.8rem 0 0;
  padding: 2.6rem 1.5rem 2rem;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  text-align: center;
}
.band-tint .eq-panel { background: var(--paper); }

.equation {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  color: var(--ink);
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  font-weight: 300;
}
.equation i { font-style: italic; padding-right: 0.02em; }
.equation .op { padding: 0 0.22em; color: var(--ochre); }
.equation sup { font-size: 0.55em; vertical-align: super; line-height: 0; }

.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.82em;
  margin: 0 0.16em;
  vertical-align: middle;
}
.frac .num { padding: 0 0.36em 0.12em; border-bottom: 1px solid currentColor; }
.frac .den { padding: 0.14em 0.36em 0; }

.eq-alt {
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-faint);
  margin-top: 1.7rem;
}
.eq-alt b { font-style: normal; font-weight: 400; color: var(--ink); }

.eq-panel figcaption,
.diagram figcaption {
  font-size: 0.9rem;
  color: var(--ink-faint);
  line-height: 1.55;
  margin-top: 1.6rem;
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

/* --- diagram figures --- */

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.diagram {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 1.6rem;
}
.band-tint .diagram { background: var(--paper); }
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.diagram figcaption { text-align: left; margin-left: 0; margin-right: 0; margin-top: 1.3rem; }
.diagram .dg-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  display: block;
  margin-bottom: 1.4rem;
}

/* --- the row of drum modes --- */

.modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  margin-top: 2.4rem;
  max-width: 620px;
}
.modes figure { margin: 0; text-align: center; }
.modes svg { width: 100%; height: auto; }
.modes figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 0.7rem;
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .modes { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .eq-panel { padding: 1.8rem 1rem 1.5rem; }
}

/* =========================================================
   Math & Art page
   Everything below is scoped to .play, so the rest of the
   site keeps its quieter manners. Same palette, turned up.
   ========================================================= */

.play {
  --rose: #c14a70;
  --teal: #2f8a8a;
}

.play .hero {
  background:
    radial-gradient(circle at 12% 22%, rgba(193, 74, 112, 0.10), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(184, 130, 44, 0.16), transparent 45%),
    radial-gradient(circle at 72% 88%, rgba(47, 138, 138, 0.12), transparent 46%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.play .hero h1 {
  font-style: italic;
  letter-spacing: -0.02em;
}
.play .hero h1 em { font-style: normal; color: var(--rose); }

/* confetti scattered behind the header */
.play .confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.play .confetti span {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 2px;
  opacity: 0.5;
}

.play .eyebrow { color: var(--rose); }

/* section headings get a colour-cycled underline flourish */
.play section h2 { position: relative; display: inline-block; }
.play section h2::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.18em;
  height: 4px;
  border-radius: 4px;
  background: var(--ochre);
  opacity: 0.5;
}
.play section:nth-of-type(2n) h2::after { background: var(--teal); }
.play section:nth-of-type(3n) h2::after { background: var(--rose); }

/* cards with a coloured cap, and a slight lift-and-tilt on hover */
.play .cards .card {
  border-top: 4px solid var(--ochre);
  border-radius: 10px;
}
.play .cards .card:nth-child(4n+2) { border-top-color: var(--rose); }
.play .cards .card:nth-child(4n+3) { border-top-color: var(--teal); }
.play .cards .card:nth-child(4n+4) { border-top-color: var(--sage); }
.play .cards .card:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow); }

/* photographs pinned up slightly askew */
.play .tilt { transform: rotate(-1.6deg); transition: transform 0.3s ease; }
.play .tilt:hover { transform: rotate(0deg); }
.play .tilt img { border-radius: 8px; box-shadow: var(--shadow); }

/* the award callout */
.award {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--ochre);
  border-radius: 10px;
  padding: 2rem 2.1rem;
  margin-top: 2rem;
}
.award .medal { font-size: 2.6rem; line-height: 1; }
.award h3 { margin-bottom: 0.3rem; }
.award blockquote {
  margin: 1.1rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}
.award blockquote cite {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.7rem;
}

/* the Königsberg diagram, alongside the productions heading */
.play .shows-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.play .konigsberg { margin: 0; max-width: 330px; }
.play .konigsberg svg { width: 100%; height: auto; overflow: visible; }
.play .konigsberg figcaption {
  font-size: 0.86rem;
  color: var(--ink-faint);
  line-height: 1.5;
  margin-top: 1rem;
}
@media (max-width: 860px) {
  .play .shows-head { grid-template-columns: 1fr; }
  .play .konigsberg { max-width: 280px; }
}

/* the run of productions */
.shows { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.shows li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}
.shows li:last-child { border-bottom: 1px solid var(--rule-soft); }
.shows .yr {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  background: var(--ochre);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  justify-self: start;
}
.shows li:nth-child(4n+2) .yr { background: var(--rose); }
.shows li:nth-child(4n+3) .yr { background: var(--teal); }
.shows li:nth-child(4n+4) .yr { background: var(--sage); }
.shows h4 { font-family: var(--display); font-size: 1.14rem; font-weight: 500; margin-bottom: 0.25rem; }
.shows p { font-size: 0.94rem; margin: 0; }

@media (max-width: 640px) {
  .award { grid-template-columns: 1fr; gap: 1rem; padding: 1.6rem; }
  .shows li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero .portrait-frame { max-width: 340px; order: -1; }
  .portrait-frame::before { inset: 10px -10px -10px 10px; }
  .split, .split.narrow-media { grid-template-columns: 1fr; }
  .split.narrow-media figure { max-width: 380px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-bottom: 0.7rem; }
  .nav-links { gap: 0; margin-left: -0.85rem; }
  .gallery .wide { grid-column: span 1; }
  .gallery .wide img { aspect-ratio: 4 / 3; }
  .foot-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .timeline { padding-left: 1.5rem; }
  .tl-item::before { left: calc(-1.5rem - 4.5px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
