/* TeX Gyre Heros: a free Helvetica clone, trimmed to Latin. GUST Font
   License, in public/fonts. */
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("/fonts/texgyreheros-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TeX Gyre Heros";
  src: url("/fonts/texgyreheros-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "TeX Gyre Heros";
  src: url("/fonts/texgyreheros-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* All text is --ink, or white on dark. --faint is for placeholders only. */
  --ink: #0b0b0b;
  --paper: #efebe6;
  --faint: #8c857e;
  --line: #bab3ab;
  --rule: #dad4cd;
  --well: #e1dbd3;
  --error: #b42318;
  /* Helvetica Neue for titles and body where the device has it, else TeX
     Gyre Heros (below). Courier Prime for labels, dates, places and counts. */
  --sans: "Helvetica Neue", Helvetica, "TeX Gyre Heros", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --max: 1440px;
  /* Side padding that also centres a --max column on wide screens. Use it only
     on full-width blocks: the percentage resolves against the containing block. */
  --pad: max(clamp(20px, 4vw, 56px), calc((100% - var(--max)) / 2));
  --section: clamp(96px, 12vw, 180px);
  /* The type scale. Every font-size on the site is one of these. */
  --text-mono: 12px; /* mono, uppercase: labels, dates, places, counts */
  --text-sm: 14px; /* secondary: roles, notes, fine print, nav, buttons */
  --text-md: 16px; /* body */
  --text-lg: 20px; /* ledes, card titles, questions, form inputs */
  --text-xl: 24px; /* subheads, questions asked, pull quotes */
  --text-2xl: clamp(32px, 3.2vw, 40px); /* section headlines (h2) */
  --text-3xl: clamp(40px, 4.4vw, 56px); /* page titles (h1) */
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  opacity: 0.6;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

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

p,
h1,
h2,
h3,
figure,
blockquote {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

/* The dot */
.nw {
  white-space: nowrap;
}

.dot {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  border-radius: 50%;
  background: currentColor;
  margin-left: 0.05em;
}

.beat {
  animation: beat 0.88s cubic-bezier(0.3, 0, 0.2, 1) infinite;
  transform-origin: 50% 50%;
}

@keyframes beat {
  0% { transform: scale(1); }
  10% { transform: scale(1.3); }
  20% { transform: scale(1); }
  30% { transform: scale(1.14); }
  42%, 100% { transform: scale(1); }
}

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

/* Header and footer */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 20px var(--pad);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.wordmark img {
  display: block;
  height: 32px;
  width: auto;
}

/* The file is black on transparent. */
.site-header.on-dark .wordmark img {
  filter: invert(1);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  font-size: var(--text-sm);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #2a2a2a;
  color: #fff;
  opacity: 1;
}

.btn:disabled {
  background: var(--faint);
  cursor: progress;
}

.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  gap: 0;
}

.btn svg {
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
}

.link:hover {
  opacity: 0.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px var(--pad) 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 32px;
  font-size: var(--text-sm);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

/* Shared layout */
.section {
  padding: var(--section) var(--pad);
}

.section-tight {
  padding: 0 var(--pad) var(--section);
}

/* A section: its small label, then its content, on the same left edge. */
.split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.split > .main {
  min-width: 0;
}

.display {
  font-weight: 400;
  font-size: var(--text-2xl);
}

.display .dot {
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.04em;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.45;
}

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 120px) var(--pad) 0;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 64px;
  margin-top: clamp(56px, 7vw, 120px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}

.hero-meta {
  flex: 0 1 auto;
  margin-left: auto;
  line-height: 1.8;
  text-align: right;
}

.hero-copy {
  flex: 1 1 280px;
  max-width: 520px;
  min-width: 0;
}

.hero-copy p {
  font-size: var(--text-lg);
  line-height: 1.4;
}

.hero-copy .actions {
  margin-top: 32px;
}

/* Hero media: the header and hero sit on top of a looping clip */
.stage {
  position: relative;
  background: var(--ink);
}

.stage-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stage-media video,
.stage-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0.58) 0%,
    rgba(11, 11, 11, 0.16) 34%,
    rgba(11, 11, 11, 0.78) 100%
  );
}

.stage > .hero {
  position: relative;
  z-index: 1;
}

/* The banner stays a sibling of <main> and is overlaid, not nested. */
.has-stage .site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
}

/* Dark sections: white text, paper buttons. */
.on-dark,
.on-dark a {
  color: #fff;
}

.on-dark .btn {
  background: var(--paper);
  color: var(--ink);
}

.on-dark .btn:hover {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.on-dark a:focus-visible,
.on-dark button:focus-visible {
  outline-color: #fff;
}

.hero.on-dark {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(86vh, 880px);
  padding-top: clamp(104px, 11vw, 158px);
}

.hero.on-dark .hero-foot {
  border-bottom: 0;
  padding-bottom: clamp(36px, 5vw, 68px);
}

/* Manifesto */
.manifesto-text {
  max-width: 30ch;
  font-weight: 400;
  font-size: var(--text-2xl);
}

.manifesto-text .dot {
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.04em;
}

.manifesto-body {
  margin-top: 48px;
  font-size: var(--text-md);
  line-height: 1.55;
  max-width: 46ch;
}

/* Inside */
.rows {
  margin-top: 64px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 48px;
  border-top: 1px solid var(--rule);
  padding: 28px 0;
}

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

.row-name {
  flex: 1 1 240px;
  font-size: var(--text-xl);
  font-weight: 400;
}

.row-desc {
  flex: 2 1 340px;
  max-width: 56ch;
  font-size: var(--text-md);
}

.row-when {
  flex: 0 0 148px;
  margin-left: auto;
  text-align: right;
}

/* Dark bands: the home page's "Small rooms", and the invitation that closes an evening */
.band {
  background: var(--ink);
  color: #fff;
}

.band h2 {
  max-width: 24ch;
  font-weight: 400;
  font-size: var(--text-2xl);
  text-wrap: pretty;
}

/* Membership */
.membership-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin-top: 56px;
}

.membership-cols p {
  flex: 1 1 240px;
  font-size: var(--text-md);
  line-height: 1.6;
}

.membership-actions {
  margin-top: 56px;
}

/* FAQ */
details {
  border-top: 1px solid var(--rule);
}

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

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  padding: 26px 0;
  font-size: var(--text-lg);
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  opacity: 0.6;
}

/* A plus whose upright bar folds flat into a minus, in the menu toggle's
   motion. home.js adds .is-closing while an answer slides shut. */
.plus {
  flex: none;
  display: inline-flex;
  margin-right: -4px;
}

.plus-bar {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease;
}

details[open]:not(.is-closing) .plus-bar-v {
  transform: rotate(90deg);
}

.answer {
  overflow: hidden;
}

details p {
  margin: 0 0 28px;
  font-size: var(--text-md);
  line-height: 1.6;
  max-width: 60ch;
}

/* Closing */
.closing {
  border-top: 1px solid var(--rule);
}

.closing h2 {
  font-weight: 400;
  font-size: var(--text-2xl);
  max-width: 18ch;
}

.closing h2 .dot {
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.04em;
}

/* Each beat sends a ring out from the dot: a wide one on the first
   contraction, a smaller one on the second. Keep in time with .beat. */
.closing .beat {
  position: relative;
}

.closing .beat::before,
.closing .beat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  animation: ripple 0.88s cubic-bezier(0.15, 0.6, 0.3, 1) infinite;
}

.closing .beat::after {
  animation-name: ripple-echo;
  animation-delay: 0.26s;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.2; }
  80%, 100% { transform: scale(9); opacity: 0; }
}

@keyframes ripple-echo {
  0% { transform: scale(1); opacity: 0.14; }
  60%, 100% { transform: scale(5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .closing .beat::before,
  .closing .beat::after {
    display: none;
  }
}

.closing .lede {
  margin-top: 40px;
  max-width: 38ch;
}

.closing .actions {
  margin-top: 48px;
}

/* Past evenings: cards on the home page and on the index */
.events {
  padding: 0 var(--pad) var(--section);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 44px 32px;
}

.event-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.event-card:hover {
  opacity: 1;
}

.event-card-media {
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: var(--well);
}

.event-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.event-card:hover .event-card-media img {
  transform: scale(1.035);
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-top: 18px;
}

.event-card-title {
  margin-top: 8px;
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.25;
}

.event-card-note {
  margin-top: 10px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* People behind Lotus. Same hairline rows as the rest of the page: a small portrait, a name, a title, and their mark. */
.lotus-lede {
  margin-top: 24px;
  max-width: 42ch;
  font-size: var(--text-md);
  line-height: 1.55;
}

.people {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  column-gap: 64px;
}

.person {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 18px 0 16px;
  border-top: 1px solid var(--rule);
}

.person-photo {
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  background: var(--well);
}

.person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-copy {
  min-width: 0;
}

.person-name {
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.2;
}

.person-role {
  margin-top: 3px;
  font-size: var(--text-sm);
  line-height: 1.35;
}

.person-logo {
  display: block;
  height: 16px;
  width: auto;
  max-width: 108px;
  margin-top: 8px;
  object-fit: contain;
  object-position: left center;
}

/* A single evening, and the head of the evenings index. Rows use the home
   page's label-over-content sections; cap reading widths inside .main. */
.entry {
  padding: clamp(40px, 6vw, 96px) var(--pad) clamp(48px, 5vw, 72px);
}

article.entry {
  padding-bottom: var(--section);
}

.split > .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
}

.entry-head h1 {
  max-width: 18ch;
  font-size: var(--text-3xl);
  font-weight: 400;
  text-wrap: balance;
}

.entry-threads {
  margin-top: 20px;
  max-width: 60ch;
  font-size: var(--text-lg);
  line-height: 1.45;
}

.entry-note {
  margin-top: 24px;
  max-width: 46ch;
  font-size: var(--text-lg);
  line-height: 1.45;
}

.entry-cover {
  margin-top: clamp(40px, 5vw, 72px);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--well);
}

.entry-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-row {
  margin-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.entry-lede {
  max-width: 36ch;
  font-size: var(--text-xl);
  line-height: 1.3;
  text-wrap: pretty;
}

.topic-title {
  max-width: 28ch;
  font-size: var(--text-xl);
}

.topic-title + p {
  margin-top: 12px;
  max-width: 60ch;
  font-size: var(--text-md);
  line-height: 1.55;
}

.entry-pending {
  max-width: 54ch;
  font-size: var(--text-md);
  line-height: 1.55;
}

/* What was asked, and what was said */
.qa {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: qa;
}

.qa-item {
  max-width: 680px;
  counter-increment: qa;
}

.qa-item + .qa-item {
  margin-top: clamp(48px, 5vw, 72px);
}

.qa-item::before {
  content: counter(qa, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: var(--text-mono);
}

.qa-q {
  margin-top: 10px;
  font-size: var(--text-xl);
  font-weight: 400;
  text-wrap: pretty;
}

.qa-who {
  margin-top: 10px;
}

.qa-a {
  margin-top: 20px;
}

.qa-a p {
  margin-top: 16px;
  font-size: var(--text-md);
  line-height: 1.6;
}

.qa-a p:first-child {
  margin-top: 0;
}

.qa-response + .qa-response {
  margin-top: 28px;
}

.qa-a .qa-response-who {
  margin: 0;
  line-height: 1.4;
}

.qa-response-who + p {
  margin-top: 7px;
}

.qa-more {
  margin-top: 24px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.qa-more p + p {
  margin-top: 6px;
  font-size: var(--text-md);
  line-height: 1.55;
}

.qa-more a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.pull {
  margin: 0;
}

.pull blockquote {
  margin: 0;
  max-width: 36ch;
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.22;
  text-wrap: pretty;
}

/* The opening mark hangs in the margin so the text keeps its left edge. */
.pull blockquote::before {
  content: "\201C";
  margin-left: -0.42em;
}

.pull blockquote::after {
  content: "\201D";
}

.pull figcaption {
  margin-top: 20px;
}

/* Photographs from the night */
.gallery-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 28px;
}

.gallery-tools .link {
  gap: 10px;
}

/* Closing invitation on an evening, on the dark band */
.entry-cta h2 {
  max-width: 24ch;
}

.entry-cta-note {
  display: block;
  margin-top: 0.3em;
}

.entry-cta .actions {
  margin-top: clamp(40px, 4.4vw, 64px);
}

@media (max-width: 700px) {
  .entry-cover {
    aspect-ratio: 3 / 2;
  }
}

.gallery-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.shot {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--well);
}

.shot-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.shot-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-get {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-decoration: none;
}

.shot-get:hover {
  background: #fff;
  color: var(--ink);
  opacity: 1;
}

/* Full-frame viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #fff;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad);
  font-size: var(--text-sm);
}

.lightbox-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
}

.lb-btn:hover {
  color: rgba(255, 255, 255, 0.68);
}

.lb-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 clamp(52px, 7vw, 88px) clamp(16px, 3vw, 28px);
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(44px, 6vw, 60px);
  height: clamp(44px, 6vw, 60px);
}

.lightbox-prev {
  left: clamp(4px, 1.5vw, 16px);
}

.lightbox-next {
  right: clamp(4px, 1.5vw, 16px);
}

/* Apply page */
.apply {
  padding: clamp(48px, 7vw, 104px) var(--pad) clamp(96px, 10vw, 160px);
  display: flex;
  flex-wrap: wrap;
  gap: 64px 96px;
  align-items: flex-start;
}

.apply-intro {
  flex: 1 1 380px;
  min-width: 0;
}

.apply-intro h1,
.thanks h2 {
  font-weight: 400;
  font-size: var(--text-3xl);
}

.apply-intro .lede {
  margin-top: 40px;
  max-width: 34ch;
}

.steps {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  max-width: 420px;
}

.steps li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding: 16px 0;
  font-size: var(--text-md);
}

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

.fine {
  margin-top: 20px;
  font-size: var(--text-sm);
}

.fine + .fine {
  margin-top: 6px;
}

.apply-form-wrap {
  flex: 1.2 1 520px;
  min-width: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.pair {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 32px;
}

.pair > .field {
  flex: 1 1 220px;
  min-width: 0;
}

.field label,
fieldset legend,
.group-label {
  display: block;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-lg);
}

.field textarea {
  padding: 12px 0;
  line-height: 1.45;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: var(--error);
}

.field.narrow {
  max-width: 320px;
}

.field-note {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--error);
}

.code-input {
  text-transform: uppercase;
  letter-spacing: 0.08em !important;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset legend {
  padding: 0;
  margin-bottom: 8px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: var(--text-lg);
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice .mark {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--ink);
}

.choice input:checked + .mark {
  background: var(--ink);
  border-color: var(--ink);
}

.choice input:focus-visible + .mark {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Applying or nominating: two tabs over one form. */
.mode {
  display: flex;
  border-bottom: 1px solid var(--rule);
}

.mode .choice {
  flex: 1 1 0;
  justify-content: center;
  min-height: 60px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  text-align: center;
  transition: border-color 0.2s ease;
}

.mode .choice:hover {
  border-bottom-color: var(--line);
}

.mode .choice:has(input:checked) {
  border-bottom-color: var(--ink);
}

.mode .choice .mark {
  display: none;
}

.mode .choice:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

/* A text field with suggestions, styled like the mobile menu. site.js fills
   and opens the list. */
.combo-box {
  position: relative;
}

.combo-box input {
  padding-right: 44px;
}

.combo-toggle {
  position: absolute;
  top: 0;
  right: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.combo-toggle svg {
  transition: transform 0.25s ease;
}

.combo.is-open .combo-toggle svg {
  transform: rotate(180deg);
}

.combo-list {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 5;
  max-height: 336px;
  margin: 0 -16px;
  padding: 0 16px;
  overflow-y: auto;
  list-style: none;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 24px 32px -24px rgba(11, 11, 11, 0.28);
}

.combo-list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border-top: 1px solid var(--rule);
  font-size: var(--text-lg);
  cursor: pointer;
}

.combo-list li:first-child {
  border-top: 0;
}

/* The highlighted suggestion gets the dot, hung left so the text stays in line with the field. */
.combo-list li::before {
  content: "";
  position: absolute;
  left: -14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.combo-list li:hover,
.combo-list li[aria-selected="true"] {
  color: var(--ink);
}

.combo-list li:hover::before,
.combo-list li[aria-selected="true"]::before {
  opacity: 1;
}

.nominator {
  display: none;
  flex-direction: column;
  gap: 36px;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
}

form.is-nominating .nominator {
  display: flex;
}

.choice.check {
  font-size: var(--text-md);
}

.choice.check .mark {
  border-radius: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  display: none;
  font-size: var(--text-sm);
  color: var(--error);
}

.form-error.show {
  display: block;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

.submit-row p {
  flex: 1 1 220px;
  font-size: var(--text-sm);
}

.thanks {
  padding-top: 8px;
}

.thanks .lede {
  margin-top: 32px;
  max-width: 36ch;
}

.thanks .actions {
  margin-top: 40px;
}

[hidden] {
  display: none !important;
}

/* Simple prose pages */
.prose {
  padding: clamp(48px, 7vw, 104px) var(--pad) var(--section);
  max-width: calc(708px + 2 * var(--pad));
}

.prose h1 {
  font-weight: 400;
  font-size: var(--text-3xl);
}

.prose h2 {
  margin-top: 48px;
  font-size: var(--text-lg);
  font-weight: 500;
}

.prose p,
.prose li {
  margin-top: 14px;
  font-size: var(--text-md);
  line-height: 1.6;
}

.prose .updated {
  margin-top: 24px;
  font-size: var(--text-sm);
}

@media (max-width: 560px) {
  .row-when {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }
  .hero-meta {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .people {
    grid-template-columns: 1fr;
  }
  .lightbox-stage {
    padding: 0 8px 12px;
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 8px;
    transform: none;
  }
}

/* Headlines, at every size. */
.hero-statement,
.display,
.manifesto-text,
.discipline,
.band h2,
.closing h2,
.past-lede,
.entry-head h1,
.apply-intro h1,
.thanks h2,
.prose h1,
.prose h2,
.row-name,
.qa-q,
.topic-title {
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.row-name,
.qa-q,
.topic-title {
  line-height: 1.25;
}

/* Labels, dates, places and counts: one mono style everywhere. */
.split > .label,
.qa-more-label,
.group-label,
.field label,
fieldset legend,
.entry-meta,
.event-card-meta,
.qa-who,
.qa-a .qa-response-who,
.pull figcaption,
.gallery-count,
.steps li span:last-child,
.row-when,
.hero-meta,
.site-footer > span {
  font-family: var(--mono);
  font-size: var(--text-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Header. It stays at the top of every page, and below 700px the nav folds
   into a menu behind the toggle. site.js sets .has-menu, .is-open, .on-dark
   and .is-scrolled; without it the header is static and the nav wraps. */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.menu-bar {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease;
}

.is-open .menu-bar-top {
  transform: translateY(4px) rotate(45deg);
}

.is-open .menu-bar-bottom {
  transform: translateY(-4px) rotate(-45deg);
}

.on-dark .menu-toggle:focus-visible {
  outline-color: #fff;
}

.site-header.has-menu {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
}

.has-menu.is-scrolled {
  border-bottom-color: var(--rule);
}

/* Over a hero the header floats clear of it, then takes the paper once the hero has gone. */
.has-stage .site-header.has-menu {
  position: fixed;
  background: transparent;
}

.has-stage .has-menu.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--paper);
}

main [id] {
  scroll-margin-top: 80px;
}

/* Keep in step with the media query in site.js. */
@media (max-width: 699px) {
  .site-header.has-menu {
    flex-wrap: nowrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .has-menu .menu-toggle {
    display: inline-flex;
  }
  .has-menu .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--pad) 24px;
    background: var(--paper);
    font-size: var(--text-lg);
  }
  .has-menu.is-open .nav {
    display: flex;
    border-bottom: 1px solid var(--rule);
  }
  .has-menu .nav a:not(.btn) {
    min-height: 56px;
    border-top: 1px solid var(--rule);
  }
  .has-menu .nav .btn {
    justify-content: center;
    min-height: 52px;
    margin-top: 16px;
    font-size: var(--text-sm);
  }
  .has-menu.on-dark.is-open,
  .has-menu.on-dark .nav {
    background: var(--ink);
  }
  .has-menu.on-dark.is-open .nav {
    border-bottom: 0;
  }
  .has-menu.on-dark .nav a:not(.btn) {
    border-top-color: rgba(255, 255, 255, 0.16);
  }
}
