/* futureforms: every style on the site, one file. Tokens and shared
   primitives first, then components, then pages. */

/* IBM Plex Mono (SIL OFL), from @fontsource, latin + latin-ext. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/plex-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/plex-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/plex-mono-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fonts/plex-mono-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/plex-mono-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/plex-mono-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/plex-mono-latin-ext-500-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/fonts/plex-mono-latin-500-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/plex-mono-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/plex-mono-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/plex-mono-latin-ext-700-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/fonts/plex-mono-latin-700-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ============================================================
   futureforms register — after onlab.ch:
   paper white, ink black, one monospaced face for everything,
   1px hairline rules, uppercase micro-labels, hover inverts.
   ============================================================ */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --grey: #757575;
  --paper-dim: #f2f2f2;
  --soft: #d5d5d5;
  --rule: 1px solid var(--ink);
  --rule-soft: 1px solid var(--soft);
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
  --page-pad: 40px;
  --gap: 20px;
  color-scheme: light;
}
/* Dark theme: the same register reversed, ink white on paper black.
   Everything is drawn from these tokens, so nothing else changes. */
:root[data-theme='dark'] {
  --paper: #000000;
  --ink: #ffffff;
  --grey: #8a8a8a;
  --paper-dim: #0d0d0d;
  --soft: #2a2a2a;
  color-scheme: dark;
}
@media (max-width: 1023px) {
  :root { --page-pad: 24px; }
}
@media (max-width: 767px) {
  :root { --page-pad: 14px; }
}

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Sticky footer: body is a column, .page-main absorbs slack. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 12px;
}
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  margin: 0;
  padding: 0;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border-radius: 0;
}
*:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}

/* --- shared primitives ------------------------------------ */

.wrap {
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* Uppercase micro-label, the site's main typographic device. */
.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Underlined text link that inverts on hover. */
.tlink {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.tlink:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* Square-bracket tag, e.g. [Workshop] */
.tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.tag::before { content: '['; }
.tag::after { content: ']'; }

/* Solid button — inverts filled/outline on hover. */
.btn {
  display: inline-block;
  border: var(--rule);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 22px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.field {
  display: block;
  width: 100%;
  border: var(--rule);
  background: var(--paper);
  padding: 10px 12px;
  margin: 0;
}
.field::placeholder {
  color: var(--grey);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.rich-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-link:hover {
  background: var(--ink);
  color: var(--paper);
}

/* --- header --- */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: var(--rule);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}
.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wordmark:hover {
  background: var(--ink);
  color: var(--paper);
}
.tld {
  font-weight: 400;
  color: var(--grey);
}
.wordmark:hover .tld {
  color: var(--paper);
}
.site-nav {
  display: flex;
  gap: 22px;
}
.nav-link:hover {
  background: var(--ink);
  color: var(--paper);
}
.theme-toggle {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-transform: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
:root[data-theme='dark'] .to-dark,
:root:not([data-theme='dark']) .to-light {
  display: none;
}
.nav-link.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- footer --- */
.site-footer {
  border-top: var(--rule);
  margin-top: 60px;
  padding-top: 28px;
  padding-bottom: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-head {
  margin-bottom: 10px;
}
.footer-note {
  color: var(--grey);
  max-width: 34ch;
}
.footer-note .tlink {
  color: var(--ink);
}
.newsletter {
  display: flex;
  gap: 8px;
  max-width: 360px;
}
.newsletter .field {
  flex: 1;
}
.footer-error {
  margin-top: 8px;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: var(--rule-soft);
  margin-top: 32px;
  padding-top: 14px;
  color: var(--grey);
}
.footer-base .tlink {
  color: var(--grey);
}
/* The one-line privacy notice under a form that takes personal data. */
.form-privacy {
  margin-top: 10px;
  font-size: 12px;
  color: var(--grey);
}
.form-privacy .tlink {
  color: var(--grey);
}

/* --- event card --- */
.card {
  display: block;
  border: var(--rule);
  background: var(--paper);
}
.card:hover .card-title {
  background: var(--ink);
  color: var(--paper);
}
.card-body {
  padding: 12px 14px 14px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--grey);
  margin-bottom: 8px;
}
.card-title {
  font-size: 16px;
  line-height: 1.3;
  display: inline;
}
.card-place {
  color: var(--grey);
  margin: 8px 0 0;
}

/* --- generative cover (views/components.tsx, client/covers.ts) --- */
.cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: var(--rule);
  background: var(--paper);
}
.cover svg {
  display: block;
  width: 100%;
  height: 100%;
}
/*
 * Dark theme. The artwork is pure #000 on #fff (lib/cover.ts, and the
 * shapes the animator adds), so inverting it is exact and keeps the
 * generator free of theme knowledge.
 */
:root[data-theme='dark'] .cover svg {
  filter: invert(1);
}
/*
 * The artwork is authored on a 400×300 grid and stretched to whatever
 * width it lands in — a card is about a third of that, an event page's
 * cover band nearly 3× it — which would fatten the same 1px stroke to
 * anywhere between a half and three device pixels. Pinning the stroke
 * to device pixels keeps every family a hairline at any size, the same
 * weight as the rules the rest of the page is drawn with.
 */
.cover svg * {
  vector-effect: non-scaling-stroke;
}
/*
 * Antialiasing. `auto` lets the browser trade quality for speed, which
 * shows on fields of hundreds of near-parallel hairlines: diagonals and
 * curves come out uneven. geometricPrecision asks for the accurate
 * rasterization instead, and is inherited by every shape.
 */
.cover svg {
  shape-rendering: geometricPrecision;
}
/*
 * The exception: families drawn only from axis-aligned lines. There,
 * antialiasing is what makes a hairline muddy — a line landing between
 * two device pixels is rendered as two grey ones. crispEdges snaps them
 * to the pixel grid, black on white, the way the rules are. Every other
 * family has diagonals (hatch, maze), curves (rings, waves, dots) or a
 * rotated layer (moiré) that would go visibly jagged this way.
 */
.cover[data-family='bars'] svg,
.cover[data-family='crosses'] svg {
  shape-rendering: crispEdges;
}

/* --- sections view (event pages) --- */
.sv__section {
  margin-top: 40px;
}
.sv__section:first-child { margin-top: 0; }
.sv__title {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.2;
  padding-top: 14px;
  border-top: var(--rule);
}
.sv__block { margin-top: 18px; }
.sv__block:first-child { margin-top: 0; }

.sv__prose {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  max-width: 62ch;
}

.sv__figure { margin: 0; }
.sv__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--rule);
}
.sv__figure figcaption {
  margin-top: 8px;
  color: var(--grey);
}

.sv__demo {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border: var(--rule);
  background: var(--paper-dim);
}
.sv__demo iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* The click-to-load stand-in for a YouTube player. */
.yt__gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  text-align: center;
}
.yt__note {
  color: var(--grey);
  max-width: 46ch;
}

.sv__carousel {
  position: relative;
  overflow: hidden;
  border: var(--rule);
}
.sv__carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sv__carousel-slide { flex: 0 0 100%; width: 100%; }
.sv__carousel-slide img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.sv__carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: var(--paper);
  border: var(--rule);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.sv__carousel-nav:hover {
  background: var(--ink);
  color: var(--paper);
}
.sv__carousel-nav--prev { left: 12px; }
.sv__carousel-nav--next { right: 12px; }
.sv__carousel-counter {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  background: var(--paper);
  border: var(--rule);
  font-size: 11px;
  letter-spacing: 0.04em;
}
@media (max-width: 767px) {
  .sv__carousel-slide img { height: 240px; }
}

.sv__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule);
  max-width: 62ch;
}
.sv__list-row {
  padding: 10px 0;
  border-bottom: var(--rule-soft);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.sv__list-row::before {
  content: '→';
  flex: 0 0 auto;
}

/* --- sections editor (admin event form). Its cards are rendered with innerHTML. --- */
.sections {
  margin: 0;
  border: var(--rule);
  padding: 16px 16px 18px;
  background: var(--paper);
}
.sections > legend {
  padding: 0 8px;
  color: var(--grey);
}
.sections__hint {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--grey);
  line-height: 1.5;
}
.sections__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.sections__empty {
  padding: 16px;
  border: var(--rule-soft);
  color: var(--grey);
  font-size: 12px;
  text-align: center;
}
.sections__add,
.section-card__actions button,
.sblock-card__actions button,
.section-card__add button {
  border: var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 11px;
  cursor: pointer;
  line-height: 1;
}
.sections__add:hover,
.section-card__actions button:hover,
.sblock-card__actions button:hover,
.section-card__add button:hover {
  background: var(--ink);
  color: var(--paper);
}
.sections__add-label {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 6px;
}
.section-card {
  border: var(--rule);
  padding: 12px;
}
.section-card__head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.section-card__title {
  flex: 1 1 auto;
  min-width: 0;
}
.section-card__actions,
.sblock-card__actions {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}
.section-card__blocks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.sblock-card {
  border: var(--rule-soft);
  padding: 10px 12px 12px;
}
.sblock-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.sblock-card__type {
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sblock-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sblock-card__body textarea.field {
  resize: vertical;
}
.sblock-hint {
  font-size: 11px;
  color: var(--grey);
  line-height: 1.4;
}
.sblock-hint code {
  border: var(--rule-soft);
  font-size: 10px;
  padding: 1px 4px;
}
.sblock-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sblock-upload__btn {
  display: inline-flex;
  align-items: center;
  border: var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}
.sblock-upload__btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.sblock-upload__status {
  font-size: 11px;
  color: var(--grey);
}
.sblock-preview {
  display: block;
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  /* The card body is a flex column: without this the image is stretched to
     the card's full width while max-height caps it, distorting the ratio. */
  align-self: flex-start;
  border: var(--rule-soft);
}
.sblock-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sblock-preview--thumb {
  max-height: 72px;
  object-fit: cover;
}
.sblock-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.section-card__add {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .sblock-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Pages. Rules shared by several pages first, then each page
   under its own root class.
   ============================================================ */

.dim { color: var(--grey); }
textarea.field { resize: vertical; }

.section-head {
  display: flex;
  justify-content: space-between;
  border-top: var(--rule);
  padding-top: 10px;
  margin-bottom: 18px;
  color: var(--grey);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--gap);
}

/* Narrow single-column pages: admin forms, unsubscribe, 404. */
.page { padding-top: 30px; }
.page--sm { max-width: 420px; }
.page--md { max-width: 480px; }
.page--lg { max-width: 640px; }
.head {
  color: var(--grey);
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.page .ok, .page .err, .admin .ok { margin-bottom: 16px; }

/* Labelled form fields. */
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > .label { color: var(--grey); }
.hint { font-size: 12px; color: var(--grey); line-height: 1.5; margin: 0; }

/* --- home --- */
.hero { padding-top: 70px; padding-bottom: 70px; }
.hero-statement {
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.35;
  max-width: 24em;
  font-weight: 400;
}
.hero-statement em { font-style: italic; }
.hero-links { display: flex; gap: 26px; margin-top: 34px; }
.home .empty { color: var(--grey); padding: 30px 0 10px; }

/* --- /events --- */
.listing { padding-top: 30px; }
.listing-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filters { display: flex; gap: 18px; flex-wrap: wrap; }
.filter:hover { background: var(--ink); color: var(--paper); }
.filter.is-active { text-decoration: underline; text-underline-offset: 4px; }
.view-toggle { display: flex; gap: 8px; color: var(--grey); }
.view-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--grey);
}
.view-btn:hover { background: var(--ink); color: var(--paper); }
.view-btn.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.past-head { margin-top: 44px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 16ch 1fr auto 12ch;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: var(--rule-soft);
}
.row:hover .row-title { background: var(--ink); color: var(--paper); }
.row-date, .row-place, .row-kind {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
}
.row-place { text-align: right; }
.row.is-past .row-title { color: var(--grey); }
@media (max-width: 767px) {
  .row { grid-template-columns: 1fr auto; }
  .row-date { order: 2; }
  .row-title { order: 1; grid-column: 1 / -1; }
  .row-kind { order: 3; text-align: right; }
  .row-place { display: none; }
}
.listing .empty { color: var(--grey); padding: 6px 0 20px; }

/* --- event page --- */
.event { padding-top: 30px; }
.preview-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border: var(--rule);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.event-cover-band { border: var(--rule); max-height: 260px; overflow: hidden; }
.event-head { padding: 26px 0 30px; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--grey);
  margin-bottom: 16px;
}
.event-title { font-size: clamp(24px, 4vw, 40px); line-height: 1.2; max-width: 22em; }
.event-summary { margin-top: 14px; max-width: 60ch; color: var(--grey); }
.event-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 48px;
  border-top: var(--rule);
  padding-top: 26px;
}
@media (max-width: 900px) {
  .event-grid { grid-template-columns: 1fr; gap: 30px; }
}
.event-body { max-width: 62ch; }
.event-sections { margin-top: 36px; }
.event-aside { display: flex; flex-direction: column; gap: 26px; align-items: start; }
.aside-block { border: var(--rule); padding: 16px; width: 100%; }
.aside-head { color: var(--grey); margin-bottom: 12px; }
.reg-form { display: flex; flex-direction: column; gap: 10px; }
.reg-optin { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--grey); cursor: pointer; }
.reg-optin input { margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--grey); }
.facts dd { margin: 0; }
.schedule { list-style: none; margin: 0; padding: 0; }
.event .err, .spots { margin-top: 10px; }

/* --- about --- */
.about { padding-top: 70px; }
.about-statement {
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.35;
  max-width: 24em;
  font-weight: 400;
  margin-bottom: 60px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--gap);
  border-top: var(--rule);
  padding-top: 24px;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about .sec-head { color: var(--grey); margin-bottom: 14px; }
.about-grid p { max-width: 44ch; }
.what { margin: 0; }
.what dt { margin-top: 14px; }
.what dt:first-child { margin-top: 0; }
.what dd { margin: 4px 0 0; max-width: 44ch; color: var(--grey); }

/* --- privacy --- */
.legal { padding-top: 70px; max-width: 72ch; }
.legal-title {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 10px;
}
.legal-lead { margin: 36px 0 12px; }
.legal section { border-top: var(--rule-soft); margin-top: 32px; padding-top: 18px; }
.legal .sec-head { color: var(--grey); margin: 0 0 12px; font-weight: 400; }
.legal p { margin: 0 0 10px; }
.legal-list { margin: 0 0 10px; padding-left: 18px; }
.legal-list li { margin-bottom: 6px; }

/* --- unsubscribe --- */
.unsub form { margin-top: 20px; }

/* --- sign-in, password reset, setup --- */
.login { padding-top: 70px; max-width: 420px; }
.login-head { color: var(--grey); margin-bottom: 18px; }
.stack-form { display: flex; flex-direction: column; gap: 10px; }
.login .ok { margin-bottom: 14px; }
.login .err { margin-top: 14px; }
.login .note { margin-top: 24px; color: var(--grey); }

/* --- admin overview --- */
.admin { padding-top: 30px; }
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.admin-head h1 { color: var(--grey); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ev-table { width: 100%; border-collapse: collapse; }
.ev-table th {
  text-align: left;
  font-weight: 400;
  color: var(--grey);
  border-bottom: var(--rule);
  padding: 6px 14px 6px 0;
}
.ev-table td {
  border-bottom: var(--rule-soft);
  padding: 8px 14px 8px 0;
  vertical-align: baseline;
}

/* --- admin event form --- */
.ev-form { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 640px) {
  .two { grid-template-columns: 1fr; }
}
.sessions {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: start;
}
.sessions legend { color: var(--grey); padding: 0; margin-bottom: 6px; }
.session-rows { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.session-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
}
.session-remove { padding: 10px 14px; }
.session-remove:disabled {
  color: var(--grey);
  border-color: var(--soft);
  cursor: default;
  background: var(--paper);
}
.check { flex-direction: row; align-items: center; gap: 10px; align-self: end; padding-bottom: 10px; }
.ev-form .btn, .pw-form .btn { align-self: start; }

/* --- admin event page --- */
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 48px; }
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
}
.danger { margin-top: 30px; border-top: var(--rule-soft); padding-top: 18px; }
.cols .sec-head { color: var(--grey); margin-bottom: 12px; display: flex; gap: 12px; }
.regs { list-style: none; margin: 0; padding: 0; }
.regs li { display: flex; flex-direction: column; border-bottom: var(--rule-soft); padding: 8px 0; }
.regs .note { font-style: italic; }
.reg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.retention-note { margin-top: 14px; font-size: 12px; }

/* --- admin subscribers and team --- */
.subs { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.subs li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: var(--rule-soft);
  padding: 8px 0;
}
.sub-end { display: flex; gap: 14px; align-items: baseline; }
.team { margin-top: 20px; max-width: none; }
.team-actions { display: flex; gap: 14px; align-items: baseline; }
.linkish {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkish:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.invite-box { margin: 16px 0; }
.team-form { margin-top: 36px; max-width: 420px; }
.team-form .sec-head { color: var(--grey); margin: 0; }

/* --- admin password and mailing --- */
.pw-form { display: flex; flex-direction: column; gap: 14px; }
.mail-form { display: flex; flex-direction: column; gap: 16px; }
.upload { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.upload__btn { cursor: pointer; flex: none; }
.upload .hint { flex: 1 1 280px; }
.mail-form textarea.field { line-height: 1.6; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.confirm { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: var(--grey); }

/* Present for screen readers and search engines, not drawn. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mail-form + .sec-head { margin: 40px 0 8px; color: var(--grey); }
