/* Deliberately plain. This is a working base, not the final design. */

:root {
  --ink: #1a1a1a;
  --ink-soft: #5c5c5c;
  --paper: #ffffff;
  --rule: #e0e0e0;
  --accent: #2b5f4a;
  --measure: 34rem;
  --gap: 1.5rem;
}

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

body {
  margin: 0;
  padding: 0 var(--gap);
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

body > * {
  max-width: 44rem;
  margin-inline: auto;
}

p {
  max-width: var(--measure);
}

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

a:focus-visible,
.skip-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: static;
  display: inline-block;
  padding: 0.5rem;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: baseline;
  justify-content: space-between;
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.masthead__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.masthead__nav {
  display: flex;
  gap: 1.25rem;
}

.masthead__nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

/* Anchor navigation on a one-pager: stop headings hiding under the top edge,
   and only animate the jump for people who haven't asked us not to. */
html {
  scroll-padding-top: 2rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

main {
  padding: 3rem 0;
}

.intro h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.section {
  margin-top: 3.5rem;
}

.section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.events {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: var(--gap);
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.event:last-child {
  border-bottom: 1px solid var(--rule);
}

.event__when {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.event__date,
.event__time {
  display: block;
}

.event__title {
  font-size: 1.0625rem;
  margin: 0 0 0.25rem;
}

.event__location,
.event__description {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.events-empty {
  color: var(--ink-soft);
}

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.footer p {
  margin: 0.25rem 0;
}

@media (max-width: 34rem) {
  .event {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .event__date,
  .event__time {
    display: inline;
  }
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--gap);
}

.gallery__item {
  margin: 0;
}

/* A video needs the full width to be watchable; a photo doesn't. */
.gallery__item--video {
  grid-column: 1 / -1;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.gallery__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery__caption {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
