/* The Drought: public site */

:root {
  --paper: #f7f6f2;
  --ink: #1c1c1b;
  --mute: #6b6b68;
  --faint: #8a8882;
  --rule: #c9c7bf;
  --card: #fdfcf9;
  --cardline: #dcd9d0;
  --cm: 'Cutive Mono', 'Courier New', Courier, monospace;
  --sans: "Helvetica Neue", Helvetica, Arimo, "Liberation Sans", Arial, sans-serif;
  --frameL: max(0px, calc((100vw - 1440px) / 2));
  --navTop: clamp(300px, 45vh, 430px);
  --jw: clamp(260px, 28vw, 440px);
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: var(--ink); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 20;
  background: var(--paper); border: 1px solid var(--ink); padding: 10px 16px;
  font-size: 12px; letter-spacing: .16em;
}
.skip:focus { left: 16px; }

/* ---------- Layers ---------- */

main { position: relative; }
.frame { position: relative; z-index: 2; padding: 0 24px; }
/* The music frame sits a layer higher so the pinned player stays above the top fade. */
#music .frame { z-index: 4; }

.jar {
  position: fixed; z-index: 1; pointer-events: none;
  left: 50%; transform: translateX(-50%);
  top: max(150px, calc(50vh - 230px));
  width: min(350px, 86vw);
  opacity: .38;
}
.jar-svg { display: block; width: 100%; height: auto; overflow: visible; }
.jar-caption { display: none; }

.fade-top {
  position: fixed; z-index: 3; left: 0; right: 0; top: 0; height: 90px; pointer-events: none;
  background: linear-gradient(to bottom, var(--paper) 0, var(--paper) 40px, rgba(247, 246, 242, 0) 90px);
  opacity: 0; transition: opacity .3s ease;
}
.fade-top.on { opacity: 1; }

.rings { display: none; }

.texture {
  position: fixed; z-index: 6; inset: 0; pointer-events: none;
  mix-blend-mode: multiply; opacity: .55;
}

/* ---------- Tracklist ---------- */

.tracklist { display: none; }

.trk { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; }
.trk-n { width: 26px; flex-shrink: 0; font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.trk-t { font-family: var(--cm); font-size: 28px; color: var(--faint); transition: letter-spacing .35s ease, color .35s ease; }
.trk-lead { flex: 1; border-bottom: 1px dotted #b4b2a9; transform: translateY(-6px); min-width: 20px; }
.trk-time { font-family: var(--cm); font-size: 16px; color: var(--faint); }
.trk.active .trk-t, .trk.active .trk-time { color: var(--ink); }
.trk:hover .trk-t { letter-spacing: .08em; color: var(--ink); }

.eq { display: none; align-items: flex-end; gap: 3px; height: 16px; align-self: center; }
.eq i { display: block; width: 3px; height: 6px; background: var(--ink); animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { height: 14px; animation-delay: -.4s; animation-duration: .9s; }
.eq i:nth-child(3) { height: 9px; animation-delay: -.7s; animation-duration: 1.3s; }
.trk.active .eq { display: inline-flex; }
@keyframes eq { 0% { height: 4px; } 50% { height: 16px; } 100% { height: 4px; } }

/* ---------- Mobile tab and menu ---------- */

.tab {
  position: fixed; z-index: 5; right: 16px; top: calc(16px + env(safe-area-inset-top));
  height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 1px solid var(--ink); background: var(--paper);
}
.tab-side { font-size: 10px; letter-spacing: .2em; color: var(--mute); }
.tab-now { font-family: var(--cm); font-size: 16px; }
.tab .eq { display: inline-flex; gap: 2px; height: 13px; }
.tab .eq i { width: 2px; }

.menu {
  position: fixed; z-index: 7; inset: 0; background: var(--paper);
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  transform: translateY(-102%); visibility: hidden;
  transition: transform .5s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .5s;
}
.menu.open { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 48px; font-size: 11px; letter-spacing: .24em; color: var(--mute); }
.menu-close { width: 48px; height: 48px; border: 1px solid var(--ink); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--ink); }
.menu-list { margin-top: 12vh; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0; }
.menu-list .trk { padding: 12px 0; gap: 12px; }
.menu-list .trk-t { font-size: 34px; }
.menu-list .trk-lead { transform: translateY(-8px); }
.menu-foot { margin-top: auto; font-size: 11px; letter-spacing: .2em; color: var(--mute); }

/* ---------- Sections ---------- */

.sec { position: relative; padding: 60px 0 90px; }

.sec-home { min-height: 100vh; min-height: 100svh; padding: 0; overflow: hidden; }
.sec-home .frame { min-height: 100vh; min-height: 100svh; }
.bigname {
  position: absolute; z-index: 0; left: -22px; top: 70px; pointer-events: none;
  font-family: var(--cm); font-size: 132px; line-height: .92; letter-spacing: -.02em;
  white-space: nowrap; color: #dedbd3;
}
.bigname span { display: block; }
.kicker { position: absolute; left: 24px; top: 330px; margin: 0; font-size: 11px; font-weight: 400; letter-spacing: .24em; color: var(--mute); }
.home-foot { position: absolute; left: 24px; bottom: 60px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.scroll-cue { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .22em; color: var(--mute); }
.scroll-cue i { display: block; width: 1px; height: 36px; background: var(--ink); }
.motion-btn { height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: var(--paper); font-family: var(--cm); font-size: 15px; }

.sec-title { margin-bottom: 40px; }
.sec-kicker { display: block; font-size: 11px; letter-spacing: .24em; color: var(--mute); }
.sec-title h2 { margin: 2px 0 0; font-family: var(--cm); font-size: 64px; font-weight: 400; line-height: 1; }

.empty { font-family: var(--cm); font-size: 18px; color: var(--mute); }

.line-link { display: inline-block; font-family: var(--cm); font-size: 17px; border-bottom: 1px solid var(--ink); padding: 10px 0 4px; }

/* ---------- Music ---------- */

.player-slot { height: 90px; }
.player { height: 90px; border: 1px solid var(--ink); background: #ffffff; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.player-head { display: flex; justify-content: space-between; align-items: baseline; height: 18px; font-size: 10px; letter-spacing: .18em; color: var(--mute); }
.player-head a { color: var(--mute); padding: 4px 0; }
.player-head a:hover { color: var(--ink); }
.player iframe { display: block; width: 100%; height: 42px; border: 0; }
.player-face { display: flex; align-items: center; gap: 14px; height: 42px; color: var(--ink); }
.player-face .pe-play { width: 40px; height: 40px; border-color: var(--ink); }
.player-face .pe-play::after { left: 15px; top: 11px; border-left-color: var(--ink); }
.player-face .pe-title { font-size: 16px; }
.player.pinned {
  position: fixed; z-index: 5; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  animation: dockIn .35s ease both;
}
@keyframes dockIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.player-empty { height: 100%; margin: -10px -14px; display: flex; align-items: center; gap: 18px; padding: 0 22px; }
.pe-play { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--rule); position: relative; }
.pe-play::after { content: ""; position: absolute; left: 19px; top: 15px; border-left: 13px solid var(--rule); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.pe-title { display: block; font-family: var(--cm); font-size: 18px; }
.pe-sub { display: block; font-size: 10px; letter-spacing: .18em; color: var(--mute); }

.release { margin-top: 36px; max-width: 460px; }
.release h3 { margin: 0 0 10px; font-family: var(--cm); font-size: 24px; font-weight: 400; }
.release p { margin: 0 0 8px; font-size: 15px; line-height: 1.7; color: #5f5e5a; }

/* ---------- Journal ---------- */

.scatter { display: flex; flex-direction: column; gap: 44px; }
.scatter-item { width: min(300px, calc(100% - 40px)); transform: rotate(var(--rot, 0deg)); }
.scatter-item:nth-child(1) { --rot: -2.5deg; }
.scatter-item:nth-child(2) { --rot: 2deg; margin-left: 40px; }
.scatter-item:nth-child(3) { --rot: -1.5deg; margin-left: 6px; }
.scatter-item:nth-child(4) { --rot: 2.5deg; margin-left: 46px; }
.scatter-item:nth-child(5) { --rot: -1deg; margin-left: 4px; }

.card { position: relative; background: var(--card); border: 1px solid var(--cardline); }
.card time { display: block; font-size: 10px; letter-spacing: .2em; color: var(--mute); }
.card p { margin: 12px 0 0; font-family: var(--cm); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.card-typed { padding: 22px; }
.card-photo { background: #ffffff; padding: 12px 12px 16px; }
.card-img { display: block; width: 100%; padding: 0; border: 0; background: #efece4; cursor: zoom-in; }
.card-img img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.card-foot { padding-top: 10px; }
.card-foot time { font-family: var(--cm); font-size: 12px; letter-spacing: 0; }
.card-foot p { font-size: 14px; margin-top: 6px; }
.card-more { display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: .16em; border-bottom: 1px solid var(--ink); padding: 8px 0 2px; }
.tape { position: absolute; top: -12px; left: 36%; width: 84px; height: 24px; background: #e8e4d8; opacity: .85; transform: rotate(-4deg); }
.scatter-item:nth-child(2n) .tape { left: auto; right: 20px; transform: rotate(6deg); }
.older { margin-top: 56px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(28, 28, 27, .82); }
.lightbox img { display: block; max-width: 94vw; max-height: 90vh; width: auto; height: auto; background: #fff; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 1px solid var(--ink); background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 0; }

/* ---------- Shows ---------- */

.shows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.show {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "date town" "venue tix";
  align-items: baseline; gap: 6px 12px; padding: 18px 0; border-bottom: 1px solid var(--rule);
  transition: background .3s ease;
}
.show-date { grid-area: date; font-family: var(--cm); font-size: 15px; }
.show-town { grid-area: town; font-size: 11px; letter-spacing: .12em; color: var(--mute); text-align: right; }
.show-venue { grid-area: venue; font-family: var(--cm); font-size: 21px; }
.show-venue small { display: block; font-family: var(--sans); font-size: 12px; color: var(--mute); margin-top: 2px; }
.show-tix { grid-area: tix; font-size: 11px; letter-spacing: .18em; border-bottom: 1px solid var(--ink); padding: 10px 0 2px; justify-self: end; }
span.show-tix { border: 0; }

/* ---------- Contact ---------- */

.contact { display: flex; flex-direction: column; gap: 26px; max-width: 580px; }
.row2 { display: flex; flex-direction: column; gap: 26px; }
.contact label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .2em; color: var(--mute); flex: 1; }
.contact input, .contact textarea {
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  padding: 10px 0; font-family: var(--cm); font-size: 17px; line-height: 1.6; color: var(--ink); width: 100%; resize: vertical;
}
.contact input::placeholder, .contact textarea::placeholder { color: #a3a19a; }
.contact input:focus-visible, .contact textarea:focus-visible { outline-offset: 6px; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact [aria-invalid="true"] { border-bottom-color: #9b2c2c; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.btn { height: 52px; padding: 0 40px; border: 1px solid var(--ink); background: transparent; font-family: var(--cm); font-size: 18px; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .5; cursor: default; }
.form-status { margin: 0; font-family: var(--cm); font-size: 15px; min-height: 1.5em; }

.foot { margin-top: 110px; padding-bottom: 150px; display: flex; flex-direction: column; gap: 10px; font-size: 11px; letter-spacing: .18em; color: var(--mute); }
.socials { display: flex; flex-wrap: wrap; gap: 18px; }
.socials a { color: var(--mute); padding: 8px 0; }

/* ---------- Journal archive page ---------- */

.archive { max-width: 560px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 24px 120px; position: relative; z-index: 2; }
.archive-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; }
.archive-top a { font-size: 11px; letter-spacing: .18em; padding: 12px 0; }
.archive h1 { margin: 0 0 40px; font-family: var(--cm); font-size: 64px; font-weight: 400; line-height: 1; }
.archive-list { display: flex; flex-direction: column; gap: 44px; }
.archive-list .card:nth-child(odd) { transform: rotate(-1deg); }
.archive-list .card:nth-child(even) { transform: rotate(1deg); }
.pager { display: flex; justify-content: space-between; margin-top: 60px; }

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  .frame { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
  .frame > * { max-width: min(740px, 56vw); }

  .tab, .menu { display: none; }

  .tracklist {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; z-index: 5; left: calc(var(--frameL) + 80px); top: var(--navTop); width: 470px;
    background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
    padding: 14px 0 18px; transform-origin: top left; will-change: transform;
  }
  .tl-head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .22em; color: var(--mute); padding-bottom: 10px; }

  .jar {
    left: auto; transform: none; opacity: 1;
    right: max(24px, calc((100vw - 1440px) / 2 + 160px));
    width: var(--jw);
    top: max(200px, calc(100vh - var(--jw) * 1.4545 - 40px));
  }
  .jar-caption { display: block; margin: 4px 0 0 6px; font-family: var(--cm); font-size: 14px; letter-spacing: .04em; color: var(--mute); }

  .fade-top { height: 230px; background: linear-gradient(to bottom, var(--paper) 0, var(--paper) 150px, rgba(247, 246, 242, 0) 230px); }

  .rings { display: block; position: fixed; inset: 0; z-index: 4; pointer-events: none; width: 100vw; height: 100vh; }

  .sec { padding: 110px 0 130px; }
  .bigname { left: -62px; top: 36px; font-size: 300px; line-height: 1; }
  .bigname span { display: inline; }
  .kicker { left: 84px; top: calc(var(--navTop) - 42px); font-size: 12px; }
  .home-foot { left: 84px; bottom: 50px; }
  .motion-btn { display: none; }

  .sec-title { margin-bottom: 70px; }
  .sec-title h2 { font-size: 120px; }

  .player-slot { max-width: 700px; }
  .player.pinned { left: calc(var(--frameL) + 340px); right: auto; bottom: auto; top: 28px; width: 460px; }
  @keyframes dockIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

  .scatter {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; align-items: start;
  }
  .scatter-item { width: 100%; max-width: 330px; margin-left: 0; }
  .scatter-item:nth-child(1) { margin-top: 50px; }
  .scatter-item:nth-child(2) { margin-top: 0; justify-self: end; }
  .scatter-item:nth-child(3) { margin-top: -10px; margin-left: 40px; }
  .scatter-item:nth-child(4) { margin-top: 60px; justify-self: end; }
  .scatter-item:nth-child(5) { grid-column: 1 / span 2; justify-self: center; margin-top: 10px; max-width: 380px; }
  .card p { font-size: 17px; }

  .show { grid-template-columns: 150px minmax(0, 1fr) 150px 80px; grid-template-areas: "date venue town tix"; padding: 24px 8px; gap: 20px; }
  .show:hover { background: #efede6; }
  .show-date { font-size: 18px; }
  .show-venue { font-size: 22px; }
  .show-town { text-align: left; font-size: 13px; letter-spacing: .1em; }

  .row2 { flex-direction: row; gap: 28px; }
  .contact-actions { flex-direction: row; align-items: center; gap: 24px; }

  .foot { flex-direction: row; justify-content: space-between; padding-bottom: 60px; }

  .archive { max-width: 640px; padding-top: 80px; }
  .archive h1 { font-size: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .eq i { animation: none; }
  .trk-t, .menu, .player.pinned { transition: none; animation: none; }
}
