/* UK Performing Arts
   Ink on white, set like a touring bill: condensed display type for places and names,
   a plain readable face for everything else. Colour appears only as lighting-gel swatches,
   and each gel stands for a type of organisation. */

/* Self-hosted fonts (SIL Open Font License 1.1; licences in /fonts/). Latin and Latin Extended subsets. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/big-shoulders-display-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/big-shoulders-display-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --paper: #ffffff;
  --ink: #1c1b33;      /* blackout serge */
  --muted: #5c5a72;
  --rule: #dcdbe6;
  --focus: #e87722;

  --gel-red: #c8102e;     /* theatre */
  --gel-blue: #0057b8;    /* dance companies */
  --gel-mauve: #7b2d8e;   /* dance schools */
  --gel-orange: #e87722;  /* schools and training */
  --gel-green: #00965e;   /* amateur and youth */
  --gel-pink: #d6006f;    /* opera, choirs, singing */
  --gel-yellow: #f2a900;  /* venues */
  --gel-grey: #8a8aa0;    /* support and other */

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --measure: 38rem;
  --page: 68rem;

  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.0625rem/1.55 var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.5vw, 6.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.05; }

.skip { position: absolute; left: 1rem; top: 1rem; padding: .5rem .75rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- page frame ---------- */

.masthead, main, .colophon { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }

.masthead {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.25rem 0 1rem; border-bottom: 6px solid var(--ink);
  /* A strip of the type gels, in spectrum order, as a lighting rig would hang them. */
  border-image: linear-gradient(90deg,
    var(--gel-red) 0 12.5%, var(--gel-orange) 0 25%, var(--gel-yellow) 0 37.5%, var(--gel-green) 0 50%,
    var(--gel-blue) 0 62.5%, var(--gel-mauve) 0 75%, var(--gel-pink) 0 87.5%, var(--gel-grey) 0) 1;
}
.wordmark { font: 800 1.9rem/1 var(--display); text-decoration: none; }
.masthead ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.masthead nav a { font-weight: 700; text-decoration: none; padding-block: .5rem; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

main { padding-bottom: 5rem; }
main > h1 { margin-top: 2.5rem; }

.crumbs { margin-top: 1.25rem; color: var(--muted); font-size: .9375rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--rule); }

.lede { font-size: 1.25rem; max-width: var(--measure); margin: 1rem 0 0; }
.n { font: 400 .875rem/1 var(--text); color: var(--muted); letter-spacing: 0; vertical-align: .15em; }
.more { margin-top: 1.5rem; }

/* ---------- gels ---------- */

.gel {
  display: inline-block; flex: none; width: .7em; height: 1em; margin-right: .45em; vertical-align: -.1em;
  background: var(--gel); border-radius: 1px;
}
.gel-red { --gel: var(--gel-red); }
.gel-blue { --gel: var(--gel-blue); }
.gel-mauve { --gel: var(--gel-mauve); }
.gel-orange { --gel: var(--gel-orange); }
.gel-green { --gel: var(--gel-green); }
.gel-pink { --gel: var(--gel-pink); }
.gel-yellow { --gel: var(--gel-yellow); }
.gel-grey { --gel: var(--gel-grey); }
h1 .gel, h2 .gel { width: .32em; height: .62em; vertical-align: .02em; }

.type { color: var(--ink); text-decoration: none; white-space: nowrap; }
a.type:hover { text-decoration: underline; }

/* ---------- home ---------- */

.opening { padding: 3rem 0 3.5rem; }
.opening h1 { max-width: 12ch; }

.search { margin-top: 2rem; max-width: 40rem; }
.search label { display: block; font-weight: 700; margin-bottom: .4rem; }
.search-row { display: flex; }
.search input {
  flex: 1; min-width: 0; height: 3.25rem; padding: 0 .9rem; font: inherit; font-size: 1.125rem;
  color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-right: 0; border-radius: 0;
}
.search button, .button {
  font: 700 1rem/1 var(--text); color: var(--paper); background: var(--ink); border: 2px solid var(--ink);
  padding: 0 1.4rem; cursor: pointer; border-radius: 0;
}
.search button { height: 3.25rem; }
.tally { color: var(--muted); margin: .9rem 0 0; }

/* The touring bill: the towns themselves are the hero. */
.playbill { border-top: 3px solid var(--ink); padding-top: 1.75rem; }
.playbill h2 { font: 700 1rem/1.3 var(--text); margin-bottom: 1rem; }
.bill {
  display: flex; flex-wrap: wrap; gap: .05em .5em; list-style: none; margin: 0; padding: 0;
  font: 800 clamp(2.1rem, 5.4vw, 4rem)/1.02 var(--display);
}
.bill a { text-decoration: none; }
.bill a:hover { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .1em; }
.bill .n { vertical-align: .9em; margin-left: .1em; }

.opening + .playbill + section { margin-top: 3.5rem; border-top: 3px solid var(--ink); padding-top: 1.75rem; }
section > h2:first-child { margin-bottom: 1.25rem; }

.key { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .6rem 2rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.key a { font: 700 1.5rem/1.15 var(--display); text-decoration: none; }
.key a:hover { text-decoration: underline; }

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

.group { margin-top: 3rem; }
.group h2 { margin-bottom: .5rem; }

.towns { columns: 14rem; column-gap: 2rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.towns li { break-inside: avoid; padding: .2rem 0; }
.towns a { font-weight: 700; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 1rem 0 1.1rem; border-top: 1px solid var(--rule); }
.rows h3 a { text-decoration: none; }
.rows h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.row-meta { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; margin: .4rem 0 0; font-size: .9375rem; color: var(--muted); }
.row-summary { margin: .35rem 0 0; max-width: var(--measure); }

/* ---------- company ---------- */

.company { margin-top: 2rem; }
.kind { margin: 0 0 .75rem; font-weight: 700; }
.company h1 { max-width: 16ch; }
.where { font: 700 1.5rem/1.2 var(--display); margin: .6rem 0 0; color: var(--muted); }
.button { display: inline-flex; align-items: center; height: 3rem; margin-top: 1.5rem; text-decoration: none; }
.button:hover { background: var(--paper); color: var(--ink); }

.facts {
  display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); gap: 0;
  margin: 2.5rem 0 0; max-width: 46rem; border-top: 3px solid var(--ink);
}
.facts dt, .facts dd { padding: .6rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { color: var(--muted); padding-right: 1rem; }
.facts dd { overflow-wrap: anywhere; }
.fix { margin-top: 1.5rem; font-size: .9375rem; }
.nearby { margin-top: 4rem; }

/* ---------- prose & forms ---------- */

.prose { margin-top: 2.5rem; max-width: var(--measure); }
.prose h2 { margin: 2.25rem 0 .5rem; }
.stack { display: grid; gap: 1.1rem; margin-top: 2rem; }
.stack label { display: grid; gap: .35rem; font-weight: 700; }
.stack input, .stack textarea, .stack select {
  font: 400 1rem/1.4 var(--text); color: var(--ink); padding: .6rem .7rem;
  border: 2px solid var(--ink); border-radius: 0; width: 100%;
}
.stack .button { margin-top: .25rem; }
.stack select { background: var(--paper); height: 2.85rem; }

/* ---------- footer ---------- */

.colophon {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.5rem 0 3rem; border-top: 3px solid var(--ink); font-size: .9375rem;
}
.colophon p { margin: 0; max-width: 32rem; color: var(--muted); }
.colophon ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }

@media (max-width: 40rem) {
  .masthead, main, .colophon { width: calc(100% - 2rem); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { padding-top: .1rem; }
  .search button { padding: 0 1rem; }
  .pager ol { order: 2; flex-basis: 100%; }
}

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

/* ---------- checkbox groups ---------- */

.choices { border: 0; margin: 0; padding: 0; display: grid; gap: .45rem; }
.choices legend { font-weight: 700; padding: 0; margin-bottom: .35rem; }
.stack .choices label { display: flex; align-items: center; gap: .6rem; font-weight: 400; }
.choices input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--ink); }

/* ---------- pagination ---------- */

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.pager ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.pager li a, .pager .gap { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .5rem; font-weight: 700; text-decoration: none; }
.pager li a:hover { text-decoration: underline; }
.pager li a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pager .gap { color: var(--muted); min-width: 1.5rem; padding: 0; }
.pager .step { font-weight: 700; padding-block: .6rem; }
.pager .step:first-child { margin-right: auto; }
.pager .step:last-child { margin-left: auto; }
.cont { font: 400 1rem/1 var(--text); color: var(--muted); vertical-align: .2em; }

/* ---------- on-this-page type links (town pages) ---------- */

.jump { margin-top: 1.75rem; padding: 1rem 0; border-block: 1px solid var(--rule); }
.jump ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.jump a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.jump a:hover { text-decoration: underline; }
.group[id] { scroll-margin-top: 1.5rem; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- analytics consent ---------- */

.consent {
  position: fixed; inset: auto 0 0 0; z-index: 10; background: var(--paper);
  border-top: 6px solid var(--ink); box-shadow: 0 -.5rem 1.5rem rgb(28 27 51 / .12);
}
.consent-inner { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; padding: 1.25rem 0 1.4rem; display: grid; gap: .6rem 2rem; grid-template-columns: 1fr auto; align-items: center; }
.consent h2 { font-size: 1.6rem; grid-column: 1 / -1; }
.consent p { margin: 0; max-width: 46rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.consent .button { margin-top: 0; }
.linkish { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; cursor: pointer; }
@media (max-width: 40rem) { .consent-inner { grid-template-columns: 1fr; width: calc(100% - 2rem); } }
