:root {
  --rc-ink: #211831;
  --rc-violet: #553c76;
  --rc-pale: #e9e4f1;
  --rc-paper: #faf9fc;
  --rc-spot: #d8ef95;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { background: var(--rc-paper); color: var(--rc-ink); }
body > main { max-width: 1160px; padding: clamp(14px, 3vw, 36px) clamp(12px, 3.5vw, 42px) 70px; }
.rc-intro { margin: 0 auto 18px; }
.rc-header, .rc-charts-bar, .rc-tools { display: flex; align-items: center; justify-content: space-between; }
.rc-header { gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #d9d2e2; }
.rc-header h1 { margin: 0; line-height: 1; font-size: clamp(23px, 4.5vw, 52px); letter-spacing: -.054em; }
.rc-header nav { display: flex; align-items: center; flex-wrap: nowrap; flex: none; gap: clamp(6px, 1vw, 12px); padding: 0; border: 0; margin: 0; }
.rc-icon {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border: 1px solid #cec5d8; border-radius: 12px;
  background: white; color: var(--rc-ink); text-decoration: none;
}
.rc-icon svg, .rc-chart-symbol svg { width: 21px; height: 21px; }
.rc-header .rc-icon + .rc-icon::before { content: ""; position: absolute; height: 1px; width: clamp(6px, 1vw, 12px); right: 100%; background: #a897ba; }
.rc-icon:hover, .rc-icon:focus-visible { background: var(--rc-spot); }
.rc-intro :focus-visible, .rc-charts-bar :focus-visible { outline: 3px solid #6845ab; outline-offset: 3px; }
.rc-shelf {
  list-style: none; margin: 0; padding: 20px 3px 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(94px, 1fr); gap: clamp(8px, 1.4vw, 17px);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b8adc7 transparent;
}
.rc-shelf li { min-width: 0; margin: 0; scroll-snap-align: start; }
.rc-cover { display: block; text-align: center; color: var(--rc-ink); text-decoration: none; border-radius: 5px; }
.rc-jacket { position: relative; display: grid; place-items: end center; height: clamp(88px, 11vw, 138px); padding: 5px 5px 3px; }
.rc-jacket > img { display: block; max-width: 100%; max-height: 100%; height: 100%; object-fit: contain; border-radius: 2px; filter: drop-shadow(1px 3px 3px #25193533); }
.rc-cart { position: absolute; right: 3px; bottom: 0; display: grid; place-items: center; width: 25px; height: 25px; color: var(--rc-ink); background: var(--rc-spot); border: 2px solid var(--rc-paper); border-radius: 50%; }
.rc-cart svg { width: 14px; height: 14px; }
.rc-asin { display: block; padding: 7px 0 4px; font: 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .015em; color: #51475c; }
.rc-cover:hover .rc-asin { text-decoration: underline; }
#lab, #charts, #flask-chart { scroll-margin-top: 8px; }
.rc-lab { overflow: hidden; border-radius: clamp(10px, 2vw, 20px); border: 1px solid #483b55; background: #211b2e; box-shadow: 0 4px 16px #30283e12; }
.rc-launch, #running-lab {
  display: grid; place-items: center; width: 100%; height: clamp(235px, min(55vw, 73vh), 640px);
  height: clamp(235px, min(55vw, 73svh), 640px); border: 0;
}
.rc-launch { overflow: hidden; position: relative; color: #24192f; background: radial-gradient(ellipse at 50% 96%, #4c3a61, #211b2e 70%); }
.rc-launch > img { height: 91%; width: 89%; object-fit: contain; filter: drop-shadow(0 6px 15px #100b16a1); }
.rc-play { position: absolute; inset: 0; margin: auto; width: clamp(54px, 8vw, 80px); height: clamp(54px, 8vw, 80px); display: grid; place-items: center; background: var(--rc-spot); border-radius: 50%; box-shadow: 0 0 0 6px #231b3999, 0 4px 16px #100d165c; }
.rc-play svg { width: 53%; height: auto; transform: translateX(1px); }
.rc-launch:hover .rc-play, .rc-launch:focus-visible .rc-play { background: #edffbb; }
.rc-launch[hidden], #running-lab[hidden], .rc-tools[hidden] { display: none; }
.rc-tools { justify-content: flex-end; min-height: 44px; padding: 2px 8px; border-top: 1px solid #50445f; }
.rc-tools .rc-icon { border: 0; border-radius: 6px; background: transparent; color: #e6dbf3; }
.rc-tools .rc-icon:hover, .rc-tools .rc-icon:focus-visible { background: #4b3e59; }
.rc-downloads { padding: 12px 0 14px; }
.rc-charts-bar {
  position: sticky; top: 0; z-index: 2; gap: 8px; padding: 3px 6px; background: #e8e3f1;
  color: #412e56; border: 1px solid #d2c9de; border-radius: 9px;
}
.rc-chart-symbol { display: grid; place-items: center; width: 42px; height: 42px; }
.rc-charts-bar .rc-icon { background: transparent; border-color: transparent; }
.rc-charts-bar .rc-icon:hover { background: white; }
#charts { outline: 0; }
#flask-chart { scroll-margin-top: 58px; }
#flask-chart:target + .table-scroll #erlenmeyer-flask > td, #erlenmeyer-flask:target > td { background: var(--rc-spot); color: #211831; font-weight: 700; }
.rc-charts-only body { background: white; }
.rc-charts-only .rc-intro, .rc-charts-only .rc-downloads, .rc-charts-only .rc-charts-bar { display: none; }
.rc-charts-only #flask-chart { scroll-margin-top: 8px; }
.rc-charts-only body > main { padding-top: 10px; }
@media (max-width: 960px) { #charts .calc { order: 0; } }
@media (max-width: 480px) {
  .rc-header { gap: 6px; } .rc-header nav { gap: 5px; }
  .rc-header .rc-icon { width: 41px; }
  .rc-shelf { grid-auto-columns: 91px; padding-top: 15px; }
}
