@font-face {
  font-family: Bricolage;
  src: url("/art/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #fdfcf9;
  --ink: #222038;
  --muted: #585666;
  --line: #cdcbd4;
  --green: #4333aa;
  --field: #e7e3fa;
  --accent: #d8f566;
  --record: #eeeaf8;
  --sans: system-ui, "Segoe UI", sans-serif;
  --display: Bricolage, var(--sans);
  --serif: var(--display);
  --mono: ui-monospace, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #181820;
  --surface: #24232f;
  --ink: #f4f1fc;
  --muted: #c2bed0;
  --line: #4b485a;
  --green: #c6bfff;
  --field: #37324c;
  --record: #2f2942;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #181820;
    --surface: #24232f;
    --ink: #f4f1fc;
    --muted: #c2bed0;
    --line: #4b485a;
    --green: #c6bfff;
    --field: #37324c;
    --record: #2f2942;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  color: inherit;
  text-underline-offset: 0.17em;
}
.bar,
.foot,
main {
  width: min(1136px, calc(100% - 80px));
  margin-inline: auto;
}
header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.bar {
  display: flex;
  align-items: center;
  gap: 46px;
  min-height: 72px;
}
header a,
.button,
.card,
.record,
.textlink {
  text-decoration: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font: 800 27px/1 var(--display);
  letter-spacing: -0.075em;
}
.brandmark {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 21px;
  background: #5542cb;
  color: #effbb8;
  font: 800 24px/0.8 var(--display);
  transform: rotate(-11deg);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 34%,
    91% 50%,
    100% 66%,
    100% 100%,
    0 100%,
    0 66%,
    9% 50%,
    0 34%
  );
}
nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav a,
.account {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--muted);
  font: 650 15px/1.2 var(--display);
  border-radius: 7px;
}
nav a[aria-current="page"] {
  background: var(--field);
  color: var(--green);
}
.account {
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 28%;
  padding: 10px 16px;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
nav a:hover,
.account:hover {
  background: var(--field);
}
main {
  flex: 1;
  padding: 44px 0 58px;
}
.mast {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
}
.mast p,
.meta,
.stamp,
.date,
.stub {
  font: 600 12px/1.4 var(--mono);
}
.mast p,
.meta,
.stamp {
  text-transform: uppercase;
  letter-spacing: 0.085em;
}
.mast p {
  margin: 0 0 8px;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.052em;
}
h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  margin: 0;
}
h2 {
  font-size: clamp(27px, 3vw, 40px);
  margin-bottom: 12px;
}
h3 {
  font-size: 23px;
  margin-bottom: 8px;
}
.date {
  color: var(--muted);
  white-space: nowrap;
  padding: 0 0 4px;
}
.ticket {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #d6cff9;
  color: #201c3d;
  border: 1px solid #a59cc7;
  border-radius: 15px;
}
.ticket-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(26px, 4vw, 54px);
}
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  background: #ecf6bc;
  border: 1px solid #8c9852;
  border-radius: 3px;
  padding: 4px 8px;
  color: #34401d;
  font-size: 10px;
}
.stamp:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #576e26;
  border-radius: 50%;
}
.ticket h2 {
  max-width: 13ch;
  margin-bottom: 14px;
  font-size: clamp(42px, 5.5vw, 78px);
  line-height: 0.97;
  letter-spacing: -0.066em;
}
.ticket-copy p {
  max-width: 35ch;
  color: #423b5c;
  margin: 0 0 23px;
}
.art {
  position: relative;
  align-self: stretch;
  min-height: 290px;
  overflow: hidden;
}
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-image: linear-gradient(90deg, transparent, #000 9%);
  background: #d6cff9;
}
.stub {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 22px;
  background: #f1edf9;
  border-top: 1px dashed #9e94b7;
  color: #474058;
  font-size: 11px;
  letter-spacing: 0.018em;
}
.stub b {
  margin-left: 0.45em;
  font-weight: 700;
}
.stub-mark {
  width: 34px;
  height: 15px;
  background: repeating-linear-gradient(
    90deg,
    #483e63 0 2px,
    transparent 2px 4px,
    #483e63 4px 5px,
    transparent 5px 8px
  );
}
#rollover {
  margin-left: auto;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: #fff;
  background: #5140bb;
  cursor: pointer;
  font: 700 15px/1.25 var(--display);
}
.button:hover,
button:hover {
  background: #3b2b99;
}
.ticket .button {
  background: #292345;
  color: white;
}
.ticket .button:hover {
  background: #4333aa;
}
.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover {
  background: var(--field);
}
button:disabled {
  opacity: 0.62;
  cursor: wait;
}
.panel,
.card,
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.panel {
  max-width: 790px;
  margin: 18px 0;
}
.panel h2 {
  font-size: 30px;
}
.panel p,
.card p,
.metric span {
  color: var(--muted);
}
.panel p:last-child,
.card p:last-child {
  margin-bottom: 0;
}
.meta {
  margin: 0 0 12px;
}
.cards,
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.card {
  display: block;
  position: relative;
  padding-right: 44px;
}
.card:hover,
.record:hover {
  border-color: var(--green);
}
.card strong {
  position: absolute;
  right: 18px;
}
.tools {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.focus-box,
.record {
  border: 1px solid var(--line);
  border-radius: 11px;
}
.tools h2 {
  font-size: 24px;
  letter-spacing: -0.045em;
  margin: 0 0 3px;
}
.tools p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}
.focus-box {
  background: var(--surface);
  padding: 23px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  align-items: center;
}
.timer-face {
  font: 700 37px/1 var(--display);
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.timer-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  grid-column: 1/-1;
}
.timer-controls button {
  padding: 8px 15px;
}
.record {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--record);
}
.record > span:last-child {
  margin-left: auto;
  align-self: start;
  font: 24px/1 var(--display);
}
.record-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 42px;
  height: 42px;
  flex: none;
  padding: 11px 7px;
  background: #d8ee91;
  border: 1px solid #a0b268;
  border-radius: 50%;
  transform: rotate(-8deg);
}
.record-icon i {
  width: 5px;
  background: #34431a;
  height: 45%;
}
.record-icon i:nth-child(2) {
  height: 70%;
}
.record-icon i:nth-child(3) {
  height: 100%;
}
.faq {
  display: grid;
  gap: 8px;
}
.faq button {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}
.faq button::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-inline: 2px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.faq button[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}
.faq ui-collapsible-panel p {
  margin: 0;
  padding: 12px 16px 6px;
}
#export + ui-collapsible ui-collapsible-trigger button {
  margin-top: 10px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.stats {
  grid-template-columns: repeat(3, 1fr);
}
.metric b {
  display: block;
  font: 34px var(--serif);
}
.metric span {
  color: var(--muted);
}
label {
  display: block;
  font-weight: 600;
  margin: 14px 0 5px;
}
input,
select,
textarea {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--muted);
  font: inherit;
  padding: 10px;
  width: min(100%, 430px);
  border-radius: 4px;
  display: block;
}
textarea {
  width: 100%;
  min-height: 105px;
}
.announcement {
  width: min(740px, 90%);
  margin: auto;
  font-weight: 600;
}
.announcement:not(:empty) {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 16px;
}
.inline-status {
  color: var(--green);
  margin: 8px 0;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.foot b {
  color: var(--green);
  margin: 0 6px;
}
footer {
  border-top: 1px solid var(--line);
}
:focus-visible {
  outline: 3px solid #bb6a13;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 8px;
  top: -70px;
  background: var(--surface);
  padding: 8px;
  z-index: 3;
}
.skip:focus {
  top: 8px;
}
pre,
code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
p,
h1,
h2,
h3,
a {
  overflow-wrap: anywhere;
}
.history {
  padding: 0;
  list-style: none;
}
.history li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
details {
  margin-top: 16px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.ticket :focus-visible {
  outline-color: #4931a4;
}
.metric b {
  font: 750 35px/1.3 var(--display);
}
@media (max-width: 720px) {
  .bar,
  .foot,
  main {
    width: calc(100% - 32px);
  }
  .bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 10px;
    padding: 10px 0 5px;
  }
  .brand {
    font-size: 24px;
  }
  .account {
    grid-area: 1/2;
    justify-self: end;
    max-width: 100%;
    padding: 8px 10px;
  }
  nav {
    grid-area: 2/1/3/-1;
    justify-content: space-between;
    gap: 2px;
  }
  nav a {
    padding: 6px clamp(5px, 2vw, 9px);
  }
  main {
    padding: 26px 0 36px;
  }
  .mast {
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  .mast:has(.date) {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
  }
  .mast:has(.date) > div {
    display: contents;
  }
  .mast:has(.date) p {
    grid-area: 1/1;
    align-self: center;
    margin: 0;
  }
  .mast:has(.date) h1 {
    grid-column: 1/-1;
  }
  .date {
    grid-area: 1/2;
    padding: 0;
  }
  .mast p,
  .date {
    font-size: 10px;
  }
  .ticket {
    grid-template-columns: minmax(0, 1fr);
  }
  .ticket-copy {
    padding: 24px 23px 0;
  }
  .ticket-copy p {
    margin-bottom: 16px;
  }
  .stamp {
    margin-bottom: 12px;
  }
  .art {
    min-height: 0;
    height: clamp(150px, 41vw, 240px);
    margin: 0 12px;
  }
  .art img {
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 12%,
      #000 88%,
      transparent
    );
  }
  .stub {
    padding: 10px 13px;
    gap: 6px;
    font-size: 10px;
  }
  .stub-mark {
    width: 17px;
    height: 12px;
  }
  .stub b {
    margin-left: 0.1em;
  }
  .tools,
  .cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }
  .focus-box,
  .record,
  .card,
  .panel {
    padding: 18px;
  }
  .card {
    padding-right: 36px;
  }
  .stats {
    gap: 6px;
  }
  .metric {
    padding: 12px 7px;
  }
  .foot {
    flex-wrap: wrap;
  }
}
