@font-face {
  font-family: "Beth Ellen";
  src: url("../fonts/beth-ellen/BethEllen-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --color-bg: #fff;
  --color-fg: #222;
  --color-accent: #222;
  --color-muted: #777;
  --max-width: 40rem;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.3rem;
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.7;
}

header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.site-name {
  font-family: "Beth Ellen", cursive;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-accent);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-family: "Beth Ellen", cursive;
  color: var(--color-fg);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--color-accent);
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}

h1, h2, h3 {
  font-family: "Beth Ellen", cursive;
  color: #000;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2.5rem;
}

hr {
  border: none;
  text-align: center;
  margin: 2rem 0;
}

hr::after {
  content: "✦ ✦ ✦";
  color: var(--color-muted);
  font-size: 0.8rem;
  letter-spacing: 0.5em;
}

a {
  color: var(--color-fg);
}

/* Home splash page */

.home-splash {
  max-width: none;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    url("../images/frontpage.jpeg") 53% 5% / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.home-title {
  font-family: "Beth Ellen", cursive;
  color: #fff;
  font-size: 3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0 0 2rem;
}

.home-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.home-nav a:hover {
  text-decoration: underline;
}

.home-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #555;
}

.home-footer a {
  color: #555;
}

.featured-image {
  margin: 0 0 2rem;
}

.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.featured-image figcaption {
  color: var(--color-muted);
  font-size: 0.8rem;
  margin-top: 0;
  text-align: right;
}

.gig-list {
  list-style: none;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.5rem;
  white-space: nowrap;
}

.gig-list li {
  display: contents;
}

.gig-list li > * {
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd;
}

.gig-date {
  text-align: right;
}

.gig-venue {
  color: var(--color-muted);
}

.gig-details {
  display: flex;
  justify-content: space-between;
}

.gig-notes {
  color: var(--color-muted);
  font-style: italic;
}

.gig-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
}

.gig-nav a {
  text-decoration: none;
}

.gig-nav a:hover {
  text-decoration: underline;
}

.gig-nav-next {
  margin-left: auto;
}

@media (max-width: 500px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  nav {
    gap: 1rem;
  }

  .gig-list {
    grid-template-columns: 1fr;
    white-space: normal;
  }

  .gig-list li > * {
    border-bottom: none;
  }

  .gig-date {
    text-align: left;
    padding-bottom: 0;
    border-top: 1px solid #ddd;
  }

  .gig-list li:first-child .gig-date {
    border-top: none;
  }

  .gig-list li > *:last-child {
    padding-top: 0;
  }
}
