/* rickrau: the page is the sky after sunset. Sodium-orange horizon at the top, night at the bottom. */
:root {
  --night: #121528;
  --deep: #1b1d38;
  --dusk: #2b2a4a;
  --sodium: #f39a3d;
  --ember: #d9542b;
  --haze: #efe3d2;
  --haze-dim: #b9b1b8;
  --signal: #8fb4ff;
  --line: rgba(239, 227, 210, 0.16);
  --gutter: 16px;
  --measure: 34rem;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.4rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night) linear-gradient(180deg, #3a2a3c 0, var(--dusk) 70vh, var(--deep) 160vh, var(--night) 260vh) no-repeat;
  color: var(--haze);
  font: 400 var(--step-0)/1.55 var(--font, "Bricolage Grotesque", system-ui, sans-serif);
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--haze); text-decoration-color: var(--sodium); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--sodium); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--haze); color: var(--night); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }

/* header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter);
  background: linear-gradient(180deg, rgba(18, 21, 40, 0.72), rgba(18, 21, 40, 0));
}
.mark { font-weight: 800; font-size: var(--step-1); letter-spacing: -0.04em; text-decoration: none; margin-right: auto; }
.top nav { display: flex; gap: 20px; margin-right: 12px; }
.top nav a:not(.nav-merch) { display: none; }
.hero-merch { display: inline-block; margin-top: 14px; }
.top nav a { text-decoration: none; font-size: var(--step--1); }
.bag-btn {
  font: inherit; font-size: var(--step--1); font-weight: 600;
  color: var(--night); background: var(--haze); border: 0; border-radius: 999px;
  padding: 8px 14px; cursor: pointer; min-height: 40px;
}
.bag-btn span { display: inline-block; min-width: 1.4em; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--night); color: var(--haze); text-align: center; }

/* hero: the cover is the sky */
.hero { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 21, 40, 0) 45%, rgba(43, 42, 74, 0.55) 75%, #2f2a44 100%); }
.hero-copy { position: relative; z-index: 1; padding: 0 var(--gutter) 28px; width: 100%; max-width: 72rem; margin-inline: auto; }
.kicker { font-size: var(--step--1); color: var(--haze); opacity: 0.85; }
.hero h1 {
  font-size: clamp(4.2rem, 24vw, 15rem); font-weight: 800; letter-spacing: -0.065em; line-height: 0.82;
  margin: 6px 0 4px -0.04em;
  color: var(--sodium);
  text-shadow: 0 2px 40px rgba(18, 21, 40, 0.45);
}
.by { font-size: var(--step-2); font-weight: 300; letter-spacing: -0.02em; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
}

/* listen */
.listen, .releases, .store, .about, .foot { padding-inline: var(--gutter); max-width: 72rem; margin-inline: auto; }
.listen { padding-top: 24px; display: grid; gap: 18px; }
.player iframe { display: block; border: 0; width: 100%; height: 120px; border-radius: 6px; background: rgba(18, 21, 40, 0.35); }
.listen-actions { display: grid; gap: 14px; max-width: var(--measure); }
.streams { color: var(--haze-dim); font-size: var(--step--1); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  color: var(--night); background: var(--sodium); border: 0; border-radius: 999px;
  padding: 12px 20px; min-height: 48px; cursor: pointer;
}
.btn:hover { color: var(--night); background: #ffb366; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.wide { width: 100%; }

/* releases */
.releases { padding-top: 64px; }
.releases h2, .store-head h2, .about h2 { font-size: var(--step-3); letter-spacing: -0.04em; }
.covers { list-style: none; padding: 0; margin: 20px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.covers a { display: grid; gap: 6px; text-decoration: none; }
.covers img { aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.r-title { font-weight: 600; line-height: 1.2; }
.r-when { font-size: var(--step--1); color: var(--haze-dim); }
.more { font-weight: 600; }

/* store */
.store { padding-top: 80px; }
.store-head { display: grid; gap: 10px; max-width: var(--measure); }
.store-head p { color: var(--haze-dim); }
.items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 28px; }
.item img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 4px; background: #f4f4f4; }
.item-body { display: grid; gap: 6px; padding-top: 12px; }
.item h3 { font-size: var(--step-2); letter-spacing: -0.03em; }
.price { font-weight: 600; color: var(--sodium); }
.blurb { color: var(--haze-dim); font-size: var(--step--1); max-width: var(--measure); }
.add { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pick { flex: 1 1 9rem; }
.pick select {
  width: 100%; min-height: 48px; font: inherit; color: var(--haze);
  background: rgba(18, 21, 40, 0.5); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px;
}
.add .btn { flex: 1 1 9rem; }

.from-rick { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.from-rick > h3 { font-size: var(--step-2); }
.from-rick > p { color: var(--haze-dim); margin-top: 6px; }
.bc-items { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 24px; }
.bc-items li { display: grid; gap: 12px; }
.bc-items img { border-radius: 4px; width: 100%; max-width: 32rem; aspect-ratio: 3 / 2; object-fit: cover; }
.bc-items h4 { font-size: var(--step-1); margin-bottom: 4px; }
.bc-items p { color: var(--haze-dim); margin-bottom: 6px; }
.bc-items a { font-weight: 600; }

/* about */
.about { padding-top: 88px; display: grid; gap: 24px; }
.about img { width: min(100%, 22rem); border-radius: 4px; transform: rotate(-1.5deg); }
.about p { max-width: var(--measure); margin-top: 12px; }
.about blockquote { margin: 22px 0 0; font-size: var(--step-2); font-weight: 300; line-height: 1.2; max-width: 24ch; color: var(--sodium); }
.about h3 { font-size: var(--step-1); margin-top: 28px; }
.follow { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }

.foot { padding-top: 72px; padding-bottom: 120px; color: var(--haze-dim); font-size: var(--step--1); display: grid; gap: 6px; }

/* bag */
.bag { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88svh; background: var(--haze); color: var(--night); border-radius: 18px 18px 0 0; }
.bag::backdrop { background: rgba(18, 21, 40, 0.6); }
.bag-inner { padding: 20px var(--gutter) 24px; display: grid; gap: 14px; }
.bag-head { display: flex; justify-content: space-between; align-items: center; }
.bag h2 { font-size: var(--step-2); }
.x { font: inherit; background: none; border: 0; color: var(--night); text-decoration: underline; cursor: pointer; min-height: 44px; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(18, 21, 40, 0.12); }
.lines .nm { font-weight: 600; }
.lines .amt { text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { font: inherit; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(18, 21, 40, 0.3); background: transparent; color: var(--night); cursor: pointer; }
.qty output { min-width: 2ch; text-align: center; }
.empty { color: #555; }
.total { display: flex; justify-content: space-between; font-size: var(--step-1); }
.fine { font-size: var(--step--1); color: #555; }
.err { color: #a3261a; font-weight: 600; }
.err:empty { display: none; }
.bag .btn { background: var(--night); color: var(--haze); }
.bag .btn:hover { background: var(--dusk); color: var(--haze); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 150%); background: var(--haze); color: var(--night); padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 25; max-width: calc(100% - 32px); transition: transform 0.25s ease; }
.toast.on { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

@media (min-width: 720px) {
  :root { --gutter: 32px; --step-3: 3.2rem; }
  .top nav { display: flex; margin-right: 16px; }
  .top nav a:not(.nav-merch) { display: inline; }
  .listen { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
  .bc-items { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .about { grid-template-columns: 22rem 1fr; gap: 48px; align-items: start; }
  .bag { margin: auto; max-width: 30rem; border-radius: 18px; }
}
@media (min-width: 1100px) {
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.item { scroll-margin-top: 84px; }
