@-ms-viewport {
  width: device-width;
}

html {
  font-size: large;

  --color-link: #0000EE;
  --color-link-visited: #551A8B;
}

a:hover {
  --color-link: #0F00FF;
  --color-link-visited: #0F00FF;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-size-adjust: ex-height 0.53;
}

body {
  line-height: 1.5;
  line-height: calc(1em + 0.5rem);
}

header, main {
  max-width: min(750px, 90dvw);
  margin: auto;
}

header {
  font-size: medium;
  nav {
    --color-link: #0000DD;
    --color-link-visited: #1F00DD;
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: end;
    gap: 1em;
    padding-right: 2em;
    margin-bottom: 1em;

    .title {
      --color-link: black;
      --color-link-visited: black;
      font-size: 1.5em;
      font-weight: bold;
      flex-grow: 2;
      justify-self: start;
    }
  }
}

#build-time {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: small;
}

.feed-header {
  display: flex;
  flex-direction: row;
  gap: 2ex;
  justify-content: start;
  align-items: baseline;

  ul, ol {
    font-size: medium;
    list-style: none;
    display: flex;
    padding: 0;
    flex-direction: row;
    justify-content: start;
    gap: 1ex;
  }
}

footer {
  font-family: sans-serif;
  font-size: small;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;

  nav {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    flex-direction: column;
    justify-content: start;
    @media (min-width: 525px) {
      flex-direction: row;
      justify-content: center;
      gap: 2em;
    }

    section { min-width: 5em; }
  }

  ul, ol {
    list-style: none;
    display: flex;
    padding: 0;
    flex-direction: column;
    justify-content: center;
  }

  dl {
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: max-content auto;
    column-gap: 0.5em;
    dt { grid-column-start: 1; }
    dt::after { content: ":"; }
    dd {
      grid-column-start: 2;
      margin: 0;
      padding: 0;
    }
  }

  img { display: block; margin: auto; }
  figcaption { text-align: center; }

  position: relative;
}

section {
  margin-bottom: 1em;
}

.page-title {
  padding-top: 0.5rem;
}

ul.event-list,
ol.event-list,
.event-list > ol,
.event-list > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0 0 1em 0;
}

.event {
  border-left: 2px solid red;
  padding: 1em;
  &:not(:last-child) { margin-bottom: 1em; }
  width: 100%;

  address {
    white-space: pre;
  }

  p {
    margin: 0;
  }

  .invite {
  }
}

table {
  font-size: 0.95em;
  overflow-x: scroll;
  border-spacing: 1em 0;
}

th {
  text-align: start;
  font-weight: bold;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1em 0 0.5em;

  &:first-child {
    margin-top: 0;
  }
}

ol, ul {
  & > ol, ul {
    margin: 0;
  }
}

a { color: var(--color-link); }
a:visited { color: var(--color-link-visited); }

p,
ul {
  margin: 0 0 1em;
}

code {
  font-size: 1em;
  font-family: monospace;
  font-size-adjust: ex-height 0.65;
}
