/* Colours match the old Squarespace theme */
:root {
  --light: #e0e0e0;
  --ink: #1f1f1f;
  --green: #5c7d59;
  --dark: #1f1f1f;
  --black: #000;
  --gutter: clamp(20px, 3vw, 44px);
  --font: "bilo", "Figtree", "Helvetica Neue", Arial, sans-serif;
  /* Headings grow with the window like the old Squarespace site:
     size = 1rem + (step × 1.2% of the window width), capped at an 1800px-wide window */
  --fluid: min(1.2vw, 21.6px);
  --h1: calc(2 * var(--fluid) + 1rem);
  --h2: calc(1 * var(--fluid) + 1rem);
  --h3: calc(.7 * var(--fluid) + 1rem);
  --h4: calc(.5 * var(--fluid) + 1rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--light);
  /* Same thinner text rendering on Macs as the old Squarespace site */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(60px, 8vw, 110px) 0; }
.band-light { background: var(--light); color: var(--ink); }
.band-green { background: var(--green); color: var(--light); }
.band-dark  { background: var(--dark);  color: var(--light); }
.band-black { background: var(--black); color: var(--light); padding: var(--gutter) 0; }

/* Header */
.site-header {
  position: relative;
  padding: 28px var(--gutter) 0;
  display: flex;
  justify-content: center;
  background: var(--light);
}
/* Fill below the last section with its colour on tall screens */
.page-bottom-dark { background: var(--dark); }
.page-bottom-black { background: var(--black); }
.theme-green, .theme-green .site-header { background: var(--green); color: var(--light); }
.social { position: absolute; left: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter))); top: 48px; display: flex; gap: 22px; }
.social a { display: block; width: 34px; height: 34px; }
.social svg { width: 100%; height: 100%; }
.brand { text-align: center; }
.site-title { font-size: max(1.5rem, var(--h4)); font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
.main-nav { display: flex; gap: 16px; justify-content: center; margin-top: 4px; font-size: 16px; }
.main-nav a { text-decoration: none; padding-bottom: 2px; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom: 1px solid currentColor; }

/* Home */
.bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 8vw, 120px); align-items: center; }
.headline { color: var(--green); font-size: max(24px, var(--h2)); margin-bottom: 1.2em; }
.intro { font-size: max(18px, var(--h4)); font-weight: 500; line-height: 1.3; }
.intro p { margin: 0 0 1.4em; }
.intro strong { font-weight: 700; }
.body p { margin: 0 0 1em; }
.bio-photo img { width: 100%; max-width: 620px; height: auto; margin-left: auto; }
.band:has(.video-wrap) { padding: clamp(36px, 4.5vw, 72px) 0; }
.video-wrap { display: flex; justify-content: center; }
.video-wrap video { width: min(60vw, 1040px, 100%); aspect-ratio: 16 / 9; background: #000; }
.listen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.listen-player { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.disco { width: 100%; max-width: 420px; height: 590px; border: 0; }
.button {
  display: inline-block; padding: 14px 28px; background: var(--green); color: var(--light);
  text-decoration: none; font-weight: 500;
}
.button:hover { filter: brightness(1.1); }
.contact-card { background: var(--black); padding: clamp(24px, 3vw, 40px); }
.contact-card h2 { font-size: max(28px, var(--h1)); margin-bottom: .6em; }
.contact-card h3 { color: #7fa279; font-size: max(20px, var(--h3)); margin: 1.2em 0 .6em; }
.contact-card p { margin: 0; }

/* Credits */
.credits { max-width: 1440px; }
.credits details { border-bottom: 1px solid #8a8a8a; }
.credits details:first-of-type { border-top: 1px solid #8a8a8a; }
.credits summary {
  list-style: none; cursor: pointer; padding: 30px 0; font-size: max(18px, var(--h4)); font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after { content: "+"; font-weight: 300; font-size: 22px; }
.credits details[open] summary::after { content: "\2212"; }
.credits ul { list-style: none; margin: 0; padding: 0 0 30px; max-width: 70%; }
.credits li { margin-bottom: 1.1em; }
.poster-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.poster-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; height: auto; }

/* Contact */
.theme-green .band-green { padding-top: clamp(50px, 6vw, 90px); min-height: 70vh; }
.contact-page { display: grid; grid-template-columns: max-content 1fr; column-gap: var(--gutter); row-gap: 44px; align-items: start; }
.contact-page .row { display: contents; }
.contact-page h1, .contact-page h2 { font-size: max(32px, var(--h1)); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 323px)); gap: 10px; }
.card { background: var(--light); color: var(--black); padding: 24px 20px; }
.card p { margin: 0; }
.card a { color: var(--green); }

/* Phones and small tablets */
@media (max-width: 800px) {
  .site-header { flex-direction: column; align-items: center; gap: 14px; }
  .social { position: static; order: 2; }
  .bio, .listen { grid-template-columns: minmax(0, 1fr); }
  .bio-photo img { margin: 0 auto; }
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-page { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .credits ul { max-width: none; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
}
