@font-face {
  font-family: "Space Mono";
  src: url("/assets/space-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/space-mono-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --orange: #ff7430;
  --sky: #94cbf5;
  --ink: #2e2e2e;
  --paper: #f7f7f7;
  color: var(--ink);
  font:
    16px/1.5 "Space Mono",
    monospace;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--sky);
}
header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(12px, 3vw, 32px);
  background: var(--orange);
  color: var(--ink);
}
header img {
  display: block;
  height: 40px;
  width: auto;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
header a:last-child {
  border: 2px solid currentColor;
  border-radius: 4px;
  padding: 5px 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
header a:last-child:hover {
  background: var(--ink);
  color: var(--orange);
  border-color: var(--ink);
}
main {
  padding: 0 clamp(16px, 5vw, 64px) 64px;
}
body:has(#catalogue:not([hidden])) main {
  background:
    url("/assets/banderilles.svg") center top / min(100%, 1728px) auto no-repeat,
    url("/assets/cloud-1.svg") 99% 40% / clamp(90px, 16vw, 260px) auto no-repeat;
}
#catalogue {
  max-width: 1040px;
  margin: auto;
  padding-top: clamp(64px, 10vw, 155px);
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.hero-logo {
  width: clamp(96px, 22vw, 260px);
  height: auto;
}
h1,
h2,
p {
  margin: 0;
}
.hero h1 {
  font-size: clamp(38px, 7.5vw, 96px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.hero p {
  margin-top: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.ticket {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  background: var(--paper);
}
.art {
  min-height: 110px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
}
.art.cinema {
  background: white;
}
.art img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}
.info {
  flex: 1;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 16px;
  padding: 20px;
  border-top: 2px solid var(--ink);
}
h2 {
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.25;
}
.action,
button {
  font:
    700 1rem/1.25 "Space Mono",
    monospace;
  background: var(--orange);
  color: var(--ink);
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
}
.ticket:hover .action,
button:hover {
  background: var(--ink);
  color: white;
}
body:has(#detail:not([hidden])) {
  background: var(--ink);
  color: white;
}
#detail {
  padding-top: clamp(24px, 5vw, 64px);
}
.shared-form-fields {
  min-height: 0;
}
.shared-form-fields > a {
  align-self: start;
  margin-bottom: 20px;
}
.public-form {
  display: grid;
  gap: 16px;
}
input,
select {
  font: inherit;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
}
.pair:has(label[hidden]) {
  grid-template-columns: 1fr;
}
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
form p {
  font-size: 0.875rem;
}
button {
  cursor: pointer;
}
.public-form button:hover {
  background: var(--paper);
  color: var(--ink);
}
button:disabled {
  opacity: 0.65;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
#detail :focus-visible {
  outline-color: var(--orange);
}
#status:not(:empty),
#retry {
  display: block;
  max-width: 1040px;
  margin: 20px auto 0;
}
@media (max-width: 640px) {
  header {
    height: 56px;
  }
  header img {
    height: 32px;
  }
  header a:last-child {
    font-size: 14px;
  }
}
@media (max-width: 440px) {
  .pair {
    grid-template-columns: 1fr;
  }
}
