:root {
  --navy: #0b1424;
  --navy-soft: #14233a;
  --gold: #ffcb05;
  --orange: #f47721;
  --fog: #f4f7f8;
  --sky: #c9d7df;
  --ink: #101827;
  --muted: #617080;
  --line: #d6dee3;
  --white: #ffffff;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 16px 38px rgba(4, 13, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--fog);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 0.75rem clamp(1.25rem, 5vw, 5rem);
  color: var(--white);
  background: var(--navy);
}

.brand {
  position: relative;
  width: 220px;
  height: 88px;
  display: block;
  overflow: hidden;
}

.brand img {
  position: absolute;
  top: -56px;
  left: -53px;
  width: 250px;
  height: auto;
  max-width: none;
}

.event-mark {
  text-align: center;
  font-weight: 700;
}

.event-mark strong {
  color: var(--gold);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.05rem, 1.35vw, 1.4rem);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.weekend-stamp {
  justify-self: end;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.5rem;
  align-items: baseline;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.weekend-stamp strong {
  grid-row: span 2;
  grid-column: 2;
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3.5rem) 4.5rem;
}

.intro {
  position: relative;
  min-height: 245px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2.75rem 0 2.25rem;
  border-bottom: 2px solid var(--navy);
}

.intro h1 {
  max-width: 780px;
  margin: 0 0 0.75rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.intro p {
  max-width: 54ch;
  margin: 0;
  color: #3f4d5c;
  font-size: 1.08rem;
  font-weight: 600;
}

.tiger {
  position: absolute;
  right: -2%;
  bottom: -42%;
  width: min(35vw, 390px);
  opacity: 0.1;
  transform: rotate(-5deg);
  pointer-events: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: 2.75rem;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-heading p,
.my-signups p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.duration {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shift-list {
  border-top: 2px solid var(--navy);
}

.day-group {
  display: grid;
  grid-template-columns: 155px 1fr;
  border-bottom: 2px solid var(--navy);
}

.day-label {
  padding: 1.3rem 1.2rem 1.3rem 0;
  border-right: 2px solid var(--navy);
}

.day-label strong,
.day-label span {
  display: block;
}

.day-label strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.day-label span {
  color: var(--muted);
  font-weight: 700;
}

.day-shifts {
  display: grid;
}

.shift-button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto 38px;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0 1.15rem 1.35rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease;
}

.shift-button:last-child {
  border-bottom: 0;
}

.shift-button:hover:not(:disabled),
.shift-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
}

.shift-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.shift-time strong,
.shift-time span {
  display: block;
}

.shift-time strong {
  font-size: 1.05rem;
}

.shift-time span {
  color: var(--muted);
  font-size: 0.85rem;
}

.shift-time .roster-names {
  margin-top: 0.18rem;
  color: #354456;
  font-size: 0.78rem;
  font-weight: 700;
}

.shift-button:hover .shift-time span,
.shift-button[aria-pressed="true"] .shift-time span {
  color: var(--sky);
}

.slots {
  display: flex;
  gap: 0.35rem;
}

.slot {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border: 2px solid var(--navy);
  border-radius: 50%;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
}

.slot.filled {
  color: var(--white);
  background: var(--navy);
}

.shift-button:hover .slot,
.shift-button[aria-pressed="true"] .slot {
  border-color: var(--white);
}

.shift-button:hover .slot.filled,
.shift-button[aria-pressed="true"] .slot.filled {
  color: var(--navy);
  background: var(--white);
}

.shift-arrow {
  font-size: 1.35rem;
  font-weight: 800;
}

.shift-legend {
  display: flex;
  gap: 1.25rem;
  padding-top: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.shift-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.slot-dot {
  width: 11px;
  height: 11px;
  border: 2px solid var(--navy);
  border-radius: 50%;
}

.slot-dot.open {
  background: var(--gold);
}

.slot-dot.filled {
  background: var(--navy);
}

.signup-panel {
  position: sticky;
  top: 1rem;
  min-height: 455px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ticket-top,
.ticket-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticket-top {
  border-bottom: 1px solid #34445a;
}

.ticket-foot {
  color: var(--sky);
  justify-content: flex-start;
}

.signup-placeholder,
.signup-form,
.success-state {
  min-height: 345px;
  padding: 1.75rem;
}

.big-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--gold);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 5.5rem;
  letter-spacing: -0.02em;
  line-height: 0.75;
}

.signup-placeholder h2,
.success-state h2 {
  max-width: 12ch;
  font-size: 2.2rem;
}

.signup-placeholder p,
.success-state p {
  max-width: 34ch;
  margin: 1rem 0 0;
  color: var(--sky);
}

.selected-shift {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.15rem 1rem;
  margin: -0.35rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #34445a;
}

.selected-shift span,
.selected-shift strong {
  display: block;
}

.selected-shift span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.selected-shift strong {
  font-size: 1.12rem;
}

.selected-shift button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 52px;
  min-height: 44px;
  padding: 0.35rem;
  color: var(--sky);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
}

.signup-form label {
  display: block;
  margin-top: 1rem;
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 750;
}

.signup-form input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.72rem 0;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #66758a;
  border-radius: 0;
  outline: none;
  font-size: 1rem;
}

.signup-form input:focus {
  border-bottom-color: var(--gold);
  box-shadow: 0 2px 0 var(--gold);
}

.signup-form input[aria-invalid="true"] {
  border-bottom-color: #ff8d85;
}

.field-error {
  display: block;
  min-height: 1rem;
  margin-top: 0.25rem;
  color: #ffb3ad;
  font-size: 0.76rem;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.form-error {
  min-height: 1.5rem;
  margin: 0.45rem 0 0;
  color: #ffb3ad;
  font-size: 0.85rem;
}

.submit-button,
.secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: 10px;
  font-weight: 850;
}

.submit-button {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.75rem 1rem;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 6px 0 #b87800;
}

.submit-button:hover {
  background: #ffda52;
}

.submit-button:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #b87800;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-button {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  color: var(--navy);
  background: var(--white);
}

.success-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 2.2rem;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 900;
}

.success-note {
  font-size: 0.85rem;
}

.manage-link-label {
  display: block;
  margin-top: 1.25rem;
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 750;
}

.manage-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0.4rem;
}

.manage-link-row input {
  min-width: 0;
  padding: 0.72rem;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: 9px 0 0 9px;
  font-size: 0.82rem;
}

.manage-link-row button {
  min-width: 68px;
  min-height: 44px;
  padding: 0.65rem;
  color: var(--navy);
  background: var(--gold);
  border: 0;
  border-radius: 0 9px 9px 0;
  font-weight: 850;
}

.copy-status {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.3rem;
  color: var(--sky);
  font-size: 0.78rem;
}

.ticket-cut {
  position: relative;
  height: 1px;
  margin: 0 14px;
  border-top: 1px dashed #66758a;
}

.ticket-cut::before,
.ticket-cut::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  background: var(--fog);
  border-radius: 50%;
}

.ticket-cut::before {
  left: -24px;
}

.ticket-cut::after {
  right: -24px;
}

.my-signups {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) 1fr;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--navy);
}

.saved-signup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.saved-signup strong,
.saved-signup span {
  display: block;
}

.saved-signup span {
  color: var(--muted);
}

.cancel-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  color: var(--danger);
  background: transparent;
  border: 1px solid #d9a7a2;
  border-radius: 9px;
  font-weight: 750;
}

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 5vw, 5rem);
  color: var(--sky);
  background: var(--navy);
  font-weight: 700;
}

footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--gold);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.signup-panel :focus-visible,
footer :focus-visible,
.masthead :focus-visible {
  outline-color: var(--gold);
}

[hidden] {
  display: none !important;
}

@media (max-width: 840px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 1rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .event-mark {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .weekend-stamp {
    grid-column: 2;
    grid-row: 1;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .signup-panel {
    position: static;
  }

  .tiger {
    right: -8%;
    width: 330px;
  }
}

@media (max-width: 580px) {
  .masthead {
    min-height: 0;
    padding-inline: 1rem;
  }

  .brand {
    width: 142px;
    height: 66px;
  }

  .brand img {
    top: -43px;
    left: -41px;
    width: 190px;
  }

  .event-mark strong {
    display: block;
    max-width: 21rem;
    font-size: 0.9rem;
    line-height: 1.05;
    white-space: normal;
  }

  .weekend-stamp span {
    display: none;
  }

  .weekend-stamp strong {
    grid-row: auto;
    font-size: 1.05rem;
  }

  main {
    padding-inline: 1rem;
  }

  .intro {
    min-height: 220px;
  }

  .intro h1 {
    font-size: clamp(3.05rem, 17vw, 4.5rem);
  }

  .intro p {
    max-width: 31ch;
    font-size: 1rem;
  }

  .tiger {
    right: -26%;
    bottom: -24%;
    width: 300px;
  }

  .workspace {
    padding-top: 2rem;
  }

  .day-group {
    grid-template-columns: 1fr;
  }

  .day-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1.1rem 0 0.7rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .day-label strong {
    font-size: 1.5rem;
  }

  .shift-button {
    grid-template-columns: 1fr auto 26px;
    gap: 0.75rem;
    padding-left: 0;
  }

  .slots {
    gap: 0.25rem;
  }

  .slot {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
  }

  .signup-placeholder,
  .signup-form,
  .success-state {
    padding: 1.5rem;
  }

  .my-signups {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
