@font-face {
  font-family: Inter;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "New York", Georgia, serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 77.5rem;
  --gap: 1.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dot: #ff4a1c;
}

.portfolio {
  color-scheme: light;
  --paper: #f5f4f0;
  --ink: #121211;
  --muted: #5e5c57;
  --rule: rgb(18 18 17 / 14%);
  --focus: #bd3210;
}

.beatpm {
  color-scheme: dark;
  --paper: #0a0a0b;
  --surface: #131315;
  --ink: #f2f1ec;
  --muted: #a3a29d;
  --rule: rgb(255 255 255 / 12%);
  --focus: #f2f1ec;
  --spectrum: linear-gradient(90deg, #ee4b3b, #f5852b 22%, #f1c232 42%, #4fc76a 60%, #2db7a9 78%, #3c8eea);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  z-index: 10;
  inset: 0 auto auto 0;
  transform: translateY(-120%);
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus { transform: none; }

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin-inline: auto;
}

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header { min-height: 4.5rem; }

.wordmark {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span, .intro h1 span { color: var(--dot); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
}

.site-header nav a, .site-footer {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
}

.site-header nav a {
  padding-block: .5rem;
  text-decoration: none;
}

.site-header nav a:hover, .site-footer a:hover { color: var(--ink); }

.site-footer {
  flex-wrap: wrap;
  margin-top: clamp(6rem, 12vw, 11rem);
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--rule);
}

.site-footer a { text-underline-offset: .24em; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

.footer-links [aria-current="page"] { color: var(--ink); }

.policy {
  padding-top: clamp(3.5rem, 10vw, 8rem);
}

.policy h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

.policy-lede {
  max-width: 45ch;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
}

.policy section {
  max-width: 43rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.policy h2 {
  margin-bottom: .75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.policy section p { color: var(--muted); }

.policy p + p { margin-top: .75rem; }

.policy a {
  color: var(--ink);
  overflow-wrap: anywhere;
  text-underline-offset: .22em;
}

.app-icon {
  display: block;
  flex: none;
  width: 4rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22.5%;
}

.app-icon img { width: 100%; }

.app-icon--mac {
  overflow: visible;
  border-radius: 0;
}

.app-icon--mac img {
  width: 124%;
  max-width: none;
  margin: -12%;
}

.app-icon--small { width: 1.375rem; }

.text-link {
  color: var(--ink);
  font-size: .875rem;
  font-weight: 550;
  text-decoration: underline 1px;
  text-decoration-color: var(--muted);
  text-underline-offset: .3em;
}

.text-link:hover, .project-link:hover .text-link { text-decoration-thickness: 2px; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .625rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 100vmax;
  background: var(--ink);
  color: var(--paper);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button:hover { background: #fff; }

.button--quiet {
  border-color: rgb(255 255 255 / 24%);
  background: transparent;
  color: var(--ink);
}

.button--quiet:hover { background: rgb(255 255 255 / 8%); }

.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: #0a0a0b;
  box-shadow: 0 1.5rem 3rem -1.75rem rgb(18 18 17 / 30%);
}

.shot img { width: 100%; }

.beatpm .shot {
  border-radius: .875rem;
  box-shadow: 0 2rem 5rem -2rem #000;
}

.edge::before {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 1px;
  background: var(--spectrum);
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  pointer-events: none;
}

.intro, .beat-hero, .pricing-intro, .faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.intro {
  align-items: end;
  padding-block: clamp(4.5rem, 14vh, 10.5rem) clamp(5rem, 10vw, 9.5rem);
}

.intro h1, .beat-hero h1, .missing h1 {
  font-weight: 600;
  letter-spacing: -.055em;
}

.intro h1 {
  grid-column: 1 / 9;
  font-size: clamp(4rem, 13vw, 11.5rem);
  line-height: .86;
}

.intro-copy, .beat-lede, .pricing-intro p {
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.intro-copy {
  grid-column: 9 / -1;
  max-width: 29ch;
  margin-bottom: .35rem;
}

.section-label {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 550;
}

.project-link {
  display: grid;
  grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.project-head h3 {
  margin-top: .25rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.project-head p {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .875rem;
}

.project-copy p {
  max-width: 44ch;
  margin-block: .25rem .875rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.project-shot {
  grid-column: 2 / -1;
  margin-top: 2.5rem;
}

.beat-hero {
  align-items: end;
  padding-block: clamp(3.5rem, 10vh, 7.5rem) clamp(3rem, 6vw, 5rem);
}

.beat-brand {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: .875rem;
  margin-bottom: 2.5rem;
  font-size: .9375rem;
  font-weight: 550;
}

.beat-brand .app-icon { width: 2.75rem; }

.beat-hero h1 {
  grid-column: 1 / -1;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  font-size: clamp(2.75rem, 8.4vw, 8rem);
  line-height: .92;
}

.beat-hero h1 em {
  font-family: var(--serif);
  font-size: 1.13em;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: .7;
}

.beat-lede {
  grid-column: 1 / 7;
  max-width: 39ch;
}

.beat-side {
  grid-column: 8 / -1;
  justify-self: end;
  text-align: right;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.download-meta {
  margin-top: .875rem;
  color: var(--muted);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.hero-screen figcaption {
  display: flex;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-top: .875rem;
  color: var(--muted);
  font-size: .8125rem;
}

.hero-screen figcaption strong {
  color: var(--ink);
  font-weight: 550;
}

.beat-section { padding-top: clamp(5rem, 12vw, 10.5rem); }

.beat-section h2 {
  font-size: clamp(2.125rem, 4.2vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}

.beat-section > h2 { margin-bottom: clamp(2rem, 5vw, 4.5rem); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
  padding: 1.75rem 2rem 0 0;
  border-top: 1px solid var(--rule);
}

.feature-grid article + article {
  padding-left: 2rem;
  border-left: 1px solid var(--rule);
}

.feature-grid h3 {
  margin-bottom: .75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.feature-grid p {
  max-width: 34ch;
  color: var(--muted);
}

.pricing-intro {
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.pricing-intro h2 { grid-column: 1 / 7; }

.pricing-intro > div { grid-column: 7 / -1; }

.pricing-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.pricing-intro .button { margin-top: 1.5rem; }

.price-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  background: var(--surface);
}

.price { padding: 1.75rem clamp(1rem, 2.6vw, 2rem) 2.25rem; }

.price + .price { border-left: 1px solid var(--rule); }

.price h3 {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 550;
}

.price strong {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: .9375rem;
}

.pricing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: .875rem;
}

.friend-access {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--ink);
}

.friend-access strong { font-weight: 550; }

.faq > h2 { grid-column: 1 / 5; }

.faq > div {
  grid-column: 5 / -1;
  border-top: 1px solid var(--rule);
}

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 550;
  letter-spacing: -.015em;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  width: .75rem;
  height: .75rem;
  flex: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  opacity: .65;
  content: "";
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  max-width: 60ch;
  margin-block: -.375rem 1.75rem;
  color: var(--muted);
}

.checkout-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--surface);
}

.checkout-status h2 {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: .25rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.checkout-status h2::before {
  width: .5rem;
  height: .5rem;
  flex: none;
  border-radius: 50%;
  background: #4fc76a;
  content: "";
}

#checkout-cancel h2::before { background: var(--muted); }

.checkout-status p {
  padding-left: 1.125rem;
  color: var(--muted);
  font-size: .9375rem;
}

.checkout-status .button { flex-shrink: 0; }

.missing h1 {
  margin-block: clamp(4.5rem, 14vh, 10.5rem) 2rem;
  font-size: clamp(3.5rem, 10vw, 8.75rem);
  line-height: .92;
}

@media (max-width: 56.25rem) {
  .intro, .beat-hero, .pricing-intro, .faq { display: block; }

  .intro h1 { font-size: clamp(3.25rem, 17.25vw, 7.5rem); }

  .intro-copy, .beat-lede, .pricing-intro p { font-size: 1.125rem; }

  .intro-copy { margin-top: 2rem; }

  .project-link {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    row-gap: 1rem;
    padding-block: 1.75rem;
  }

  .project-link .app-icon { width: 3.5rem; }

  .project-copy, .project-shot { grid-column: 1 / -1; }

  .project-shot { margin-top: .5rem; }

  .beat-side {
    justify-self: auto;
    margin-top: 2rem;
    text-align: left;
  }

  .hero-actions { justify-content: flex-start; }

  .feature-grid { grid-template-columns: 1fr; }

  .feature-grid article, .feature-grid article + article {
    padding: 1.5rem 0;
    border-left: 0;
  }

  .pricing-intro p { margin-top: 1.25rem; }

  .pricing-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 37.5rem) {
  .site-header { min-height: 4rem; }

  .intro { padding-block: 4.5rem; }

  .beat-hero h1 { font-size: clamp(2rem, 10.9vw, 4.5rem); }

  .beat-brand { margin-bottom: 2rem; }

  .hero-actions, .checkout-status {
    flex-direction: column;
    align-items: stretch;
    gap: .875rem;
  }

  .hero-actions .text-link {
    align-self: center;
    padding-block: .375rem;
  }

  .download-meta { text-align: center; }

  .shot, .beatpm .shot { border-radius: .625rem; }

  .price-grid {
    grid-template-columns: 1fr;
    border-radius: .875rem;
  }

  .price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.375rem 1.25rem;
  }

  .price + .price {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .price h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
  }

  .price strong { font-size: 2.25rem; }

  .checkout-status { padding: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .project-shot, .project-link .app-icon, .faq summary::after {
    transition: transform 220ms var(--ease);
  }

  .project-link:hover .app-icon { transform: scale(1.045); }

  .project-link:hover .project-shot { transform: translateY(-.2rem); }
}
