:root {
  --paper: #f3efe4;
  --ink: #232521;
  --amber: #edb93d;
  --muted: #66675d;
  --board: #242722;
  --line: #d3cfc3;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.page-shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 5.5%;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #82611a;
  outline-offset: 5px;
}
.masthead {
  height: 120px;
  display: flex;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 15px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
}
.mark {
  font-size: 40px;
  grid-row: span 2;
  font-weight: 400;
}
.masthead-note {
  font: 10px/1.5 monospace;
  letter-spacing: 0.1em;
  margin: auto auto auto 0;
}
.motion-toggle {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 20px;
  padding: 10px 13px;
  font: 11px monospace;
  display: flex;
  gap: 12px;
}
.motion-toggle:hover {
  background: var(--amber);
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 0 27px;
  gap: 20px;
}
h1 {
  font-size: clamp(36px, 5.7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
  margin: 0;
}
.issue {
  font: 10px monospace;
  letter-spacing: 0.09em;
}
.board {
  background: var(--board);
  color: var(--paper);
  border: 7px solid #1a1c18;
  border-radius: 9px;
  box-shadow:
    0 5px 0 #c5c1b6,
    0 14px 28px #20251e18;
  padding: 22px 26px 0;
  position: relative;
}
.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #484b40;
  padding-bottom: 19px;
  gap: 12px;
}
.board-top h2 {
  font: 11px monospace;
  letter-spacing: 0.12em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 9px #edb93d44;
}
#today-label {
  font: 10px monospace;
  color: #aaa99a;
}
.destination-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px 0 20px;
}
.row-number {
  font: 13px monospace;
  color: #969889;
  align-self: flex-start;
  padding-top: 4px;
}
.eyebrow {
  font: 9px monospace;
  letter-spacing: 0.15em;
  color: #b1b2a5;
}
#event-title {
  font-size: clamp(18px, 2.6vw, 31px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.destination-row > div {
  min-width: 0;
  flex: 1;
}
.state-label {
  color: var(--amber);
  border: 1px solid #6a6038;
  padding: 8px 10px;
  font: 9px monospace;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.readout {
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 0 0 27px;
}
.digits {
  display: grid;
  grid-template-columns: repeat(var(--count, 3), minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 820px;
}
.flap {
  background: linear-gradient(
    #3d4137 0 49.5%,
    #151711 49.5% 50.5%,
    #35392f 50.5%
  );
  border-radius: 5px;
  color: var(--amber);
  font:
    bold clamp(50px, 10vw, 139px)/1.18 "Courier New",
    monospace;
  text-align: center;
  box-shadow:
    inset 0 1px #62655666,
    0 3px 0 #12140f;
  position: relative;
  padding: 10px 0;
}
.digits.many .flap {
  font-size: clamp(27px, 6.2vw, 84px);
}
.flap:before,
.flap:after {
  content: "";
  position: absolute;
  top: 48%;
  height: 8px;
  width: 3px;
  background: #0f110c;
  border-radius: 2px;
  left: 0;
}
.flap:after {
  left: auto;
  right: 0;
}
.unit-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 155px;
}
#day-unit {
  font-size: clamp(25px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.045em;
}
#direction {
  font: 10px/1.5 monospace;
  color: #b1b2a5;
  max-width: 150px;
  letter-spacing: 0.07em;
}
.board-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #484b40;
  font: 10px monospace;
  letter-spacing: 0.08em;
  color: #c2c3b7;
}
.board-code {
  color: #969889;
  white-space: nowrap;
}
.booking {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 40px;
  padding: 41px 0 30px;
  border-bottom: 1px solid var(--line);
}
.section-number {
  font: 9px monospace;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.booking h2 {
  font-size: 25px;
  letter-spacing: -0.045em;
  margin: 10px 0;
}
.booking p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
form {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px 20px;
  align-items: start;
  padding-top: 5px;
}
.field {
  min-width: 0;
}
label {
  display: flex;
  justify-content: space-between;
  font: 10px monospace;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
label span {
  color: #898b7e;
}
input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #aaa99b;
  padding: 13px 0;
  background: transparent;
  font-size: 17px;
  border-radius: 0;
  color: var(--ink);
  min-width: 0;
}
input::placeholder {
  color: #74766b;
}
input:focus {
  border-color: var(--ink);
}
input[aria-invalid="true"] {
  border-bottom-color: #a12e1d;
}
small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
}
.submit-button {
  grid-column: 1/-1;
  border: 1px solid var(--ink);
  background: var(--amber);
  padding: 15px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.submit-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.submit-button:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}
.submit-button span {
  font-size: 23px;
  line-height: 1;
}
form .error {
  grid-column: 1/-1;
  color: #9b2d1a;
  font-size: 12px;
  min-height: 0;
}
.error:empty {
  display: none;
}
.fine-print {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 21px 0 28px;
}
.fine-print > span {
  font: 9px/1.6 monospace;
  letter-spacing: 0.04em;
}
.fine-print > span > span {
  margin-right: 9px;
  font-size: 18px;
}
.fine-print p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0 30px;
  border-top: 1px solid var(--line);
  font: 9px/1.5 monospace;
  letter-spacing: 0.04em;
}
footer a {
  text-underline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.flip .flap {
  animation: flap 0.48s cubic-bezier(0.2, 0.7, 0.25, 1) both;
  animation-delay: calc(var(--i) * 35ms);
}
@keyframes flap {
  0% {
    transform: perspective(500px) rotateX(-55deg);
    filter: brightness(0.55);
  }
  100% {
    transform: perspective(500px) rotateX(0);
    filter: brightness(1);
  }
}
body.motion-off * {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1400px) {
  .flap {
    font-size: 139px;
  }
}
@media (max-width: 800px) {
  .page-shell {
    padding: 0 5%;
  }
  .masthead {
    height: 95px;
  }
  .title-row {
    padding: 28px 0 23px;
  }
  .issue {
    font-size: 8px;
  }
  .board {
    padding: 19px 18px 0;
  }
  .readout {
    gap: 20px;
  }
  .unit-block {
    min-width: 110px;
  }
  .booking {
    grid-template-columns: 1fr 2fr;
    gap: 25px;
  }
  .fine-print {
    align-items: start;
  }
  .fine-print p {
    max-width: 180px;
    line-height: 1.5;
  }
  .board-top h2 {
    font-size: 9px;
  }
}
@media (max-width: 560px) {
  .masthead {
    height: 85px;
    gap: 12px;
  }
  .wordmark {
    font-size: 12px;
    grid-template-columns: 34px 1fr;
  }
  .mark {
    font-size: 32px;
  }
  .masthead-note {
    display: none;
  }
  .motion-toggle {
    margin-left: auto;
    font-size: 10px;
    padding: 9px 10px;
  }
  .title-row {
    display: block;
    padding: 27px 0 20px;
  }
  h1 {
    font-size: 43px;
  }
  .issue {
    display: block;
    margin-top: 10px;
    font-size: 8px;
  }
  .board {
    padding: 16px 13px 0;
    border-width: 5px;
  }
  .board-top {
    padding-bottom: 14px;
    align-items: start;
  }
  .board-top h2 {
    font-size: 8px;
    letter-spacing: 0.06em;
    gap: 6px;
  }
  #today-label {
    font-size: 8px;
    white-space: nowrap;
  }
  .status-light {
    width: 5px;
    height: 5px;
  }
  .destination-row {
    gap: 10px;
    flex-wrap: wrap;
    padding: 19px 0;
  }
  .row-number {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 8px;
  }
  #event-title {
    font-size: 21px;
  }
  .state-label {
    margin-left: 24px;
    font-size: 8px;
    padding: 6px 8px;
  }
  .readout {
    display: block;
    padding-bottom: 19px;
  }
  .digits {
    gap: 6px;
  }
  .flap {
    font-size: clamp(55px, 19vw, 100px);
    padding: 7px 0;
  }
  .digits.many {
    gap: 3px;
  }
  .digits.many .flap {
    font-size: clamp(23px, 7.5vw, 40px);
  }
  .unit-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    gap: 10px;
  }
  #day-unit {
    font-size: 30px;
  }
  #direction {
    text-align: right;
    font-size: 9px;
  }
  .board-bottom {
    font-size: 8px;
    letter-spacing: 0.02em;
    padding: 14px 0;
  }
  .board-code {
    font-size: 8px;
  }
  .booking {
    display: block;
    padding: 29px 0 25px;
  }
  .booking-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    column-gap: 12px;
  }
  .section-number {
    grid-column: 1/-1;
  }
  .booking h2 {
    font-size: 23px;
    margin: 9px 0 0;
  }
  .booking-intro p {
    font-size: 11px;
    margin-top: 9px;
  }
  form {
    margin-top: 24px;
    gap: 18px 13px;
  }
  input {
    font-size: 15px;
  }
  label {
    font-size: 8px;
  }
  small {
    font-size: 9px;
    line-height: 1.4;
  }
  .submit-button {
    font-size: 13px;
  }
  .fine-print {
    display: block;
    padding: 18px 0 23px;
  }
  .fine-print p {
    max-width: none;
    margin-top: 9px;
    font-size: 10px;
  }
  footer {
    font-size: 8px;
    padding: 21px 0;
    gap: 15px;
  }
  footer > span {
    max-width: 130px;
  }
}
@media (max-width: 350px) {
  h1 {
    font-size: 38px;
  }
  .page-shell {
    padding: 0 4.5%;
  }
  .board-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .board-top h2 {
    flex: 1 1 100%;
  }
  .booking-intro {
    display: block;
  }
  .booking-intro p br {
    display: none;
  }
  form {
    grid-template-columns: 1fr;
  }
  .submit-button {
    margin-top: 2px;
  }
  .board-code {
    display: none;
  }
  .flap {
    font-size: 59px;
  }
  .destination-row {
    gap: 9px;
  }
}

/* Vector arrows keep their shape across Safari, system fonts, and emoji sets. */
svg.compat-arrow {
  display: inline-block;
  position: static;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
}

/* Keep text-entry controls readable without iPhone Safari focus zoom. */
@media (max-width: 640px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
    font-size: 16px;
  }
}
