@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anton-latin.woff2") format("woff2");
}

:root {
  --paper: #e2e2dd;
  --ink: #1c1c1b;
  --stone: #bcbcb6;
  --border-w: 4px;
  --shadow-offset: 8px;
  --line: var(--border-w) solid var(--ink);
  --pad: clamp(0.75rem, 2.5vw, 1.5rem);
  --nav: 3.5rem;
  --h2-size: clamp(3rem, 13vw, 11rem);
  --portrait: 32rem;
  --focus-color: var(--ink);
  --big: Anton, Impact, Haettenschweiler, "Arial Narrow Bold", "Helvetica Neue", Arial, sans-serif;
  --raw: "Courier New", Courier, monospace;
}

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

html {
  color-scheme: light;
  background: var(--paper);
  scroll-padding-top: var(--nav);
}

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

body {
  margin: 0;
  color: var(--ink);
  font: 1rem/1.5 var(--raw);
}

::selection { background: var(--ink); color: var(--paper); }

.skip-link,
nav,
#schedule,
button,
footer {
  background: var(--ink);
  color: var(--paper);
}

.skip-link,
nav,
#schedule {
  --line: var(--border-w) solid var(--paper);
}

:focus-visible {
  outline: var(--border-w) solid var(--focus-color);
  outline-offset: 3px;
}

main:focus { outline: none; }

.skip-link,
nav a,
h1,
section > h2,
thead th,
tbody th,
label,
button,
footer p {
  font-family: var(--big);
  font-weight: 400;
  text-transform: uppercase;
}

.skip-link,
nav a {
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: var(--line);
  font-size: 1rem;
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  padding: 0.65rem 1rem;
  --focus-color: var(--paper);
}

h1,
section > h2 {
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

h1 { font-size: max(4rem, min(22vw, calc((100svh - var(--nav) - 4 * var(--pad) - 11rem) / 1.84))); }

section > h2 { font-size: var(--h2-size); }

nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--nav);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

nav a {
  display: grid;
  align-items: center;
  padding: 0 var(--pad);
  border-right: var(--line);
  color: var(--paper);
  font-size: clamp(1.05rem, 0.8rem + 1vw, 1.35rem);
}

nav a:last-child { border-right: 0; }

thead th,
input,
textarea,
nav a:hover,
nav a:focus-visible,
nav a.active,
tbody tr:hover > *,
button:hover {
  background: var(--paper);
  color: var(--ink);
}

nav a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline-offset: -8px;
}

nav a:active,
button:active {
  background: var(--stone);
  color: var(--ink);
}

section {
  display: flex;
  flex-direction: column;
  gap: var(--pad);
  padding: var(--pad) var(--pad) clamp(2.5rem, 6vw, 4rem);
}

section > p,
figcaption,
caption {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.4;
}

section > p,
figcaption { max-width: 60ch; }

.hero,
#feedback { background: var(--stone); }

.hero { padding-top: calc(var(--nav) + clamp(3rem, 12vw, 6rem)); }

.hero > p {
  max-width: 56ch;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
}

#about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 29.75rem), 1fr));
  align-content: start;
}

#about > h2,
#about > p { grid-column: 1 / -1; }

.member {
  margin: 0;
  display: grid;
  gap: var(--pad);
  align-content: start;
}

.member img {
  display: block;
  width: min(
    calc(100% - var(--shadow-offset)),
    clamp(
      14rem,
      calc(100svh - var(--nav) - var(--h2-size) * 0.92 - var(--pad) * 4 - var(--shadow-offset) - 6.5rem),
      var(--portrait)
    )
  );
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  object-position: top;
  border: var(--line);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
}

.member figcaption { max-width: 38ch; }

table {
  width: 100%;
  border: var(--line);
  border-collapse: collapse;
}

caption {
  margin-bottom: var(--pad);
  text-align: left;
}

th, td {
  padding: clamp(0.5rem, min(0.2rem + 2vw, 1.4svh), 1rem) clamp(0.6rem, -0.05rem + 3.25vw, 1.25rem);
  border: var(--line);
  text-align: left;
}

thead th {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1;
}

tbody th {
  font-size: clamp(1.75rem, min(8vw, 11svh), 7rem);
  line-height: 1;
}

tbody td { font: 400 clamp(1.05rem, 2.1vw, 1.6rem)/1.3 var(--raw); }

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

.form-status {
  display: none;
  margin: 0;
  padding: 0.85rem 1rem;
  border: var(--line);
  background: var(--paper);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.4;
  scroll-margin-top: 1rem;
}

.form-status:target { display: block; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

form {
  display: grid;
  gap: clamp(0.85rem, min(0.5rem + 1.25vw, 2svh), 1.25rem) var(--pad);
  align-items: start;
}

label,
button { font-size: clamp(1.5rem, 3vw, 2.5rem); }

label {
  padding-top: 0.15rem;
  line-height: 1.1;
}

input,
textarea,
button {
  border: var(--line);
  border-radius: 0;
}

input, textarea {
  width: 100%;
  padding: clamp(0.75rem, 1.6vw, 1.1rem) 1rem;
  font: 400 clamp(1rem, 2vw, 1.5rem)/1.3 var(--raw);
}

textarea { resize: vertical; }

input:focus-visible,
textarea:focus-visible {
  background: var(--ink);
  color: var(--paper);
  --focus-color: var(--paper);
}

button {
  justify-self: start;
  padding: clamp(0.8rem, 1.6vw, 1.1rem) 2.5rem;
  line-height: 1;
  cursor: pointer;
}

footer { padding: var(--pad); }

footer p {
  margin: 0;
  font-size: clamp(1rem, 3vw, 2.5rem);
  line-height: 1.1;
}

@media (min-width: 40rem) {
  section {
    min-height: calc(100svh - var(--nav));
    padding-bottom: var(--pad);
  }

  .hero {
    min-height: 100svh;
    justify-content: flex-end;
    padding-top: calc(var(--nav) + var(--pad));
  }

  #schedule table {
    flex: 1 1 auto;
    max-height: 44rem;
  }

  #feedback form {
    flex: 1 1 auto;
    max-height: 42rem;
    grid-template-columns: minmax(10rem, 22vw) 1fr;
    grid-template-rows: auto auto minmax(8rem, 1fr) auto;
  }

  textarea { align-self: stretch; }
  label { padding-top: 0.9rem; }
  button { grid-column: 2; }
}

/* Wide screens: the About heading and its text share a row. */
@media (min-width: 64rem) {
  #about { grid-template-columns: repeat(2, 1fr); }

  #about > h2 {
    grid-column: 1;
    grid-row: 1;
  }

  #about > p {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }
}