/* 4DaBrothers site styles
   Palette comes from the logo and the existing site: flame orange, amber,
   Morris Brown purple, and the soft sage background. */

:root {
  --ink: #16121a;
  --ink-soft: #4a4452;
  --purple: #3a1d6e;
  --purple-deep: #24103f;
  --purple-tint: #ebe5f4;
  --flame: #f25c19;
  --flame-deep: #d4470a;
  --amber: #f4a91f;
  --sage: #eef1ea;
  --paper: #fafbf7;
  --line: #d5dacd;
  --logo-bg: #202020; /* exact background color of the logo file, so it blends in */

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.8rem, 1.6rem + 5.2vw, 5.4rem);

  --radius: 4px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 72rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--purple);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--purple-deep);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.on-dark :focus-visible,
.site-header :focus-visible {
  outline-color: var(--amber);
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

[hidden] {
  display: none !important;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}

.btn-outline:hover {
  background: var(--purple-tint);
  color: var(--purple-deep);
}

.btn-donate {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.btn-donate:hover {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: var(--purple-deep);
  border-color: var(--purple-deep);
  color: #fff;
}

.btn-outline-ink {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline-ink:hover {
  background: var(--ink);
  color: #fff;
}

.btn-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-light:hover {
  background: #fff;
  color: var(--purple-deep);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--logo-bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.5rem;
}

.brand {
  display: block;
  line-height: 0;
}

.brand-logo {
  width: auto;
  height: 3.25rem;
}

@media (min-width: 56rem) {
  .brand-logo {
    height: 4rem;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: var(--radius);
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  display: inline-block;
  padding: 0.5rem 0.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  border-bottom-color: var(--flame);
  color: #fff;
}

html:not(.js) .site-nav {
  flex-basis: 100%;
}

@media (max-width: 55.99rem) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--logo-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .site-nav li {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .js .site-nav a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 0;
  }

  .js .site-nav a:not(.btn)[aria-current="page"] {
    color: var(--amber);
  }

  .js .site-nav li:last-child {
    border-top: 0;
    padding-top: 1rem;
  }

  .js .site-nav .btn {
    width: 100%;
  }
}

/* ---------- Hero (home): full-width photo with text over it ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 78vh, 46rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  color: #fff;
  background: var(--purple-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 10, 30, 0.9) 0%, rgba(18, 10, 30, 0.62) 45%, rgba(18, 10, 30, 0.2) 100%);
}

@media (min-width: 56rem) {
  .hero {
    align-items: center;
    background: #18102a;
  }

  /* Photo fills the right side so the whole group fits, and fades into the dark panel behind the text */
  .hero-bg {
    left: auto;
    right: 0;
    width: 66%;
    object-position: 50% 0%;
  }

  .hero::after {
    background: linear-gradient(90deg, #18102a 0%, #18102a 34%, rgba(24, 16, 42, 0.72) 41%, rgba(24, 16, 42, 0.18) 58%, rgba(24, 16, 42, 0) 78%);
  }
}

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

.hero-title {
  max-width: 11ch;
  margin-bottom: 0.45em;
  font-size: var(--step-4);
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-lede {
  max-width: 30ch;
  margin-bottom: 0;
  font-size: var(--step-1);
  line-height: 1.35;
  color: #f1ecf7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero .btn-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.hero .btn-outline:hover {
  color: var(--ink);
  background: #fff;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section-title {
  max-width: 20ch;
  font-size: var(--step-3);
}

.section-lede {
  max-width: 44ch;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink-soft);
}

.section-sage {
  background: var(--sage);
}

/* Mission */

.mission-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56rem) {
  .mission-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.mission-statement {
  max-width: 24ch;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.mission-text {
  max-width: 48ch;
  color: var(--ink-soft);
}

.focus-title {
  font-size: var(--step-1);
}

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

.focus-list li {
  margin-bottom: 0.75rem;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 5px solid var(--flame);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.2;
}

/* Services index */

.service-index {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.service-index li {
  border-bottom: 1px solid var(--line);
}

.service-link {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1.4rem 0.5rem;
  color: inherit;
  text-decoration: none;
}

@media (min-width: 48rem) {
  .service-link {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: baseline;
  }
}

.service-name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.1;
  color: var(--purple);
}

.service-desc {
  color: var(--ink-soft);
}

.service-link:hover {
  background: var(--purple-tint);
  color: inherit;
}

.service-link:hover .service-name {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}

/* Manifesto: the letters spell BROTHERS */

.manifesto {
  background: var(--purple-deep);
  color: #fff;
}

.manifesto .section-title {
  color: #fff;
}

.manifesto-intro {
  max-width: 40ch;
  font-size: var(--step-1);
  line-height: 1.4;
  color: #ddd5ee;
}

.manifesto-list {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.manifesto-item {
  display: grid;
  grid-template-columns: clamp(4.25rem, 14vw, 9rem) minmax(0, 1fr);
  gap: 0.5rem clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.manifesto-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(4.25rem, 14vw, 9rem);
  line-height: 0.85;
  color: var(--flame);
}

.manifesto-word {
  margin: 0 0 0.2rem;
  font-size: var(--step-1);
  color: var(--amber);
}

.manifesto-text {
  max-width: 54ch;
  margin: 0;
  color: #fff;
}

.manifesto-action {
  margin-top: 2.5rem;
}

/* Events */

.events-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.event {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  align-items: start;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.25rem;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1;
}

.event-month {
  font-size: 0.9rem;
  font-weight: 700;
}

.event-day {
  font-size: 2rem;
  font-weight: 900;
}

.event-title {
  margin-bottom: 0.3rem;
  font-size: var(--step-1);
}

.event-meta {
  margin: 0;
  color: var(--ink-soft);
}

.event-note {
  margin: 0.4rem 0 0;
  font-style: italic;
}

.event-action {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.5rem;
}

@media (min-width: 48rem) {
  .event {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    align-items: center;
  }

  .event-action {
    grid-column: auto;
    margin-top: 0;
  }
}

.events-empty {
  max-width: 46ch;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--sage);
  border-left: 5px solid var(--amber);
}

.events-empty p:last-child {
  margin-bottom: 0;
}

.section-link {
  margin-top: 1.75rem;
}

/* Ways to get involved */

.paths-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 56rem) {
  .paths-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .path-primary {
    grid-row: span 2;
  }
}

.path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 2px solid var(--ink);
  background: var(--paper);
}

.path-title {
  font-size: var(--step-2);
}

.path p {
  max-width: 40ch;
}

.path .btn {
  margin-top: auto;
}

.path-primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.path-primary .path-title {
  font-size: var(--step-3);
}

.path-primary p {
  font-size: var(--step-1);
  line-height: 1.4;
  color: #ece6f6;
}

.sisters {
  max-width: 52rem;
  margin-top: 3rem;
  padding-left: 1.5rem;
  border-left: 6px solid var(--amber);
}

.sisters h3 {
  font-size: var(--step-1);
}

.sisters p:last-child {
  margin-bottom: 0;
}

/* Donate band */

.band {
  background: var(--amber);
  color: var(--ink);
}

.band-title {
  max-width: 18ch;
  font-size: var(--step-3);
}

.band-text {
  max-width: 44ch;
  font-size: var(--step-1);
  line-height: 1.4;
}

.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--sage);
  border-bottom: 1px solid var(--line);
}

.page-title {
  max-width: 16ch;
  margin-bottom: 0.4em;
  font-size: var(--step-4);
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.page-lede {
  max-width: 40ch;
  margin-bottom: 0;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink-soft);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: var(--step-2);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.divided > section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.divided > section:last-child {
  border-bottom: 0;
}

.service-block {
  display: grid;
  gap: 1rem 4rem;
}

@media (min-width: 56rem) {
  .service-block {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

.service-block h2 {
  margin: 0;
  font-size: var(--step-3);
  color: var(--purple);
}

.service-block p {
  max-width: 46ch;
}

.contact-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 0.9rem;
}

.contact-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink-soft);
}

.contact-value {
  font-size: var(--step-1);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.donate-options {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.legal {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: var(--step-1);
}

.legal-updated {
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Forms ---------- */

.form {
  max-width: 34rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.field-hint {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

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

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 5px solid var(--purple);
  background: var(--purple-tint);
}

.form-status.is-error {
  border-left-color: var(--flame-deep);
  background: #fdeee6;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3.5rem 2rem;
  background: var(--logo-bg);
  color: #e6e1ec;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  width: auto;
  height: 4rem;
  margin-bottom: 1rem;
}

.footer-heading {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--amber);
}

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

.footer-list li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--step--1);
  color: #c9c2d2;
}

.footer-base p {
  margin: 0;
}

/* ---------- Motion ---------- */

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

  * {
    transition: none !important;
  }
}


/* ---------- Photos ---------- */

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

.photo {
  margin: 0;
  background: var(--sage);
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-pair {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .photo-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery .photo,
.gallery .photo img {
  height: 100%;
}

.gallery .photo img {
  aspect-ratio: 4 / 3;
}

.service-photo {
  max-width: 34rem;
  margin-top: 1.75rem;
}

.photo-wide img {
  aspect-ratio: 2.16 / 1;
}

/* ---------- Donate QR codes ---------- */

.path-qr .qr {
  width: min(100%, 13rem);
  height: auto;
  margin-top: 0.5rem;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
}

.path-qr .qr-pixel {
  image-rendering: pixelated;
}

/* ---------- Events: view toggle and calendar ---------- */

.events-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.events-head .section-title {
  margin: 0;
}

.view-toggle {
  display: none;
}

.js .view-toggle {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.view-btn {
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 0;
  cursor: pointer;
}

.view-btn + .view-btn {
  border-left: 2px solid var(--ink);
}

.view-btn[aria-pressed="true"] {
  color: #fff;
  background: var(--purple);
}

.view-btn:focus-visible {
  outline-offset: -4px;
}

.view-calendar .list-only {
  display: none;
}

.calendar {
  margin-top: 2rem;
}

.cal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.cal-title {
  margin: 0;
  font-size: var(--step-2);
}

.cal-navs {
  display: flex;
  gap: 0.5rem;
}

.cal-nav {
  min-height: 2.75rem;
  padding-inline: 1rem;
  cursor: pointer;
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.cal-table th {
  padding: 0.5rem 0.25rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: var(--purple);
}

.cal-table td {
  height: 3.25rem;
  padding: 0.3rem;
  vertical-align: top;
  border: 1px solid var(--line);
}

.cal-empty {
  background: var(--sage);
}

.cal-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
}

.cal-table td.is-today {
  background: #fff6e0;
  box-shadow: inset 0 0 0 2px var(--amber);
}

.cal-chip {
  position: relative;
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0.2rem auto 0;
  border-radius: 50%;
  background: var(--flame);
  text-decoration: none;
}

.cal-chip.is-past {
  background: var(--ink-soft);
}

.cal-chip-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .cal-table td {
    height: 6rem;
    padding: 0.4rem;
  }

  .cal-chip {
    width: auto;
    height: auto;
    margin: 0.25rem 0 0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: var(--purple);
  }

  .cal-chip.is-past {
    background: var(--ink-soft);
  }

  .cal-chip-text {
    position: static;
    display: -webkit-box;
    width: auto;
    height: auto;
    overflow: hidden;
    clip: auto;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

.cal-list-title {
  margin: 2.5rem 0 0;
  font-size: var(--step-1);
}

.cal-none {
  margin-top: 1rem;
}

.signup-form,
#signup .form {
  max-width: 34rem;
}

/* Homepage video */
.video-wrap { display: grid; gap: 1.5rem; align-items: center; }
.video-frame { max-width: 34rem; width: 100%; margin-inline: auto; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; background: #18102a; border-radius: .5rem; }
@media (min-width: 56rem) {
  .video-wrap { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* After-school school list */
.school-heading { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
.school-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .4rem .5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.school-list li { padding: .5rem .75rem; background: #fff; border-left: 3px solid #f25c19; border-radius: .25rem; }

/* Event flyer */
.event-flyer { display: block; margin-top: .9rem; max-width: 15rem; border-radius: .35rem; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.event-flyer img { display: block; width: 100%; height: auto; }

/* Event photo albums */
.event-album { margin-top: .9rem; }
.album-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.album-thumb { padding: 0; border: 0; background: none; cursor: pointer; border-radius: .3rem; overflow: hidden; width: 5.5rem; height: 5.5rem; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.album-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-thumb:hover img { transform: scale(1.05); }
.album-thumb img { transition: transform .2s; }
.album-thumb:focus-visible, .album-all:focus-visible { outline: 3px solid #f4a91f; outline-offset: 2px; }
.photo-viewer { border: 0; padding: 0; width: min(96vw, 60rem); max-height: 94vh; background: #18102a; color: #fff; border-radius: .5rem; }
.photo-viewer::backdrop { background: rgba(10,6,20,.85); }
.pv-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; }
.pv-title { margin: 0; font-weight: 700; }
.pv-close { background: #f4a91f; color: #16121a; border: 0; border-radius: .3rem; padding: .5rem 1rem; font-weight: 700; cursor: pointer; }
.pv-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 .5rem; }
.pv-img { max-width: 100%; max-height: 72vh; width: auto; height: auto; object-fit: contain; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.pv-prev { left: .75rem; } .pv-next { right: .75rem; }
.pv-nav[hidden] { display: none; }
.pv-count { margin: 0; padding: .6rem 1rem .9rem; text-align: center; opacity: .85; }

/* Partner (MBK Fort Worth) */
.partner-card { max-width: 46rem; padding: 1.75rem; background: #fff; border-left: 5px solid #f25c19; border-radius: .35rem; box-shadow: 0 1px 8px rgba(0,0,0,.12); }
.partner-card .section-title { margin-top: 0; }
.partner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.partner-more { font-weight: 600; }
.partner-note { margin-top: 1rem; }
.partner-card { max-width: 52rem; }
.partner-card .section-title { font-size: clamp(1.4rem, 3.2vw, 1.9rem); max-width: none; }
