:root {
  --ink: #1c2128;
  --quiet: #4a5361;
  --field: #e7e9ec;
  --rule: #c5cbd2;
  --mark: #1e3a5f;
  --display: "Spectral", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  background: var(--field);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--field);
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

.masthead,
.hero,
.roster,
.colophon {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.6rem;
  padding-bottom: 1.35rem;
}

.wordmark {
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.wordmark-dot {
  color: var(--mark);
}

.mast-nav a {
  color: var(--quiet);
  text-decoration: none;
  font-size: 1rem;
}

.mast-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.hero {
  padding-top: clamp(3.25rem, 9vw, 6.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.lede {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  color: var(--quiet);
  font-size: 1.2rem;
  line-height: 1.45;
}

.roster {
  padding-bottom: 4.5rem;
}

.roster-head {
  display: grid;
  grid-template-columns: auto minmax(0, 22rem);
  gap: 0.75rem 2.5rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.roster-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.roster-note {
  margin: 0;
  color: var(--quiet);
  font-size: 1rem;
}

.register {
  border-bottom: 1px solid var(--rule);
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem minmax(5.5rem, 8rem);
  column-gap: 1.5rem;
  align-items: baseline;
  padding: 0.95rem 0 0.85rem;
  border-top: 1px solid var(--rule);
}

.entry-seat {
  display: contents;
}

.entry-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.entry-rest {
  font-weight: 400;
  font-style: italic;
  color: var(--quiet);
}

.entry-chamber,
.entry-place {
  margin: 0;
  color: var(--quiet);
  font-size: 0.98rem;
  text-align: right;
  white-space: nowrap;
}

.entry-place:empty {
  display: none;
}

.entry.skeleton {
  min-height: 3.35rem;
}

.entry.skeleton::before,
.entry.skeleton::after {
  content: "";
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(28, 33, 40, 0.08);
}

.entry.skeleton::after {
  grid-column: 2 / -1;
  justify-self: end;
  width: 7.5rem;
}

.entry.skeleton::before {
  width: min(16rem, 70%);
}

.roster-status {
  margin: 0;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
}

.roster-status.error {
  color: var(--mark);
}

.colophon {
  padding-top: 1.35rem;
  padding-bottom: 2.75rem;
  color: var(--quiet);
  font-size: 0.95rem;
}

.colophon p {
  margin: 0;
}

.colophon p + p {
  margin-top: 0.3rem;
}

:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .roster-head {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .entry {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
  }

  .entry-seat {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
    align-items: baseline;
  }

  .entry.skeleton::after {
    grid-column: 2;
    width: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
