:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f7f7f8;
  --border: #d9d9df;
  --panel-purple: #f5f3f8;
  --panel-green: #f1f5f2;
  --green-heading: #345b45;
  --text: #25232a;
  --accent: #55456d;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  font-size: 1.1rem;
  line-height: 1.65;
  text-align: center;
}

body > :where(:not(#navbar):not(.site-footer)) {
  box-sizing: border-box;
  margin: 3rem 0 0;
  max-width: none;
  padding: 1.5rem 2rem;
  width: 100%;
}

body > div:not(#navbar):not(.site-footer):nth-of-type(even) {
  background: var(--panel-green);
}

body > div:not(#navbar):not(.site-footer):nth-of-type(odd) {
  background: var(--panel-purple);
}

body > .site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  margin-top: 2rem;
  padding: 1.25rem 1rem;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgb(37 35 42 / 8%);
  margin: 3rem auto;
  max-width: 900px;
  padding: 2rem;
  width: calc(100% - 3rem);
}

.site-footer.contact-panel {
  margin: 3rem auto;
  padding: 2rem;
}

.contact-panel h1 {
  color: #493a5f;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0 0 1.5rem;
}

.contact-panel .footer-links {
  gap: 1rem;
}

.contact-method {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  flex: 1 1 18rem;
  justify-content: flex-start;
  min-height: 5rem;
  padding: 1rem;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.contact-method:hover,
.contact-method:focus-visible {
  background: var(--panel-purple);
  border-color: var(--accent);
  text-decoration: none;
}

.contact-panel .footer-links a:hover,
.contact-panel .footer-links a:focus-visible {
  text-decoration: none;
}

.contact-method > span {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  text-align: left;
}

.contact-method strong {
  color: var(--text);
}

.contact-panel .footer-links svg {
  flex: 0 0 auto;
  height: 2rem;
  width: 2rem;
}

.site-footer h2 {
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
}

.footer-links a {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  gap: 0.45rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-links svg {
  fill: none;
  height: 1.15rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.15rem;
}

.footer-links .icon-fill {
  fill: currentColor;
  stroke: none;
}

img {
  display: block;
  margin: auto;
  width: 35%;
}

.zaktoilet-display {
  aspect-ratio: 16 / 9;
  margin: 3rem 0 0 calc(50% - 50vw);
  overflow: hidden;
  position: relative;
  width: 100vw;
}

.zaktoilet-display img {
  left: 50%;
  height: 100vw;
  max-width: none;
  object-fit: contain;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 56.25vw;
}

h1,
h2,
h3 {
  color: #493a5f;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

body > div:not(#navbar):not(.site-footer):nth-of-type(even) h1 {
  color: var(--green-heading);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

p {
  font-size: 1.2rem;
}

#intro ul {
  display: table;
  font: inherit;
  font-size: 1.2rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  text-align: left;
}

a {
  color: var(--accent);
}

#band-gallery .gallery-grid {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 2rem auto 0;
  max-width: 1100px;
  width: 100%;
}

#band-gallery figure {
  background: var(--background);
  box-shadow: 0 3px 12px rgb(37 35 42 / 12%);
  margin: 0;
  padding: 0.75rem;
}

#band-gallery figure:nth-child(1) {
  grid-column: 2 / span 3;
  transform: rotate(1deg);
}

#band-gallery figure:nth-child(2) {
  grid-column: 5 / span 4;
  transform: rotate(-0.75deg);
}

#band-gallery figure:nth-child(3) {
  grid-column: 9 / span 4;
  width: 80%
}

#band-gallery figure:nth-child(5) {
  grid-column: span 4;
}

#band-gallery figure:nth-child(4) {
  grid-column: span 4;
  transform: rotate(0.25deg);
  width: 90%;
}

#band-gallery figure:nth-child(6) {
  grid-column: span 4;
  transform: rotate(-1deg);
  width: 100%
}

#band-gallery figure img {
  aspect-ratio: 4 / 3;
  display: block;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

#band-gallery figure:nth-child(1) img,
#band-gallery figure:nth-child(4) img {
  aspect-ratio: 1 / 1;
}

.gigs-page {
  box-sizing: border-box;
  margin: 3rem auto;
  max-width: 1100px;
  padding: 0 1rem;
  width: 100%;
}

.gig-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgb(37 35 42 / 8%);
  margin: 0 auto;
  max-width: 680px;
  overflow: hidden;
  text-align: left;
}

.venue-image-placeholder {
  aspect-ratio: 16 / 7;
  background: var(--panel-purple);
  border-bottom: 1px solid var(--border);
}

.gig-venue-name {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.gig-details {
  padding: 1.5rem 2rem;
}

.gig-details p {
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0;
  min-height: 3rem;
  padding: 0.65rem 0;
}

.gig-details p:last-child {
  border-bottom: 0;
}

.gig-details p strong {
  color: var(--text);
}

.gig-details p span {
  color: var(--accent);
  min-width: 35%;
}

input,
textarea,
select,
button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

#navbar {
  align-items: center;
  background: var(--background);
  box-sizing: border-box;
  display: flex;
  gap: 2rem;
  margin: 1.5rem auto 0;
  max-width: none;
  padding: 0.5rem max(1rem, calc((100vw - 1100px) / 2));
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
}

.navbar-logo {
  display: block;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.navbar-logo img {
  display: block;
  height: auto;
  margin: 0;
  width: 140px;
}

#navbar ul {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

#navbar ul a {
  background: transparent;
  border-radius: 0.35rem;
  color: var(--text);
  display: block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 1.25rem 0.65rem;
  position: relative;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

#navbar ul a:hover,
#navbar ul a:focus-visible {
  color: var(--accent);
  font-weight: 900;
}

#navbar ul a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#navbar ul a[aria-current="page"] {
  background: transparent;
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 520px) {
  #navbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .navbar-logo img {
    width: 115px;
  }

  #navbar ul {
    flex: auto;
    width: 100%;
    column-gap: 1.5rem;
  }

  #navbar ul a {
    font-size: 1.2rem;
  }

  #band-gallery .gallery-grid {
    gap: 0.75rem;
  }

  #band-gallery figure:nth-child(n) {
    grid-column: span 6;
    padding: 0.4rem;
  }

}
