body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

header {
  border-top: 5px solid var(--red);
  padding: 3em 1em;
  .eyebrow {
    text-transform: uppercase;
    color: var(--red);
  }
  h1 {
    font-size: 4em;
    line-height: 0.9em;
  }
  .admin-indicator {
    color: var(--red);
    font-style: italic;
    font-size: 3rem;
  }
  .intro {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 1em;
    margin: 2em 0;
    & > div {
      display: flex;
      flex-direction: column;
      gap: 1em;
    }

    #button-add {
      white-space: nowrap;
      --border-width: 2px;
      --offset-distance: 5px;
      --padding-horizontal: 2em;
      --height: 3.5em;
      text-transform: uppercase;
      text-decoration: none;
    }
  }
}

#about-link {
  margin-left: 1em;
  list-style-type: disclosure-closed;
}

h2 {
  font-size: 2.5em;
}
h3 {
  font-size: 2em;
  margin: 2em 0 0.5em 0;
  width: 100%;
  display: flex;
  align-items: baseline;
  &::before {
    content: "";
    display: inline-block;
    height: 1cap;
    aspect-ratio: 1;
    margin-right: 0.5em;
    background-color: var(--red);
    border-radius: 50%;
  }
  svg {
    margin-left: 1ex;
    transition: color 0.1s ease;
    &:hover {
      color: var(--text-color);
    }
    @media screen and (max-width: 600px) {
      display: none;
    }
  }
  .precise-date {
    text-align: right;
    font-style: italic;
    color: var(--text-light);
    font-size: 1rem;
    margin-left: auto;
    margin-bottom: 0.5em;
  }
}

main {
  padding: 1em;
}

.events > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(30em, 100%), 1fr));
  grid-auto-rows: 0.1px;
  column-gap: 10px;
  row-gap: 1px !important;
  grid-auto-rows: 0;
  --row-gap: 10px;

  > *,
  > astro-slot > * {
    align-self: start;
  }
}

.event-card {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  padding: 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-break: anywhere;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
  .card-time {
    font-size: 1.8em;
    font-weight: bold;
    font-family: "Staatliches", sans-serif;
    color: var(--red);
    .card-duration::before {
      content: "(";
    }
    .card-duration::after {
      content: ")";
    }
    .card-duration {
      font-style: italic;
      font-size: 0.7em;
      baseline-shift: super;
      white-space: nowrap;
    }
  }
  .card-location {
    text-align: right;
  }
}
.card-title {
  font-weight: bold;
  font-size: 1.3em;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1em;
  margin-top: 1em;
  @media screen and (max-width: 400px) {
    flex-direction: column;
    align-items: stretch;
  }
  .meta-contact {
    word-break: break-all;
    font-style: italic;
  }
}

footer {
  padding: 1em;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

@media screen and (min-width: 900px) {
  header .intro {
    flex-direction: row;
    align-items: center;
  }
}
@media screen and (min-width: 1200px) {
  header,
  main {
    padding-left: 10vw;
    padding-right: 10vw;
  }
}
@media screen and (min-width: 1700px) {
  header,
  main {
    padding-left: 20vw;
    padding-right: 20vw;
  }
}

.admin-dashboard-link {
  color: var(--border-color);
  font-style: italic;
  &::before {
    content: "[";
  }
  &::after {
    content: "]";
  }
}
