/* ============================================
   311 Responsive Text Updates — hackathon site
   ============================================ */

:root {
  --green-dark:  #2d6a4f;
  --green-mid:   #52b788;
  --green-light: #b7e4c7;
  --cream:       #fefae0;
  --text:        #1b1b1b;
  --muted:       #555;
  --radius:      12px;
  --shadow:      0 4px 18px rgba(0, 0, 0, 0.10);
}

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

body {
  font-family: "Georgia", serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  padding-bottom: 4rem;
}

/* ---- Header ---- */
header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: white;
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}

/* ---- Goose zone + HONK bubbles ---- */
.goose-zone {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.goose-banner {
  font-size: 2.8rem;
  letter-spacing: 0.3rem;
}

.honk {
  position: absolute;
  top: -0.25rem;
  background: white;
  color: var(--green-dark);
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--green-dark);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  animation: honk-appear 8s ease-in-out infinite;
}

.honk-left  { right: calc(100% + 0.5rem); animation-delay: 0s;  }
.honk-right { left:  calc(100% + 0.5rem); animation-delay: 4s;  }

@keyframes honk-appear {
  /* sit invisible for most of the cycle */
  0%,  60%  { opacity: 0; transform: translateX(0);    }
  /* pop in */
  61%        { opacity: 1; transform: translateX(0);    }
  /* shake */
  63%        { transform: translateX(-4px); }
  65%        { transform: translateX( 4px); }
  67%        { transform: translateX(-3px); }
  69%        { transform: translateX( 3px); }
  71%        { transform: translateX(0);    }
  /* linger a moment then vanish */
  82%        { opacity: 1; transform: translateX(0); }
  85%, 100%  { opacity: 0; transform: translateX(0); }
}

header h1 {
  font-size: 2.4rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.tagline {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  opacity: 0.85;
  font-style: italic;
}

/* ---- Main ---- */
main {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

section {
  background: white;
  border: 2px solid var(--green-light);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}

section h2 {
  font-size: 1.45rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px dashed var(--green-light);
  text-align: center;
}

section p {
  color: var(--muted);
}

/* ---- Instructions list ---- */
.instructions {
  margin-top: 0.85rem;
  padding-left: 1.4rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.address-list {
  margin-top: 0.35rem;
  padding-left: 1.25rem;
  list-style: disc;
  font-family: inherit;
  font-size: 0.9rem;
  color: inherit;
}

/* ---- Video embed ---- */
.video-wrapper {
  margin-top: 1rem;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: var(--green-light);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) - 4px);
}

/* ---- Repo link ---- */
#repo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.repo-link {
  display: inline-block;
  margin-top: 0.85rem;
  background: var(--green-dark);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-family: monospace;
  font-size: 1rem;
  transition: background 0.2s;
}

.repo-link:hover {
  background: var(--green-mid);
}

/* ---- Footer ---- */
footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
