/* Lichtspielhaus: a little silent-film look. Black and ivory, serif type, title
   cards for headings. Mobile first (375 px), fine on a desktop. No images, no web
   fonts: only the system's serif faces. */

:root {
  --ink: #0d0c0a;
  --ink-2: #1a1814;
  --ink-3: #2a2620;
  --ivory: #f3ead7;
  --ivory-2: #d8cfbb;
  --muted: #a1977f;
  --gold: #e0b252;
  --gold-ink: #2a1d05;
  --red: #e88a6f;
  --red-bg: #3a130e;
  --line: rgba(243, 234, 215, 0.28);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", var(--serif);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --radius: 4px;
  --pad: 16px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(243, 234, 215, 0.07), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, 0.9), transparent 70%),
    var(--ink);
  background-attachment: fixed;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--ivory);
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}

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

main:focus {
  outline: none;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  background: var(--ivory);
  color: var(--ink);
  padding: 6px 10px;
  z-index: 10;
}

.offscreen {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

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

.masthead {
  text-align: center;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad) 6px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}

.brand-ornament {
  color: var(--gold);
  font-size: 14px;
}

.brand-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.04em;
}

main {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px var(--pad) 40px;
}

.colophon {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px var(--pad) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.colophon p {
  margin: 0;
}

.loading {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 32px 0;
}

.center {
  text-align: center;
}

.back {
  margin: 0 0 12px;
  font-size: 15px;
}
.back a {
  text-decoration: none;
  color: var(--ivory-2);
}

/* ------------------------------------------------------------ title cards */

.intertitle {
  position: relative;
  margin: 4px auto 22px;
  padding: 18px 18px 16px;
  text-align: center;
  border: 3px double var(--ivory-2);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 5px var(--ink-2), inset 0 0 0 6px var(--line), 0 0 40px rgba(0, 0, 0, 0.6);
}

.intertitle::before,
.intertitle::after {
  content: "❦";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
  background: var(--ink);
  padding: 2px 3px;
}
.intertitle::before {
  left: -11px;
  transform: translateY(-50%) scaleX(-1);
}
.intertitle::after {
  right: -11px;
}

.intertitle h1,
.intertitle h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  font-variant: small-caps;
  text-wrap: balance;
}

.intertitle-sub {
  margin: 8px 0 0;
  color: var(--ivory-2);
  font-style: italic;
  font-size: 15px;
  text-wrap: balance;
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-2);
  text-align: center;
  padding: 0;
}

/* ------------------------------------------------------------ notices */

.notice {
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.notice p {
  margin: 0 0 10px;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice-error {
  border-color: var(--red);
  background: var(--red-bg);
  color: #fbe3da;
}
.notice-info {
  border-color: var(--ivory-2);
}

.fine {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.hint {
  margin: 0;
  color: var(--ivory-2);
  font-style: italic;
  text-align: center;
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--ivory-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:hover {
  background: rgba(243, 234, 215, 0.06);
}
.btn:disabled {
  cursor: default;
  opacity: 0.75;
}
.btn-primary {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
  font-weight: 600;
}
.btn-primary:hover {
  background: #fff8e8;
}
.btn-quiet {
  border-color: transparent;
  color: var(--ivory-2);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}
.btn-danger {
  border-color: var(--red);
  color: #fbe3da;
}
.btn-danger:hover {
  background: var(--red-bg);
}
.btn-wide {
  width: 100%;
}
.btn-small {
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ivory-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
}
.btn-small:hover {
  border-color: var(--ivory-2);
}

/* A spinning reel while something is on its way. */
.is-busy::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.actions-end {
  margin-top: 4px;
}

/* ------------------------------------------------------------ program */

.day {
  margin: 0 0 26px;
}

.day-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.5em;
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-align: center;
}
.day-title::before,
.day-title::after {
  content: "";
  flex: 1 1 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
  align-self: center;
  min-width: 20px;
}
.day-title::after {
  background: linear-gradient(90deg, var(--line), transparent);
}
.day-lead {
  font-variant: small-caps;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.shows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.show-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 14px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  text-decoration: none;
  touch-action: manipulation;
}
.show-card:hover,
.show-card:focus-visible {
  border-color: var(--ivory-2);
  background: var(--ink-3);
}
.show-card.is-soldout {
  opacity: 0.6;
}

.show-time {
  font-family: var(--display);
  font-size: 24px;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.02em;
}
.show-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.show-film {
  font-weight: 600;
  line-height: 1.25;
}
.show-meta {
  color: var(--muted);
  font-size: 14px;
}
.show-free {
  text-align: right;
  font-size: 13px;
  color: var(--ivory-2);
  line-height: 1.2;
  max-width: 5.5em;
}
.show-free b {
  display: block;
  font-size: 18px;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}
.show-free.is-few b {
  color: var(--gold);
}
.show-free.is-none {
  font-style: italic;
  color: var(--red);
}

/* ------------------------------------------------------------ show */

.show-when {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: -8px 0 10px;
  font-size: 15px;
  color: var(--ivory-2);
  text-align: center;
}

.film-about {
  margin: 0 auto 20px;
  max-width: 34em;
  text-align: center;
}
.film-desc {
  margin: 0;
  font-style: italic;
  color: var(--ivory-2);
  font-size: 16px;
  text-wrap: pretty;
}
.film-desc.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.btn-link {
  margin: 2px 0 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--ivory-2);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (min-width: 640px) {
  .film-desc.is-clamped {
    display: block;
    -webkit-line-clamp: none;
    line-clamp: none;
  }
  .film-more {
    display: none;
  }
}

.seatmap {
  /* The map may use the full width of a phone. */
  margin: 0 calc(-1 * var(--pad) + 6px);
  padding: 14px 6px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.screen {
  position: relative;
  max-width: 520px;
  margin: 2px auto 16px;
  height: 22px;
  border-top: 3px solid var(--ivory);
  border-radius: 50% 50% 0 0 / 18px 18px 0 0;
  box-shadow: 0 -10px 24px -10px rgba(243, 234, 215, 0.55);
  text-align: center;
}
.screen span {
  position: relative;
  top: 2px;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

.seat-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
}

.seat-grid {
  --cols: 10;
  --gap: 3px;
  display: grid;
  grid-template-columns: 18px repeat(var(--cols), minmax(20px, 1fr));
  gap: var(--gap);
  align-items: center;
  width: 100%;
  max-width: calc(18px + var(--cols) * 42px);
  margin: 0 auto;
}

.row-label {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  padding-right: 3px;
  font-variant-numeric: tabular-nums;
}

.seat {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  margin: 0;
  border: 1.5px solid var(--ivory-2);
  border-radius: 30% 30% 12% 12%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s, border-color 0.15s;
}
.seat.is-free:hover {
  background: rgba(243, 234, 215, 0.18);
}
.seat.is-held {
  border-color: #6f6758;
  background: repeating-linear-gradient(135deg, #6f6758 0 2px, transparent 2px 5px);
  cursor: not-allowed;
}
.seat.is-sold {
  border-color: #3d3830;
  background: #3d3830;
  cursor: not-allowed;
  position: relative;
}
.seat.is-sold::after {
  content: "";
  position: absolute;
  inset: 30%;
  background:
    linear-gradient(45deg, transparent 44%, #8a8170 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, #8a8170 44% 56%, transparent 56%);
}
.seat.is-selected {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(224, 178, 82, 0.5);
}
.seat.is-mine {
  background: radial-gradient(circle, var(--gold-ink) 0 18%, var(--gold) 20%);
}
.seat-grid.is-locked .seat {
  cursor: default;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  list-style: none;
  margin: 14px 0 4px;
  padding: 0;
  font-size: 14px;
  color: var(--ivory-2);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.seat-demo {
  width: 16px;
  height: 16px;
  flex: none;
  cursor: default;
}

.seat-counts,
.conn {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.conn {
  color: var(--red);
}

.message:empty {
  display: none;
}

.panel {
  margin: 16px 0 0;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  scroll-margin-top: 12px;
}
.panel.is-held {
  border-color: var(--gold);
}

.seat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.seat-chips li {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}
.facts .seat-chips {
  justify-content: flex-start;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ivory-2);
}
.total b {
  color: var(--ivory);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.total-big b {
  font-size: 24px;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--ivory-2);
}
.countdown-time {
  font-family: var(--display);
  font-size: 34px;
  color: var(--gold);
  font-variant-numeric: tabular-nums lining-nums;
  min-width: 2.6em;
  text-align: center;
}
.countdown.is-urgent .countdown-time {
  color: var(--red);
  animation: flicker 1s steps(2) infinite;
}
@keyframes flicker {
  50% {
    opacity: 0.55;
  }
}

.checkout fieldset {
  border: 0;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.checkout legend {
  display: block;
  width: 100%;
  float: left; /* keeps the legend inside the fieldset's flow */
}
.checkout legend + * {
  clear: both;
}

.field {
  margin: 0 0 12px;
}
.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--ivory-2);
}
.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--ivory-2);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--ivory);
  font: inherit;
  font-size: 17px; /* 16 px or more: iOS does not zoom into the field */
}
.field input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(224, 178, 82, 0.35);
}
.field input[aria-invalid] {
  border-color: var(--red);
}
.field-error {
  margin: 4px 0 0;
  color: var(--red);
  font-size: 14px;
}
.field-error:empty {
  display: none;
}

.checkout .btn-wide {
  margin-top: 14px;
  min-height: 54px;
  font-size: 19px;
}
.checkout fieldset:disabled input {
  opacity: 0.6;
}

.pay-progress {
  margin: 10px 0 0;
  text-align: center;
  font-style: italic;
  color: var(--gold);
}

/* ------------------------------------------------------------ order */

.status {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  text-align: center;
}
.status-text {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.status-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-text b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.03em;
}
.status-notified {
  border-color: var(--gold);
}
.status-notified .status-text b {
  color: var(--gold);
}
.status-failed,
.status-cancelled {
  border-color: var(--red);
}
.status-failed .status-text b,
.status-cancelled .status-text b {
  color: var(--red);
}
.status-hint {
  margin: 6px 0 0;
  font-style: italic;
  color: var(--ivory-2);
  font-size: 15px;
}
.status-paid .status-hint,
.status-pending .status-hint {
  animation: flicker 1.6s ease-in-out infinite;
}

.steps {
  display: flex;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
}
.steps li {
  flex: 1;
  position: relative;
  padding-top: 16px;
  line-height: 1.2;
}
.steps li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: var(--ink-2);
  z-index: 1;
}
.steps li + li::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 50%;
  width: 100%;
  height: 1px;
  background: var(--muted);
}
.steps li.is-done,
.steps li.is-now {
  color: var(--ivory);
}
.steps li.is-done::before {
  background: var(--ivory);
  border-color: var(--ivory);
}
.steps li.is-now::before {
  background: var(--gold);
  border-color: var(--gold);
}

.facts {
  margin: 0 0 18px;
}
.facts > div {
  display: grid;
  grid-template-columns: 6.4em 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  color: var(--muted);
  font-size: 15px;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.cancel {
  margin: 0 0 18px;
  text-align: center;
}
.cancel > p:first-child {
  margin: 0;
}

.keep {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px;
  color: var(--ivory-2);
}
.keep p {
  margin: 0 0 8px;
}

.trace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--muted);
}
.trace-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}
.trace-id {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ivory-2);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px 6px;
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
}
/* Under the message of a failed booking (402, 409, 410): no order page shows it. */
.notice .trace-in-notice {
  justify-content: flex-start;
  margin: 0;
  color: inherit;
  opacity: 0.85;
}

/* ------------------------------------------------------------ wider screens */

@media (min-width: 640px) {
  :root {
    --pad: 24px;
  }
  .brand-name {
    font-size: 32px;
  }
  .intertitle {
    padding: 26px 28px 22px;
  }
  .intertitle h1,
  .intertitle h2 {
    font-size: 36px;
  }
  .seatmap {
    margin: 0;
    padding: 18px 16px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .seat-grid {
    --gap: 5px;
  }
  .shows {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 20px 24px;
  }
  .checkout fieldset {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

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