:root {
  --bl-ink: #141414;
  --bl-gold: #f2b92b;
  --bl-gold-soft: #fdf3d7;
  --bl-paper: #faf8f3;
  --bl-card: #ffffff;
  --bl-muted: #5f5b53;
  --bl-line: #e7e1d3;
  --bl-green: #1f7a4d;
  --bl-green-soft: #e3f3ea;
  --bl-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --bl-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bl-paper);
  color: var(--bl-ink);
  font-family: var(--bl-sans);
  line-height: 1.5;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--bl-serif);
  line-height: 1.2;
}

/* Header */

.bl-hero {
  background: var(--bl-ink);
  color: #fff;
  border-bottom: 6px solid var(--bl-gold);
  padding: 32px 0 28px;
}

.bl-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.bl-crest {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
}

.bl-motto {
  margin: 0;
  color: var(--bl-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bl-hero h1 {
  margin: 2px 0 4px;
  font-size: 2.6rem;
  letter-spacing: 0.3em;
}

.bl-subtitle {
  margin: 0;
  color: #d9d4c7;
  font-size: 0.95rem;
}

.bl-account {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 0 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #d9d4c7;
}

.bl-account .bl-link-button {
  color: var(--bl-gold);
}

/* Layout */

.bl-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Committee banner */

.bl-committee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--bl-ink);
  color: #fff;
  box-shadow: inset 4px 0 0 var(--bl-gold);
}

.bl-committee h2 {
  margin: 0 0 2px;
  font-size: 1.2rem;
}

.bl-committee p {
  margin: 0;
  color: #d9d4c7;
  font-size: 0.9rem;
}

.bl-committee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bl-button.bl-button-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.bl-button.bl-button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.bl-roster-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--bl-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Membership nudge */

.bl-membership {
  background: var(--bl-gold-soft);
  border: 1px solid #f0d98f;
  border-radius: 16px;
  padding: 22px 22px 18px;
}

.bl-membership h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.bl-membership p {
  margin: 0 0 16px;
  color: #3d382c;
}

.bl-steps {
  list-style: none;
  counter-reset: step;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #f0d98f;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 0.85rem;
  color: #3d382c;
}

.bl-steps li {
  counter-increment: step;
}

.bl-steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--bl-ink);
  color: var(--bl-gold);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Buttons */

.bl-button {
  display: inline-block;
  border: 2px solid var(--bl-ink);
  border-radius: 999px;
  background: var(--bl-ink);
  color: #fff;
  padding: 10px 20px;
  font: 600 0.95rem var(--bl-sans);
  text-decoration: none;
  cursor: pointer;
}

.bl-button:hover {
  background: #2c2c2c;
}

.bl-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.bl-button-gold {
  background: var(--bl-gold);
  border-color: var(--bl-gold);
  color: var(--bl-ink);
}

.bl-button-gold:hover {
  background: #e5aa17;
}

.bl-link-button {
  border: none;
  background: none;
  padding: 0;
  color: var(--bl-muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Sessions */

.bl-sessions > h2 {
  margin: 36px 0 4px;
  font-size: 1.6rem;
}

.bl-month {
  margin: 24px 0 10px;
  color: var(--bl-muted);
  font: 700 0.8rem var(--bl-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bl-session-list {
  display: grid;
  gap: 12px;
}

.bl-session {
  display: flex;
  gap: 16px;
  background: var(--bl-card);
  border: 1px solid var(--bl-line);
  border-radius: 14px;
  padding: 16px;
}

.bl-date {
  flex-shrink: 0;
  width: 64px;
  height: 76px;
  border-radius: 10px;
  background: var(--bl-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 0 var(--bl-gold);
}

.bl-date-dow,
.bl-date-month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9d4c7;
}

.bl-date-day {
  font-family: var(--bl-serif);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}

.bl-session-body {
  min-width: 0;
  flex: 1;
}

.bl-session h4 {
  margin: 2px 0 6px;
  font-size: 1.15rem;
}

.bl-meta {
  margin: 2px 0;
  color: var(--bl-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.bl-meta a {
  text-decoration: none;
}

.bl-meta a:hover {
  text-decoration: underline;
}

.bl-details {
  margin-top: 8px;
  font-size: 0.9rem;
}

.bl-details summary {
  cursor: pointer;
  color: var(--bl-muted);
  font-weight: 600;
}

.bl-details p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.bl-action {
  margin-top: 12px;
}

.bl-status {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.bl-status-note {
  margin: 6px 0 0;
  color: var(--bl-muted);
  font-size: 0.8rem;
}

.bl-status-waitlisted {
  background: var(--bl-gold-soft);
  color: #6b4e00;
}

.bl-status-confirmed {
  background: var(--bl-green-soft);
  color: var(--bl-green);
}

.bl-empty {
  background: var(--bl-card);
  border: 1px dashed var(--bl-line);
  border-radius: 14px;
  padding: 24px;
  color: var(--bl-muted);
  text-align: center;
}

/* Registration dialog */

.bl-dialog {
  width: min(440px, calc(100vw - 32px));
  border: none;
  border-radius: 16px;
  padding: 30px 24px 24px;
  color: var(--bl-ink);
  box-shadow:
    inset 0 6px 0 var(--bl-gold),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

.bl-dialog::backdrop {
  background: rgba(20, 20, 20, 0.6);
}

.bl-dialog h2 {
  margin: 0 32px 12px 0;
  font-size: 1.35rem;
}

.bl-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bl-paper);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.bl-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bl-form label {
  font-size: 0.85rem;
  font-weight: 600;
}

.bl-form input {
  border: 1px solid var(--bl-line);
  border-radius: 10px;
  padding: 12px;
  font: 1rem var(--bl-sans);
}

.bl-form input:focus {
  outline: 2px solid var(--bl-gold);
  border-color: var(--bl-gold);
}

.bl-form .bl-button {
  margin-top: 8px;
}

.bl-form .bl-link-button {
  align-self: center;
  margin-top: 4px;
}

.bl-form-error {
  color: #a3261b;
  font-weight: 600;
}

/* Footer */

.bl-footer {
  border-top: 1px solid var(--bl-line);
  padding: 24px 16px 32px;
  text-align: center;
  color: var(--bl-muted);
  font-size: 0.9rem;
}

.bl-footer p {
  margin: 4px 0;
}

.bl-legal {
  font-size: 0.8rem;
}

@media (max-width: 520px) {
  .bl-hero {
    padding: 24px 0 22px;
  }

  .bl-crest {
    width: 72px;
    height: 72px;
  }

  .bl-hero h1 {
    font-size: 2rem;
  }

  .bl-subtitle {
    font-size: 0.85rem;
  }

  .bl-steps {
    grid-template-columns: 1fr;
  }

  .bl-committee {
    flex-direction: column;
    align-items: stretch;
  }

  .bl-membership .bl-button {
    display: block;
    text-align: center;
  }

  .bl-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .bl-steps li::before {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}
