:root {
  --paper: #fdf4eb;
  --paper-deep: #f5e6d7;
  --card: #fffaf4;
  --ink: #1d1a17;
  --ink-soft: #4b443e;
  --muted: #7d7269;
  --line: rgba(29, 26, 23, 0.12);
  --line-strong: rgba(29, 26, 23, 0.26);
  --slate: #62798a;
  --slate-deep: #3c4f5e;
  --slate-tint: rgba(98, 121, 138, 0.13);
  --shadow-brown: rgba(126, 96, 76, 0.4);
  --ok: #3f7150;
  --warn: #9a6526;
  --danger: #a13a31;
  --script: 'Comforter Brush', 'Brush Script MT', cursive;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Fira Sans Condensed', 'Fira Sans', system-ui, sans-serif;
  --lift: 0 1px 2px rgba(60, 40, 20, 0.06), 0 14px 32px -20px rgba(80, 55, 35, 0.45);
  --wrap: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* The two ink washes from the posters sit in the lower corners of every page. */
body::before,
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  width: min(30vw, 340px);
  aspect-ratio: 265 / 458;
  background: no-repeat bottom / contain;
  pointer-events: none;
  z-index: -1;
}
body::before {
  left: 0;
  background-image: url(/img/wash-left.webp);
  background-position: left bottom;
}
body::after {
  right: 0;
  aspect-ratio: 270 / 488;
  background-image: url(/img/wash-right.webp);
  background-position: right bottom;
}

main {
  flex: 1;
  padding-bottom: 72px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--slate-deep);
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  z-index: 100;
  border-radius: 3px;
}
.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- type */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 0.95;
  text-shadow: 2px 2px 0 var(--shadow-brown);
}

.page-head {
  padding: clamp(36px, 7vw, 72px) 0 clamp(20px, 4vw, 36px);
  text-align: center;
}
.page-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.6rem, 10vw, 6.2rem);
  line-height: 0.9;
  margin: 0 0 14px;
  text-shadow: 3px 3px 0 var(--shadow-brown);
}
.page-lede {
  max-width: 580px;
  margin: 0 auto;
  color: var(--ink-soft);
}

.section {
  padding: clamp(32px, 6vw, 64px) 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  margin: 0;
}
.section-link {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--slate-deep);
  margin: 0 0 6px;
}

.muted {
  color: var(--muted);
}

.prose {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 11px 20px;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: #3b342e;
  border-color: #3b342e;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-quiet {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.btn-quiet:hover {
  background: var(--slate-tint);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #86302a;
  border-color: #86302a;
}
.btn-quiet.btn-danger-text {
  color: var(--danger);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 0.95rem;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 244, 235, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 70px;
}
.brand {
  font-family: var(--script);
  font-size: 2.15rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 1.5px 1.5px 0 var(--shadow-brown);
  white-space: nowrap;
  margin-right: auto;
  padding-top: 4px;
}
.nav {
  display: flex;
  gap: 2px;
}
.nav a {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--ink-soft);
  padding: 8px 13px;
  text-decoration: none;
  border-radius: 3px;
}
.nav a:hover {
  color: var(--ink);
  background: var(--slate-tint);
}
.nav a[aria-current='page'] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
  border-radius: 0;
}
.nav .nav-guest {
  display: none;
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.account .nav-link {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
}
.account .nav-link:hover {
  text-decoration: underline;
}
.account-wrap {
  position: relative;
}
.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}
.account-btn:hover {
  border-color: var(--ink);
}
.account-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
}
.account-btn[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(60, 40, 20, 0.45);
  padding: 6px;
  z-index: 50;
}
.menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  display: grid;
  line-height: 1.3;
}
.menu-head span {
  color: var(--muted);
  font-size: 0.9rem;
}
.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--cond);
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
}
.menu-item:hover {
  background: var(--slate-tint);
}
.menu-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 11px 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.site-header.open .menu-btn span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.site-header.open .menu-btn span:nth-child(2) {
  opacity: 0;
}
.site-header.open .menu-btn span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 820px) {
  .menu-btn {
    display: flex;
  }
  .header-inner {
    gap: 8px;
  }
  .brand {
    font-size: 1.8rem;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    box-shadow: 0 20px 30px -20px rgba(60, 40, 20, 0.35);
  }
  .site-header.open .nav {
    display: flex;
  }
  .nav a {
    padding: 12px 8px;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav a[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--ink);
    padding-left: 14px;
  }
  .nav .nav-guest {
    display: block;
  }
  .account .guest-link {
    display: none;
  }
  .account-name {
    display: none;
  }
  .account-btn {
    padding-right: 8px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.55rem;
  }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 30px;
  background: rgba(245, 230, 215, 0.55);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 32px;
  align-items: start;
}
.footer-brand p {
  margin: 0;
  color: var(--ink-soft);
}
.footer-brand .footer-script {
  font-family: var(--script);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
  text-shadow: 1.5px 1.5px 0 var(--shadow-brown);
  margin-bottom: 4px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--cond);
  font-size: 1.02rem;
}
.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.footer-small {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-small a {
  color: var(--muted);
}
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- home */

.hero {
  text-align: center;
  padding: clamp(48px, 9vw, 104px) 0 clamp(36px, 6vw, 64px);
}
.hero-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4.4rem, 14vw, 9.6rem);
  line-height: 0.8;
  margin: 0;
  text-shadow: 3px 3px 0 var(--shadow-brown);
}
.hero-title span {
  display: block;
}
.hero-with {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  margin: 30px 0 12px;
}
.hero-lede {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
}
.hero .btn-row {
  justify-content: center;
}

.next-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--lift);
  overflow: hidden;
}
.next-card.no-poster {
  background: var(--card) url(/img/wash-right.webp) no-repeat right -20px bottom -30px / auto 130%;
}
.next-label {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  margin: 0 0 8px;
}
.next-with {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 14px;
}
.when {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0;
}
.when span {
  display: block;
}
.place {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}
.place svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--slate);
}
.next-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
}
.next-card .btn-row {
  margin-top: 22px;
}
.next-poster {
  width: min(340px, 36vw);
  border-radius: 3px;
  box-shadow: var(--lift);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
}
.next-poster img {
  width: 100%;
  border-radius: 3px;
}
@media (max-width: 700px) {
  .next-card {
    grid-template-columns: 1fr;
  }
  .next-poster {
    width: 100%;
    order: -1;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 22px 20px;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--slate);
  margin-bottom: 10px;
}
.steps h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- avatars and maker tags */

.avatar {
  --s: 32px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--paper-deep);
}
.avatar-initials {
  display: inline-grid;
  place-items: center;
  background: var(--slate);
  color: #fff;
  font-family: var(--cond);
  font-weight: 600;
  font-size: calc(var(--s) * 0.4);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Every work carries its maker as a tag that links to the maker's page. */
.maker-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
  background: var(--slate-tint);
  color: var(--slate-deep);
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
}
.maker-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.maker-tag:hover {
  background: rgba(98, 121, 138, 0.25);
  color: var(--ink);
}
.maker-tag-lg {
  font-size: 1.08rem;
  padding: 4px 16px 4px 4px;
  gap: 10px;
}
.maker-tag.static {
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink-soft);
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
}
.chip.has-avatar {
  padding-left: 4px;
}
.chip small {
  color: var(--muted);
  font-size: 0.85rem;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip[aria-pressed='true'] small {
  color: rgba(253, 244, 235, 0.7);
}

.filter-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -6px auto 26px;
  padding: 10px 16px;
  width: fit-content;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--cond);
  font-size: 1.02rem;
}

/* ---------------------------------------------------------------- works */

.works {
  columns: 4 240px;
  column-gap: 22px;
}
.work-card {
  break-inside: avoid;
  margin: 0 0 26px;
}
.work-img {
  display: block;
  background: var(--paper-deep);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--lift);
}
.work-img img {
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}
.work-img:hover img {
  transform: scale(1.025);
}
.work-meta {
  display: grid;
  gap: 7px;
  padding: 11px 2px 0;
}
.work-meta h3 {
  font-size: 1.12rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.work-meta h3 a {
  color: var(--ink);
  text-decoration: none;
}
.work-meta h3 a:hover {
  text-decoration: underline;
}
.work-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.empty {
  text-align: center;
  padding: 44px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 250, 244, 0.6);
}
.empty p {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}
.empty p:last-child {
  margin-bottom: 0;
}

.loading {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-family: var(--serif);
  font-style: italic;
}

/* ---------------------------------------------------------------- single work */

.work-page {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding-top: clamp(28px, 5vw, 56px);
}
.work-figure {
  margin: 0;
}
.work-figure button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-deep);
  cursor: zoom-in;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--lift);
}
.work-figure img {
  width: 100%;
  height: auto;
}
.work-figure figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.work-info {
  position: sticky;
  top: 100px;
}
.work-info h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.work-facts {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.session-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cond);
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.session-link svg {
  width: 18px;
  height: 18px;
  color: var(--slate);
  flex: none;
}
.story {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.story h2 {
  font-family: var(--script);
  font-size: 2.6rem;
  line-height: 1;
  text-shadow: 2px 2px 0 var(--shadow-brown);
  margin-bottom: 10px;
}
.story p {
  margin: 0;
  font-size: 1.08rem;
}
.back-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 26px;
  font-family: var(--cond);
  color: var(--ink);
}
@media (max-width: 860px) {
  .work-page {
    grid-template-columns: 1fr;
  }
  .work-info {
    position: static;
  }
}

/* ---------------------------------------------------------------- members */

.members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.member-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
  padding: 26px 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.member-card:hover {
  box-shadow: var(--lift);
  transform: translateY(-2px);
}
.member-card .avatar {
  margin-bottom: 10px;
}
.member-card h2 {
  font-size: 1.35rem;
  margin: 0;
}
.member-card .handle {
  color: var(--muted);
  font-size: 0.92rem;
}
.member-card .about {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.count {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate-deep);
  margin-top: 8px;
}

.profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  padding: clamp(36px, 6vw, 64px) 0 clamp(24px, 4vw, 40px);
}
.profile-head .avatar {
  box-shadow: 0 0 0 6px var(--card), 0 0 0 7px var(--line);
}
.profile-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 4px;
}
.profile-head .since {
  font-family: var(--cond);
  color: var(--muted);
  margin: 0 0 14px;
}
.profile-head .about {
  margin: 0;
  max-width: 640px;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .profile-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* ---------------------------------------------------------------- agenda */

.session {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: var(--lift);
}
.session-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 22px;
  font-family: var(--cond);
  line-height: 1.15;
}
.session-date .weekday {
  color: var(--muted);
  font-size: 0.95rem;
}
.session-date .day {
  display: block;
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
  margin: 2px 0;
}
.session-date .month {
  font-weight: 600;
  font-size: 1.05rem;
}
.session-with {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 4px;
}
.session .when {
  font-size: 1.12rem;
}
.session-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
}
.poster-btn {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}
.poster-btn img {
  width: 150px;
  border-radius: 3px;
  box-shadow: var(--lift);
}
@media (max-width: 700px) {
  .session {
    grid-template-columns: 76px 1fr;
    gap: 16px;
    padding: 18px;
  }
  .session-date {
    padding-right: 14px;
  }
  .session-date .day {
    font-size: 2.4rem;
  }
  .session .poster-btn {
    grid-column: 1 / -1;
  }
  .session .poster-btn img {
    width: 100%;
  }
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.past-card {
  display: grid;
  gap: 10px;
  align-content: start;
}
.past-card .poster-btn img,
.past-card .poster-fallback {
  width: 100%;
  aspect-ratio: 940 / 788;
  object-fit: cover;
}
.past-card h3 {
  font-size: 1.25rem;
  margin: 4px 0 0;
}
.past-card .when {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.thumbs {
  display: flex;
  gap: 6px;
}
.thumbs a {
  width: 54px;
  height: 54px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-deep);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A session without a poster gets one in the house style. */
.poster-fallback {
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
  background: var(--paper) url(/img/wash-left.webp) no-repeat left bottom / 30% auto;
  border-radius: 3px;
  box-shadow: var(--lift);
  overflow: hidden;
  padding: 16px;
  container-type: inline-size;
}
.poster-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url(/img/wash-right.webp) no-repeat right bottom / 30% auto;
  pointer-events: none;
}
.poster-fallback .script {
  font-size: clamp(2rem, 13cqi, 3.4rem);
  line-height: 0.85;
}
.poster-fallback .p-with {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 7cqi, 1.8rem);
  margin-top: 6px;
}
.poster-fallback .p-when {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(0.9rem, 5cqi, 1.15rem);
  line-height: 1.25;
}

/* ---------------------------------------------------------------- forms */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--lift);
}
.card > h2:first-child {
  font-size: 1.6rem;
}

.auth {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 48px) 0;
}
.auth .card {
  width: min(100%, 470px);
}
.auth .card .form-foot {
  margin: 20px 0 0;
  text-align: center;
  color: var(--ink-soft);
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
  margin-bottom: 18px;
}
.field > label,
.label {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.02rem;
}
.label-opt {
  font-weight: 400;
  color: var(--muted);
}
.hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.field-row.three {
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 520px) {
  .field-row,
  .field-row.three {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='date'],
input[type='time'],
textarea,
select {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: #fffdf9;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--slate);
  outline: 3px solid rgba(98, 121, 138, 0.2);
  outline-offset: 0;
}
input[readonly] {
  background: var(--paper-deep);
  color: var(--ink-soft);
}
.counter {
  justify-self: end;
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
}

.form-error {
  color: var(--danger);
  background: rgba(161, 58, 49, 0.08);
  border-left: 3px solid var(--danger);
  padding: 10px 14px;
  border-radius: 3px;
  margin: 0 0 16px;
}
.form-ok {
  color: var(--ok);
  background: rgba(63, 113, 80, 0.09);
  border-left: 3px solid var(--ok);
  padding: 10px 14px;
  border-radius: 3px;
  margin: 0 0 16px;
}
.notice {
  background: rgba(154, 101, 38, 0.09);
  border-left: 3px solid var(--warn);
  padding: 14px 18px;
  border-radius: 3px;
  margin: 0 0 24px;
}
.notice strong {
  font-family: var(--cond);
  font-size: 1.08rem;
  display: block;
}
.notice p {
  margin: 4px 0 0;
}

.progress {
  height: 6px;
  background: var(--paper-deep);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 0 14px;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--slate);
  transition: width 0.2s;
}

/* ---------------------------------------------------------------- my account */

.account-layout > * {
  min-width: 0;
}
.account-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
  padding-top: clamp(28px, 5vw, 48px);
}
.side {
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 14px 14px;
}
.side-profile {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
  padding-bottom: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.side-profile .avatar {
  margin-bottom: 8px;
}
.side-profile strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
}
.side-profile .handle {
  color: var(--muted);
  font-size: 0.9rem;
}
.side-nav {
  display: grid;
  gap: 2px;
}
.side-nav a,
.side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 4px;
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--cond);
  font-size: 1.04rem;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.side-nav svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.side-nav a:hover,
.side-nav button:hover {
  background: var(--slate-tint);
  color: var(--ink);
}
.side-nav a[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
}
.pill {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 6px;
}
.pill-pending {
  background: rgba(154, 101, 38, 0.14);
  color: var(--warn);
}
.pill-approved {
  background: rgba(63, 113, 80, 0.13);
  color: var(--ok);
}
.pill-blocked {
  background: rgba(161, 58, 49, 0.12);
  color: var(--danger);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.panel-head h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin: 0;
}
.panel > .card + .card {
  margin-top: 22px;
}

.my-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.my-work {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.my-work > a {
  display: block;
  aspect-ratio: 1;
  background: var(--paper-deep);
}
.my-work > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-work-body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.my-work-body h3 {
  font-size: 1.08rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.my-work-body .btn-row {
  margin-top: 8px;
  gap: 6px;
}

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  min-height: 300px;
  padding: 24px;
  border: 2px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.7);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover,
.dropzone.drag {
  border-color: var(--slate);
  background: var(--slate-tint);
}
.dropzone:focus-within {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone svg {
  width: 44px;
  height: 44px;
  color: var(--slate);
}
.dropzone strong {
  font-family: var(--cond);
  font-size: 1.15rem;
}
.dropzone.has-image {
  padding: 12px;
  border-style: solid;
}
.dropzone.has-image img {
  max-height: 460px;
  width: auto;
  border-radius: 3px;
  box-shadow: var(--lift);
}
.dropzone .change {
  font-family: var(--cond);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.tagged {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  font-family: var(--cond);
  color: var(--ink-soft);
}

.avatar-edit {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.danger-zone {
  border-color: rgba(161, 58, 49, 0.35);
}
.danger-zone h2 {
  color: var(--danger);
}

@media (max-width: 820px) {
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: static;
    padding: 14px;
  }
  .side-profile {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    column-gap: 14px;
    align-items: center;
  }
  .side-profile .avatar {
    grid-row: span 3;
    margin: 0;
  }
  .side-profile .pill {
    margin-top: 2px;
  }
  .side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* ---------------------------------------------------------------- admin */

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: clamp(28px, 5vw, 48px) 0 18px;
}
.admin-head h1 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 0.9;
  margin: 0;
  text-shadow: 3px 3px 0 var(--shadow-brown);
}
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: none;
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
}
.tab:hover {
  color: var(--ink);
}
.tab[aria-selected='true'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.badge {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.badge.alert {
  background: var(--danger);
  color: #fff;
}

.rows {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 20px;
}
.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row-main strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
}
.row-main .pill {
  margin: 0 0 0 8px;
  vertical-align: 2px;
}
.row-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.row-note {
  margin: 8px 0 0;
  padding: 8px 12px;
  background: var(--paper);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
}
.row-thumb {
  width: 64px;
  height: 64px;
  border-radius: 3px;
  object-fit: cover;
  background: var(--paper-deep);
}
@media (max-width: 700px) {
  .row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .row-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

.admin-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.admin-agenda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: start;
}
@media (max-width: 900px) {
  .admin-agenda {
    grid-template-columns: 1fr;
  }
}
.poster-preview {
  width: 160px;
  border-radius: 3px;
  box-shadow: var(--lift);
  margin-top: 8px;
}
.list-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.list-title:not(:first-child) {
  margin-top: 26px;
}
.row-thumb.icon-thumb {
  display: grid;
  place-items: center;
  color: var(--slate);
}
.row-thumb.icon-thumb svg {
  width: 28px;
  height: 28px;
}

.temp-password {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  padding: 12px 16px;
  text-align: center;
  margin: 14px 0;
  user-select: all;
}

/* ---------------------------------------------------------------- dialogs, toast */

dialog.modal {
  border: 0;
  border-radius: 10px;
  padding: 28px;
  width: min(100% - 32px, 500px);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(30, 20, 10, 0.5);
}
dialog.modal::backdrop {
  background: rgba(29, 26, 23, 0.45);
}
dialog.modal h2 {
  font-size: 1.5rem;
}
dialog.modal p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}
dialog.modal .btn-row {
  justify-content: end;
  margin-top: 6px;
}

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible;
}
dialog.lightbox::backdrop {
  background: rgba(24, 20, 16, 0.9);
}
dialog.lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  border-radius: 2px;
  cursor: zoom-out;
}
dialog.lightbox .close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(253, 244, 235, 0.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 4px;
  font-family: var(--cond);
  font-size: 1.05rem;
  z-index: 200;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
  max-width: calc(100% - 32px);
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

@media (max-width: 640px) {
  body::before,
  body::after {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.flush-top {
  padding-top: 0;
}
.btn-block {
  width: 100%;
}
