:root {
  --ink: #171322;
  --panel: #221b2e;
  --line: #4b3e59;
  --cream: #fff8ea;
  --lime: #d5fa56;
  --orchid: #ab89fd;
  --muted: #cbc0d4;
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: var(--cream);
  background: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--orchid); outline-offset: 4px; }
.wrap { width: min(100% - 4rem, 74rem); margin-inline: auto; }
.label { font: 700 .74rem/1.4 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.lime { color: var(--lime); }
.orchid { color: var(--orchid); }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 2; padding: .75rem; background: var(--lime); color: var(--ink); }
.skip:focus { top: .5rem; }

.site-header { border-bottom: 1px solid var(--line); }
.masthead { min-height: 4.3rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.identity { display: flex; gap: .45rem; align-items: center; text-decoration: none; font-weight: 900; font-size: .76rem; line-height: 1; text-transform: uppercase; }
.masthead nav { display: flex; flex-wrap: wrap; column-gap: clamp(.65rem, 3vw, 2.5rem); }
.masthead nav a { display: grid; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--lime); }
.edition { color: var(--lime); white-space: nowrap; }

.hero, .lab-hero { display: grid; grid-template-columns: 1fr .94fr; gap: 1.1rem; align-items: center; padding-block: clamp(1.6rem, 5vw, 3.4rem); }
.wordmark {
  font-size: clamp(3.2rem, 8.4vw, 7.4rem);
  font-weight: 950;
  font-style: italic;
  line-height: .86;
  letter-spacing: -.09em;
  text-transform: uppercase;
  margin: .16em 0 .19em;
}
.wordmark span { display: block; }
.wordmark span:last-child { color: var(--lime); }
.tagline { font-size: clamp(1.3rem, 3vw, 2.15rem); font-weight: 850; letter-spacing: -.055em; }
.lede { color: var(--muted); max-width: 32rem; margin: .35rem 0 1.15rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 1.15rem;
  padding: .62rem .85rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}
.button:hover { background: var(--cream); }
.hero-art { position: relative; background: radial-gradient(ellipse at center, #35254b, transparent 68%); }
.hero-art figcaption { text-align: right; color: var(--muted); }

.tape { background: var(--lime); color: var(--ink); }
.tape .wrap { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.tape span { padding: .72rem .25rem; }
.tape span + span { border-left: 1px solid var(--ink); }

.section { padding-block: clamp(1.6rem, 4vw, 3rem); }
h2, .lab-hero h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; font-weight: 900; letter-spacing: -.065em; margin: .25rem 0 .85rem; }
h3 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.045em; margin-bottom: .4rem; }
.cards, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.card, .feature, .score { background: var(--panel); border: 1px solid var(--line); }
.card-banner { min-height: 6.4rem; position: relative; display: flex; align-items: start; justify-content: space-between; padding: .65rem; overflow: hidden; color: var(--cream); }
.card-banner .label { background: var(--ink); padding: .3rem .45rem; z-index: 1; }
.card-banner span[aria-hidden] { position: absolute; right: .85rem; bottom: -.8rem; font-size: 6.75rem; line-height: 1; color: var(--lime); }
.rhythm { background: repeating-linear-gradient(-55deg, #45315d 0 10px, #38264b 10px 20px); }
.cloud { background: repeating-linear-gradient(0deg, #2636a0 0 5px, #293bad 5px 10px); }
.cloud span[aria-hidden] { color: #b7f7d9; }
.canteen { background: repeating-linear-gradient(40deg, #743358 0 20px, #622a4a 20px 40px); }
.card-copy, .feature { padding: 1rem; }
.card p, .feature p:not(.label), .about p:not(.label) { color: var(--muted); }
.card details { margin-top: .65rem; }
.card details p { margin: .45rem 0 0; }
summary { width: fit-content; cursor: pointer; color: var(--lime); padding: .35rem 0; font-weight: 700; }

.feature-strip { border-block: 1px solid var(--line); }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature .label { margin-bottom: .4rem; }
.feature h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.text-link { display: inline-block; margin-top: .65rem; color: var(--lime); }
.about { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 2.3rem; }
.about p { max-width: 30rem; }
.about img { width: min(28vw, 14rem); transform: rotate(4deg); }
footer { border-top: 1px solid var(--line); color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: .6rem; padding-block: 1rem; }

.lab-hero { padding-block: clamp(2rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.lab-hero h1 { font-size: clamp(3.1rem, 8.5vw, 6.7rem); }
.score { padding: .85rem; }
.score figcaption { color: var(--muted); }
.beat-book { border-top: 1px solid var(--line); }
.beat-book dl { margin-bottom: 0; }
.beat-book dl div { display: grid; grid-template-columns: 1fr 2fr; gap: .4rem; border-top: 1px solid var(--line); padding: .6rem 0; }
.beat-book dt { color: var(--lime); font-weight: 750; }
.beat-book dd { margin: 0; color: var(--muted); }

@media (max-width: 54rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .edition { display: none; }
}

@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .lab-hero, .cards, .feature-grid { grid-template-columns: 1fr; }
  .masthead nav { column-gap: clamp(.4rem, 2.6vw, 1rem); font-size: .65rem; letter-spacing: .045em; }
  .masthead .identity { font-size: .65rem; gap: .22rem; }
  .masthead img { width: 30px; }
  .wordmark { font-size: clamp(2.75rem, 13.6vw, 5.6rem); }
  .hero-art { width: min(100%, 25rem); justify-self: center; }
  .tape .label { font-size: .63rem; letter-spacing: .05em; }
  .about { display: block; }
  .about img { width: 9rem; margin: 1rem 0 0 .3rem; }
  .beat-book dl div { grid-template-columns: 1fr; gap: .12rem; }
}
