:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  color: #efeeeb;
  --gutter: clamp(1.25rem, 6vw, 5rem);
  --muted: #a3a3a3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 1px solid #efeeeb;
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: clamp(.75rem, 2.7vw, 2rem) var(--gutter) 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: inherit;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #7a7a7a;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
  margin-top: auto;
  padding: 0 var(--gutter) clamp(.75rem, 2.7vw, 2rem);
  color: var(--muted);
  font-size: .875rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.site-footer a:hover {
  color: #efeeeb;
  text-decoration: underline;
}

.home {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: min(5vw, 2rem);
}

.logo {
  position: relative;
  width: min(18.75rem, 58vw);
}

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

.logo canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 112%;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  touch-action: none;
  cursor: grab;
}

.logo canvas:active {
  cursor: grabbing;
}

.logo canvas:focus-visible {
  outline: 1px solid #efeeeb;
  outline-offset: 4px;
}

.logo canvas,
.logo.is-animated img {
  visibility: hidden;
}

.logo.is-animated canvas {
  visibility: visible;
}

.page {
  width: min(100% - 2 * var(--gutter), 32rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 11svh, 8.25rem) 4rem;
}

.page p,
.page h1,
.page h2,
.page ul {
  margin: 0;
}

.about {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-block: 2rem;
  text-align: center;
}

.reading section + section {
  margin-top: 3.25rem;
}

.reading h1,
.reading h2 {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.reading ul,
.events ul {
  margin-top: .75rem;
  padding: 0;
  list-style: none;
}

.reading li > * {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: .375rem;
}

.reading a:hover,
.events a:hover {
  text-decoration-color: var(--muted);
}

.events a {
  display: inline-block;
  min-height: 44px;
  padding-block: .65rem;
}

.events time {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .logo.is-animated img { visibility: visible; }
  .logo.is-animated canvas { visibility: hidden; }
}
