* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  --ink: #162623;
  --blue: #1647bd;
  --paper: #f5f3eb;
  --line: #cfcec3;
  --muted: #54615c;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}
.wrap {
  width: min(1190px, calc(100% - 80px));
  margin: auto;
}
header {
  border-bottom: 1px solid var(--line);
}
.bar,
.brand,
.hours,
footer,
.stamp,
.slotlabel,
.datebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bar {
  height: 82px;
}
.brand {
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 30px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -2px;
}
.brand img {
  transform: rotate(-5deg);
}
.headerinfo,
.kicker,
.stamp,
.hours span,
footer strong,
figcaption span,
.reference small {
  font:
    700 11px/1.4 Consolas,
    "Courier New",
    monospace;
  letter-spacing: 1.35px;
}
.headerinfo i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: var(--blue);
  vertical-align: middle;
  margin: 0 10px;
}
.nav {
  padding: 12px 0;
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 4px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.91fr);
  gap: clamp(30px, 6vw, 96px);
  padding: 54px 0 58px;
  align-items: start;
}
.intro {
  padding-top: 12px;
}
.kicker {
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker b {
  width: 25px;
  height: 3px;
  background: var(--blue);
}
h1 {
  font:
    900 clamp(64px, 6.8vw, 104px) / 0.92 "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: -0.075em;
  margin: 24px 0;
}
h1 em {
  color: var(--blue);
  font-family: Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.065em;
}
.lead {
  font-size: 19px;
  line-height: 1.48;
  max-width: 490px;
}
.intro figure {
  margin: 28px 0 0;
  position: relative;
}
.intro figure img {
  width: 100%;
  height: clamp(200px, 20vw, 300px);
  object-fit: cover;
  object-position: center 48%;
  display: block;
  border-radius: 5px;
}
.intro figcaption {
  font-size: 13px;
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
figcaption span {
  color: var(--blue);
}
.hours {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 15px 0;
  gap: 8px;
}
.hours strong {
  font-size: 14px;
}
.card {
  background: #fffef9;
  border: 1px solid #c9cabe;
  border-top: 5px solid var(--blue);
  border-radius: 6px;
  padding: 26px 32px 22px;
  box-shadow: 0 8px 26px #3033240a;
  scroll-margin: 12px;
}
.stamp {
  color: var(--blue);
}
h2 {
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 17px 0 7px;
}
.sub,
.hint,
.note,
.slotlabel small {
  color: var(--muted);
}
.sub,
.hint,
.note {
  font-size: 14px;
  line-height: 1.5;
}
.sub {
  margin: 0 0 24px;
}
.title {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 750;
  padding-top: 17px;
  margin: 17px 0 10px;
}
.title b {
  font:
    600 12px Consolas,
    monospace;
  color: var(--blue);
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
select,
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #828e86;
  border-radius: 5px;
  padding: 9px 12px;
  background: white;
  font-size: 16px;
}
.hint {
  margin: 6px 0;
}
.datebar {
  gap: 12px;
}
.datebar label {
  font-size: 14px;
}
.datebar select {
  width: auto;
  max-width: 72%;
  font-weight: 600;
}
.slotlabel {
  margin: 16px 0 9px;
  font-size: 14px;
  font-weight: 650;
}
.slotlabel small {
  font-size: 12px;
  font-weight: 400;
}
#slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
button {
  min-height: 44px;
  background: white;
  border: 1px solid #b2b7ad;
  border-radius: 4px;
  font-weight: 600;
}
button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
#slots button[aria-pressed="true"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px white;
}
.submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 13px 16px;
}
.submit:hover {
  background: #102f83;
  color: white;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #a74400;
  outline-offset: 2px;
}
#error {
  padding: 12px;
  background: #fff0e5;
  color: #783709;
  margin-top: 12px;
  border-left: 3px solid #ad4d13;
}
#summary,
#receipt {
  font-size: 15px;
  line-height: 1.5;
}
.note {
  margin-bottom: 0;
}
.tick {
  font-size: 32px;
  color: var(--blue);
}
h3 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 8px 0;
}
.reference {
  padding: 18px;
  background: #e9eefc;
  border-block: 1px dashed #9aabcd;
  display: grid;
  gap: 5px;
  color: #143780;
}
.reference strong {
  font:
    700 22px Consolas,
    monospace;
}
#again {
  padding: 8px 14px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .bar {
    height: 63px;
  }
  .brand {
    font-size: 24px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .headerinfo {
    display: none;
  }
  .layout {
    display: block;
    padding: 21px 0 28px;
  }
  .intro {
    padding: 0;
  }
  .kicker {
    font-size: 10px;
  }
  h1 {
    font-size: clamp(46px, 10vw, 67px);
    margin: 11px 0;
  }
  h1 br {
    display: none;
  }
  h1 em:before {
    content: " ";
  }
  .lead {
    font-size: 16px;
    margin: 9px 0 13px;
  }
  .intro figure {
    margin: 0;
  }
  .intro figure img {
    height: 125px;
    object-position: 50% 50%;
  }
  .intro figcaption {
    font-size: 11px;
    padding: 5px 0;
  }
  .hours {
    display: none;
  }
  .card {
    margin-top: 16px;
    padding: 17px 16px 20px;
  }
  .sub {
    margin-bottom: 14px;
  }
  h2 {
    margin-top: 12px;
  }
  .title {
    margin-top: 12px;
    padding-top: 12px;
  }
  #slots {
    grid-template-columns: repeat(4, 1fr);
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .datebar {
    flex-wrap: wrap;
  }
  .slotlabel {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
