/* The Part Time Travelers
   Palette: old Colorado park map. Pine + buff paper, with a 70s sunset (mustard, orange, rust). */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #1E3A32;
  --pine-deep: #142A24;
  --buff: #EFE2C4;
  --buff-light: #F8F0DD;
  --buff-dark: #E2D0A8;
  --mustard: #E8A33D;
  --orange: #D9561F;
  --rust: #A33522;
  --ink: #1E3A32;
  --ink-soft: #4A5A50;

  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type scale, ~1.333 */
  --t-sm: 0.875rem;
  --t-base: 1.125rem;
  --t-md: 1.5rem;
  --t-lg: 2rem;
  --t-xl: clamp(2.25rem, 4.5vw, 3.25rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--buff);
  color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--t-xl); }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--mustard); color: var(--pine); padding: 0.5rem 1rem; z-index: 10; border-radius: 999px; }
.skip:focus { left: 0.5rem; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sun { background: var(--mustard); color: var(--pine-deep); }
.btn--sun:hover { background: #F0B455; }
.btn--ghost { border-color: var(--buff); color: var(--buff); }
.btn--ghost:hover { background: rgba(239, 226, 196, 0.12); }
.btn--rust { background: var(--rust); color: var(--buff-light); }
.btn--rust:hover { background: #8C2B1B; }
.btn--rust[disabled] { opacity: 0.6; cursor: progress; }
.btn--pine { background: var(--pine); color: var(--buff); }
.btn--pine:hover { background: var(--pine-deep); }

/* ---------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem var(--gutter);
  background: var(--pine); color: var(--buff);
  border-bottom: 1px solid rgba(239, 226, 196, 0.15);
}
.topbar__brand {
  display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font: 700 1.05rem/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.emblem { width: 2.4rem; height: 2.4rem; flex: none; }
.topbar__nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); font-weight: 500; }
.topbar__nav a { text-decoration: none; }
.topbar__nav a:hover { text-decoration: underline; }
.topbar__book { background: var(--mustard); color: var(--pine-deep); padding: 0.45rem 1rem; border-radius: 999px; font-weight: 600; }
.topbar__book:hover { text-decoration: none !important; background: #F0B455; }
.topbar__ig { display: inline-flex; }
.topbar__ig svg { width: 1.4rem; height: 1.4rem; }
@media (max-width: 760px) {
  .topbar__brand span { display: none; }
  .topbar__nav a:not(.topbar__book):not(.topbar__ig) { font-size: 0.95rem; }
}
@media (max-width: 400px) {
  .topbar__nav a[href="#band"] { display: none; }
}

/* ---------- hero: the one loud moment */
.hero {
  position: relative; overflow: hidden;
  background: var(--pine); color: var(--buff);
  min-height: min(88vh, 46rem);
  display: flex; align-items: flex-start;
}
.hero__art { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; }
.hero__range { fill: var(--pine-deep); }
.hero__range--far { fill: #183029; }
.hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 9vh, 6rem) var(--gutter) 2rem;
}
.hero__title {
  font-size: clamp(3.4rem, 10.5vw, 8.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.025em;
  max-width: 8.5ch;
  color: var(--buff-light);
  text-shadow: 0.04em 0.04em 0 var(--rust);
}
.hero__lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); max-width: 34ch; margin: 1.5rem 0 2rem; color: var(--buff); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero__rays path { stroke-dasharray: 1700; stroke-dashoffset: 1700; animation: rise 1.4s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero__rays path:nth-child(2) { animation-delay: 0.12s; }
  .hero__rays path:nth-child(3) { animation-delay: 0.24s; }
  @keyframes rise { to { stroke-dashoffset: 0; } }
}
@media (max-width: 700px) {
  .hero { min-height: 46rem; }
  .hero__inner { padding-top: 2.5rem; }
  .hero__art { height: 40%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .topbar__nav { font-size: 0.95rem; }
  .topbar__book { padding: 0.4rem 0.85rem; }
}

/* ---------- sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section__head { margin-bottom: 2.25rem; }
.section__head p { color: var(--ink-soft); margin-top: 0.6rem; }

/* ---------- shows as ticket stubs */
.stubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.stub {
  --notch: 0.85rem;
  position: relative;
  display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: center;
  background: var(--buff-light);
  border-radius: 12px;
  box-shadow: 0 1px 0 var(--buff-dark), 0 0 0 1px rgba(30, 58, 50, 0.08);
}
/* perforation notches between the date and the ticket body */
.stub::before, .stub::after {
  content: ""; position: absolute; left: calc(6.5rem - var(--notch));
  width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--buff);
}
.stub::before { top: calc(var(--notch) * -1); }
.stub::after { bottom: calc(var(--notch) * -1); }
.stub__date {
  align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem 0.5rem;
  background: var(--pine); color: var(--buff);
  border-radius: 12px 0 0 12px;
  border-right: 2px dashed var(--buff);
  line-height: 1;
}
.stub__month { font-weight: 600; font-size: var(--t-sm); color: var(--mustard); }
.stub__day { font: 900 2.4rem/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; margin: 0.15rem 0; }
.stub__weekday { font-size: var(--t-sm); opacity: 0.85; }
.stub__body { padding: 1.1rem 1.5rem; min-width: 0; }
.stub__venue { font-size: var(--t-md); font-weight: 700; }
.stub__where { margin: 0.3rem 0 0; color: var(--ink-soft); }
.stub__where .sep { margin: 0 0.5rem; color: var(--orange); }
.stub__notes { margin: 0.35rem 0 0; font-size: 0.98rem; }
.stub__links { display: flex; gap: 1rem; padding: 1rem 1.5rem 1rem 0; font-weight: 600; white-space: nowrap; }
.stub__links a { color: var(--rust); }
.stub--private .stub__date { background: var(--ink-soft); }
.stubs__empty {
  padding: 2rem; border: 2px dashed var(--buff-dark); border-radius: 12px; color: var(--ink-soft);
}
.stubs__empty p { margin: 0; }
.stubs__empty a { color: var(--rust); font-weight: 600; }
@media (max-width: 640px) {
  .stub { grid-template-columns: 5rem 1fr; }
  .stub__date { grid-row: span 2; }
  .stub::before, .stub::after { left: calc(5rem - var(--notch)); }
  .stub__body { padding: 1rem 1.1rem 0.5rem; }
  .stub__links { grid-column: 2; padding: 0 1.1rem 1rem; }
  .stub__day { font-size: 2rem; }
}

/* ---------- band */
.band { background: var(--buff-dark); }
.band__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band__photo { margin: 0; }
.band__photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px;
  border: 10px solid var(--buff-light);
  box-shadow: 0 2px 0 rgba(30, 58, 50, 0.15);
}
.band__text h2 { margin-bottom: 1.25rem; }
.members { margin: 2rem 0 0; display: grid; gap: 0; border-top: 2px solid var(--pine); }
.members > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(30, 58, 50, 0.25); }
.members dt { font: 700 var(--t-md)/1.2 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.members dd { margin: 0; color: var(--ink-soft); text-align: right; align-self: center; }
@media (max-width: 820px) { .band__grid { grid-template-columns: 1fr; } }

/* ---------- songbook */
.songs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.search input {
  width: min(22rem, 100%); min-height: 3rem; padding: 0.7rem 1.1rem 0.7rem 2.6rem;
  font: inherit; color: var(--ink);
  background: var(--buff-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A32' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat 0.9rem center / 1.1rem;
  border: 2px solid var(--pine); border-radius: 999px;
}
.search { width: min(22rem, 100%); }
.songlist {
  list-style: none; margin: 0; padding: 0;
  columns: 3 16rem; column-gap: 2.5rem;
}
.songlist li {
  break-inside: avoid;
  display: flex; flex-direction: column;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(30, 58, 50, 0.18);
}
.song__title { font: 600 1.06rem/1.3 var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; }
.song__artist { font-size: 0.92rem; color: var(--ink-soft); }
.songs__empty { color: var(--ink-soft); }
.songlist[data-collapsed] { max-height: 34rem; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent); }
.songs__more { margin-top: 1.25rem; }
mark { background: rgba(232, 163, 61, 0.45); color: inherit; border-radius: 2px; }

/* ---------- booking */
.book { background: var(--pine); color: var(--buff); }
.book__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
/* Stack the intro above the form on tablets and phones. */
@media (max-width: 820px) { .book__grid { grid-template-columns: 1fr; } }
/* Let grid items shrink to fit narrow screens instead of overflowing. */
.book__grid > *, .form > *, .form__row > *, .field { min-width: 0; }
.book__intro h2 { color: var(--buff-light); margin-bottom: 1rem; }
.book__lede { font-size: 1.2rem; }
.fits { margin: 2rem 0; }
.fits > div { padding: 0.9rem 0 0.9rem 1.1rem; border-left: 4px solid var(--mustard); margin-bottom: 0.75rem; }
.fits > div:nth-child(2) { border-color: var(--orange); }
.fits > div:nth-child(3) { border-color: #E07A4F; }
.fits > div:nth-child(4) { border-color: var(--buff); }
.fits dt { font: 700 1.2rem/1.2 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--buff-light); }
.fits dd { margin: 0.25rem 0 0; opacity: 0.9; }
.book__email a { color: var(--mustard); font-weight: 600; }

.form {
  background: var(--buff-light); color: var(--ink);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 16px;
  display: grid; gap: 1rem;
  box-shadow: 0.5rem 0.5rem 0 var(--rust);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.98rem; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.9rem; padding: 0.65rem 0.85rem;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: #fff; border: 1.5px solid #B9AB8A; border-radius: 8px;
  min-width: 0; max-width: 100%;
}
/* iPhones give date and time boxes a fixed built-in width; this makes them fit like the other boxes. */
.field input[type="date"], .field input[type="time"] { -webkit-appearance: none; appearance: none; display: block; }
.field input[type="date"]::-webkit-date-and-time-value, .field input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--mustard); outline-offset: 0; border-color: var(--pine); }
.field[data-error] input, .field[data-error] select { border-color: var(--rust); }
.field__error { color: var(--rust); font-weight: 600; font-size: 0.9rem; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form__status[data-kind="error"] { color: var(--rust); }
.form__done { text-align: left; }
.form__done h3 { font-size: var(--t-lg); margin-bottom: 0.75rem; }

/* ---------- instagram strip */
.gram__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.gram__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.5rem, 1.5vw, 1rem); }
.gram__strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.gram__strip a { display: block; border-radius: 10px; }

/* ---------- footer */
.footer { background: var(--pine-deep); color: var(--buff); padding: 3rem 0 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.footer__brand { display: flex; gap: 1rem; align-items: center; }
.footer__brand p { margin: 0; line-height: 1.4; }
.footer__brand .emblem { width: 3.25rem; height: 3.25rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__small { grid-column: 1 / -1; margin: 0; font-size: var(--t-sm); opacity: 0.7; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }
