:root {
  --bg-page: #fff4ed;
  --bg-card: #c9dcf9;
  --bg-section-alt: #f9c9e2;

  --accent-primary: #ffb0d9;
  --accent-primary-hover: #f598c8;
  --accent-secondary: #b0cfff;
  --accent-secondary-hover: #96beff;

  --text-primary: #1e2538;
  --text-secondary: #525d73;
  --text-on-accent: #1e2538;
  --border-subtle: #f9c9e2;
  --rail-width: 4.75rem;
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  padding-left: var(--rail-width);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
.logo {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
}

.logo {
  font-size: 1.5rem;
}

/* Site navigation */
.site-bar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: var(--rail-width);
  padding: 1rem 0;
  background: var(--bg-card);
}

.site-brand {
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-bar .site-brand {
  writing-mode: vertical-rl;
  white-space: nowrap;
}

.menu-toggle,
.menu-close {
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.menu-toggle {
  gap: 4px;
}

.menu-toggle span {
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.menu-close {
  font-size: 2rem;
  line-height: 1;
}

.site-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(26rem, 100%);
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 4vw, 2rem);
  overflow-y: auto;
  border: 0;
  background: var(--bg-section-alt);
  box-shadow: 8px 0 24px rgb(30 37 56 / 15%);
}

.menu-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.menu-heading .site-brand {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.menu-links a {
  display: block;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgb(30 37 56 / 20%);
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.menu-toggle:hover,
.menu-close:hover,
.menu-links a:hover,
.menu-links a:focus-visible {
  background: var(--bg-page);
}

/* Hero */
.hero {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: var(--accent-secondary);
  color: var(--text-on-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  margin-bottom: 16px;
  font-size: 2.75rem;
  line-height: 1.2;
}

.hero p {
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Buttons and links styled as buttons */
.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  color: var(--text-on-accent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent-primary);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
}

.btn-secondary {
  background-color: var(--accent-secondary);
}

.btn-secondary:hover {
  background-color: var(--accent-secondary-hover);
}

/* Homepage and music cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.card {
  padding: 28px;
  border: 2px solid var(--border-subtle);
  border-radius: 16px;
  background-color: var(--bg-card);
}

.card-alt {
  background-color: var(--bg-section-alt);
}

.card h2,
.card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.card p {
  color: var(--text-secondary);
}

.card ul {
  padding-left: 1.25rem;
}

.release-feature {
  grid-column: 1 / -1;
}

/* Footer */
.footer {
  padding: 24px;
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
}

/* Switch the closed navigation rail to a top bar on narrow screens. */
@media (max-width: 42rem) {
  html {
    scroll-padding-top: 4.5rem;
  }

  body {
    padding-left: 0;
  }

  .site-bar {
    position: sticky;
    inset: 0 auto auto;
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 1rem;
  }

  .site-bar .site-brand {
    writing-mode: horizontal-tb;
  }
}
.footer {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.footer-links a {
  color: var(--text-primary);
  text-underline-offset: 0.2em;
}

.social-links:empty {
  display: none;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-page);
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--accent-secondary);
}

.social-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-menu .social-links {
  justify-content: flex-start;
  margin-top: 1.25rem;
}

/* Keep the existing click area and remove the background circles. */
.social-links a,
.social-links a:hover,
.social-links a:focus-visible {
  background: transparent;
}

.social-links img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(32%) sepia(100%) hue-rotate(180deg);
  transition: filter 150ms ease;
}

.social-links a:hover img,
.social-links a:focus-visible img {
  filter: brightness(0) invert(26%) sepia(100%) hue-rotate(280deg)
    saturate(300%);
}
/* Discography release card */
.release-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 420px;
  padding: clamp(1rem, 4vw, 1.75rem);
  justify-self: center;
  align-self: start;
}

.release-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
}

.release-details h2 {
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.release-preview iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 10px;
}

.release-card .btn-primary {
  justify-self: start;
  margin: 0;
  text-align: center;
}

.release-feature,
#new-releases {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.new-releases-hero {
  margin: clamp(2rem, 6vw, 3.5rem) auto 1.5rem;
}

.new-releases-hero h1 {
  margin-bottom: 0;
}

.new-releases-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}

.editor-form {
  display: grid;
  gap: 0.5rem;
  max-width: 24rem;
}

.editor-form input, .editor-form select {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--text-secondary);
  border-radius: 8px;
  font: inherit;
}

.editor-form button,
#sign-out-button {
  justify-self: start;
  margin-top: 0.75rem;
}

.gig-editor {
  margin-top: 1.5rem;
}

.gig-fields {
  border: 0;
  min-width: 0;
}

#gig-status {
  margin-top: 0.75rem;
}

.info-page-content {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.contact-form {
  margin-top: 1rem;
}

.contact-form textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--text-secondary);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.preview-link {
  margin-top: 0.75rem;
}

.preview-link a {
  color: var(--text-primary);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.hero-flower {
  display: block;
  width: 40px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 10px auto;
  background-color: var(--accent-secondary);

  -webkit-mask: url("images/maye-flower.png") center / contain no-repeat;
  mask: url("images/maye-flower.png") center / contain no-repeat;
}

/* Shared layout and typography */
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito", sans-serif;
}

[hidden] {
  display: none !important;
}

body > header,
body > main,
body > footer {
  flex-shrink: 0;
}

.cards-container {
  width: 100%;
}

h1,
h2,
h3,
.logo {
  font-family: "Quicksand", sans-serif;
}

.btn-primary,
.btn-secondary {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}

/* Separate colours for the rail, open menu, and footer */
.site-bar {
  background-color: var(--bg-card);
  border-right: 1px solid rgb(30 37 56 / 12%);
}

.site-menu {
  background-color: var(--bg-section-alt);
}

.footer {
  margin-top: auto;
  padding: 32px 24px;
  background-color: #e5daf3;
  border-top: 1px solid rgb(30 37 56 / 12%);
}

/* Slide and fade when the menu opens */
.site-menu:popover-open {
  animation: menu-enter 240ms ease-out;
}

.site-menu::backdrop {
  background-color: rgb(30 37 56 / 18%);
}

@keyframes menu-enter {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-links a {
  border-radius: 8px;
  transition:
    background-color 160ms ease,
    padding-left 160ms ease;
}

.menu-links a:hover,
.menu-links a:focus-visible {
  padding-left: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--text-primary);
  outline-offset: 4px;
}

@media (max-width: 42rem) {
  .site-bar {
    border-right: 0;
    border-bottom: 1px solid rgb(30 37 56 / 12%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu:popover-open {
    animation: none;
  }

  .menu-links a {
    transition: none;
  }
}

#gigs-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin-top: 1rem;
  list-style: none;
}

.gig-card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgb(30 37 56 / 15%);
  border-radius: 18px;
  background: var(--bg-page);
  box-shadow: 0 4px 12px rgb(30 37 56 / 5%);
}

.gig-date {
  display: grid;
  justify-items: center;
  overflow: hidden;
  border: 1px solid rgb(30 37 56 / 12%);
  border-radius: 12px;
  background: white;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  text-align: center;
}

.gig-month {
  width: 100%;
  padding: 0.2rem;
  background: var(--accent-primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.gig-day {
  padding-top: 0.3rem;
  font-size: 1.9rem;
  line-height: 1.2;
}

.gig-year {
  padding-bottom: 0.3rem;
  font-size: 0.75rem;
}

.gig-details {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gig-details h3 {
  margin-bottom: 0.2rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.gig-time {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.gig-poster {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 10px;
}

.gig-ticket {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.discography-content {
  width: 100%;
}

.featured-appearances > h2 {
  text-align: center;
}

.external-link-icon {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.35em;
  vertical-align: -0.1em;
}

.social-links a {
  position: relative;
}

.social-links .external-link-icon {
  display: none;
}

.hero.home-hero {
  display: grid;
  align-items: end;
  width: 100%;
  max-width: none;
  min-height: clamp(30rem, 80svh, 54rem);
  margin: 0;
  padding: clamp(1.5rem, 5vw, 4rem);
  background-color: var(--text-primary);
  background-image:
    linear-gradient(
      to top,
      rgb(30 37 56 / 85%),
      rgb(30 37 56 / 10%) 70%
    ),
    url("images/maye-hero.jpg");
  background-size: cover;
  background-position: center center, center 40%;
  color: var(--bg-page);
  text-align: left;
}

.home-hero-content {
  max-width: 40rem;
}

.home-hero h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
}

.home-hero .hero-flower {
  width: 48px;
  margin: 16px 0;
  background-color: var(--accent-primary);
}

.home-hero p {
  margin-bottom: 0;
  color: var(--bg-page);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

body {
  background-color: var(--bg-page);

  background-image:
    radial-gradient(
      circle,
      rgb(82 93 115 / 10%) 1px,
      transparent 1px
    ),
    radial-gradient(
      ellipse at 5% 25%,
      rgb(249 201 226 / 55%),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 95% 75%,
      rgb(176 207 255 / 55%),
      transparent 55%
    );

  background-size:
    22px 22px,
    100% 100%,
    100% 100%;

  background-repeat:
    repeat,
    no-repeat,
    no-repeat;
}
.site-bar,
.site-menu,
.footer {
  background-image:
    radial-gradient(
      circle,
      rgb(82 93 115 / 10%) 1px,
      transparent 1px
    );

  background-size: 22px 22px;
  background-repeat: repeat;
}

.hero:not(.home-hero)::after {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin: 24px auto 0;

  background-color: var(--accent-primary-hover);

  -webkit-mask:
    url("images/maye-flower.png") center / contain no-repeat;

  mask:
    url("images/maye-flower.png") center / contain no-repeat;
}