:root {
  --paper: #efe8da;
  --ink: #1d1b18;
  --muted: #6b645a;
  --red: #cf2a1f;
  --black: #0b0303;
  --safe: #ff4a2b;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --hand: "Marker Felt", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a {
  color: inherit;
}
code {
  font: 0.86em var(--mono);
}

/* Header: paper by day, safelight in the darkroom. */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: linear-gradient(var(--paper) 55%, transparent);
  transition: color 0.5s, background-color 0.5s;
}
body.dusk .topbar {
  background: transparent;
}
body.dark .topbar {
  color: var(--safe);
}
body.dark .topbar .btn.ghost {
  border-color: var(--safe);
}
.brand {
  font: 400 26px var(--serif);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand span {
  color: var(--red);
  font-size: 0.72em;
}
body.dark .topbar .brand span {
  color: inherit;
  opacity: 0.7;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 550;
  transition: transform 0.15s, background-color 0.15s, border-color 0.5s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.red {
  background: var(--red);
  border-color: var(--red);
  color: #fff8ee;
}
.btn.ghost:hover {
  background: #0000000a;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 120px 40px 60px;
  overflow: hidden;
}
.kicker {
  font: 22px var(--hand);
  color: var(--red);
  transform: rotate(-2deg);
  margin-bottom: 14px;
}
h1 {
  font: 400 clamp(2.4rem, 5.4vw, 4.6rem) / 1.02 var(--serif);
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.lede {
  margin-top: 24px;
  max-width: 40ch;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}
.formats span {
  padding: 3px 8px;
  border: 1px solid #cbbfa8;
  border-radius: 4px;
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.formats span:last-child {
  border-style: dashed;
  font-weight: 400;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.ask {
  position: relative;
  z-index: 1;
  justify-self: start;
  max-width: 440px;
  margin: 0 0 -18px;
  padding: 16px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px 18px 4px 18px;
  font: 400 1.15rem/1.45 var(--serif);
  box-shadow: 0 18px 40px -18px #0008;
  transform: rotate(-2deg);
}

/* A row of file thumbnails, as in a photo library. */
.strip {
  display: flex;
  gap: 14px;
  padding: 18px;
  width: 150%;
  background: #1b1a18;
  border-radius: 10px;
  transform: rotate(-8deg);
  box-shadow: 0 30px 60px -20px #0006;
  animation: drift 40s linear infinite alternate;
}
.strip figure {
  flex-shrink: 0;
  width: 200px;
}
.strip img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.strip figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font: 11px/1.3 var(--mono);
  color: #d9d3c7;
}
.strip figcaption span:last-child {
  color: #8d877c;
}
@keyframes drift {
  to {
    translate: -18% 0;
  }
}

/* One sticky stage: the shoot on top, the darkroom fading in beneath it. */
.story {
  height: 978vh;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.shoot-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px 48px;
  align-items: center;
  padding: 88px 48px 40px;
}
.shoot-title {
  grid-column: 1 / -1;
  max-width: 34ch;
  margin: 0 auto;
  text-align: center;
}
.sheet-wrap {
  position: relative;
  /* The sheet is about half as tall as it is wide, plus its padding; keep it below the title. */
  width: min(100%, 2 * (100vh - 400px));
  justify-self: end;
}
.sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 10px;
  padding: 18px 14px 30px;
  background: #1b1a18;
  border-radius: 8px;
  box-shadow: 0 30px 70px -30px #000a;
}
.frame {
  position: relative;
}
.frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
}
.frame span {
  position: absolute;
  left: 1px;
  bottom: -15px;
  font: 9px/1 var(--mono);
  color: #b8b1a4;
  letter-spacing: 0.02em;
}
.marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.marks path {
  fill: none;
  stroke: var(--red);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 0.6px #7a0d06);
}
.marks text {
  font: 26px var(--hand);
  paint-order: stroke;
  stroke: #1b1a18;
  stroke-width: 5px;
  fill: var(--red);
}
.strip img,
.frame img,
.compare-frame img,
.pick img {
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
/* The chosen photo, carried from the sheet onto the paper in the tray. */
.pick {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  opacity: 0;
  transform-origin: center;
  box-shadow: 0 30px 80px -20px #000c;
  pointer-events: none;
}
.pick img {
  display: block;
  width: 100%;
  height: 100%;
}
.pick .tint {
  position: absolute;
  inset: 0;
  background: #ff3b1f;
  mix-blend-mode: multiply;
  opacity: 0;
}
.notes {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.note {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
  line-height: 1.45;
}
.note.on {
  opacity: 1;
  transform: none;
}
.note.step {
  font: 400 1.4rem/1.25 var(--serif);
}
.note .aside {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--muted);
}
.note code {
  font-size: 0.8em;
  padding: 1px 5px;
  background: #1b1a1812;
  border-radius: 3px;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font: 16px var(--hand);
  vertical-align: 3px;
}
.note.hand {
  font: 20px var(--hand);
  color: var(--red);
  padding-left: 40px;
}
.part {
  opacity: 0;
  transition: opacity 0.4s;
}
.part.on {
  opacity: 1;
}
/* The darkroom */
.dark-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--black);
  color: var(--safe);
}
.gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dark-layer [data-at] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s, transform 0.8s;
}
.dark-layer [data-at].on {
  opacity: 1;
  transform: none;
}
.intro {
  position: absolute;
  left: 50%;
  top: 9vh;
  translate: -50% 0;
  width: min(720px, 90vw);
  text-align: center;
}
.intro .kicker {
  margin-bottom: 8px;
  color: inherit;
  transform: none;
  font: 13px var(--mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}
.intro h2 {
  margin: 0;
  font: 400 clamp(1.6rem, 2.8vw, 2.4rem) / 1.08 var(--serif);
  letter-spacing: -0.03em;
}
.intro .file {
  margin-top: 8px;
  font: 13px var(--mono);
  opacity: 0.75;
}
.log {
  position: absolute;
  left: 50%;
  top: 9vh;
  translate: -50% 0;
  width: min(820px, 92vw);
  list-style: none;
  padding: 0;
  display: grid;
  font: 2.2rem/1.25 var(--serif);
  text-align: center;
}
.intro,
.log {
  text-shadow: 0 0 12px var(--black), 0 0 4px var(--black);
}
.log li {
  grid-area: 1 / 1;
  padding: 10px 14px;
}
.dark-layer .log li.old {
  opacity: 0;
}
.log code {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.histo {
  position: absolute;
  right: 36px;
  bottom: 40px;
  width: 220px;
  padding: 10px 12px 8px;
  border: 1px solid #ff4a2b55;
  border-radius: 6px;
  background: #0b030399;
}
.histo canvas {
  width: 100%;
  height: auto;
}
.histo figcaption {
  margin-top: 6px;
  font: 10px var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}
.lights {
  position: absolute;
  left: 50%;
  top: 11vh;
  translate: -50% 0;
  font: italic 400 1.8rem var(--serif);
  color: var(--ink);
}
.filecard {
  position: absolute;
  left: 50%;
  bottom: 11vh;
  translate: -50% 0;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 18px;
  background: #fffaf0;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 10px 30px -12px #0006;
  white-space: nowrap;
}
.filecard code {
  font-size: 14px;
}
.filecard span {
  color: var(--red);
}
.filecard small {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* Review */
.review {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
  padding: 120px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
h2 {
  font: 400 clamp(2rem, 3.6vw, 3rem) / 1.08 var(--serif);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.chat {
  display: grid;
  gap: 14px;
}
.msg {
  max-width: 44ch;
  padding: 14px 18px;
  border-radius: 16px;
  line-height: 1.5;
}
.msg.you {
  justify-self: end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}
.msg.ansel {
  background: #fffaf0;
  border: 1px solid #d9cfbd;
  border-bottom-left-radius: 4px;
}
.compare-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  box-shadow: 0 30px 70px -30px #000a;
  border: 10px solid #fffaf0;
}
.compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.compare-frame .before {
  clip-path: inset(0 50% 0 0);
}
.tag {
  position: absolute;
  bottom: 10px;
  padding: 3px 8px;
  background: #1d1b18cc;
  color: #fff;
  font: 600 11px/1.4 var(--mono);
}
.tag.left {
  left: 10px;
}
.tag.right {
  right: 10px;
}
#split {
  width: 100%;
  margin-top: 14px;
  accent-color: var(--red);
}
figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* One photo at a time: versions pegged on a drying line */
/* The stage is only as tall as its content; main.js sizes the section and the sticky offset. */
.line-stage {
  position: sticky;
  top: 0;
  overflow: hidden;
  padding: 80px 0 0;
}
.section-head {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}
.section-head h2 {
  max-width: 34ch;
  margin: 0 auto;
}
.line-lede {
  max-width: 56ch;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.55;
}
.line-steps {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin-top: 22px;
  font: 400 1.2rem/1.25 var(--serif);
}
.line-steps li {
  opacity: 0.3;
  transition: opacity 0.4s;
}
.line-steps li.on {
  opacity: 1;
}
.line-view {
  position: relative;
  overflow: hidden;
  /* Room for the captions' corners to dip while a print swings. */
  padding-bottom: 32px;
}
.line-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--peg-gap);
  width: max-content;
  min-width: 100%;
  padding: 30px var(--peg-pad) 0;
  will-change: transform;
  --peg-gap: 48px;
  --peg-pad: 48px;
}
.cord {
  position: absolute;
  inset: 0 auto auto 0;
  overflow: visible;
  pointer-events: none;
}
.cord path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.arrows {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.arrows path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.peg {
  position: relative;
  flex: none;
  /* Three prints fit across the line, and short screens keep room for the captions. */
  width: min(400px, (100vw - 2 * var(--peg-pad) - 2 * var(--peg-gap) - 20px) / 3, (100vh - 480px) * 1.5);
  min-width: 180px;
  transform-origin: 50% -14px;
  opacity: 0;
  translate: 0 -24px;
  transition: opacity 0.5s, translate 0.5s;
}
.peg.on {
  opacity: 1;
  translate: 0 0;
  animation: swing 1.6s ease-out;
}
@keyframes swing {
  0% {
    rotate: -7deg;
  }
  30% {
    rotate: 5deg;
  }
  55% {
    rotate: -2.5deg;
  }
  80% {
    rotate: 1deg;
  }
  100% {
    rotate: 0deg;
  }
}
.pin {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: -20px;
  width: 12px;
  height: 34px;
  translate: -50% 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #c49a64, #e2bf8a 45%, #b0834f);
  box-shadow: 0 2px 3px #0004;
}
.peg img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 10px solid #fffaf0;
  outline: 1px solid #0000000f;
  box-shadow:
    0 2px 4px #0002,
    0 28px 44px -22px #000b;
}
.peg:nth-of-type(1) img {
  rotate: -0.8deg;
}
.peg:nth-of-type(3) img {
  rotate: 0.7deg;
}
.peg figcaption {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 12px;
}
.peg .label {
  font: 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ask-tag {
  max-width: 100%;
  padding: 9px 13px;
  border-radius: 12px;
  border-bottom-right-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .peg.on {
    animation: none;
  }
}

.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 160px 48px 140px;
}
.features ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.features li {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  line-height: 1.55;
  color: var(--muted);
}
.features b {
  color: var(--ink);
  font-weight: 600;
}
.app-shot {
  max-width: 900px;
  margin: 0 auto 48px;
}
.features > .btn {
  display: table;
  margin: 0 auto;
}
.app-shot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 70px -30px #000a;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 48px 90px;
  border-top: 1px solid #d3c9b6;
  color: var(--muted);
}

@media (max-width: 800px) {
  .topbar {
    padding: 14px 20px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 100px 20px 40px;
  }
  .strip figure {
    width: 150px;
  }
  .shoot-layer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    align-content: start;
    gap: 26px;
    padding: 76px 16px 70px;
  }
  .sheet {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 6px;
    padding: 12px 8px 24px;
  }
  .frame span {
    font-size: 7px;
    bottom: -12px;
  }
  .notes {
    gap: 8px;
  }
  .note:not(.on),
  .note.old {
    display: none;
  }
  .note.step {
    font-size: 1.05rem;
  }
  .note.hand {
    font-size: 16px;
  }
  .intro,
  .log {
    top: 70px;
  }
  .log {
    font-size: 1.55rem;
  }
  .log code {
    font-size: 15px;
  }
  .ask {
    font-size: 1rem;
    margin-top: 24px;
  }
  .histo {
    left: 50%;
    right: auto;
    bottom: 80px;
    translate: -50% 0;
    width: 180px;
  }
  .lights {
    top: 80px;
  }
  .filecard {
    bottom: 80px;
    grid-template-columns: auto;
    justify-items: center;
  }
  .filecard span {
    rotate: 90deg;
  }
  .review {
    grid-template-columns: 1fr;
    padding: 80px 20px;
  }
  .line-stage {
    padding-top: 64px;
  }
  .section-head {
    padding: 0 20px;
  }
  .line-steps {
    gap: 6px 18px;
    margin-top: 14px;
    font-size: 1rem;
  }
  .line-steps .num {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  .line-track {
    --peg-gap: 28px;
    --peg-pad: 20px;
  }
  .peg {
    width: 68vw;
  }
  .section-head h2,
  .shoot-title {
    font-size: 1.75rem;
  }
  .line-lede {
    font-size: 0.95rem;
  }
  .features {
    padding: 120px 20px 100px;
  }
  .features ul {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 24px 20px 90px;
  }
}
