@font-face {
  font-family: Bangers;
  src: url("bangers-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --plum: #321743;
  --yellow: #ffd21f;
  --forest: #154436;
  --paper: #f8ebc9;
  --lavender: #d3b8eb;
  --ink: #150a2b;
  --dot-plum: #593178;
  --pitch: 17px;
  --diameter: 3px;
  --seam: clamp(19px, 3.4vw, 47px);
  --gutter: clamp(1rem, 5vw, 4.5rem);
  --measure: 71rem;
  --display: Bangers, Impact, "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--plum);
  color: var(--paper);
  font: 400 1rem/1.56 var(--body);
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }

.frame {
  width: min(100%, var(--measure));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  z-index: 6;
  top: .65rem;
  left: .65rem;
  padding: .65rem 1rem;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 750;
  transform: translateY(-180%);
}

.skip:focus { transform: none; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-block: .95rem;
}

.brand { width: clamp(9.25rem, 31vw, 15rem); }

.masthead__label {
  color: var(--yellow);
  font-size: clamp(.65rem, 2vw, .87rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: end;
}

.masthead__back {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  text-align: end;
  font-size: clamp(.79rem, 2.5vw, .97rem);
  font-weight: 740;
}

.masthead__back:hover, .masthead__back:focus-visible { color: var(--yellow); }
.masthead__back svg { flex: none; }

.hero, .detail-banner, .contact, .band {
  position: relative;
  isolation: isolate;
}

.hero {
  overflow: clip;
  --diameter: 4px;
  --pitch: clamp(13px, 2vw, 22px);
}

.halftone {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  pointer-events: none;
  background: radial-gradient(circle, var(--dot, var(--dot-plum)) var(--diameter), transparent calc(var(--diameter) + .6px)) 0 0 / var(--pitch) var(--pitch);
  mask-image: linear-gradient(96deg, transparent 0%, #000 63%);
}

.hero__marks {
  position: absolute;
  z-index: -1;
  width: min(55%, 39rem);
  height: auto;
  top: 9%;
  right: max(0px, calc((100% - 78rem) / 2));
  pointer-events: none;
}

.hero__body {
  padding-top: clamp(1.3rem, 5.8vw, 5.2rem);
  padding-bottom: calc(var(--seam) + clamp(1.3rem, 4.8vw, 4.1rem));
}

.hero h1 {
  position: relative;
  width: max-content;
  max-width: 100%;
  color: var(--yellow);
  font: 400 clamp(1.7rem, 13.1vw, 8.25rem)/.98 var(--display);
  letter-spacing: .005em;
  transform: rotate(-4.5deg);
  transform-origin: 12% 60%;
  text-shadow: 3px 4px 0 var(--ink), 5px 7px 0 var(--ink);
  -webkit-text-stroke: clamp(1.5px, .42vw, 4.5px) var(--ink);
  paint-order: stroke fill;
}

.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span + span { margin-top: .06em; }

.hero__line {
  margin-top: clamp(1.15rem, 4.1vw, 3.2rem);
  font-size: clamp(1.06rem, 3vw, 1.62rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero__intro {
  margin-top: .6rem;
  max-width: 61ch;
  font-size: clamp(.96rem, 2.2vw, 1.16rem);
}

/* Match the manga panels while giving the example gallery its own clear action. */
.gallery-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  max-width: 100%;
  min-height: 44px;
  margin-top: 1rem;
  padding: .65rem .85rem;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: clamp(.9rem, 2vw, 1rem);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.gallery-link span { min-width: 0; text-wrap: balance; }
.gallery-link svg { flex: none; }
.gallery-link:hover { background: var(--paper); }
.gallery-link:focus-visible { outline-color: var(--ink); }
.hero .gallery-link:focus-visible { outline-color: var(--paper); }

.band--web { --band: var(--paper); --letter: var(--ink); --headline: var(--ink); --dot: #deca8c; }
.band--shop { --band: var(--yellow); --letter: var(--ink); --headline: var(--ink); --dot: #e0ad12; }
.band--app { --band: var(--forest); --letter: var(--paper); --headline: var(--yellow); --dot: #28604d; }
.band--help { --band: var(--lavender); --letter: var(--ink); --headline: var(--ink); --dot: #b39acb; }
.band--contact { --band: var(--plum); --letter: var(--paper); --headline: var(--yellow); }

.bands {
  list-style: none;
  padding: 0;
}

/* The top edge overlaps the preceding panel so its color shows through the cut. */
.band {
  margin-top: calc(-1 * var(--seam));
  background: linear-gradient(transparent calc(var(--seam) - 1px), var(--band) calc(var(--seam) - 1px));
  color: var(--letter);
}

.seam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--seam);
  color: var(--band);
  overflow: visible;
  pointer-events: none;
}

.seam__ink {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.band .halftone {
  inset-block-start: var(--seam);
  inset-inline-start: 53%;
}

.band__link { display: block; text-decoration: none; }

.band__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(10rem, 27%);
  align-items: center;
  gap: clamp(.65rem, 2.5vw, 2.25rem);
  padding-top: calc(var(--seam) + clamp(.65rem, 1.8vw, 1.6rem));
  padding-bottom: calc(var(--seam) + clamp(.7rem, 1.8vw, 1.75rem));
}

.stamp {
  display: inline-grid;
  place-items: center;
  width: clamp(2.65rem, 6vw, 4.05rem);
  height: clamp(1.85rem, 3.6vw, 2.7rem);
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(10% 7%, 100% 0, 90% 93%, 0 100%);
  font-size: clamp(.83rem, 2.2vw, 1.15rem);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.band--app .stamp { background: var(--yellow); color: var(--ink); }

.band__copy { position: relative; z-index: 1; }

.band h2 {
  color: var(--headline);
  font: 400 clamp(2.6rem, 5.2vw, 4.8rem)/1 var(--display);
  letter-spacing: .013em;
}

.band__desc {
  margin-top: .35rem;
  max-width: 47ch;
  font-size: clamp(.95rem, 2vw, 1.14rem);
  line-height: 1.45;
}

/* Use the same slant as the panel stamps while keeping the price text upright. */
.price-badge {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .45rem;
  margin: .75rem 0 0 .18rem;
  padding: .32rem .65rem;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: .22rem .22rem 0 var(--ink);
  transform: skewX(-7deg);
  font-size: clamp(.86rem, 2vw, .98rem);
  font-weight: 750;
  line-height: 1.15;
}

.band--shop .price-badge { background: var(--paper); }
.price-badge > * { transform: skewX(7deg); }
/* Use familiar upright numerals so every starting price is easy to read. */
.price-badge strong {
  font: 700 clamp(1.45rem, 3.3vw, 2rem)/1.15 Verdana, Tahoma, Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}

.price-scope, .price-note {
  margin-top: .7rem;
  max-width: 44ch;
  font-size: clamp(.86rem, 2vw, 1rem);
  line-height: 1.35;
}

.price-scope { font-weight: 750; }
.price-scope + .price-badge { margin-top: .35rem; }

.band__action {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: .62rem;
  color: var(--headline);
  font-weight: 780;
  font-size: clamp(.86rem, 1.7vw, 1rem);
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.band__action svg { flex: none; }
.band__link:hover .band__action { text-decoration-thickness: 3px; }
.band__link:focus-visible {
  outline: 0;
}
.band__link:focus-visible .band__action {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.band__art {
  width: min(100%, 18rem);
  max-height: 13.6rem;
  object-fit: contain;
  justify-self: end;
}

.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(3.25rem, 13vw, 10.5rem);
  align-items: center;
  gap: clamp(.9rem, 3vw, 3.4rem);
  padding-top: calc(var(--seam) + clamp(1.3rem, 3.65vw, 3.3rem));
  padding-bottom: clamp(1.9rem, 5vw, 4.8rem);
}

.contact__prompt {
  color: var(--yellow);
  font-weight: 800;
  font-size: clamp(.78rem, 2vw, .96rem);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.contact h2 {
  margin-top: .18em;
  font: 400 clamp(2.5rem, 6.8vw, 5.1rem)/.99 var(--display);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.contact__copy {
  margin-top: .7rem;
  max-width: 56ch;
  font-size: clamp(.97rem, 2vw, 1.13rem);
}

.contact__mail {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .45em .7em;
  align-items: center;
  min-height: 48px;
  margin-top: 1rem;
  padding: .55rem .95rem;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: clamp(.91rem, 2.8vw, 1.13rem);
  line-height: 1.28;
  font-weight: 830;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__mail:hover { background: var(--paper); }
.contact__mail:focus-visible { outline-color: var(--paper); }
.contact__mail svg { flex: none; }
.contact__identity { margin-top: 1rem; font-size: .92rem; }
.contact__bolt { width: 100%; height: auto; color: var(--yellow); filter: drop-shadow(4px 5px 0 var(--ink)); }

.detail-banner {
  margin-top: 0;
  --diameter: 4px;
  --pitch: 21px;
  overflow: clip;
}

.detail-banner .halftone { inset-inline-start: 32%; }

.detail-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 35%);
  align-items: center;
  gap: clamp(.6rem, 3.5vw, 3.75rem);
  min-height: clamp(15rem, 36vw, 26rem);
  padding-top: calc(var(--seam) + clamp(.8rem, 3.25vw, 2.75rem));
  padding-bottom: calc(var(--seam) + clamp(.95rem, 4.7vw, 3rem));
}

.detail-banner h1 {
  margin-top: .2em;
  color: var(--headline);
  font: 400 clamp(3rem, 9vw, 7.05rem)/.92 var(--display);
  letter-spacing: .01em;
  text-wrap: balance;
}

.detail-banner__lead {
  margin-top: .8rem;
  max-width: 44ch;
  font-size: clamp(1rem, 2.5vw, 1.33rem);
  font-weight: 650;
  line-height: 1.43;
}

.detail-banner img {
  width: min(100%, 24rem);
  max-height: 19.5rem;
  object-fit: contain;
  justify-self: end;
}

.detail-body { color: var(--ink); }

.detail-sheet {
  --band: var(--paper);
  --letter: var(--ink);
}

.detail-sheet__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(14rem, 1fr);
  align-items: start;
  gap: clamp(1.85rem, 5.4vw, 5.05rem);
  padding-top: calc(var(--seam) + clamp(1.1rem, 4.4vw, 3.7rem));
  padding-bottom: calc(var(--seam) + clamp(1.5rem, 5.5vw, 4.2rem));
}

.detail-flow > * + *, .detail-aside > * + * {
  margin-top: clamp(1.65rem, 4.35vw, 3rem);
}

.detail-sheet h2 {
  font: 400 clamp(2.12rem, 4vw, 3.4rem)/1.05 var(--display);
  letter-spacing: .015em;
}

.detail-sheet h3 {
  font-size: 1.03em;
  font-weight: 800;
  line-height: 1.35;
}

.detail-sheet p, .detail-sheet li { max-width: 64ch; }
.detail-sheet h2 + p, .detail-sheet h3 + p { margin-top: .6rem; }
.detail-sheet p + p { margin-top: .72rem; }

.notes, .steps, .proofs { list-style: none; padding: 0; margin-top: .8rem; }

.notes li {
  position: relative;
  padding: .8rem 0 .8rem 1.25rem;
  border-bottom: 1px solid rgb(21 10 43 / 23%);
}

.notes li::before {
  content: "";
  position: absolute;
  left: .06rem;
  top: 1.35rem;
  width: .52rem;
  height: .52rem;
  transform: rotate(45deg);
  background: var(--ink);
}

.notes li:last-child { border-bottom: 0; }
.notes p { margin-top: .15rem; }

.steps { counter-reset: step; }

.steps li {
  position: relative;
  padding: .75rem 0 .75rem 2.65rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: .05rem;
  top: .7rem;
  display: grid;
  place-items: center;
  width: 1.95rem;
  height: 1.95rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  clip-path: polygon(9% 6%, 100% 0, 90% 94%, 0 100%);
}

.example {
  position: relative;
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 2px solid var(--ink);
  background: var(--example, var(--lavender));
  box-shadow: .35rem .35rem 0 var(--ink);
}

.detail-aside { --example: var(--lavender); }
.detail-aside--shop { --example: var(--yellow); }
.detail-aside--app { --example: #d8e6cc; }
.detail-aside--help { --example: #e2d0f2; }
.example h2 { font-size: clamp(1.92rem, 3.3vw, 2.9rem); }

.example__tag {
  display: inline-block;
  margin-bottom: .68rem;
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: .045em;
}

.proofs li {
  padding-block: .72rem;
  border-bottom: 1px solid rgb(21 10 43 / 23%);
}

.proofs li:last-child { border-bottom: 0; }
.proofs a { font-weight: 790; text-decoration-thickness: 1.5px; }
.proofs a:hover, .proofs a:focus-visible { text-decoration-thickness: 3px; }
.proofs p { margin-top: .2rem; }

.missing {
  display: grid;
  min-height: 100svh;
  align-items: center;
}

.missing .frame { padding-block: 2rem; }
.missing h1 { color: var(--yellow); font: 400 clamp(3.1rem, 10vw, 7.3rem)/1 var(--display); }
.missing p { max-width: 44ch; margin-top: 1rem; }

@media (max-width: 44rem) {
  .band__inner {
    grid-template-columns: minmax(0, 1fr) clamp(5.6rem, 28vw, 12rem);
    gap: .45rem .8rem;
  }

  .band__inner .stamp { grid-column: 1; grid-row: 1; }
  .band__copy { grid-column: 1; grid-row: 2; }
  .band__art { grid-column: 2; grid-row: 1 / span 2; }
  .band h2 { font-size: clamp(2.04rem, 7.3vw, 3.44rem); }
  .band__desc { font-size: clamp(.9rem, 2.75vw, 1.06rem); }

  .detail-banner__inner { grid-template-columns: minmax(0, 1fr) clamp(7rem, 32vw, 13rem); }
  .detail-banner h1 { font-size: clamp(2.55rem, 9vw, 4.75rem); text-wrap: wrap; }
  .detail-sheet__inner { grid-template-columns: 1fr; }
  .contact__inner { align-items: start; }
}

@media (max-width: 25rem) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__bolt { display: none; }
  .hero__marks { top: 15%; right: 1%; width: 44%; }
  .detail-banner__inner { grid-template-columns: minmax(0, 1fr) 30%; }
}

@media (forced-colors: active) {
  .seam, .halftone, .hero__marks, .contact__bolt { display: none; }
  .hero h1 { -webkit-text-stroke: 0; text-shadow: none; }
  .stamp, .contact__mail { outline: 1px solid CanvasText; }
  .contact__mail:focus-visible { outline: 3px solid LinkText; }
  .band { border-top: 2px solid CanvasText; }
}
