:root {
  --bg: #f7f6ef;
  --ink: #1b251f;
  --line: #c5c7b9;
  --blue: #233eb5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0 auto;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.45 "Instrument Sans",
    Arial,
    sans-serif;
  max-width: 1570px;
  padding: 0 clamp(18px, 5vw, 90px);
}
header,
footer,
.heading,
.actions,
nav,
figcaption,
.tabs,
.colors,
.toggles,
.brand {
  display: flex;
  align-items: center;
}
header,
footer,
.heading,
figcaption {
  justify-content: space-between;
}
header {
  height: 74px;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.brand {
  font-weight: 700;
  font-size: 21px;
  gap: 9px;
  letter-spacing: -1px;
}
.brand span {
  background: var(--ink);
  color: var(--bg);
  font: 32px/28px Georgia;
  width: 29px;
  text-align: center;
  border-radius: 50%;
}
nav,
.actions,
.toggles,
.colors {
  gap: 22px;
}
nav {
  font-size: 14px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  align-items: center;
  padding: 44px 0 54px;
}
.intro small,
figcaption,
.network,
output,
.card span,
footer {
  font:
    12px/1.5 "IBM Plex Mono",
    monospace;
}
.intro small {
  letter-spacing: 0.11em;
}
h1,
h2,
.card strong,
legend {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(72px, 7.7vw, 130px);
  line-height: 0.89;
  letter-spacing: -0.075em;
  margin: 30px 0;
}
h1 i {
  font-weight: 400;
  color: var(--blue);
}
.intro p {
  max-width: 370px;
  font-size: 18px;
  color: #495449;
  margin: 0 0 27px;
}
button,
.secondary {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  background: transparent;
  padding: 9px 14px;
}
.mint {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  padding: 12px 19px;
}
.mint:hover {
  background: #334d39;
}
.secondary {
  padding: 12px 15px;
}
.network {
  color: #556151;
  margin-top: 10px;
}
.actions {
  gap: 10px;
}
figure {
  margin: 0;
  min-width: 0;
}
figure img,
.card img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
}
.exports {
  display: inline-flex;
  gap: 14px;
}
.exports button {
  padding: 0;
  border: 0;
  font: inherit;
}
.exports button:hover {
  text-decoration: underline;
}
figcaption {
  flex-wrap: wrap;
  padding: 10px 1px;
  gap: 8px;
}
section[id] {
  scroll-margin-top: 18px;
  border-top: 1px solid var(--line);
  padding: 27px 0 47px;
}
h2 {
  font-size: clamp(42px, 4vw, 68px);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0;
}
.heading {
  margin: 0 0 25px;
}
.tabs {
  gap: 2px;
}
.tabs button {
  border-radius: 20px;
  font-size: 13px;
}
.tabs [aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
#cards, #shuffledCards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card {
  display: block;
  text-align: left;
  padding: 0;
  border: 0;
}
.card:hover img {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.card strong,
.card span {
  display: block;
}
.card strong {
  font-size: 24px;
  margin-top: 8px;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.78fr);
  gap: 6%;
}
fieldset {
  margin: 0 0 18px;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
legend {
  font-size: 24px;
  padding-right: 12px;
}
.slider {
  display: grid;
  grid-template-columns: 105px 1fr 36px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
output {
  text-align: right;
}
input {
  accent-color: var(--blue);
  min-width: 0;
}
.colors,
.toggles {
  margin: 17px 0;
  flex-wrap: wrap;
}
.colors label {
  display: flex;
  align-items: center;
  gap: 8px;
}
input[type="color"] {
  width: 42px;
  height: 28px;
  border: 1px solid var(--line);
  padding: 1px;
  cursor: pointer;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 13px 20px;
  border-radius: 5px;
  max-width: 92vw;
  width: max-content;
  z-index: 5;
}
footer {
  border-top: 1px solid var(--line);
  padding: 19px 0 36px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
#more {
  margin-top: 18px;
}
@media (max-width: 760px) {
  header {
    height: 58px;
  }
  .hero,
  .workbench {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero {
    padding: 32px 0;
  }
  .intro h1 br {
    display: none;
  }
  .intro h1 i:before {
    content: " ";
  }
  .intro h1 {
    font-size: clamp(52px, 10vw, 76px);
    margin: 18px 0;
  }
  #cards, #shuffledCards {
    grid-template-columns: 1fr 1fr;
  }
  .hero figure {
    max-width: 530px;
    width: 100%;
  }
  .card strong {
    font-size: 19px;
  }
  figcaption {
    font-size: 10px;
  }
}

#cards[hidden], #shuffledCards[hidden] { display: none; }
#shuffledCards:empty::before { content: "Shuffle a curve in the studio to add it here."; }
#shuffledCards .card { width: 100%; }
#shuffledCards article > a { display: inline-block; margin-top: 8px; font-size: 13px; }

.line-paints { border: 0; padding: 0; margin: 14px 0; }
.line-paints legend { font: inherit; }
#paints { display: flex; flex-wrap: wrap; gap: 6px; }
#paints button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; font-size: 13px; }
#paints button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: -2px; }
#paints i { width: 25px; height: 10px; border-radius: 3px; }
