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

:root {
  --sheet: #f3f3f0;
  --sheet-shade: #e6e6e1;
  --film: #141312;
  --film-2: #23211f;
  --ink: #141312;
  --ink-2: #4a4743;
  --edge: #e8742a;
  --grease: #c42a21;
  --hole: #f3f3f0;
  --frame-w: clamp(250px, 27vw, 420px);
  --gutter: clamp(16px, 4vw, 64px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  overflow-x: hidden;
}
::selection { background: var(--grease); color: #fff; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--grease); }
:focus-visible { outline: 3px solid var(--grease); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film rebate: black band, punched sprocket holes, orange edge printing */
.rebate {
  position: relative;
  height: 46px;
  background: var(--film);
  overflow: hidden;
}
.rebate::before, .strip__film::before, .strip__film::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10'%3E%3Crect x='6' y='0' width='12' height='10' rx='2.2' fill='%23f3f3f0'/%3E%3C/svg%3E");
  background-size: 24px 10px;
  background-repeat: repeat-x;
}
.rebate::before { top: 8px; }
.edge {
  position: absolute;
  left: 0; bottom: 6px;
  white-space: nowrap;
  font: 600 11px/1 "Archivo", sans-serif;
  font-stretch: 62%;
  letter-spacing: .18em;
  color: var(--edge);
  text-transform: uppercase;
  padding-left: var(--gutter);
}
.edge b { font-weight: 800; margin: 0 1em 0 2.4em; }
.edge b:first-child { margin-left: 0; }
.edge i {
  display: inline-block;
  width: 7px; height: 8px;
  background: var(--edge);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  margin: 0 .5em 0 1.4em;
  vertical-align: 0;
}

/* Intro: the sheet margin, written on by the photographer */
.intro {
  position: relative;
  padding: clamp(28px, 3.4vw, 52px) var(--gutter) 0;
  max-width: 1400px;
}
h1 {
  margin: 0;
  font-weight: 760;
  font-stretch: 88%;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.03em;
  word-spacing: .08em;
  text-wrap: balance;
}
.promise {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.4;
  color: var(--ink-2);
}
.grease {
  font-family: "Grease", "Archivo", cursive;
  color: var(--grease);
  font-size: 1.6rem;
  line-height: 1;
  margin: 0;
  transform: rotate(-4deg);
}
.grease--hint {
  margin-top: 14px;
  display: inline-block;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

/* One app = one strip */
.app {
  padding: clamp(36px, 5vw, 64px) 0 0;
}
.app:first-child { padding-top: clamp(16px, 2vw, 24px); }
.app__label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px 22px;
  padding: 0 var(--gutter) 18px;
  max-width: 1500px;
}
.app__label img {
  align-self: start; margin-top: 4px;
  width: 64px; height: 64px;
  filter: drop-shadow(0 6px 10px rgba(20, 19, 18, .22));
}
.app__name {
  margin: 0;
  font-weight: 780;
  font-stretch: 92%;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: .95;
  letter-spacing: -.03em;
}
.app__line { margin: 6px 0 0; max-width: 64ch; font-size: 1.05rem; line-height: 1.45; text-wrap: pretty; }
.app__detail { margin: 2px 0 0; max-width: 64ch; color: var(--ink-2); font-size: .98rem; text-wrap: pretty; }
.app__buy { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; }
.app__price { margin: 0; font-size: .92rem; color: var(--ink-2); }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px;
  background: var(--film);
  color: var(--sheet);
  border-radius: 999px;
  font-weight: 650;
  font-size: .98rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(20, 19, 18, .55);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.store svg { width: 18px; height: 18px; fill: currentColor; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(20, 19, 18, .6); }
a.store:active { transform: translateY(0); }
.store--soon { padding: 0; background: none; color: var(--ink); box-shadow: none; border-radius: 0; font-weight: 650; font-size: .92rem; }
.store--soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--edge); }

/* The film strip */
.strip {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--film-2) transparent;
}
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: var(--film-2); border-radius: 8px; }
.strip__film {
  position: relative;
  display: inline-flex;
  gap: 14px;
  min-width: 100%;
  padding: 34px 40px 34px var(--gutter);
  background: var(--film);
}
.strip__film::before { top: 9px; }
.strip__film::after { bottom: 9px; }
.frame {
  position: relative;
  flex: 0 0 auto;
  width: var(--frame-w);
  aspect-ratio: 3 / 2;
  scroll-snap-align: start;
  scroll-margin-left: var(--gutter);
  background: #0b0b0a;
  border-radius: 3px;
  overflow: visible;
}
.frame__inner { position: absolute; inset: 0; border-radius: 3px; overflow: hidden; }
.frame__num {
  position: absolute;
  bottom: -15px; left: 4px;
  font: 600 10px/1 "Archivo", sans-serif;
  font-stretch: 62%;
  letter-spacing: .16em;
  color: var(--edge);
}
.frame__num + .frame__num { left: auto; right: 4px; }
.frame img.shot { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.frame--icon .frame__inner {
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, #3a3734 0%, #1a1817 70%);
}
.frame--icon img { width: 52%; height: auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); }

/* Grease-pencil marks drawn over a frame */
.mark {
  position: absolute;
  inset: -16px -18px;
  width: calc(100% + 36px);
  height: calc(100% + 32px);
  pointer-events: none;
  overflow: visible;
  z-index: 3;
  filter: url(#wax);
}
.mark path + path { stroke-width: 2.4; opacity: .55; transition-delay: .25s; }
.mark path {
  fill: none;
  stroke: var(--grease);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .93;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
.app.is-drawn .frame > .mark path, .look.is-drawn > .mark path { stroke-dashoffset: 0; }
.mark__note {
  position: absolute;
  top: 10px; right: 14px;
  color: #ff5a4a;
  z-index: 4;
  white-space: nowrap;
  font-size: 1.75rem;
  transform: rotate(-5deg);
  opacity: 0;
  transition: opacity .5s .7s;
}
.app.is-drawn .frame > .mark__note { opacity: 1; }

/* Demo: Clackers keycap */
.keycap-stage {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: 1fr auto auto; justify-items: center;
  padding: 18px 12px 12px;
  background: radial-gradient(70% 70% at 50% 42%, rgba(239, 106, 43, .28), transparent 70%), #1c1a19;
  user-select: none; -webkit-user-select: none;
}
.keycap {
  position: relative;
  align-self: center;
  width: 29%; aspect-ratio: 1 / 1.04;
  border: 0; padding: 0; background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.keycap__base, .keycap__top {
  position: absolute; left: 0; right: 0;
  border-radius: 18%;
}
.keycap__base { top: 10%; bottom: 0; background: color-mix(in oklab, var(--cap) 68%, black); }
.keycap__top {
  top: 0; bottom: 10%;
  background: linear-gradient(180deg, color-mix(in oklab, var(--cap) 88%, white), color-mix(in oklab, var(--cap) 92%, black));
  box-shadow: 0 14px 22px -10px rgba(0, 0, 0, .7);
  transition: transform .07s var(--ease-out), box-shadow .07s;
}
.keycap__top::after {
  content: "";
  position: absolute; inset: 9% 11% 22%;
  border-radius: 13%;
  background: linear-gradient(180deg, color-mix(in oklab, var(--cap) 80%, white), var(--cap));
}
.keycap__legend {
  position: absolute; top: 16%; left: 20%; z-index: 1;
  font: 700 clamp(14px, 1.6vw, 22px)/1 "Archivo", sans-serif;
  color: var(--legend);
}
.keycap.is-down .keycap__top { transform: translateY(8.5%); box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .7); }
.meter { display: flex; gap: 3px; height: 14px; align-items: end; margin: 8px 0; }
.meter span { width: 4px; border-radius: 2px; background: #3a3633; transition: background .08s; }
.meter span.on { background: #ef6a2b; }
.packs { display: flex; gap: 6px; }
.packs button {
  font: 600 12px/1 "Archivo", sans-serif;
  padding: 7px 10px; border-radius: 999px;
  border: 1px solid #45403c; background: transparent; color: #cfc8c0;
  cursor: pointer;
}
.packs button[aria-pressed="true"] { background: #f3f3f0; color: #141312; border-color: #f3f3f0; }

/* Demo: Moor dock */
.dock-stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(165deg, #46608c 0%, #26324c 52%, #6e4a3a 100%);
}
.dock {
  display: flex; gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(20, 26, 42, .72);
  box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  touch-action: none;
}
.dock__item {
  width: clamp(32px, 3.3vw, 46px); aspect-ratio: 1;
  border-radius: 22%;
  cursor: grab;
  transition: transform .28s var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.dock__item img, .dock__item svg { width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
.dock__item.is-dragging { cursor: grabbing; transition: none; z-index: 2; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.dock-caption {
  position: absolute; bottom: 10px; left: 0; right: 0; text-align: center;
  font: 500 12px/1 "Archivo", sans-serif; color: rgba(243, 243, 240, .8);
}

/* Demo: Lookalike set */
.look-stage {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 6px; padding: 6px;
  background: #e9e7e2;
}
.look {
  position: relative; margin: 0;
  border-radius: 2px; overflow: visible;
  transition: opacity .5s, filter .5s;
}
.look img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; cursor: zoom-in; }
.look figcaption {
  position: absolute; left: 6px; bottom: 2px;
  font-family: "Grease", cursive; font-size: 1.3rem; line-height: 1;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  opacity: 0; transition: opacity .4s;
}
.look.is-judged figcaption { opacity: 1; }
.look.is-out img { opacity: .78; filter: grayscale(.35) brightness(.92); }
.look.is-keeper figcaption { top: 6px; bottom: auto; color: var(--grease); text-shadow: 0 0 0 transparent; background: #fff; padding: 2px 6px 0; border-radius: 2px; }
.look .mark { inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); }
.replay, .reset {
  position: absolute; right: 8px; top: 8px; z-index: 5;
  font: 600 12px/1 "Archivo", sans-serif;
  padding: 7px 10px; border-radius: 999px; border: 0;
  background: rgba(20, 19, 18, .8); color: #f3f3f0; cursor: pointer;
}
.reset { left: 8px; right: auto; }

/* Demo: PetLift */
.pet-stage {
  position: absolute; inset: 0; overflow: hidden;
  background: #2a3442 url("assets/photo/wall.webp") center / cover;
  cursor: pointer;
}
.pet-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: rgba(30, 20, 20, .35); backdrop-filter: blur(8px);
}
.pet-shelf {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  display: flex; justify-content: center; gap: 5px; padding: 5px 7px;
  border-radius: 12px; background: rgba(255, 255, 255, .24);
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 6px 16px rgba(0, 0, 0, .25);
}
.pet-shelf img, .pet-shelf .g { width: clamp(24px, 2.4vw, 34px); height: clamp(24px, 2.4vw, 34px); display: block; border-radius: 22%; }
.pet-shelf .g svg { width: 100%; height: 100%; display: block; }
.pet-shelf .g.folder { background: linear-gradient(#5ab0ff, #2f86ee); }
.pet-shelf .g.mail { background: linear-gradient(#69c0ff, #1f7ef0); }
.pet-shelf .g.notes { background: linear-gradient(#ffe37a, #f4c23c); }
.pet-pup {
  position: absolute; bottom: calc(4% + clamp(34px, 3.3vw, 44px) - 7px);
  width: 13%; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateX(-50%);
  -webkit-tap-highlight-color: transparent;
}
.pet-pup img { width: 100%; display: block; transform-origin: 50% 100%; filter: drop-shadow(0 5px 5px rgba(60, 10, 40, .3)); will-change: transform; }
.pet-shade {
  position: absolute; bottom: calc(4% + clamp(30px, 3vw, 40px)); width: 11%; height: 10px; border-radius: 50%;
  background: radial-gradient(rgba(40, 0, 30, .35), transparent 70%); transform: translateX(-50%);
}
.frame:has(.pet-stage) .mark__note { color: #fff; text-shadow: 0 1px 6px rgba(20, 10, 10, .7); }
.pet-heart {
  position: absolute; bottom: 52%; width: 26px; height: 26px; margin-left: -13px;
  opacity: 0; pointer-events: none;
}
.pet-heart svg { width: 100%; height: 100%; fill: #fc6a5a; stroke: #fff; stroke-width: 1.6; }
@keyframes heart { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60px) scale(1.2); } }

/* Unexposed frames */
.unexposed { position: relative; padding-top: clamp(48px, 6vw, 80px); }
.strip--blank .frame { background: linear-gradient(160deg, #2a2724, #191716); }
.strip--blank .frame__inner { box-shadow: inset 0 0 40px rgba(0, 0, 0, .5); }
.grease--next {
  position: absolute; top: clamp(8px, 2.6vw, 30px); left: var(--gutter);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

/* Footer: the sheet margin */
.margin { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(40px, 5vw, 64px); }
.margin__cols {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px); max-width: 1300px;
}
.margin__lead { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.42; max-width: 32ch; font-stretch: 94%; }
.margin__lead strong { font-weight: 760; }
.margin__meta p { margin: 0 0 .7rem; }
.support-links { display: flex; flex-wrap: wrap; gap: .4em 1.2em; }
.support-links a { white-space: nowrap; }
.credit { font-size: .9rem; color: var(--ink-2); }

/* The loupe: a round glass that magnifies whatever photo is under it */
.loupe {
  position: fixed; z-index: 50;
  width: 190px; height: 190px;
  border-radius: 50%;
  pointer-events: none;
  background-repeat: no-repeat;
  background-color: #0b0b0a;
  box-shadow: 0 0 0 5px #141312, 0 0 0 6px rgba(255, 255, 255, .35), 0 18px 30px -8px rgba(0, 0, 0, .55);
  opacity: 0; transform: scale(.85);
  transition: opacity .18s, transform .25s var(--ease-out);
}
.loupe.is-on { opacity: 1; transform: scale(1); }

@media (max-width: 760px) {
  :root { --frame-w: min(78vw, 340px); }
  .app__label { grid-template-columns: auto 1fr; }
  .app__label img { width: 52px; height: 52px; align-self: start; }
  .app__buy { grid-column: 1 / -1; }
  .margin__cols { grid-template-columns: minmax(0, 1fr); }
  .keycap { width: 33%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
