:root {
  --accent: #ed552f;
  --black: #111;
  --muted: #666;
  --paper: rgba(255, 255, 255, 0.94);
  --facebook: #1877f2;
  --instagram: #c13584;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--black);
  background: #fff;
}

a {
  color: inherit;
}

.background-portrait {
  position: fixed;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: min(62vh, 760px);
  background-image: url("./unaseraconlucio_bg1.jpg");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: min(100%, 1920px) auto;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 230px;
  align-items: flex-start;
  justify-content: center;
  padding: 2.2rem clamp(1rem, 4vw, 4rem) 1rem;
}

.brand {
  display: block;
  width: min(540px, 62vw);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.top-links {
  position: absolute;
  top: 1.2rem;
  right: clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  color: #333;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.top-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.top-link:hover,
.top-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.top-link--facebook {
  color: var(--facebook);
}

.top-link--page {
  color: var(--accent);
}

.top-link:focus-visible,
.social-link:focus-visible,
.member-sources a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.content-column {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  min-height: calc(100vh - 230px);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2.5rem) clamp(18rem, 38vh, 30rem);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    rgba(255, 255, 255, 0.9) 62%,
    rgba(255, 255, 255, 0) 100%
  );
}

.events-section {
  width: 100%;
}

.project-introduction {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.project-introduction h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.project-introduction__text {
  max-width: 720px;
  margin: 1.35rem auto 0;
  color: #3f3f3f;
  font-size: 0.98rem;
  line-height: 1.7;
}

.project-introduction__text p {
  margin: 0;
}

.project-introduction__text p + p {
  margin-top: 0.9rem;
}

.band-section {
  width: 100%;
}

.section-heading {
  margin-bottom: 1.6rem;
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-rule {
  display: block;
  width: 54px;
  height: 4px;
  margin: 0.75rem auto 0;
  background: var(--accent);
}

.band-introduction {
  max-width: 680px;
  margin: 1.2rem auto 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.content-column--band {
  padding-bottom: clamp(18rem, 38vh, 30rem);
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.member-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.11);
}

.member-monogram {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 3px solid var(--black);
  color: var(--accent);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.member-content {
  min-width: 0;
}

.member-content h2 {
  margin: 0.15rem 0 0.65rem;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.member-content > p:not(.member-role) {
  margin: 0;
  color: #3e3e3e;
  font-size: 0.83rem;
  line-height: 1.55;
}

.member-role {
  margin: 0;
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.member-sources a {
  padding: 0.32rem 0.55rem;
  border: 1px solid #ccc;
  border-radius: 999px;
  color: #555;
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.member-sources a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.research-note {
  max-width: 700px;
  margin: 1.5rem auto 0;
  color: #555;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

.research-note a {
  color: var(--accent);
  font-weight: 700;
}

.events-list {
  display: grid;
  gap: 1.25rem;
}

.events-status {
  margin: 0;
  padding: 2rem;
  border: 1px solid #ddd;
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
}

.event-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding: 1rem clamp(1rem, 2.8vw, 1.75rem) 1rem 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13);
}

.event-card--past {
  opacity: 0.48;
}

.event-date {
  display: flex;
  min-height: 165px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--black);
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.event-weekday {
  margin-bottom: 0.1rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: capitalize;
}

.event-day {
  font-size: 4.7rem;
  letter-spacing: -0.08em;
}

.event-month {
  margin-top: 0.15rem;
  font-size: 1rem;
  font-weight: 900;
}

.event-year {
  margin-top: 0.15rem;
  font-size: 1rem;
  font-weight: 900;
}

.event-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.event-details p,
.event-details h3 {
  margin: 0;
}

.event-intro {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
}

.event-location {
  margin-top: 0.25rem !important;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 800;
}

.event-city {
  font-size: clamp(1.45rem, 3.5vw, 2.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.event-time {
  margin-top: 0.45rem !important;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  text-transform: uppercase;
}

.event-time span {
  white-space: nowrap;
  text-transform: none;
}

.event-time strong {
  font-size: 1.35em;
}

.event-notes {
  margin-top: 0.85rem !important;
  color: #333;
  font-size: 0.67rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.event-band {
  grid-column: 1 / -1;
  width: auto;
  margin:
    -0.25rem calc(clamp(1rem, 2.8vw, 1.75rem) * -1)
    -1rem -1rem;
  padding: 0.55rem 0.75rem;
  background: #f0f0f0;
  text-align: right;
}

.event-band-toggle {
  padding: 0;
  border: 0;
  color: #333;
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.event-band-toggle:hover,
.event-band-toggle:focus-visible {
  color: var(--accent);
}

.event-band-toggle:focus-visible {
  outline: 3px solid rgba(237, 85, 47, 0.28);
  outline-offset: 2px;
}

.event-band--open .event-band-toggle {
  color: var(--accent);
}

.event-band-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 260ms ease,
    opacity 200ms ease;
}

.event-band--open .event-band-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.event-band-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.event-band-list {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
  list-style: none;
  text-align: right;
}

.event-band-list li {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.3;
}

.event-band-list li strong {
  font-weight: 800;
}

.event-band-list li span::before {
  content: "– ";
}

.event-socials {
  display: flex;
  min-height: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0;
}

.event-socials:not(:empty) {
  margin-top: 0.9rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.social-link--facebook {
  background: var(--facebook);
}

.social-link--instagram {
  background: var(--instagram);
}

.social-link:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}

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

@media (max-width: 900px) {
  .site-header {
    min-height: 215px;
    padding-top: 4.7rem;
  }

  .brand {
    width: min(520px, 88vw);
  }

  .top-links {
    top: 0.8rem;
    right: 0.8rem;
  }

  .content-column {
    min-height: calc(100vh - 215px);
  }

  .band-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .background-portrait {
    height: 46vh;
    background-size: auto 100%;
  }

  .site-header {
    min-height: 190px;
    padding: 4.8rem 0.8rem 0.75rem;
  }

  .top-links {
    right: 0.6rem;
    left: 0.6rem;
    justify-content: flex-end;
    gap: 0.4rem;
  }

  .top-link {
    min-height: 38px;
    padding: 0.5rem 0.65rem;
    font-size: 0.68rem;
  }

  .top-link:first-child span {
    max-width: none;
  }

  .top-link:nth-child(2) span {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content-column {
    width: calc(100% - 1rem);
    min-height: calc(100vh - 190px);
    padding: 0.75rem 0.6rem 15rem;
    border-radius: 18px 18px 0 0;
  }

  .section-heading {
    margin-bottom: 1rem;
  }

  .project-introduction {
    margin-bottom: 2.5rem;
  }

  .project-introduction__text {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .band-introduction {
    font-size: 0.82rem;
  }

  .member-card {
    grid-template-columns: 60px 1fr;
    gap: 0.8rem;
    padding: 1rem;
  }

  .member-monogram {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .member-content h2 {
    font-size: 1.08rem;
  }

  .member-content > p:not(.member-role) {
    font-size: 0.76rem;
  }

  .event-card {
    grid-template-columns: 90px 1fr;
    gap: 0.7rem;
    padding: 0.7rem;
  }

  .event-date {
    min-height: 135px;
    border-width: 3px;
  }

  .event-weekday,
  .event-month,
  .event-year {
    font-size: 0.72rem;
  }

  .event-day {
    font-size: 3.25rem;
  }

  .event-intro {
    font-size: 0.7rem;
  }

  .event-location {
    font-size: 1rem;
  }

  .event-city {
    font-size: 1.18rem;
  }

  .event-time {
    font-size: 0.72rem;
  }

  .event-notes {
    font-size: 0.52rem;
  }

  .event-band {
    margin: 0 -0.7rem -0.7rem;
  }

  .event-band-toggle {
    font-size: 0.58rem;
  }

  .event-band-list {
    padding: 0.65rem 0.15rem;
  }

  .event-band-list li {
    display: block;
    font-size: 0.65rem;
  }

  .event-band-list li span {
    display: block;
  }

  .event-band-list li span::before {
    content: "";
  }
}

@media (max-width: 390px) {
  .top-link:nth-child(2) span {
    display: none;
  }

  .event-card {
    grid-template-columns: 80px 1fr;
  }

  .event-day {
    font-size: 2.8rem;
  }
}
