:root {
  font-family: Inter, system-ui, sans-serif;
  color: #1d305e;
  background: #fcf2df;
  font-size: 17px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #243f90;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem max(5vw, 1rem);
  align-items: center;
}
header a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
header span {
  font-weight: 450;
  color: #fcf2df;
}
main,
#error {
  max-width: 60rem;
  margin: 3rem auto;
  padding: 0 1.2rem;
}
section,
form {
  background: white;
  border: 1px solid #d8d1c4;
  border-radius: 0.8rem;
  padding: clamp(1rem, 3vw, 2rem);
  margin: 1rem 0;
}
h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0.65em 0;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.16;
}
p {
  line-height: 1.5;
}
label {
  display: block;
  margin: 1rem 0 0.25rem;
  font-weight: 650;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #76768e;
  border-radius: 0.35rem;
  padding: 0.65rem;
  background: white;
  color: inherit;
}
input[type="checkbox"] {
  width: auto;
}
button,
.link {
  display: inline-block;
  border: 0;
  border-radius: 0.45rem;
  background: #243f90;
  color: white;
  padding: 0.75rem 1rem;
  margin: 0.4rem 0.4rem 0.4rem 0;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b33343;
  outline-offset: 3px;
}
.answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.answers button {
  margin: 0;
  text-align: left;
}
.board {
  background: #243f90;
  color: #fff5e1;
}
.board pre {
  font: 600 clamp(1.1rem, 3vw, 2rem)/1.8 monospace;
  white-space: pre-wrap;
}
.qr {
  float: right;
  width: clamp(7rem, 22vw, 12rem);
  margin: 0 0 1rem 1rem;
}
.clear {
  display: flow-root;
}
small {
  color: #565779;
}
li {
  padding: 0.35rem;
}
#error {
  color: #8e2811;
  font-weight: 600;
  margin-top: 1rem;
}
a {
  color: #243f90;
}
@media (max-width: 550px) {
  main {
    margin: 1rem auto;
  }
  .answers {
    grid-template-columns: 1fr;
  }
  header {
    font-size: 0.9rem;
  }
}

header {
  border-bottom: 5px solid #ffc21a;
}
header strong {
  font-style: italic;
  letter-spacing: -.04em;
}
header span {
  display: inline-block;
  border-left: 1px solid #989dce;
  padding-left: .7rem;
  margin-left: .4rem;
}
.boarding-pass {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid #243f90;
  border-radius: 1.25rem;
  background: #fffaf1;
}
.pass-brand {
  background: #fcf2df;
  border-right: 2px dashed #9186b7;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.pass-brand img {
  width: 100%;
  max-width: 15rem;
  clip-path: inset(1%);
}
.pass-entry {
  align-self: center;
  padding: clamp(1.4rem, 4vw, 3rem);
}
.pass-entry h1 {
  margin: 0;
  color: #243f90;
  font-weight: 850;
}
.pass-entry form {
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  border: none;
}
.pass-entry button {
  margin-top: .9rem;
}
.transport-strip {
  grid-column: 1 / -1;
  width: 100%;
  display: block;
}
.prompty {
  width: min(100%, 24rem);
  display: block;
  border-radius: 1rem;
}
.board small, .board a {
  color: #fff5e1;
}
.board {
  border-top: .4rem solid #ffc21a;
}
@media (max-width: 550px) {
  .boarding-pass {
    grid-template-columns: 1fr;
  }
  .pass-brand {
    border-right: none;
    border-bottom: 2px dashed #9186b7;
    padding: .45rem;
  }
  .pass-brand img {
    width: 7rem;
  }
}
.clear:has(.qr) {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.clear:has(.qr)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(2rem, 5vw, 4rem);
  background: url("/artwork/barcelona.png") center bottom / cover;
}
