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

:root {
  --paper: #f2f4f3;
  --indigo: #1f3350;
  --manila: #e2c77a;
  --manila-edge: #c9ab5c;
  --sticker: #c42032;
  --thread: #5f6e80;
  --rule: #c9d0d8;
  --measure: 66ch;
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--indigo);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid var(--sticker);
  outline-offset: 3px;
}

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

/* Header */
.site-header {
  padding-block: 1.5rem;
}

.wordmark {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Hero */
.hero {
  display: grid;
  gap: 3rem;
  padding-block: 2.5rem 4rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding-block: 4rem 6rem;
  }
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-weight: 850;
  font-stretch: 125%;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 12ch;
}

.hero-intro {
  margin: 0 0 2rem;
  max-width: 44ch;
  font-size: 1.1875rem;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  background: var(--indigo);
  color: var(--paper);
  font-weight: 650;
  font-stretch: 110%;
  text-decoration: none;
  border-radius: 0.35rem;
}

.button:hover {
  background: #142339;
}

/* Swing tag */
.tag-figure {
  margin: 0;
  justify-self: center;
  width: min(100%, 21rem);
}

.tag-caption {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--thread);
}

.tag-string {
  display: block;
  width: 5rem;
  height: 3rem;
  margin-left: 50%;
  translate: -50% 0;
}

.tag {
  position: relative;
  padding: 3.25rem 1.6rem 1.6rem;
  background: var(--manila);
  color: var(--indigo);
  clip-path: polygon(18% 0, 82% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
  rotate: -3deg;
  transform-origin: 50% 0;
}

.tag::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 3px var(--manila-edge);
}

.tag-title {
  margin: 0 0 1rem;
  font-weight: 750;
  font-stretch: 100%;
  font-size: 1.1875rem;
  line-height: 1.3;
}

.tag-price {
  margin: 0;
  font-weight: 850;
  font-stretch: 115%;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--sticker);
}

.tag-price-label {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
}

.tag dl {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.9rem;
  font-size: 0.9375rem;
}

.tag dt {
  font-weight: 650;
}

.tag dd {
  margin: 0;
}

.tag-note {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--manila-edge);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Content sections */
.section {
  padding-block: 3rem;
  border-top: 1px solid var(--rule);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
  max-width: var(--measure);
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 2.5rem;
  }
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 850;
  font-stretch: 125%;
  font-size: 2rem;
  line-height: 1;
  color: var(--sticker);
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 750;
}

/* Footer */
.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--thread);
}

.site-footer p {
  margin: 0 0 0.75rem;
  max-width: var(--measure);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--indigo);
}

/* Legal and 404 pages */
.prose {
  padding-block: 2rem 4rem;
  max-width: var(--measure);
}

.prose h1 {
  margin: 0 0 0.5rem;
  font-weight: 850;
  font-stretch: 120%;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 2rem 0 0.5rem;
  font-weight: 750;
  font-stretch: 105%;
  font-size: 1.25rem;
}

.prose .updated {
  margin: 0 0 2rem;
  color: var(--thread);
}

.prose ol {
  padding-left: 1.4rem;
}

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