:root {
  --ink: #25231e;
  --paper: #f8f5ee;
  --line: #d6d1c6;
  --red: #d9462c;
  --mute: #625e53;
  --lime: #dbe88c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 system-ui,-apple-system,sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,select {
  font: inherit;
  color: inherit;
}

button,a,input,select {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #3155cc;
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(1180px,92%);
  margin: auto;
}

header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.bar {
  display: flex;
  align-items: center;
  height: 78px;
  gap: 46px;
}

.brand,.footbrand {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -.095em;
  line-height: 1;
}

.brand span {
  color: var(--red);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 34px;
  margin-right: 8px;
  border-radius: 6px;
}

nav {
  display: flex;
  gap: 28px;
}

nav a,.account {
  font-size: 14px;
  font-weight: 700;
}

nav a[aria-current=page] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}

.account {
  margin-left: auto;
  border: 1px solid var(--ink);
  padding: 7px 17px;
  border-radius: 30px;
}

.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  margin: 32px 0 38px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: #ffecd3;
}

.herotext {
  padding: clamp(22px,4.5vw,62px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.kicker {
  font: 700 11px/1.4 ui-monospace,monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.herotext .kicker:before {
  content: '✳';
  color: var(--red);
  font-size: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

.hero h1,.headline {
  margin: 12px 0;
  font-size: clamp(46px,6.3vw,87px);
  letter-spacing: -.085em;
  line-height: .93;
}

.hero h1 em {
  font-family: Georgia,serif;
  font-weight: 400;
  letter-spacing: -.08em;
}

.hero p,.sub {
  color: var(--mute);
  margin: 5px 0;
}

.heroart {
  background: #ffc8a8 url('/hero.svg') center/cover;
  min-height: 230px;
  border-left: 1px solid var(--ink);
  position: relative;
}

.edition {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: #ffe8bf;
  color: #25231e;
  padding: 4px 8px;
  border: 1px solid;
  border-radius: 20px;
  font: 700 10px ui-monospace,monospace;
  letter-spacing: .12em;
}

.sectionhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sectionhead h2,.page h1,.page h2 {
  margin: 4px 0 15px;
  letter-spacing: -.055em;
  line-height: 1.1;
}

.sectionhead h2,.page h2 {
  font-size: 32px;
}

.page {
  padding: 44px 0;
  min-height: 55vh;
}

.page h1 {
  font-size: clamp(34px,6vw,65px);
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px 0 20px;
}

.filters label,.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 650;
}

.filters input,.filters select,.field input,.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bbb6aa;
  border-radius: 8px;
  background: #fffdf8;
  padding: 9px 12px;
}

.btn,.tag,.back,.linkbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
}

.btn {
  min-height: 42px;
  padding: 9px 18px;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  border-radius: 30px;
  font-size: 14px;
}

.btn.light {
  background: transparent;
  color: var(--ink);
}

.btn.danger {
  color: #9f2d1f;
  border-color: #a74e3e;
  background: transparent;
}

.btn:hover,.account:hover {
  box-shadow: 0 2px 0 #ec7653;
}

.linkbtn,.back {
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}

.back {
  font-size: 14px;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf7;
  overflow: hidden;
}

.card>a {
  display: block;
}

.poster {
  position: relative;
  height: 178px;
  background: var(--c,#f7b480);
  overflow: hidden;
  isolation: isolate;
}

.poster:before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -14px;
  top: -55px;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at 40% 60%,transparent 0 8px,var(--p,#913e31) 9px 16px);
  transform: rotate(-32deg) scaleY(.66);
  z-index: -1;
}

.poster.t1 {
  --c: #cadeb1;
  --p: #456a4e;
}

.poster.t2 {
  --c: #d3b9ee;
  --p: #695682;
}

.poster.t3 {
  --c: #eab6ae;
  --p: #b34f38;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.postmark {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font: 900 21px Georgia,serif;
  font-style: italic;
  color: #25231e;
  background: #fff5da;
  padding: 0 7px;
  border-radius: 3px;
}

.cardbody {
  padding: 15px;
}

.date {
  font: 700 11px ui-monospace,monospace;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: #993a29;
}

.card h3 {
  font-size: 23px;
  letter-spacing: -.045em;
  line-height: 1.12;
  margin: 9px 0;
}

.card p {
  margin: 4px 0;
  color: var(--mute);
  font-size: 14px;
}

.tag {
  background: #eae6d9;
  border-radius: 20px;
  font-size: 12px;
  padding: 4px 10px;
}

.star {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
}

.empty,.panel,.ticket {
  background: #fffcf5;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
}

.empty {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 30px;
}

.empty .glyph {
  display: grid;
  place-items: center;
  flex: none;
  background: var(--lime);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 27px;
}

.empty h3,.panel h3,.ticket h3 {
  margin: 0 0 5px;
  letter-spacing: -.035em;
}

.empty p,.panel p,.ticket p {
  margin: 2px 0 12px;
  color: var(--mute);
}

.empty .actions {
  margin-left: auto;
}

.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(280px,1fr);
  gap: 26px;
  margin-top: 22px;
}

.detail .poster {
  height: 215px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.prose {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.detail h1 {
  max-width: 950px;
}

.meta {
  display: flex;
  gap: 9px 18px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.form {
  max-width: 480px;
  display: grid;
  gap: 14px;
}

.ticket {
  margin: 12px 0;
}

.code {
  font: 700 17px ui-monospace,monospace;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
  background: #f1eddf;
  padding: 10px;
  border-radius: 7px;
  display: inline-block;
}

.muted {
  color: var(--mute);
}

footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 0;
  margin-top: 40px!important;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
}

footer>a:last-child {
  margin-left: auto;
}

.footbrand {
  font-size: 26px;
  color: var(--ink);
}

#demo-banner {
  background: var(--lime);
  padding: 8px 0;
  font-size: 13px;
}

#demo-banner button {
  border: none;
  background: none;
  text-decoration: underline;
  font-weight: bold;
}

.skip {
  position: absolute;
  left: -10000px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: white;
  z-index: 2;
}

#toast:not(:empty) {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  max-width: 95%;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  z-index: 5;
}

.error {
  color: #972719;
}

.guest {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

[hidden] {
  display: none!important;
}

@media(max-width:760px) {
  .bar {
    gap: 14px;
    height: 66px;
  }

  nav {
    gap: 12px;
  }

  .brand {
    font-size: 30px;
  }

  .brand img {
    height: 27px;
  }

  nav a,.account {
    font-size: 12px;
  }

  .account {
    padding: 6px 9px;
  }

  .hero {
    grid-template-columns: 1.2fr 1fr;
    margin: 20px 0 26px;
  }

  .heroart {
    min-height: 175px;
  }

  .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .empty {
    flex-wrap: wrap;
  }

  .empty .actions {
    margin-left: 0;
  }

  .edition {
    font-size: 8px;
  }

  .poster {
    height: 145px;
  }

}

@media(max-width:470px) {
  .bar {
    gap: 8px;
  }

  nav {
    gap: 9px;
  }

  .brand img {
    display: none;
  }

  .herotext {
    padding: 20px 14px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .herotext p {
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1.4fr 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .poster {
    height: 165px;
  }

  .empty {
    padding: 17px;
  }

  .sectionhead h2 {
    font-size: 26px;
  }

  .kicker {
    font-size: 9px;
  }

  .heroart .edition {
    writing-mode: vertical-rl;
  }

  .wrap {
    width: 93%;
  }

}

.entryqr {
  display: block;
  width: 180px;
  max-width: 100%;
  margin: 8px 0;
  background: white;
  border: 1px solid var(--line);
}

.ticket .actions {
  margin-top: 12px;
}
