/* A printed programme, on a screen, made for a phone first: one typeface, one column, the
   hour beside what it is. Nothing to load, and it works without scripts. The design is
   docs/pages-mockup.html. */
:root {
  color-scheme: light dark;
  --paper: #faf7f0; --card: #fffdf8; --ink: #1d1b16; --quiet: #6a655a; --rule: #d9d3c4;
  --link: #1a3e9c; --seen: #5f3a8a; --mark: #b3421b; --free: #2f6b3a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17150f; --card: #1e1b14; --ink: #e9e3d5; --quiet: #a19a8a; --rule: #38342a;
    --link: #9db8ff; --seen: #c3a6e8; --mark: #f08a5d; --free: #8fcf9b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1rem/1.45 Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}
a { color: var(--link); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:visited { color: var(--seen); }
p { margin: 0; }
.page { max-width: 44rem; margin: 0 auto; padding: 0 1rem 3rem; }

/* ---- top and bottom of every page ---- */
header.site { display: flex; align-items: baseline; gap: .75rem; padding: .9rem 0 .5rem; border-bottom: 3px double var(--ink); }
header.site .name { font-size: 1.7rem; font-weight: bold; font-style: italic; color: var(--ink); text-decoration: none; }
header.site .city { font-size: .95rem; color: var(--quiet); }
header.site .city a, header.site .city a:visited { color: inherit; }
footer.site { margin-top: 3.5rem; padding-top: .75rem; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--quiet); }

.label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }

/* ---- the listing ---- */
/* The days and the kinds stay in sight: where one is, and the way to somewhere else. */
.way { position: sticky; top: 0; z-index: 2; background: var(--paper); padding-top: .5rem; border-bottom: 1px solid var(--rule); }
.strip { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem .5rem; }
.strip::-webkit-scrollbar { display: none; }
.days a {
  flex: 0 0 auto; min-width: 3.1rem; padding: .3rem .45rem; text-align: center; text-decoration: none;
  color: var(--ink); border: 1px solid var(--rule); background: var(--card);
}
.days a span { display: block; font-size: .72rem; color: var(--quiet); text-transform: lowercase; }
.days a b { font-size: 1.15rem; line-height: 1.1; }
.days a.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.days a.on span { color: inherit; opacity: .8; }
.days a.end span { color: var(--mark); }
.kinds { font-size: .9rem; white-space: nowrap; }
.kinds a { flex: 0 0 auto; color: var(--ink); text-decoration: none; padding: .1rem .5rem; border: 1px solid transparent; }
.kinds a small { color: var(--quiet); font-size: .75rem; }
.kinds a:hover { text-decoration: underline; }
.kinds a.on { border-color: var(--ink); font-weight: bold; }

header.day { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; margin-top: 1.75rem; padding-bottom: .25rem; border-bottom: 2px solid var(--ink); }
header.day h2 { font-size: 1.4rem; margin: 0; }
header.day p { font-size: .85rem; color: var(--quiet); }
h3.part { margin: 1.25rem 0 0; font-weight: normal; }
h3.part + ul li:first-child { border-top: 0; }

ul.lines { list-style: none; margin: 0; padding: 0; }
ul.lines > li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: .6rem; padding: .6rem 0; border-top: 1px solid var(--rule); }
.hour { font-weight: bold; font-variant-numeric: tabular-nums; padding-top: .05rem; }
.title { font-size: 1.08rem; font-weight: bold; line-height: 1.25; }
.title a { text-decoration-color: var(--rule); }
.title a:hover { text-decoration-color: currentColor; }
.meta { margin-top: .15rem; font-size: .88rem; color: var(--quiet); }
.meta a, .meta a:visited { color: inherit; text-decoration-color: var(--rule); }
.kind { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--rule); padding: 0 .3rem; margin-right: .25rem; white-space: nowrap; }
.price { white-space: nowrap; color: var(--ink); }
.price.free { color: var(--free); font-weight: bold; }
.says { margin-top: .25rem; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Runs and cinema: blocks of their own, lighter than the day's lines. */
.block { margin-top: 1.75rem; padding: .6rem .8rem .7rem; border: 1px solid var(--rule); background: var(--card); }
.block > h3 { margin: 0 0 .25rem; font-weight: normal; display: flex; justify-content: space-between; gap: 1rem; }
.block > h3 a { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.block ul { list-style: none; margin: 0; padding: 0; }
.block li { padding: .4rem 0; border-top: 1px solid var(--rule); }
.block li:first-child { border-top: 0; }
.block .title { font-size: 1rem; }
.screens { margin-top: .2rem; font-size: .88rem; color: var(--quiet); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .75rem; }
.screens b { font-weight: normal; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.more { margin-top: .5rem; font-size: .9rem; }

/* ---- an event's page ---- */
.back { display: inline-block; margin: 1rem 0 .9rem; font-size: .9rem; }
h1 { font-size: 1.75rem; line-height: 1.15; margin: .2rem 0 1rem; }
.facts { border: 1px solid var(--ink); background: var(--card); }
.facts dl { margin: 0; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); }
.facts dt, .facts dd { padding: .55rem .75rem; border-top: 1px solid var(--rule); margin: 0; }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.facts dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); padding-top: .75rem; padding-right: 0; }
.facts dd strong { font-size: 1.1rem; }
.facts dd small { display: block; font-size: .88rem; color: var(--quiet); }
.go { display: block; padding: .7rem .75rem; border-top: 1px solid var(--ink); text-align: center; font-weight: bold; text-decoration: none; background: var(--ink); color: var(--paper); }
.go:visited { color: var(--paper); }
.go:hover { text-decoration: underline; }
.go + .go { background: transparent; color: var(--link); border-top-color: var(--rule); font-weight: normal; }
.text { margin-top: 1.5rem; }
.text .lead { font-size: 1.12rem; line-height: 1.4; }
.text h2 { margin: 1.4rem 0 .3rem; font-size: .75rem; font-weight: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.text p + p { margin-top: .6rem; }
.text ul { margin: 0; padding-left: 1.1rem; }
.text li { margin-top: .25rem; }
.also { margin-top: 2.25rem; }
.also h2 { font-size: 1rem; margin: 0 0 .1rem; padding-bottom: .25rem; border-bottom: 2px solid var(--ink); }
.also ul.lines > li { grid-template-columns: 5.2rem minmax(0, 1fr); padding: .45rem 0; }
.also ul.lines > li:first-child { border-top: 0; }
.also .title { font-size: 1rem; }
.when { font-size: .88rem; color: var(--quiet); padding-top: .1rem; }
.sources { margin-top: 2rem; font-size: .88rem; color: var(--quiet); }
.film { font-size: .95rem; color: var(--quiet); margin: -.5rem 0 1rem; }
.film b { color: var(--ink); font-weight: normal; }
table.sessions { width: 100%; border-collapse: collapse; }
table.sessions th, table.sessions td { text-align: left; vertical-align: top; padding: .5rem .75rem; border-top: 1px solid var(--rule); font-weight: normal; }
table.sessions tr:first-child th, table.sessions tr:first-child td { border-top: 0; }
table.sessions th small { display: block; color: var(--quiet); font-size: .85rem; }
table.sessions td { font-variant-numeric: tabular-nums; }
table.sessions td small { display: block; color: var(--quiet); }
.facts .strip { margin: 0; padding: .55rem .75rem; border-bottom: 1px solid var(--rule); }

/* ---- a wide screen: the price gets its own column, the page two ---- */
@media (min-width: 44rem) {
  .page { padding: 0 1.5rem 4rem; }
  .strip { margin: 0; padding-left: 0; padding-right: 0; }
  .kinds { flex-wrap: wrap; white-space: normal; }
  ul.lines > li { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
  ul.lines > li > .price { grid-column: 3; grid-row: 1; font-size: .92rem; padding-top: .15rem; text-align: right; }
  .meta .price, .meta .sep { display: none; }
  h1 { font-size: 2.1rem; }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; column-gap: 2rem; align-items: start; }
  .cols .facts { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 1rem; }
  .cols .text { grid-column: 1; grid-row: 1; margin-top: 0; }
  .cols .sources { grid-column: 1; }
  .cols .facts dl { grid-template-columns: 1fr; }
  .cols .facts dt { border-top: 1px solid var(--rule); padding: .6rem .75rem 0; }
  .cols .facts dd { border-top: 0; padding-top: .1rem; }
  .cols .facts dt:first-of-type { border-top: 0; }
  .pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}
@media (max-width: 43.99rem) {
  ul.lines > li > .price { display: none; }
}

/* ---- the pages that are only words, and what the others say when they have nothing ---- */
main > h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
main > p:not([class]) { margin: .75rem 0; }
h1 small { display: block; font-size: 1rem; font-weight: normal; color: var(--quiet); margin-top: .25rem; }
.none { font-style: italic; color: var(--quiet); margin: 1rem 0; }
.aside { margin-top: 3rem; font-size: .85rem; color: var(--quiet); }
.aside a, .aside a:visited { color: inherit; }
nav.around { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin: 2.5rem 0 0; }
ul.dated > li { grid-template-columns: minmax(0, 1fr); }
ul.dated .when { margin-bottom: .1rem; }
details.block > summary { cursor: pointer; }
@media (min-width: 44rem) {
  ul.dated > li { grid-template-columns: 11rem minmax(0, 1fr) auto; }
}
h1.top, p.label.back { margin-top: 1.25rem; }
p.label.back { display: block; margin-bottom: 0; }
header.day h2 a, header.day h2 a:visited { color: inherit; text-decoration: none; }
header.day h2 a:hover { text-decoration: underline; }
.screens a, .screens a:visited { color: inherit; text-decoration-color: var(--rule); }
.also .meta .sep, .also .meta .price, .block .meta .sep, .block .meta .price { display: inline; }
header.day h2::first-letter { text-transform: uppercase; }
