:root {
  --font-marker: "Permanent Marker", cursive;
  --font-body: "Space Mono", monospace;
  --font-mono: "Courier New", Courier, monospace;

  --bg: #000000;
  --panel-bg: rgb(13 6 22 / 75%);
  --text-primary: #e6dcee;
  --text-secondary: #cbb8dd;
  --text-muted: #a99fc0;
  --accent: #3355bb;
  --link: #7ad0ff;
  --link-hover: #ff5d3a;
}

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--link);
}

a:hover,
a:focus {
  color: var(--link-hover);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  transition: background-color 0.3s ease;
}

#header .title,
#about h2,
#instagram h2,
#faq h2,
#team h2,
#contact h2 {
  font-family: var(--font-marker);
  color: var(--accent);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
}

/* Header */
#header {
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
}

.flock-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#header .title {
  font-size: clamp(2.5rem, 9vw, 6rem);
  line-height: 1;
  transition: transform 0.3s ease;
}

.flock-heading:hover .title {
  transform: rotate(-3deg);
}

#header .tagline {
  margin-top: 1rem;
}

/* Goose mascots */
.goose {
  position: relative;
  width: clamp(40px, 8vw, 72px);
  flex: none;
}

.goose-art {
  display: block;
  width: 100%;
  height: auto;
}

.goose-right .goose-art {
  transform: scaleX(-1);
}

.goose .wing {
  transform-box: fill-box;
  transform-origin: center;
}

.flock-heading:hover .goose .wing {
  animation: wing-flap 0.35s ease-in-out infinite alternate;
}

@keyframes wing-flap {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-14deg);
  }
}

.goose .tongue {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.flock-heading:hover .goose .tongue {
  opacity: 1;
}

.goose .honk {
  position: absolute;
  top: -4px;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-marker);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--text-primary);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.6) translateY(6px);
  transition: opacity 0.2s ease, transform 0.25s ease;
  white-space: nowrap;
  pointer-events: none;
}

.goose-left .honk {
  right: -10px;
}

.goose-right .honk {
  left: -10px;
}

.flock-heading:hover .goose .honk {
  opacity: 1;
  transform: scale(1) translateY(-6px);
}

#header .subinfo {
  margin-top: 1rem;
  font-size: 0.75rem;
}

/* Sections shared */
#about,
#instagram,
#faq,
#team,
#contact {
  width: 75%;
  margin: 1.5rem auto;
  padding: 2rem 1rem;
  background-color: var(--panel-bg);
  border-radius: 16px;
}

/* About / What is Gander + Jam Calendar */
#about {
  background-color: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  text-align: left;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text,
.about-find,
.about-headliner {
  background-color: var(--panel-bg);
  padding: 1.5rem;
  border-radius: 16px;
}

.about-headliner,
.about-find {
  align-self: flex-start;
  width: 70%;
}

.about-text p {
  margin-top: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-text p:first-of-type {
  margin-top: 1rem;
}

.map-embed {
  width: 100%;
  height: 200px;
  margin: 1rem 0;
}

.next-headliner-title {
  margin-bottom: 0.75rem;
}

.next-headliner-box {
  font-size: 0.9rem;
}

.next-headliner-poster {
  display: block;
  width: 100%;
  border-radius: 8px;
}

/* Instagram */
#instagram {
  text-align: center;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.ig-slot {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
}

.ig-slot a {
  display: block;
  width: 100%;
  height: 100%;
}

.ig-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--accent);
  color: var(--text-primary);
}

/* FAQ */
#faq {
  text-align: left;
}

#faq h2 {
  text-align: center;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  padding: 0.9rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}

.faq-marker {
  margin-left: 1rem;
  flex: none;
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Gander Team */
#team {
  text-align: left;
}

#team h2 {
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-member {
  display: flex;
  gap: 0.9rem;
}

.team-photo {
  width: 72px;
  height: 96px;
  flex: none;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.team-name {
  font-weight: bold;
  font-size: 1rem;
  color: var(--text-primary);
}

/* Contact */
#contact {
  text-align: center;
}

#contact h2 {
  text-align: center;
}

.contact-message {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 420px;
  margin: 1.5rem auto 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: none;
  color: var(--text-primary);
  border: 1px solid var(--text-muted);
  resize: vertical;
}

.contact-form .link-btn {
  margin-top: 0.25rem;
}

.contact-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-height: 1.2em;
}

.contact-status.error {
  color: var(--link-hover);
}

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

/* Footer */
#footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}