@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --liner: #dce4ea;
  --label: #ffffff;
  --ink: #15212f;
  --slate: #566473;
  --rule: #b9c6d1;
  --amber: #f3b33d;
  --amber-ink: #6b4a05;
  --page: #f6f8fa;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --liner: #1d2a38;
    --label: #f4f6f8;
    --ink: #e8edf2;
    --slate: #a3b0bd;
    --rule: #34465a;
    --page: #121b25;
  }
  .sheet .label {
    color: #15212f;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--page);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  line-height: 1.55;
  font-stretch: 100%;
}

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

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-stretch: 68%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.45rem;
  font-stretch: 80%;
}

p,
li {
  max-width: var(--measure);
}

.lede {
  font-size: 1.2rem;
  color: var(--slate);
}

/* Home hero: a sheet of labels on its backing paper */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 5rem);
}

.sheet-wrap {
  position: relative;
}

.sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 1.1rem;
  background: var(--liner);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgb(21 33 47 / 0.45);
  aspect-ratio: 210 / 230;
}

.label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 0.55rem 0.6rem 0.45rem;
  background: var(--label);
  border-radius: 9px;
  font-size: clamp(0.55rem, 1.05vw, 0.78rem);
  line-height: 1.15;
}

.label .name {
  font-weight: 600;
  font-stretch: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.label .price {
  font-weight: 800;
  font-stretch: 62%;
  font-size: 2.1em;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.bars {
  height: 1.5em;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 1px,
    transparent 1px 3px,
    currentColor 3px 5px,
    transparent 5px 6px,
    currentColor 6px 7px,
    transparent 7px 10px,
    currentColor 10px 13px,
    transparent 13px 14px
  );
  opacity: 0.9;
}

.label.used {
  visibility: hidden;
}

.lifted {
  position: absolute;
  width: 31%;
  aspect-ratio: 1 / 0.78;
  right: -2%;
  bottom: 25%;
  background: var(--amber);
  color: #15212f;
  transform: rotate(-9deg) translate(0, 0);
  box-shadow: 0 14px 22px -10px rgb(21 33 47 / 0.55);
  font-size: clamp(0.62rem, 1.25vw, 0.92rem);
  animation: peel 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms both;
}

.lifted .price {
  font-size: 2.4em;
}

@keyframes peel {
  from {
    transform: rotate(0deg) translate(-104%, -6%);
    box-shadow: 0 0 0 rgb(21 33 47 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lifted {
    animation: none;
  }
}

/* Studio home */

.intro {
  padding-block: clamp(2.5rem, 8vw, 6.5rem) clamp(2rem, 5vw, 3.5rem);
}

.intro h1 {
  max-width: 15ch;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.intro .lede {
  max-width: 38rem;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  background: var(--liner);
  font-weight: 600;
  font-stretch: 85%;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.feature h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-stretch: 68%;
}

.feature h3 a {
  text-decoration: none;
}

.status {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.examples {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.examples li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
  font-stretch: 88%;
  font-size: 1.1rem;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
}

.contacts dt {
  color: var(--slate);
}

.contacts dd {
  margin: 0.25rem 0 0;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  overflow-wrap: anywhere;
}

/* Products */

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
}

.product {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.product img {
  width: 5.5rem;
  height: 5.5rem;
}

.product h3 a {
  text-decoration: none;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.store:hover {
  background: var(--ink);
  color: var(--page);
}

.store.primary {
  background: var(--ink);
  color: var(--page);
}

.store.primary:hover {
  background: transparent;
  color: var(--ink);
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promises strong {
  display: block;
  font-stretch: 75%;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.promises span {
  color: var(--slate);
}

/* Product page */

.shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 0.75rem;
  border-top: 3px solid var(--amber);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-weight: 800;
  font-stretch: 62%;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.features {
  columns: 2 18rem;
  column-gap: 3rem;
  padding-left: 1.1rem;
}

.features li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.note {
  font-size: 0.9rem;
  color: var(--slate);
}

/* Long text pages */

.prose {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.prose h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
}

.prose h2 {
  font-size: 1.6rem;
  font-stretch: 78%;
  margin-top: 2.2rem;
}

.prose h3 {
  margin-top: 1.6rem;
}

.prose p,
.prose li {
  max-width: 38rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.mail {
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--slate);
}

.site-foot nav {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
  }
  .sheet-wrap {
    max-width: 30rem;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .promises {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .feature,
  .split,
  .contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 30rem) {
  .product {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .site-nav {
    gap: 0.9rem;
  }
}
