:root {
  color-scheme: light;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.55;
  color: #173642;
  background: #e8e4db;
  --world: #e8e4db;
  --enamel: #f2efe7;
  --well: #dfe6e2;
  --active: #fff;
  --ink: #173642;
  --soft: #4c6872;
  --line: #c7dad9;
  --sky: #a9e4ff;
  --blue: #5f89d7;
  --sun: #ffda73;
  --coral: #ffb09d;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --site-width: 96rem;
  --legal-width: 54rem;
  --edge: clamp(1rem, 3vw, 2.5rem);
  --radius: 20px;
  --shadow: 8px 8px 0 var(--line);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--world);
}

::selection {
  color: var(--ink);
  background: var(--sun);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  color: var(--active);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark::before {
  width: 0.85rem;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 3px 3px 0 var(--coral);
  content: "";
}

/* Product page */

.product-page {
  padding-block: var(--edge);
}

.product-header,
.house-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  width: min(calc(100% - (2 * var(--edge))), var(--site-width));
  margin-inline: auto;
}

.product-header {
  min-height: 4.75rem;
  padding: 0.9rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--active);
  box-shadow: 6px 6px 0 var(--line);
}

.house-link {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.house-link strong {
  color: var(--ink);
  font-weight: 750;
}

.product-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: center;
  gap: 1.25rem clamp(0.75rem, 1.4vw, 1.5rem);
  width: min(calc(100% - (2 * var(--edge))), var(--site-width));
  min-height: clamp(36rem, 72svh, 56rem);
  margin-inline: auto;
  padding-block: clamp(5.5rem, 10vw, 9.5rem);
}

.product-hero::before,
.product-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.product-hero::before {
  top: clamp(2.5rem, 5vw, 4rem);
  right: 0;
  width: 0.9rem;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  background: var(--coral);
}

.product-hero::after {
  right: 0;
  bottom: clamp(2.25rem, 5vw, 4rem);
  width: clamp(2.5rem, 5vw, 4.5rem);
  height: 1rem;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.eyebrow {
  grid-column: 1 / 4;
  justify-self: start;
  margin: 0;
  padding: 0.52rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.product-hero h1 {
  grid-column: 1 / 12;
  max-width: 10.5ch;
  margin: 0.2rem 0 0;
  font-size: clamp(4rem, 10.2vw, 10rem);
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 0.86;
  text-wrap: balance;
}

.product-intro {
  grid-column: 7 / -1;
  max-width: 42rem;
  margin: 1rem 0 0;
  padding-left: clamp(1rem, 2.3vw, 2rem);
  border-left: 5px solid var(--blue);
  color: var(--soft);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 550;
  line-height: 1.48;
  text-wrap: pretty;
}

.product-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(calc(100% - (2 * var(--edge))), var(--site-width));
  min-height: clamp(28rem, 58vw, 52rem);
  margin-inline: auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--sky);
  box-shadow: var(--shadow);
}

.product-stage::before,
.product-stage::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.product-stage::before {
  inset: 50% 0 auto;
  border-top: 2px solid var(--blue);
}

.product-stage::after {
  inset: 0 auto 0 50%;
  border-left: 2px solid var(--blue);
}

.stage-table {
  position: relative;
  z-index: 1;
  width: min(64%, 54rem);
  height: clamp(11rem, 26vw, 23rem);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--blue);
  box-shadow: 0 0 0 10px var(--active), 8px 8px 0 10px var(--soft);
}

.stage-table::before,
.stage-table::after {
  position: absolute;
  content: "";
}

.stage-table::before {
  inset: 13%;
  border: 2px solid var(--sky);
  border-radius: 14px;
}

.stage-table::after {
  top: 50%;
  left: 50%;
  width: clamp(2.7rem, 5vw, 4.75rem);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--coral);
  transform: translate(-50%, -50%);
}

.stage-place {
  position: absolute;
  display: block;
  width: clamp(3.1rem, 8vw, 7.5rem);
  height: clamp(1.7rem, 3vw, 2.8rem);
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--active);
  box-shadow: 4px 4px 0 var(--line);
}

.stage-place-two,
.stage-place-five {
  background: var(--sun);
}

.stage-place-four {
  background: var(--coral);
}

.stage-place-one,
.stage-place-two,
.stage-place-three,
.stage-place-four {
  left: 50%;
}

.stage-place-one {
  top: 0;
  transform: translate(-160%, calc(-100% - 1.5rem));
}

.stage-place-two {
  top: 0;
  transform: translate(60%, calc(-100% - 1.5rem));
}

.stage-place-three {
  bottom: 0;
  transform: translate(-160%, calc(100% + 1.5rem));
}

.stage-place-four {
  bottom: 0;
  transform: translate(60%, calc(100% + 1.5rem));
}

.stage-place-five,
.stage-place-six {
  top: 50%;
  width: clamp(1.7rem, 3vw, 2.8rem);
  height: clamp(3.1rem, 8vw, 7.5rem);
}

.stage-place-five {
  left: 0;
  transform: translate(calc(-100% - 1.5rem), -50%);
}

.stage-place-six {
  right: 0;
  transform: translate(calc(100% + 1.5rem), -50%);
}

.beat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(calc(100% - (2 * var(--edge))), var(--site-width));
  margin: clamp(2.5rem, 5vw, 5rem) auto 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--active);
  box-shadow: var(--shadow);
  counter-reset: beat;
}

.beat-strip article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(15rem, 25vw, 22rem);
  padding: clamp(1.25rem, 2.8vw, 2.5rem);
  border-right: 2px solid var(--ink);
  background: var(--enamel);
  counter-increment: beat;
}

.beat-strip article:nth-of-type(2) {
  background: var(--well);
}

.beat-strip article:nth-of-type(3) {
  border-right: 0;
  background: var(--active);
}

.beat-strip article::before {
  display: grid;
  place-items: center;
  align-self: flex-start;
  min-width: 2.7rem;
  height: 2rem;
  padding-inline: 0.55rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  content: "0" counter(beat);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.beat-strip article:nth-of-type(2)::before {
  background: var(--sky);
}

.beat-strip article:nth-of-type(3)::before {
  background: var(--coral);
}

.beat-strip p {
  max-width: 23rem;
  margin: 3rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: pretty;
}

.house-footer {
  min-height: 9rem;
  padding: 2.5rem 0 0;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.house-footer p,
.house-footer nav {
  margin: 0;
}

.house-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Legal and support pages */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(calc(100% - (2 * var(--edge))), var(--legal-width));
  min-height: 4.75rem;
  margin: var(--edge) auto 0;
  padding: 0.9rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--active);
  box-shadow: 6px 6px 0 var(--line);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.site-header nav a[aria-current="page"] {
  text-decoration-thickness: 3px;
  text-decoration-color: var(--blue);
}

.legal-shell {
  width: min(calc(100% - (2 * var(--edge))), var(--legal-width));
  margin-inline: auto;
}

.legal-copy {
  margin-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 8vw, 7rem);
  padding: clamp(1.5rem, 5vw, 4.5rem);
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--active);
  box-shadow: var(--shadow);
}

.legal-copy h1,
.legal-index h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 820;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.effective {
  display: table;
  margin-top: 1.25rem;
  padding: 0.5rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--sky);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.legal-copy h1 > [aria-hidden="true"] {
  display: none;
}

.legal-copy h2 {
  margin: 3rem 0 0.8rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.legal-copy h2::before {
  display: inline-block;
  width: 0.72rem;
  aspect-ratio: 1;
  margin-right: 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  content: "";
}

.legal-copy p,
.legal-copy li {
  font-size: clamp(1rem, 1.7vw, 1.075rem);
  overflow-wrap: anywhere;
}

.legal-copy p {
  margin: 1.4rem 0 0;
}

.legal-copy ul {
  margin: 1.15rem 0 0;
  padding-left: 1.4rem;
}

.legal-copy li {
  padding-left: 0.4rem;
}

.legal-copy li::marker {
  color: var(--blue);
}

.legal-copy li + li {
  margin-top: 1rem;
}

.legal-copy strong {
  font-weight: 780;
}

.legal-index {
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding-block: 3rem;
}

.legal-index .wordmark {
  margin-bottom: 1rem;
}

.legal-index nav {
  margin-top: 2rem;
}

@media (max-width: 52rem) {
  .product-hero {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: 38rem;
  }

  .eyebrow {
    grid-column: 1 / 4;
  }

  .product-hero h1 {
    grid-column: 1 / -1;
  }

  .product-intro {
    grid-column: 3 / -1;
  }
}

@media (max-width: 44rem) {
  .product-header,
  .house-footer,
  .site-header {
    align-items: flex-start;
  }

  .product-hero {
    grid-template-columns: 1fr;
    min-height: 34rem;
    padding-block: 5rem;
  }

  .eyebrow,
  .product-hero h1,
  .product-intro {
    grid-column: 1;
  }

  .product-hero h1 {
    font-size: clamp(3rem, 13vw, 6.2rem);
  }

  .product-intro {
    max-width: 32rem;
    margin-top: 0.75rem;
  }

  .product-stage {
    min-height: 26rem;
  }

  .stage-table {
    width: 58%;
    height: 8.75rem;
    box-shadow: 0 0 0 7px var(--active), 6px 6px 0 7px var(--soft);
  }

  .stage-place-one {
    transform: translate(-160%, calc(-100% - 1.1rem));
  }

  .stage-place-two {
    transform: translate(60%, calc(-100% - 1.1rem));
  }

  .stage-place-three {
    transform: translate(-160%, calc(100% + 1.1rem));
  }

  .stage-place-four {
    transform: translate(60%, calc(100% + 1.1rem));
  }

  .stage-place-five {
    transform: translate(calc(-100% - 1.1rem), -50%);
  }

  .stage-place-six {
    transform: translate(calc(100% + 1.1rem), -50%);
  }

  .beat-strip {
    grid-template-columns: 1fr;
  }

  .beat-strip article {
    min-height: 13rem;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .beat-strip article:nth-of-type(3) {
    border-bottom: 0;
  }

  .site-header {
    flex-direction: column;
  }
}

@media (max-width: 27rem) {
  .product-header,
  .house-footer {
    flex-direction: column;
  }

  .product-header {
    align-items: stretch;
  }

  .house-link {
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .product-hero h1 {
    font-size: clamp(2.75rem, 13.2vw, 4.2rem);
  }

  .legal-copy {
    padding-inline: 1.2rem;
  }

  .legal-copy h1,
  .legal-index h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
