/* ** colors & fonts ** */

:root {
  --dark: #313131;
  --black: #000000;
  --green: #15ef1a;
  --nav-green: #27784f;
  --nav-current: #0c4426;
  --hint-red: #ff6b5b;
  --hours-green: #5ee08a;
  --blush: #ead3d2;
  --text: #f2f2f2;
  --muted: #b8b8b8;

  --font-main: "Montserrat", Arial, sans-serif;
  --font-nav: "Barlow Condensed", "Arial Narrow", sans-serif;
}


/* ** base ** */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
}

main {
  flex: 1;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
}

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

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}


/* ** navigation ** */

.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  flex: 1;
}

.nav-list li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.7rem 0.5rem;
  background: var(--nav-green);
  color: #ffffff;
  font-family: var(--font-nav);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.nav-list a:hover {
  background: #1d5f3d;
}

.nav-list a[aria-current="page"] {
  background: var(--nav-current);
}


/* ** footer ** */

.site-footer {
  padding: 1rem 1.5rem;
  background: var(--black);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-weight: 500;
  text-decoration: none;
}

.instagram-link:hover {
  text-decoration: underline;
}


/* ** homepage ** */

.home {
  display: grid;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.5rem 1.5rem;
  background: var(--dark);
  text-align: center;
}

.logo {
  width: min(100%, 26rem);
  height: auto;
}

.campus-tag {
  margin: 0;
  padding: 0.15rem 0.6rem;
  background: var(--green);
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 500;
}

.menu-hint {
  display: none;
  margin: 0;
  color: var(--hint-red);
  font-style: italic;
  font-weight: 700;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3rem 1.5rem;
  overflow: hidden;
  background: linear-gradient(160deg, #3b3b3b, #121212);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  filter: brightness(0.7);
}

.welcome {
  position: relative;
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.welcome span,
.highlight-heading span {
  padding: 0.05em 0.25em;
  background: var(--green);
  color: var(--black);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.video-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.video-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
}

.join-button,
.join-dialog button {
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--black);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.join-button:hover,
.join-dialog button:hover {
  background: #4ff553;
}

.join-button {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.join-dialog {
  max-width: 22rem;
  padding: 1.5rem;
  border: 2px solid var(--green);
  border-radius: 12px;
  background: var(--dark);
  color: var(--text);
  text-align: center;
}

.join-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.join-dialog p {
  margin: 0 0 1.25rem;
}


/* ** order form ** */

.page {
  width: min(100% - 3rem, 60rem);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.page-intro {
  margin-bottom: 1rem;
}

.highlight-heading {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
}

.page h2 {
  margin: 2.5rem 0 1rem;
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1.3;
}

.steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--green);
  background: #262626;
  font-weight: 700;
}

.step-number {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  font-weight: 800;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.order-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 12px;
  background: var(--green);
  box-shadow: 5px 5px 0 var(--nav-green);
  color: var(--black);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.order-button:hover {
  background: #4ff553;
}


/* ** hours of operation ** */

.hours-page {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--black);
}

.hours-panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30rem;
  padding: 3rem 1.25rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #f5e6e5, var(--blush));
}

.clock {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92%, 32rem);
  transform: translate(-50%, -50%);
  filter: blur(3px) drop-shadow(0 14px 20px rgba(120, 80, 70, 0.3));
}

.clock-rim {
  fill: #d8b79c;
}

.clock-face {
  fill: #e6c3aa;
  stroke: #cfa68b;
  stroke-width: 2;
}

.clock-pin {
  fill: #2f3a4a;
}

/* turn around the clock's center */
.clock-hand {
  stroke: #2f3a4a;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.hour-hand {
  stroke-width: 8;
  animation: spin 240s linear infinite;
}

.minute-hand {
  stroke-width: 6;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hours-content {
  position: relative;
  text-align: center;
}

.hours-content h1 {
  margin: 0 0 1.25rem;
  color: #111111;
  font-size: clamp(1.75rem, 3.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.hours-list {
  display: inline-block;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.78);
  color: var(--hours-green);
  font-size: 0.95rem;
  font-weight: 700;
  list-style: none;
  white-space: nowrap;
}


/* ** wider screens ** */

@media (min-width: 760px) {
  .site-header {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
  }

  .nav-list {
    flex-direction: column;
    width: 13.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }

  .nav-list li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 0;
  }

  .nav-list a {
    justify-content: flex-start;
    padding: 0.55rem 1.1rem;
    font-size: 1.65rem;
  }

  /* homepage */
  .home {
    grid-template-columns: 2fr 3fr;
  }

  .brand-panel {
    padding: 3rem 2rem;
  }

  .campus-tag {
    font-size: 1.05rem;
  }

  .menu-hint {
    display: block;
  }

  .hero {
    align-items: flex-start;
    padding-top: max(15rem, 32vh);
  }

  .join-button {
    bottom: 1rem;
    left: 1rem;
    transform: none;
  }

  /* order form */
  .page-intro {
    padding-right: 16rem;
    padding-bottom: 1.25rem;
  }

  /* hours */
  .hours-page {
    padding: 2rem;
  }

  .hours-panel {
    min-height: 34rem;
  }

  .hours-list {
    padding: 1rem 1.75rem;
    font-size: 1.15rem;
  }
}


/* ** reduced motion ** */

@media (prefers-reduced-motion: reduce) {
  .clock-hand {
    animation: none;
  }
}
