@font-face {
  font-family: "Young Serif";
  src: url("./fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chivo";
  src: url("./fonts/chivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #302134;
  --ink: #f9e8cb;
  --accent: #ecc786;
  --on: #302134;
  --panel: #402946;
  --rule: color-mix(in srgb, var(--ink) 32%, transparent);
  --display: "Young Serif", Georgia, serif;
  --body: "Chivo", Arial, sans-serif;
  --space: clamp(1.15rem, 5vw, 5.5rem);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 0.23em;
}
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.05;
  text-wrap: balance;
  font-family: var(--display);
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2.5rem, 5.7vw, 5.4rem);
  letter-spacing: -0.036em;
}
h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  letter-spacing: -0.02em;
}
p {
  max-width: 62ch;
  text-wrap: pretty;
}
p + p {
  margin-top: 0.65rem;
}
figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figcaption {
  font-size: 0.87rem;
  line-height: 1.4;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
select,
input {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.58;
}
.wrap {
  width: min(100%, 94rem);
  margin: 0 auto;
  padding-inline: var(--space);
}
.skip {
  position: absolute;
  z-index: 5;
  left: 1rem;
  top: -5rem;
  padding: 0.7rem;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus {
  top: 0.5rem;
}
.mast,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mast {
  min-height: 4.7rem;
}
.wordmark {
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.1vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.mast nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 3rem);
}
.mast nav a {
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}
.mast a:hover,
.footer a:hover {
  text-decoration: underline;
}
.footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.footer strong {
  font-family: var(--display);
  font-size: 1.3rem;
}
.hero p {
  font-size: clamp(1.03rem, 1.5vw, 1.28rem);
  max-width: 42ch;
}
.action,
.tool .primary,
.take {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  text-decoration: none;
  font: 650 1rem/1.3 var(--body);
  padding: 0.72rem 1.1rem;
  background: var(--accent);
  color: var(--on);
  border: 1px solid transparent;
  cursor: pointer;
}
.action:hover,
.tool .primary:hover,
.take:hover {
  filter: brightness(0.9);
}
.work-area,
.shop-section {
  scroll-margin-top: 0.8rem;
}
.work-area {
  padding-block: clamp(3rem, 6vw, 6.5rem);
  background: var(--panel);
}
.bench-head {
  margin-bottom: 1.8rem;
}
.bench-head p {
  margin-top: 0.65rem;
}
.tool {
  min-width: 0;
}
.tool form,
.tool fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.tool fieldset {
  margin-bottom: 1rem;
}
.tool legend,
.field > span {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.field {
  display: grid;
  gap: 0.15rem;
  margin: 0.7rem 0;
  max-width: 100%;
}
.tool input[type="text"],
.tool input[type="number"],
.tool select,
.tool textarea {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid currentColor;
  background: var(--paper);
  color: var(--ink);
  border-radius: 0.15rem;
  min-width: 0;
  width: 100%;
}
.tool input[type="checkbox"] {
  accent-color: var(--accent);
  width: 1.15rem;
  height: 1.15rem;
}
.tool input[type="range"] {
  accent-color: var(--accent);
  max-width: 100%;
}
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.options button,
.small-action {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.48rem 0.8rem;
  min-height: 2.6rem;
}
.options button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.tool button:hover:not(:disabled) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.tool section > h3,
.tool article > h3 {
  margin-bottom: 0.6rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
}
.readout {
  font-variant-numeric: tabular-nums;
}
.shop-section {
  padding-block: clamp(2.6rem, 5.5vw, 5.8rem);
}
.visit-line {
  padding: 0.8rem 0;
  border-block-start: 1px solid var(--rule);
  font-size: 0.95rem;
}
.tool .take {
  margin-top: 1rem;
}
.tool small {
  font-size: 0.88rem;
}
.tool [role="status"]:empty {
  display: none;
}
@media (max-width: 680px) {
  .mast {
    min-height: 3.8rem;
  }
  .mast nav {
    gap: 0.85rem;
  }
  .mast nav a {
    font-size: 0.85rem;
  }
  .footer {
    align-items: start;
  }
  .footer span {
    order: 3;
    width: 100%;
  }
  .work-area,
  .shop-section {
    padding-block: 2.75rem;
  }
  .bench-head {
    margin-bottom: 1.25rem;
  }
}
@media (max-width: 410px) {
  .mast {
    gap: 0.45rem;
  }
  .mast nav {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .mast nav a {
    font-size: 0.76rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
.mast {
  border-bottom: 1px solid var(--rule);
}
.amp {
  padding-top: clamp(1.6rem, 4vw, 4rem);
}
.amp-grid {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 0.83fr);
  gap: 6%;
  align-items: center;
}
.amp-copy h1 {
  font-size: clamp(6.4rem, 12vw, 13rem);
  line-height: 0.8;
  letter-spacing: -0.075em;
  color: var(--accent);
  margin: 0.23em 0;
}
.amp-copy h1 em {
  font-style: normal;
  color: var(--ink);
}
.amp-copy .studio-name,
.amp figcaption,
.lesson-lines strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.amp-copy .action {
  margin-top: 1.1rem;
  border-radius: 3rem;
}
.amp figure {
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}
.amp img {
  height: clamp(20rem, 40vw, 35rem);
  border-radius: 48% 48% 2px 2px;
  object-position: center 58%;
}
.amp figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
  padding-top: 0.5rem;
}
.strings {
  height: 2.7rem;
  margin-block: 2rem 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 6px,
    #a88764 6px 7px
  );
  width: calc(100% - var(--space) * 2);
  padding: 0;
  max-width: 83rem;
}
.lesson-bill {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.54fr;
  column-gap: 4%;
}
.lesson-bill header p {
  margin-top: 0.8rem;
}
.lesson-lines article {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.lesson-lines article:first-child {
  padding-top: 0.2rem;
  border: 0;
}
.lesson-lines strong {
  color: var(--accent);
}
.lesson-lines p {
  margin: 0.35rem 0;
  font-size: 0.94rem;
}
.lesson-bill figure img {
  height: 17rem;
}
.lesson-bill figcaption {
  margin-top: 0.45rem;
}
.lesson-bill .visit-line {
  grid-column: 1/-1;
  margin-top: 1.2rem;
}
.amp-bench {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: start;
}
.metro {
  background: #211923;
  border: 4px double #bb9473;
  border-radius: 1.2rem;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: inset 0 0 0 0.5rem #2f2533;
}
.tempo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}
.readout {
  color: #f1cc80;
  font: 700 clamp(2.3rem, 4vw, 4.5rem)/1 var(--body);
}
.beat-lamps {
  display: flex;
  gap: 0.55rem;
  margin: 1.3rem 0;
}
.beat-lamps i {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #685666;
  border: 2px solid #b8a2ac;
}
.beat-lamps i.on {
  background: #f8ce83;
  border-color: #ffe6ac;
  box-shadow: 0 0 0.6rem #eeb368;
}
.metro-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.routine ol {
  padding-left: 1.55rem;
}
.routine li {
  padding: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
.routine b {
  color: var(--accent);
}
.tool .take,
.metro button,
.routine button {
  border-radius: 2rem;
}
@media (max-width: 820px) {
  .lesson-bill {
    grid-template-columns: 1fr 1.22fr;
  }
  .lesson-bill figure {
    display: grid;
    grid-template-columns: 1fr;
    grid-row: 2;
    align-self: start;
    margin-top: 1rem;
  }
  .lesson-bill figure img {
    height: 9rem;
  }
  .lesson-lines {
    grid-column: 2;
    grid-row: 1/3;
  }
}
@media (max-width: 620px) {
  .amp-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.79fr);
    gap: 0.7rem;
    align-items: start;
  }
  .amp-copy h1 {
    font-size: clamp(4.5rem, 16vw, 6.2rem);
    margin: 0.25em 0;
  }
  .amp-copy p:not(.studio-name),
  .amp-copy .action {
    grid-column: 1/-1;
  }
  .amp-grid {
    display: grid;
  }
  .amp-copy {
    display: contents;
  }
  .amp-copy .studio-name {
    grid-column: 1;
  }
  .amp-copy h1 {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
  .amp figure {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
  }
  .amp img {
    height: clamp(9.5rem, 39vw, 16rem);
  }
  .amp figcaption span:last-child {
    display: none;
  }
  .amp figcaption {
    font-size: 0.65rem;
  }
  .amp-copy .action {
    justify-self: start;
    margin: 0.2rem 0;
  }
  .strings {
    margin-top: 1.2rem;
    height: 1.85rem;
  }
  .lesson-bill,
  .amp-bench {
    display: block;
  }
  .lesson-lines,
  .lesson-bill figure,
  .routine {
    margin-top: 1.4rem;
  }
  .lesson-bill figure img {
    height: 13rem;
    object-position: center 52%;
  }
  .metro .readout {
    font-size: 2.2rem;
  }
}
@media (max-width: 620px) {
  .amp-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  }
  .amp-copy h1 {
    font-size: clamp(2.85rem, 12.2vw, 5.25rem);
    white-space: nowrap;
    overflow-wrap: normal;
    line-height: 0.88;
  }
}
