/* ==========================================================
   EDIT: colors and fonts. Change these and the whole site follows.
   All text colors pass WCAG AA contrast on the background.
   ========================================================== */
:root {
  --plaster:   #f4efe6;  /* background: sunlit adobe plaster */
  --night:     #1f2933;  /* main text: blue-black desert night */
  --chile:     #a8402a;  /* secondary text: red chile ristra */
  --door:      #1d5d90;  /* accent, links and button: Taos blue door */
  --turquoise: #3fa7a3;  /* staff lines only (too light for text) */

  --name:    "Caveat", "Segoe Print", "Bradley Hand", cursive;  /* your name only */
  --display: "Gloock", Georgia, "Times New Roman", serif;          /* section headings */
  --body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 72rem;
}

/* ---------- Fonts (files live in fonts/) ---------- */
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-name-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Gloock";
  src: url("fonts/gloock-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; overflow-x: clip; }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--night);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

a { color: var(--door); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
a:focus-visible { outline: 1px solid var(--door); outline-offset: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) var(--gutter) 1.25rem;
  background: color-mix(in srgb, var(--plaster) 88%, transparent);
  backdrop-filter: blur(8px);
}

.wordmark { font-family: var(--name); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--night); }
.wordmark:hover { text-decoration: none; }

.site-header nav { display: flex; gap: 1.5rem; font-size: 0.9375rem; }
.site-header nav a { color: var(--night); }
.site-header nav a:hover { color: var(--door); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 8vw, 6rem) var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.name { position: relative; }

/* The five-line staff behind the name */
.staff {
  position: absolute;
  inset: 12% -1.5rem 8% -100vw;  /* runs in from the left edge */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.staff span {
  display: block;
  height: 1px;
  background: var(--turquoise);
  opacity: 0.7;
  transform-origin: left;
  animation: draw 1.6s cubic-bezier(.6, 0, .2, 1) both;
}
.staff span:nth-child(2) { animation-delay: .08s; }
.staff span:nth-child(3) { animation-delay: .16s; }
.staff span:nth-child(4) { animation-delay: .24s; }
.staff span:nth-child(5) { animation-delay: .32s; }

.hero h1 {
  position: relative;
  font-family: var(--name);
  font-weight: 700;
  font-size: clamp(5rem, 15vw, 11.5rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  transform: rotate(-3deg);  /* slight hand-written tilt across the staff */
  transform-origin: left center;
}

.tagline {
  # border: 3px solid blue;
  margin: 2rem 0 2.5rem;
  # max-width: 28ch;
  max-width: 30ch;
  font-size: 1.1875rem;
  color: var(--chile);
}

.button {
  display: inline-block;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--door);
  border-radius: 2px;
  color: var(--door);
  font-size: 0.9375rem;
  transition: background .3s, color .3s;
}
.button:hover { background: var(--door); color: var(--plaster); text-decoration: none; }

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}

/* Music */
.releases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 40vw), 1fr));
  gap: 3rem 2rem;
}
.release img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 1.25rem; }
.release a, .shows a { font-weight: 600; }
.release h3 { font-size: 1.625rem; line-height: 1.2; }
.release p { margin: 0.25rem 0 0.75rem; color: var(--chile); font-size: 0.9375rem; }

/* Shows */
.shows { list-style: none; margin: 0; padding: 0; max-width: 48rem; }
.shows li {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--night) 18%, transparent);
}
.shows li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--night) 18%, transparent); }
.shows time { font-family: var(--display); font-size: 1.5rem; }
.venue { display: flex; flex-direction: column; line-height: 1.4; }
.venue small { color: var(--chile); font-size: 0.875rem; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about p { max-width: 36rem; margin: 0 0 1.25rem; }

/* Links inside sentences are underlined so they don't rely on color alone */
.contact p:not(.socials) a, .about p a { text-decoration: underline; text-underline-offset: 0.25em; }

/* Contact */
.contact { text-align: center; }
.contact p { margin: 0 0 1.5rem; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; }

/* Footer */
.site-footer {
  padding: 2rem var(--gutter) 3rem;
  text-align: center;
  color: var(--chile);
  font-size: 0.8125rem;
}

/* ---------- Video player ---------- */
.player {
  width: min(92vw, 60rem);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.player::backdrop { background: color-mix(in srgb, var(--night) 85%, transparent); }
.player-close {
  display: block;
  margin: 0 0 0.75rem auto;
  padding: 0.5rem 1rem;
  border: 1px solid var(--plaster);
  border-radius: 2px;
  background: transparent;
  color: var(--plaster);
  font: 600 0.9375rem var(--body);
  cursor: pointer;
}
.player-close:hover { background: var(--plaster); color: var(--night); }
.player-close:focus-visible { outline: 2px solid var(--plaster); outline-offset: 3px; }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .hero, .about { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 4 / 3; }
  .staff { right: calc(-1 * var(--gutter)); }
  .releases { gap: 2rem 1.25rem; }
  .shows li { grid-template-columns: 4.5rem 1fr; }
  .shows li a { grid-column: 2; }
}

/* ---------- Motion ---------- */
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .staff span { animation: none; }
}
