/* Sun Grenade: sungrenade.com
   Colors come from the hand-drawn logo (sun yellow, ray orange, letter pink, grenade green)
   and the band's Linktree orange. Fonts are self-hosted (SIL OFL, licenses next to the files). */

@font-face { font-family: "Gochi Hand"; font-weight: 400; font-display: swap;
  src: url(../fonts/gochi-hand.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap;
  src: url(../fonts/lilita-one.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 400 800; font-display: swap;
  src: url(../fonts/rubik.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --sun: #ffd21f;
    --orange-2: #ff7a19;
  --orange-3: #ef6500;
  --pink: #f0237e;
  --green: #3e7d2c;
  --ink: #151311;
  --cream: #fff4dc;
  --paper: #fffdf6;
  --muted: #5b4f44;
  --checker: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%) 0 0 / 28px 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 Rubik, system-ui, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--sun); font-weight: 800; }
.skip:focus { left: 8px; }
.hand { font-family: "Gochi Hand", cursive; }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 20px;
  background: var(--ink); color: var(--paper);
}
.bar .home img { height: 48px; width: auto; }
.bar nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { font: 400 18px/1 "Lilita One", sans-serif; text-decoration: none; letter-spacing: .02em; }
.bar nav a:hover { color: var(--sun); }

/* hero: a film photo of the Arizona desert (sent by Ant), logo up in the sky */
.hero {
  position: relative; overflow: hidden;
  min-height: min(90vh, 780px);
  display: grid; place-items: start center;
  padding: clamp(28px, 6vh, 60px) 16px 120px;
  background: #b9b4b8;
}
.hero .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 58% 60%); }
.hero-inner { position: relative; text-align: center; }
.hero h1 { margin: 0; }
.hero .logo {
  width: min(470px, 86vw); height: auto; margin: 0 auto;
  transform: rotate(-4deg);
  filter: drop-shadow(6px 8px 0 rgba(0,0,0,.35));
}
.label {
  display: inline-block; margin-top: 22px;
  padding: 8px 16px 6px;
  background: var(--ink); color: var(--paper);
  font: 400 clamp(20px, 3.4vw, 30px)/1.1 "Lilita One", sans-serif;
  letter-spacing: .03em; transform: rotate(1.5deg);
}
.checker { height: 28px; background: var(--checker); }
.hero .checker { position: absolute; left: 0; right: 0; bottom: 0; }

/* sections */
section { padding: 72px 20px; }
.wrap { max-width: 1080px; margin: 0 auto; }
h2 {
  margin: 0 0 30px;
  font: 400 clamp(40px, 7vw, 68px)/1 "Lilita One", sans-serif;
  color: var(--pink);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
  letter-spacing: .01em;
}

/* music: record sleeves */
.singles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 40px; }
.single .sleeve { position: relative; isolation: isolate; margin-right: 18%; }
.single .sleeve::after {
  content: ""; position: absolute; inset: 4% -18% 4% auto; aspect-ratio: 1; z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--pink) 0 15%, var(--ink) 15.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, #222 0 2px, #0c0c0c 2px 4px);
  transition: transform .4s;
}
.single:hover .sleeve::after { transform: translateX(10%) rotate(40deg); }
.single img { width: 100%; height: auto; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.single h3 { margin: 22px 0 4px; font: 400 26px/1.15 "Lilita One", sans-serif; }
.single .meta { margin: 0 0 6px; font-weight: 600; color: var(--muted); font-size: 15px; }
.single .note { margin: 0 0 14px; font-size: 22px; line-height: 1.25; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; padding: 8px 16px 7px;
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--sun); box-shadow: 3px 3px 0 var(--ink);
  font: 800 15px/1 Rubik, sans-serif; text-decoration: none; text-transform: uppercase; letter-spacing: .04em;
}
.btn.apple { background: #8fe0ff; }
.btn.bandcamp { background: #9be27a; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.lyrics { margin-top: 18px; }
.lyrics summary { cursor: pointer; font: 400 19px/1 "Lilita One", sans-serif; }
.lyrics summary:hover { color: var(--pink); }
.lyrics p { margin: 12px 0 0; white-space: pre-line; font-size: 16px; }

/* shows: the back of a tour shirt */
.shows { background: var(--ink); color: var(--paper); }
.shows h2 { color: var(--sun); -webkit-text-stroke: 0; text-shadow: 5px 5px 0 var(--pink); text-align: center; }
.next { max-width: 560px; margin: 0 auto 40px; padding: 18px 20px; border: 3px dashed var(--sun); text-align: center; }
.next b { display: block; font: 400 28px/1.1 "Lilita One", sans-serif; color: var(--sun); }
.next .hand { font-size: 22px; }
.next .upcoming { margin: 10px 0 0; padding: 0; list-style: none; }
.next .upcoming li { margin: 6px 0; font-weight: 600; }
.tour { max-width: 640px; margin: 0 auto; padding: 0; list-style: none; text-transform: uppercase; }
.yr { text-align: center; font: 400 22px/1 "Lilita One", sans-serif; letter-spacing: .3em; color: var(--orange-2); margin: 0 0 14px; }
.tour li { display: grid; grid-template-columns: 7em 1fr auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid #3a342e; font-weight: 600; letter-spacing: .05em; font-size: 15px; }
.tour .d { color: var(--sun); }
.tour .c { color: #b9ad9d; }

/* band: name tags */
.tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.tag {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink); text-align: center; transform: rotate(var(--r, 0deg));
}
.tag .hello { background: var(--pink); color: var(--paper); padding: 8px 6px 6px; }
.tag .hello b { display: block; font: 400 30px/1 "Lilita One", sans-serif; letter-spacing: .04em; }
.tag .hello small { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.tag .n { font: 400 46px/1.1 "Gochi Hand", cursive; padding: 14px 6px 0; }
.tag .role { padding: 0 6px 16px; font-weight: 600; color: var(--muted); }
.bio { max-width: 40em; margin: 40px auto 0; font-size: 19px; text-align: center; }

/* photos */
.photos { background: var(--sun); position: relative; }
.photos::before, .photos::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; background: var(--checker); }
.photos::before { top: 0; }
.photos::after { bottom: 0; }
.pile { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 26px; padding: 10px 0; }
.polaroid {
  position: relative; margin: 0; padding: 10px 10px 38px; background: var(--paper);
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transform: rotate(var(--r, 0deg));
}
.polaroid::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; margin-left: -45px;
  background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(0,0,0,.15); transform: rotate(-3deg);
}
.polaroid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 10px; right: 10px; bottom: 6px; font: 400 21px/1 "Gochi Hand", cursive; text-align: center; }

/* Instagram profile embed */
.insta { background: var(--pink); text-align: center; }
.insta h2 { color: var(--sun); }
.ig-frame {
  position: relative; max-width: 540px; min-height: 320px; margin: 0 auto;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
.ig-frame .instagram-media { position: relative; margin: 0 !important; min-width: 0 !important; max-width: none !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--paper); }
.ig-frame blockquote.instagram-media { padding: 130px 16px; }
.ig-frame blockquote.instagram-media a { font-weight: 800; }
.follow { margin: 28px 0 0; }

/* booking */
.contact { text-align: center; }
.contact .mail {
  display: inline-block; margin-top: 6px; padding: 14px 22px;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--pink);
  font: 400 clamp(20px, 4.4vw, 34px)/1.1 "Lilita One", sans-serif; text-decoration: none; overflow-wrap: anywhere;
}
.contact .mail:hover { background: var(--sun); }

footer { background: var(--ink); color: var(--paper); padding: 34px 20px 28px; text-align: center; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; font: 400 19px/1 "Lilita One", sans-serif; }
footer .links a { text-decoration: none; }
footer .links a:hover { color: var(--sun); }
footer p { margin: 18px 0 0; font-size: 14px; color: #b9ad9d; }

@media (max-width: 640px) {
  .bar { padding: 6px 12px; }
  .bar .home img { height: 40px; }
  .bar nav { gap: 12px; }
  .bar nav a { font-size: 16px; }
  .hero { min-height: 640px; padding-bottom: 90px; }
  section { padding: 56px 16px; }
  .tour li { grid-template-columns: 5.6em 1fr; }
  .tour .c { grid-column: 2; margin-top: -6px; }
  .tags { grid-template-columns: 1fr 1fr; gap: 18px; }
  .tag .n { font-size: 38px; }
  .pile { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .polaroid { padding: 7px 7px 30px; }
  .polaroid figcaption { font-size: 17px; bottom: 5px; }
}
@media (max-width: 380px) {
  .bar nav a { font-size: 14px; }
  .bar nav { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .single .sleeve::after { transition: none; }
}

/* design options menu (assets/js/options.js): test site only, never shown on sungrenade.com */
.opt { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font: 400 15px/1.3 Rubik, system-ui, sans-serif; color: var(--ink); }
.opt-toggle, .opt-copy, .opt-reset {
  padding: 9px 14px 7px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  background: var(--sun); color: var(--ink); font: 400 16px/1 "Lilita One", sans-serif; letter-spacing: .02em; cursor: pointer;
}
.opt-toggle:hover, .opt-copy:hover, .opt-reset:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.opt-reset { background: var(--paper); }
.opt-panel { width: min(300px, calc(100vw - 32px)); padding: 14px 16px 16px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.opt-panel[hidden] { display: none; }
.opt-head { display: flex; align-items: baseline; gap: 8px; }
.opt-head b { font: 400 22px/1 "Lilita One", sans-serif; }
.opt-head small { flex: 1; color: var(--muted); }
.opt-close { border: 0; padding: 0 2px; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); }
.opt fieldset { margin: 12px 0 0; padding: 0; border: 0; }
.opt legend { margin-bottom: 6px; padding: 0; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.opt label { position: relative; display: inline-block; margin: 0 6px 6px 0; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label span { display: inline-block; padding: 6px 12px 5px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer; }
.opt input:checked + span { background: var(--pink); color: var(--paper); }
.opt input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.opt-foot { display: flex; gap: 8px; margin-top: 14px; }
.opt-copy { flex: 1; font-size: 15px; }
@media print { .opt { display: none; } }
