:root {
  color-scheme: light;
  --ink: #142c29;
  --green: #006553;
  --line: #d5dfda;
  --mute: #48605b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f7f5;
  color: var(--ink);
  font: 1rem/1.5 system-ui,sans-serif;
}

.wrap {
  width: min(100% - 2.5rem,66rem);
  margin-inline: auto;
}

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

.bar,footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

a {
  color: var(--green);
  text-underline-offset: .2em;
}

.brand {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.055em;
  text-decoration: none;
}

.brand span {
  margin-left: .7rem;
  border-left: 1px solid var(--line);
  padding-left: .7rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

h1,h2,h3,p {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem,5vw,3.6rem);
  line-height: 1.08;
  letter-spacing: -.055em;
  max-width: 20ch;
}

h2 {
  font-size: 1.45rem;
  letter-spacing: -.025em;
  margin: 2rem 0 1rem;
}

.hero {
  padding: clamp(2rem,6vw,4.5rem) 0 1rem;
}

.search,.trip,.ticket,.empty {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
}

.search {
  margin-top: 1.8rem;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: .9rem;
}

.search label {
  font-size: .86rem;
  font-weight: 650;
  min-width: 0;
}

.search input {
  display: block;
  width: 100%;
  margin-top: .32rem;
  padding: .78rem;
  border: 1px solid #819790;
  border-radius: .55rem;
  font: inherit;
  font-weight: 400;
}

.search button {
  padding: .78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.trip {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 1rem;
  margin: .7rem 0;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
}

.trip:hover {
  border-color: var(--green);
}

.trip time {
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.trip p,.empty p,.ticket p {
  color: var(--mute);
}

.price {
  text-align: right;
  font-weight: bold;
}

.price p {
  color: var(--green);
  font-weight: 500;
}

.empty,.ticket {
  padding: 1.8rem;
}

.back {
  display: inline-block;
  margin: 2rem 0 1rem;
}

.ticket {
  margin-top: 1.5rem;
}

.ticket h2 {
  margin: .3rem 0 1rem;
}

.ticket h3 {
  margin-top: 1.4rem;
}

.seats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .5rem 0;
}

.seats span {
  background: #e1f2ec;
  padding: .35rem .75rem;
  border-radius: .45rem;
}

footer {
  justify-content: start;
  gap: 1.2rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

:focus-visible {
  outline: 3px solid #087c90;
  outline-offset: 3px;
}

.errorlist {
  color: #921b20;
}

@media(max-width:750px) {
  .search {
    grid-template-columns: 1fr 1fr;
  }
  .trip {
    grid-template-columns: 1fr 2fr;
  }
  .price {
    grid-column: 2;
    text-align: left;
  }
}

@media(max-width:480px) {
  .wrap {
    width: calc(100% - 2rem);
  }
  .search,.trip {
    grid-template-columns: 1fr;
  }
  .price {
    grid-column: 1;
  }
  .bar>a:last-child {
    font-size: .85rem;
  }
}

.checkout {
  max-width: 45rem;
}
.checkout form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.checkout label {
  display: grid;
  gap: .3rem;
}
.checkout input, .checkout select {
  padding: .8rem;
  border: 1px solid #819790;
  border-radius: .55rem;
  font: inherit;
}
.action {
  display: inline-block;
  justify-self: start;
  margin-top: 1rem;
  padding: .8rem 1.2rem;
  border: 0;
  border-radius: .65rem;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.action.secondary {
  margin: 0;
  color: var(--green);
  background: #e1f2ec;
}
.reference {
  margin-top: .75rem;
  overflow-wrap: anywhere;
  font-size: .9rem;
}
@media print {
  header, footer, .action, .back {
    display: none;
  }
  body, .ticket {
    background: white;
    border: none;
  }
}
.exit-kiosk {
  padding: .7rem 1rem;
  border: 1px solid var(--green);
  border-radius: .55rem;
  background: white;
  color: var(--green);
  font: inherit;
  cursor: pointer;
}
