/* Queen Anne. After the band's two template pictures: dark linen panels in a
   thin pale filigree frame, and stained parchment in an engraved vine border,
   with an engraved ship, all over one fixed photo behind the whole page.
   Frames, textures and ship are drawn for this site (assets/img/*.svg,
   linen.jpg, parchment.jpg); none of the template pictures ship. Fonts are
   the five from their brief, see assets/fonts/. */

@font-face { font-family: "Germanica"; src: url(../assets/fonts/germanica.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Dead Toast"; src: url(../assets/fonts/dead-toast.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Butler Stencil"; src: url(../assets/fonts/Butler-Free-Blk-St.otf) format("opentype"); font-display: swap; }
@font-face { font-family: "Romanus"; src: url(../assets/fonts/romanus.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Albert Text"; src: url(../assets/fonts/albert-text.woff2) format("woff2"); font-display: swap; }

:root {
  --pale: #ddd8cc;
  --rule: #b9b4aa;
  --dim: #99948a;
  --ink: #33240f;
  --ink-dim: #6b5838;
  --red: #7d140d;
  --black: "Germanica", "Times New Roman", serif;
  --toast: "Dead Toast", "Times New Roman", serif;
  --stencil: "Butler Stencil", "Times New Roman", serif;
  --roman: "Romanus", "Times New Roman", serif;
  --text: "Albert Text", Georgia, serif;
  /* Headings the band can restyle in the admin (content.json `headings`,
     `mixtape.titleStyle`) size as calc(Npx * var(--k, 1)); js/qa.js sets
     --k and the font on the element itself. */
  --g: 12px;
  --fw: 60px;     /* drawn width of the filigree frame */
  --vw: 34px;     /* drawn width of the vine border */
  /* The parchment panels. The band is sending an original; swap these two
     files (see NOTES.md, "Parchment art"). */
  --parchment: url(../assets/img/parchment.jpg?v=3);
  --parchment-border: url(../assets/img/frame-vine.svg?v=3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #111;
  color: var(--pale);
  font: 17px/1.45 var(--text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 .5em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--pale); color: #111; padding: 6px 10px; z-index: 5; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------- page background -- */
/* A fixed layer, not background-attachment: fixed, which iOS Safari ignores.
   100lvh keeps it still while the phone's toolbars slide in and out. The flat
   dark wash over it keeps the hero text and the panels readable. */
.bg { position: fixed; z-index: -1; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; background: #111; }
.bg picture { display: block; height: 100%; }
.bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 7% 50%; }
.bg::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 8, .58); }

/* ------------------------------------------------------------------ nav -- */
.nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px;
  padding: 16px var(--g) 12px;
  font: calc(16px * var(--k, 1))/1.3 var(--roman); letter-spacing: .04em;
}
.nav a { text-decoration: none; padding: 4px 0; }
.nav a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- panels -- */
/* The frames are 9 slice SVGs drawn over the panel's padding, so the
   ornaments can reach in without pushing the content about. */
.frame, .parch {
  position: relative;
  width: min(100% - 2 * var(--g), 1180px);
  margin: 0 auto 28px;
  border: 1px solid transparent;
}
/* The linen is a layer under the frame at 72%, so the smoke shows through. */
.frame { isolation: isolate; }
.frame::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: #222 url(../assets/img/linen.jpg?v=3);
  opacity: .72;
}
.frame {
  border-image: url(../assets/img/frame-filigree.svg?v=3) 150 / var(--fw) stretch;
  padding: 26px 24px 40px;
}
.parch {
  background: #d9c59c var(--parchment);
  color: var(--ink);
  border-image: var(--parchment-border) 60 / var(--vw) round;
  padding: calc(var(--vw) + 14px) calc(var(--vw) + 10px);
}
.parch a { color: var(--red); }

/* Section heading: centred between two scrolls. The scroll is a mask so it
   takes the text colour, pale on linen and ink on parchment. */
.label {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 26px;
  font: 400 calc(40px * var(--k, 1))/1 var(--black);
  text-align: center; white-space: nowrap;
}
.label::before, .label::after {
  content: ""; flex: 0 1 110px; height: 22px;
  background: currentColor;
  -webkit-mask: url(../assets/img/flourish.svg?v=3) center / contain no-repeat;
          mask: url(../assets/img/flourish.svg?v=3) center / contain no-repeat;
}
.label::before { transform: scaleX(-1); }
.label--sub { font-size: calc(30px * var(--k, 1)); margin: 44px 0 16px; }
.label--sub::before, .label--sub::after { flex-basis: 80px; }

/* A photo set in a thin double rule, like a print in a mount. */
.mount img, .mount .ph { border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 4px; }
.mount--ink img, .mount--ink .ph { border-color: var(--ink); outline-color: var(--ink); }
.mount figcaption { font: 14px/1.3 var(--roman); margin-top: 10px; color: var(--dim); }
.mount--ink figcaption { color: var(--ink-dim); }

/* ----------------------------------------------------------------- hero -- */
/* No panel: the page photo is the hero. It fills the first screen, logo up
   in the smoke, the drop at the foot. */
.hero {
  display: flex; flex-direction: column; justify-content: space-between;
  width: min(100% - 2 * var(--g), 1320px); min-height: calc(100vh - 60px); min-height: calc(100svh - 60px);
  margin: 0 auto 28px; padding: 20px 0 36px;
}
.logo { width: min(72%, 300px); margin: 6px auto 16px; font-size: 1em; }
.drop { display: grid; gap: 22px; margin-top: 28px; text-align: center; }
/* Cover art, only when content.json has one. */
.drop__cover { width: min(84vw, 340px); margin: 0 auto 16px; border: 1px solid var(--rule); }
.drop__cover[hidden] { display: none; }
.drop__title { font: calc(34px * var(--k, 1))/1.05 var(--toast); margin: 0 0 6px; }
.drop__kind { font: 18px/1 var(--roman); letter-spacing: .08em; color: var(--pale); margin: 0; }
.count { font: 40px/1 var(--stencil); margin: 0 0 18px; }
.count time { margin-right: .3em; }
.count span { font: 26px/1 var(--toast); }

/* The Listen link, set like a plate: a rule, a gap, a rule. No rounding. */
.plate {
  display: inline-block;
  font: 26px/1 var(--toast); text-decoration: none;
  padding: 12px 34px 10px;
  border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 3px;
}
.plate:hover { background: var(--pale); color: #1a1a1a; }


/* ---------------------------------------------------------------- video -- */
/* One column on phones. From 600px the rest sit in pairs under the big one
   (or two side by side, see js/qa.js), and an odd one left over is centred. */
.videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 14px; max-width: 980px; margin: 0 auto; }
.video { flex: 0 0 100%; min-width: 0; }
.video__play, .video iframe {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 1px solid var(--rule); border-radius: 0;
  background: #141414; color: var(--pale); cursor: pointer;
}
.video__play img { width: 100%; height: 100%; object-fit: cover; }
.video__ph { position: absolute; left: 10px; top: 8px; font: 14px var(--roman); color: var(--dim); }
.video__icon { position: absolute; left: 50%; top: 50%; width: 22px; height: 26px; margin: -13px 0 0 -9px; }
.video figcaption { font: 16px/1.3 var(--roman); margin-top: 8px; overflow-wrap: break-word; }

/* ----------------------------------------------------------------- live -- */
.live__grid { display: grid; gap: 32px; }
.sheet { width: 100%; margin: 0; overflow: hidden; }
.sheet h3 { font: 400 calc(28px * var(--k, 1))/1.1 var(--black); margin: 0 0 10px; }
.sheet h3.past { margin-top: 28px; font-size: calc(22px * var(--k, 1)); }
.sheet > div > p { font-family: var(--roman); }
.show {
  display: grid; grid-template-columns: 4.6em 1fr; gap: 2px 12px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid rgba(51, 36, 15, .45);
}
.show:last-child { border-bottom: 1px solid rgba(51, 36, 15, .45); }
.show__date { font: 19px/1 var(--toast); font-variant-numeric: tabular-nums; }
.show__where b { display: block; font-weight: normal; }
.show__where span { font: 15px var(--roman); color: var(--ink-dim); }
.show__act { grid-column: 2; display: flex; gap: 10px; align-items: start; font-family: var(--roman); }
.show__act:empty { display: none; }
.show__flyer img { width: 36px; height: 48px; object-fit: cover; border: 1px solid var(--ink); }
.shows.past { color: var(--ink-dim); }
.ship { display: block; width: 78%; margin: 14px 0 0 auto; color: var(--ink); opacity: .85; }

/* ---------------------------------------------------------------- about -- */
.about__grid { display: grid; gap: 30px; }
.about__photo { margin: 5px; }
.ph {
  aspect-ratio: 3 / 2; background: rgba(51, 36, 15, .12); color: var(--ink-dim);
  padding: 10px 12px; font: 15px var(--roman);
}
.about__text { max-width: 34em; font-size: 18px; }

/* ---------------------------------------------------------------- links -- */
.linklist { text-align: center; font: 30px/1.2 var(--stencil); }
.linklist li { padding: 8px 0; }
.linklist li + li { border-top: 1px solid rgba(185, 180, 170, .35); }
.linklist a { text-decoration: none; }
/* Platform logos (Simple Icons, assets/img/icons.svg), in the panel's ink. */
.logo-link { display: inline-flex; align-items: center; gap: .4em; }
.logo-link .icon { flex: none; width: .8em; height: .8em; fill: currentColor; }
.linklist a:hover span { text-decoration: underline; }
.aid { max-width: 40em; margin: 0 auto; text-align: center; }
.aid li { margin-bottom: 10px; }
.aid a { font: 20px var(--roman); }
.aid span { display: block; color: var(--dim); font-size: 15px; }

/* ---------------------------------------------------------------- foot -- */
.foot { padding: 30px var(--g) 34px; text-align: center; font: 15px/1.4 var(--roman); color: var(--rule); }
.foot__ship { display: block; width: 150px; margin: 0 auto 18px; color: var(--rule); }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 12px; color: var(--pale); font-size: 17px; }
.foot__links a { text-decoration: none; padding: 4px 0; }
.foot__links a:hover span { text-decoration: underline; }
.foot__links .icon { width: 1.05em; height: 1.05em; }
.foot p { margin: 0 0 4px; }
.foot__fonts { font-size: 13px; }

/* --------------------------------------------------------------- tablet -- */
@media (min-width: 600px) {
  :root { --g: 20px; --fw: 80px; --vw: 42px; }
  .frame { padding: 34px 48px 56px; }
  .label { font-size: calc(52px * var(--k, 1)); }
  .show { grid-template-columns: 5em 1fr auto; }
  .show__act { grid-column: auto; }
  .video:not(.video--main) { flex-basis: calc(50% - 7px); }
  .video:not(.video--main) .video__icon { width: 14px; height: 17px; margin: -8px 0 0 -6px; }
}

/* -------------------------------------------------------------- desktop -- */
@media (min-width: 900px) {
  :root { --g: 28px; --fw: 104px; --vw: 50px; }
  body { font-size: 18px; }
  .nav { gap: 4px 34px; padding: 22px var(--g) 18px; font-size: calc(18px * var(--k, 1)); }
  .frame, .parch { margin-bottom: 40px; }
  .frame { padding: 44px 72px 70px; }
  .label { font-size: calc(64px * var(--k, 1)); gap: 22px; margin-bottom: 36px; }
  .label::before, .label::after { flex-basis: 150px; height: 28px; }
  .label--sub { font-size: calc(40px * var(--k, 1)); margin-top: 60px; }

  /* The logo sits in the dark smoke at the top right of their photo. */
  .bg img { object-position: 50% 38%; }
  .hero { min-height: calc(100vh - 66px); min-height: calc(100svh - 66px); margin-bottom: 40px; padding: 40px 0 64px; }
  .logo { width: min(32%, 400px); margin: 0 3% 0 auto; }
  .drop {
    grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px;
    margin-top: 40px; text-align: left;
  }
  .drop__cover { width: 360px; margin: 0 0 18px; }
  .drop__title { font-size: calc(46px * var(--k, 1)); }
  .drop__when { text-align: center; }
  .count { font-size: 52px; }
  .count span { font-size: 32px; }

  .videos { gap: 34px 26px; }
  .video:not(.video--main) { flex-basis: calc(50% - 13px); }

  .live__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .sheet { padding: 76px 70px 56px; }
  .sheet h3 { font-size: calc(36px * var(--k, 1)); }
  .live__photo { align-self: center; }
  .ship { width: 60%; margin-top: 0; }

  .parch.about { padding: 90px 96px 96px; }
  .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }

  .linklist { font-size: 40px; max-width: 640px; margin: 0 auto; }
  .foot { padding-top: 44px; }
  .foot__ship { width: 200px; }
}

/* ----------------------------------------------------------------- 404 -- */
.lost { width: min(100% - 2 * var(--g), 640px); margin: 0 auto; padding-top: 6vh; text-align: center; }
.lost .logo { width: min(72%, 300px); margin: 0 auto 28px; }
.lost .frame { width: 100%; }
.lost .plate { margin-top: 18px; }
