:root {
  --black: #1A1A1A;
  --paint-white: #F4F1EA;
  --door-gray: #6B6B6B;
  --patina-teal: #5B8A7E;
  --patina-teal-hover: #4C7369;
  --bronze: #B8863B;
  --bronze-hover: #9A7031;
  --alert-red: #B84A3B;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--black);
  color: var(--paint-white);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;
  max-width: 640px;
  padding: 56px 24px 72px;
  text-align: center;
}

.badge {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 24px;
}

@media (max-width: 600px) {
  .badge {
    width: 200px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1 {
  font-family: "Bungee Inline", "Work Sans", sans-serif;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.15;
  color: var(--bronze);
  margin: 0 0 20px;
}

.lede {
  font-size: 17px;
  font-weight: 500;
  color: var(--paint-white);
  max-width: 46ch;
  margin: 0 auto 48px;
}

.schedule {
  border: 1px solid var(--door-gray);
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 40px;
}

.schedule-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--patina-teal);
  margin: 0 0 16px;
}

.schedule-days {
  font-family: "Bungee Inline", "Work Sans", sans-serif;
  font-size: clamp(28px, 6vw, 40px);
  color: var(--paint-white);
  margin: 0 0 8px;
}

.schedule-time {
  font-size: 20px;
  font-weight: 500;
  color: var(--paint-white);
  margin: 0;
}

.back-link {
  font-size: 13px;
  margin: 0 0 32px;
}

.back-link a {
  color: var(--patina-teal);
  text-decoration: none;
}

.event-desc {
  font-size: 15px;
  color: var(--paint-white);
  max-width: 42ch;
  margin: 0 auto 20px;
}

.card-link {
  display: inline-block;
  font-size: 13px;
  color: var(--patina-teal);
  text-decoration: none;
  margin-top: 12px;
}

.card-note {
  display: block;
  font-size: 13px;
  color: var(--door-gray);
  margin: 12px 0 0;
}

.event-card .cta-primary,
.event-card .cta-secondary {
  margin-top: 4px;
}

.status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 12px;
}

.status-cancelled {
  color: var(--alert-red);
  background: rgba(184, 74, 59, 0.14);
  border: 1px solid var(--alert-red);
}

.status-postponed {
  color: var(--bronze);
  background: rgba(184, 134, 59, 0.14);
  border: 1px solid var(--bronze);
}

.legend {
  text-align: left;
  margin-bottom: 40px;
}

.legend .location-label {
  text-align: center;
}

.legend-item {
  border-left: 3px solid var(--door-gray);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.legend-item.current {
  border-left-color: var(--patina-teal);
  background: rgba(91, 138, 126, 0.1);
}

.legend-divider {
  border: none;
  border-top: 1px solid var(--door-gray);
  opacity: 0.35;
  margin: 4px 0 12px;
}

.legend-item-label {
  display: block;
  font-weight: 600;
  color: var(--paint-white);
  font-size: 15px;
}

.legend-item-desc {
  display: block;
  color: var(--door-gray);
  font-size: 13px;
  margin-top: 2px;
}

.location {
  margin-bottom: 40px;
}

.location-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--patina-teal);
  margin: 0 0 12px;
}

.location-address {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
}

.location-note {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--paint-white);
  background: rgba(91, 138, 126, 0.14);
  border: 1px solid var(--patina-teal);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 0;
  text-decoration: none; /* no-op on the existing <p> uses; needed now that a "Join Remotely" <a> reuses this class */
}

.event-note {
  font-size: 13px;
  margin: 0 0 16px;
}

.event-note[hidden] {
  display: none;
}

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--door-gray);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--patina-teal);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid var(--patina-teal);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cta-standalone {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  background: var(--patina-teal);
  color: var(--black);
}

.cta-primary {
  display: inline-block;
  background: var(--bronze);
  color: var(--black);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 999px;
  border: 1px solid var(--bronze);
  transition: background-color 0.15s ease;
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background: var(--bronze-hover);
  border-color: var(--bronze-hover);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

footer {
  padding: 24px;
  font-size: 13px;
  color: var(--door-gray);
  text-align: center;
}

footer p {
  margin: 0 0 6px;
}

footer p:last-child {
  margin-bottom: 0;
}

footer a {
  color: var(--patina-teal);
}

.credit {
  font-size: 11px;
  color: var(--door-gray);
  opacity: 0.7;
}
