/* Origami Garden: app site and privacy page. Washi, ink and the app's own colours; Poppins is the app's UI face and
   Kalam stands in for its handwriting. Both fonts are under the SIL Open Font License (fonts/OFL-*.txt). */

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-600.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam.woff") format("woff");
  font-display: swap;
}

/* the size of a folded corner, animated when a button is pressed */
@property --ear {
  syntax: "<length>";
  inherits: false;
  initial-value: 12px;
}

:root {
  color-scheme: light;
  --washi: #f4efe6;
  --washi-2: #ece5d8;
  --washi-3: #e2d8c7;
  --sheet: #fbf8f2;
  --ink: #2b2622;
  --ink-2: #625a52;
  --ink-3: #8c8278;
  --line: #ddd3c3;
  --vermilion: #d2452f;
  --vermilion-2: #b8361f;
  --vermilion-deep: #8a2818;
  --vermilion-light: #dd6f5b;
  --indigo: #2e3a59;
  --indigo-2: #222b43;
  --indigo-3: #3c4a71;
  --saffron: #e8a33d;
  --saffron-2: #c9852a;
  --sage: #9bae95;
  --sage-2: #71866d;
  --tray: #3c342e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 38, 34, 0.06), 0 14px 34px -10px rgba(43, 38, 34, 0.22);
  --shadow-big: 0 2px 4px rgba(43, 38, 34, 0.06), 0 30px 60px -18px rgba(43, 38, 34, 0.38);
  --wrap: min(1160px, calc(100% - 32px));
  --sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
  /* washi: a fine grain and long, faint fibres */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .075 0'/%3E%3C/filter%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .09' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.9 -1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.55'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  font: 400 1.0625rem/1.7 var(--sans);
  color: var(--ink);
  background: var(--washi) var(--grain);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

a:hover {
  color: var(--vermilion-deep);
}

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.05rem);
}

h3 {
  font-size: 1.14rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--saffron);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(43, 38, 34, 0.09);
}

.topbar__inner {
  width: var(--wrap);
  margin: 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand span {
  color: var(--ink-3);
  font-weight: 400;
}

.brand:hover {
  color: var(--ink);
}

.topbar__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.topbar__links a:not(.btn) {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 4px 0;
  white-space: nowrap;
}

/* a valley fold under the link */
.topbar__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  border-bottom: 1.5px dashed var(--vermilion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.topbar__links a:not(.btn):hover {
  color: var(--ink);
}

.topbar__links a:not(.btn):hover::after {
  transform: scaleX(1);
}

/* ---------- buttons: paper tiles with a corner that folds up ---------- */

.btn {
  --ear: 12px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  border: 0;
  font: 600 1rem/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%);
  transition: --ear 0.22s ease, transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

/* the folded-over corner, its back showing */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--ear);
  height: var(--ear);
  background: linear-gradient(225deg, transparent 50%, var(--ear-back, rgba(255, 255, 255, 0.55)) 50%);
  filter: drop-shadow(-1px 1px 1px rgba(0, 0, 0, 0.18));
}

.btn:hover {
  --ear: 18px;
  transform: translateY(-1px);
}

.btn:active {
  --ear: 24px;
  transform: translateY(1px);
}

.btn svg {
  width: 1.3em;
  height: 1.3em;
  flex: none;
}

.btn--red {
  color: #fff;
  background: var(--vermilion);
  --ear-back: #f1c8bf;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.btn--red:hover {
  color: #fff;
  background: var(--vermilion-2);
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(43, 38, 34, 0.55);
  --ear-back: var(--washi-3);
}

.btn--ghost:hover {
  color: var(--ink);
  background: rgba(43, 38, 34, 0.06);
}

.btn--light {
  color: var(--indigo-2);
  background: var(--washi);
  --ear-back: #c9c0b1;
}

.btn--light:hover {
  color: var(--indigo-2);
  background: #fff;
}

.btn--big {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  padding: 1.05em 1.8em;
  --ear: 14px;
}

.btn--big:hover {
  --ear: 20px;
}

.btn--small {
  font-size: 0.86rem;
  padding: 0.72em 1.15em;
  --ear: 9px;
}

.btn--small:hover {
  --ear: 13px;
}

/* ---------- shared pieces ---------- */

.section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section__head {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 5.5vw, 64px);
}

.section__head p {
  max-width: 640px;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.section__head--left {
  justify-items: start;
  text-align: left;
  margin-left: 0;
}

/* the eyebrow opens with a little folded square, like the dots of the wordmark's i */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermilion-2);
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, var(--vermilion-light) 50%, var(--vermilion) 50%);
  transform: rotate(45deg);
}

.hand {
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.25;
}

/* a sheet of paper with its top right corner folded down */
.sheet {
  --fold: 26px;
  position: relative;
  background: var(--sheet);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
}

.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--fold);
  height: var(--fold);
  background: linear-gradient(225deg, transparent 50%, var(--washi-3) 50%);
  box-shadow: -2px 2px 5px rgba(43, 38, 34, 0.12);
}

/* fold lines as a diagram draws them */
.valley {
  border: 0;
  border-top: 2px dashed currentColor;
}

.mountain {
  height: 2px;
  border: 0;
  background: repeating-linear-gradient(90deg, currentColor 0 12px, transparent 12px 17px, currentColor 17px 20px, transparent 20px 25px);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(36px, 6vw, 84px) 0 clamp(70px, 9vw, 120px);
}

.crease-pattern {
  position: absolute;
  z-index: -1;
  color: var(--ink);
  pointer-events: none;
}

.hero > .crease-pattern {
  width: min(1180px, 120vw);
  left: -22%;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.11;
}

.hero__grid {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.42em 0.95em 0.42em 0.75em;
  border-radius: 999px;
  background: var(--sheet);
  box-shadow: 0 0 0 1px rgba(43, 38, 34, 0.1);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
}

.badge b {
  color: var(--vermilion-2);
  font-weight: 600;
}

.badge svg {
  width: 18px;
  height: 18px;
}

.hero h1 {
  width: min(560px, 100%);
  margin: 2px 0 -4px;
}

.hero h1 img {
  width: 100%;
}

.hero__tagline {
  font-size: clamp(1.55rem, 3.3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.hero__tagline em {
  font-style: normal;
  color: var(--vermilion);
}

.hero__lead {
  max-width: 33em;
  font-size: clamp(1.03rem, 1.6vw, 1.15rem);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: 6px;
}

.chips {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chips li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--sage-2);
  transform: rotate(45deg);
}

.chips li:nth-child(2)::before {
  background: var(--saffron);
}

.chips li:nth-child(3)::before {
  background: var(--vermilion);
}

.chips li:nth-child(4)::before {
  background: var(--indigo);
}

/* the garden, mounted like a print, in three papers one after another */
.hero__stage {
  position: relative;
}

.mount {
  position: relative;
  padding: clamp(8px, 1.1vw, 14px);
  background: var(--sheet);
  box-shadow: var(--shadow-big);
  transform: rotate(-1.1deg);
}

.mount::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(43, 38, 34, 0.06);
}

.slides {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tray);
}

.slides picture,
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slides img {
  object-fit: cover;
}

.slides picture {
  animation: paper-cycle 18s infinite;
}

.slides picture:nth-child(2) {
  animation-delay: -12s;
}

.slides picture:nth-child(3) {
  animation-delay: -6s;
}

@keyframes paper-cycle {
  0%,
  28% {
    opacity: 1;
  }

  33.4%,
  94.6% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.stage-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 22px 0 0 clamp(8px, 1.1vw, 14px);
  color: var(--ink-2);
  font-size: 0.92rem;
}

.paper-names {
  display: flex;
  gap: 8px;
}

.paper-names span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.28em 0.75em 0.28em 0.38em;
  border-radius: 999px;
  background: rgba(43, 38, 34, 0.05);
  color: var(--ink-2);
  font-weight: 500;
  animation: paper-chip 18s infinite;
}

.paper-names span:nth-child(2) {
  animation-delay: -12s;
}

.paper-names span:nth-child(3) {
  animation-delay: -6s;
}

.paper-names i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

@keyframes paper-chip {
  0%,
  29% {
    background: var(--ink);
    color: var(--washi);
  }

  33.4%,
  95.5% {
    background: rgba(43, 38, 34, 0.05);
    color: var(--ink-2);
  }

  100% {
    background: var(--ink);
    color: var(--washi);
  }
}

/* loose sheets drifting down past the garden */
.leaf {
  position: absolute;
  z-index: 2;
  width: var(--s, 34px);
  aspect-ratio: 1;
  background: var(--c, var(--vermilion));
  box-shadow: 0 10px 18px -8px rgba(43, 38, 34, 0.45);
  animation: drift var(--t, 9s) ease-in-out infinite alternate;
  pointer-events: none;
}

.leaf::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 42%;
  background: linear-gradient(315deg, transparent 50%, var(--b, #f6f1e7) 50%);
}

.leaf--1 {
  --c: url("assets/papers/kikko.webp") center / cover;
  --s: 38px;
  top: -18px;
  left: 8%;
  --r: -18deg;
}

.leaf--2 {
  --c: var(--saffron);
  --s: 26px;
  top: 14%;
  right: -10px;
  --r: 24deg;
  --t: 11s;
}

.leaf--3 {
  --c: url("assets/papers/seigaiha.webp") center / cover;
  --s: 44px;
  bottom: 64px;
  right: -20px;
  --r: 12deg;
  --t: 10s;
}

.leaf--4 {
  --c: var(--sage);
  --s: 22px;
  bottom: 18%;
  left: -16px;
  --r: -32deg;
  --t: 8s;
}

@keyframes drift {
  from {
    transform: translate3d(0, -6px, 0) rotate(var(--r, 0deg));
  }

  to {
    transform: translate3d(6px, 10px, 0) rotate(calc(var(--r, 0deg) + 14deg));
  }
}

/* ---------- features ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  padding: 32px 30px 34px;
  display: grid;
  align-content: start;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-big);
}

.card p {
  color: var(--ink-2);
}

/* an icon on a small square of paper with a corner folded over */
.tile {
  --tile: var(--vermilion);
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--tile);
  margin-bottom: 8px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.tile::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28%;
  height: 28%;
  background: linear-gradient(315deg, transparent 50%, rgba(255, 255, 255, 0.5) 50%);
}

.tile svg {
  width: 30px;
  height: 30px;
}

.tile--indigo {
  --tile: var(--indigo);
}

.tile--saffron {
  --tile: var(--saffron-2);
}

.tile--sage {
  --tile: var(--sage-2);
}

.tile--ink {
  --tile: var(--ink);
}

/* ---------- the film ---------- */

.section--indigo {
  color: var(--washi);
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(232, 163, 61, 0.14), transparent 60%),
    radial-gradient(900px 520px at 0% 100%, rgba(210, 69, 47, 0.16), transparent 60%),
    var(--indigo-2);
  overflow: hidden;
  isolation: isolate;
}

/* the waves of the Seigaiha print, very faint */
.section--indigo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/papers/seigaiha.webp") 0 0 / 300px 300px;
  opacity: 0.06;
}

.section--indigo .section__head p {
  color: rgba(244, 239, 230, 0.78);
}

.section--indigo .eyebrow {
  color: var(--saffron);
}

.section--indigo .eyebrow::before {
  background: linear-gradient(135deg, #f2c37c 50%, var(--saffron) 50%);
}

/* the band's edge pleated like paper: each fold has a lit face and a shaded one */
.pleats {
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 22L22 0V22Z' fill='%233c4a71'/%3E%3Cpath d='M22 0L44 22H22Z' fill='%23222b43'/%3E%3C/svg%3E") 0 0 / 44px 22px repeat-x,
    var(--pleat-bg, var(--washi)) var(--grain);
  pointer-events: none;
}

.cta .pleats {
  --pleat-bg: var(--washi-2);
}

.pleats--top {
  top: -1px;
}

.pleats--bottom {
  bottom: -1px;
  transform: scaleY(-1);
}

.film {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

/* the app's tray: dark paper with a pale folded rim */
.tray {
  position: relative;
  padding: clamp(8px, 1.2vw, 14px);
  border-radius: 22px;
  background: linear-gradient(180deg, #efe7da, #d9cdb9);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.tray video,
.tray img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: var(--tray);
}

.film__toggle {
  position: absolute;
  right: clamp(18px, 2.4vw, 30px);
  bottom: clamp(18px, 2.4vw, 30px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 43, 67, 0.72);
  color: #fff;
  font: 500 0.85rem/1 var(--sans);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.film__toggle svg {
  width: 18px;
  height: 18px;
}

.film__toggle .play,
.film__toggle[aria-pressed="false"] .pause {
  display: none;
}

.film__toggle[aria-pressed="false"] .play {
  display: block;
}

.film__facts {
  list-style: none;
  margin: 30px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.film__facts li {
  padding: 0.5em 1.05em;
  border: 1px solid rgba(244, 239, 230, 0.22);
  border-radius: 999px;
  color: rgba(244, 239, 230, 0.86);
  font-size: 0.92rem;
}

.film__facts b {
  color: #fff;
  font-weight: 600;
}

/* ---------- how it works ---------- */

.section--washi2 {
  background: var(--washi-2) var(--grain);
}

.steps {
  list-style: none;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 76px;
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
  display: grid;
  align-content: start;
  gap: 12px;
}

.step figure {
  margin: 0 0 10px;
  padding: 8px;
  background: var(--sheet);
  box-shadow: var(--shadow);
}

.step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--tray);
}

/* the step number, as a diagram prints it */
.step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step h3::before {
  content: counter(step);
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--washi);
  font-size: 1rem;
  font-weight: 600;
}

.step:nth-child(4) h3::before {
  background: var(--vermilion);
}

.step p {
  color: var(--ink-2);
  font-size: 0.99rem;
}

/* the diagram's arrow from one step to the next */
.step__arrow {
  position: absolute;
  top: 34%;
  right: -60px;
  width: 44px;
  height: 34px;
  color: var(--ink-3);
  z-index: 2;
}

/* the second step ends a row: its arrow would point off the page */
.step:nth-child(2) .step__arrow {
  display: none;
}

.step__arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.step__arrow polygon {
  fill: var(--washi-2);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.quote {
  margin: clamp(44px, 6vw, 64px) auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--ink-2);
}

.quote .hand {
  color: var(--vermilion);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

/* ---------- models ---------- */

.models {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.model {
  margin: 0;
  display: grid;
  background: var(--sheet);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.model:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow-big);
}

.model img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--tray);
}

/* the tent card in front of each model in the garden */
.model figcaption {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 16px 18px 16px;
  border-top: 1px solid var(--line);
}

.model figcaption::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 6px;
  border-top: 1px dashed rgba(43, 38, 34, 0.18);
}

.model b {
  font-weight: 600;
  font-size: 1.04rem;
  margin-top: 4px;
}

.model span {
  color: var(--ink-3);
  font-size: 0.88rem;
}

.level {
  position: absolute;
  right: 14px;
  top: 18px;
  padding: 0.2em 0.65em;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--sage-2);
}

.level--medium {
  background: var(--saffron-2);
}

.level--hard {
  background: var(--vermilion);
}

.rows {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.row {
  padding: 26px 26px 22px;
}

.row h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.row h3 span:last-child {
  color: var(--ink-3);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0;
}

.row__tag {
  display: inline-block;
  padding: 0.18em 0.7em;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--sage-2);
  transform: rotate(-2deg);
}

.row--medium .row__tag {
  background: var(--saffron-2);
}

.row--hard .row__tag {
  background: var(--vermilion);
}

.row ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}

.row li span {
  color: var(--ink-3);
  font-size: 0.86rem;
  white-space: nowrap;
}

.row li small {
  display: block;
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.4;
}

.rows__col {
  display: grid;
  gap: 30px;
}

/* a note on saffron paper, pinned a little askew */
.note {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 22px 24px 24px 20px;
  background: #f6dfb2;
  box-shadow: 0 1px 2px rgba(43, 38, 34, 0.08), 0 14px 26px -14px rgba(120, 80, 20, 0.45);
  transform: rotate(1.6deg);
}

.note::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 70px;
  height: 20px;
  margin-left: -35px;
  background: rgba(244, 239, 230, 0.7);
  box-shadow: 0 1px 2px rgba(43, 38, 34, 0.1);
  transform: rotate(-3deg);
}

.note svg {
  width: 54px;
  height: 54px;
}

.note .hand {
  font-size: 1.28rem;
  color: #5b4320;
}

.footnote {
  margin-top: 26px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* ---------- paper ---------- */

.paper {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.paper__copy {
  display: grid;
  gap: 26px;
}

.swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px 12px;
}

.swatches li {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
}

/* a square of paper with its corner folded to show the back */
.swatch {
  --front: var(--vermilion);
  --back: #f6f1e7;
  position: relative;
  width: 100%;
  max-width: 62px;
  aspect-ratio: 1;
  background: var(--front);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(43, 38, 34, 0.08);
  transition: transform 0.25s ease;
}

.swatch::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
  height: 32%;
  background: linear-gradient(315deg, transparent 50%, var(--back) 50%);
  filter: drop-shadow(-2px -2px 2px rgba(43, 38, 34, 0.25));
}

.swatches li:hover .swatch {
  transform: translateY(-3px) rotate(-4deg);
}

.swatch--print {
  background: var(--front) center / cover;
}

.needs {
  padding: 28px 30px 26px;
}

.needs h3 {
  margin-bottom: 14px;
}

.needs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.needs li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
}

.needs li strong {
  color: var(--ink);
  font-weight: 600;
}

/* a valley fold and a tick */
.needs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vermilion) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.paper__art {
  position: relative;
}

.paper__art .mount {
  transform: rotate(1.4deg);
}

.paper__art img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--tray);
}

.paper__art .hand {
  position: absolute;
  left: -6px;
  bottom: -54px;
  color: var(--ink-2);
  transform: rotate(-2deg);
}

/* ---------- good to know ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(64px, 8vw, 96px);
}

.facts div {
  position: relative;
  padding: 22px 22px 24px;
  display: grid;
  gap: 6px;
  color: #fff;
  background: var(--indigo);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.facts div::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(225deg, transparent 50%, rgba(255, 255, 255, 0.35) 50%);
}

.facts div:nth-child(2) {
  background: var(--vermilion);
}

.facts div:nth-child(3) {
  background: var(--sage-2);
}

.facts div:nth-child(4) {
  background: var(--ink);
}

.facts b {
  font-size: 1.12rem;
  font-weight: 600;
}

.facts span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ---------- help ---------- */

.faq {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--sheet);
  box-shadow: 0 1px 2px rgba(43, 38, 34, 0.06), 0 8px 22px -12px rgba(43, 38, 34, 0.2);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 19px 62px 19px 24px;
  font-weight: 600;
  font-size: 1.04rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* a square that turns over into a diamond when it opens */
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  display: grid;
  place-items: center;
  background: var(--washi-2);
  color: var(--vermilion-2);
  font: 600 1.15rem/1 var(--sans);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(135deg);
  background: var(--vermilion);
  color: #fff;
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--ink-2);
}

.help {
  margin-top: clamp(44px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* the community card in indigo, like the band the film sits on */
.help a.help__discord {
  color: var(--washi);
  background: var(--indigo);
}

.help a.help__discord::before {
  background: linear-gradient(225deg, transparent 50%, var(--indigo-3) 50%);
}

.help a.help__discord:hover {
  color: var(--washi);
}

.help a.help__discord span {
  color: rgba(244, 239, 230, 0.82);
}

.help a.help__discord i {
  color: var(--saffron);
}

.help a {
  display: grid;
  gap: 6px;
  padding: 26px 26px 28px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.help a:hover {
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-big);
}

.help b {
  font-size: 1.12rem;
  font-weight: 600;
}

.help span {
  color: var(--ink-2);
  font-size: 0.97rem;
}

.help i {
  font-style: normal;
  color: var(--vermilion-2);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 6px;
}

/* ---------- call to action and footer ---------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  color: var(--washi);
  background:
    radial-gradient(700px 380px at 50% 110%, rgba(210, 69, 47, 0.35), transparent 70%),
    var(--indigo-2);
  padding: clamp(96px, 12vw, 150px) 0 clamp(80px, 10vw, 120px);
}

.cta > .crease-pattern {
  width: min(980px, 140vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  color: var(--washi);
  opacity: 0.07;
}

.cta .wrap {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.cta__mark {
  width: 104px;
  height: 104px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
  animation: bloom 6s ease-in-out infinite alternate;
}

@keyframes bloom {
  from {
    transform: rotate(-3deg) translateY(0);
  }

  to {
    transform: rotate(3deg) translateY(-6px);
  }
}

.cta h2 {
  max-width: 15em;
}

.cta p {
  max-width: 560px;
  color: rgba(244, 239, 230, 0.8);
  font-size: 1.1rem;
}

.cta .btn {
  margin-top: 10px;
}

.cta p.cta__more {
  margin-top: 8px;
  font-size: 0.95rem;
  color: rgba(244, 239, 230, 0.7);
}

.cta__more a {
  color: var(--washi);
}

.cta__more a:hover {
  color: #fff;
}

.footer {
  background: var(--ink);
  color: rgba(244, 239, 230, 0.66);
  font-size: 0.92rem;
  padding: 30px 0 42px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer a {
  color: rgba(244, 239, 230, 0.88);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer small {
  flex-basis: 100%;
  color: rgba(244, 239, 230, 0.45);
  font-size: 0.8rem;
}

/* ---------- privacy page ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(60px, 9vw, 108px) 0 clamp(56px, 8vw, 92px);
  border-bottom: 1px solid var(--line);
}

.page-hero > .crease-pattern {
  width: min(900px, 130vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.09;
}

.page-hero .wrap {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.page-hero svg.mark {
  width: 84px;
  height: 84px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
}

.page-hero p {
  color: var(--ink-2);
  max-width: 600px;
  font-size: 1.08rem;
}

.policy {
  overflow-wrap: break-word;
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) 0 clamp(70px, 9vw, 110px);
}

.policy .updated {
  color: var(--ink-3);
  font-size: 0.95rem;
}

.short {
  margin: 22px 0 46px;
  padding: 30px 30px 32px;
}

.short h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
  color: var(--vermilion-2);
}

.short ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.short li {
  position: relative;
  padding-left: 34px;
}

.short li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.policy section {
  margin-top: 42px;
}

.policy section h2 {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  margin-bottom: 14px;
}

.policy h3 {
  font-size: 1.04rem;
  margin: 24px 0 6px;
}

.policy p + p,
.policy p + ul,
.policy ul + p {
  margin-top: 12px;
}

.policy ul {
  padding-left: 1.2em;
}

.policy li + li {
  margin-top: 6px;
}

.policy section > p,
.policy section li {
  color: #3f3832;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .steps {
    gap: 44px 56px;
  }

  .step__arrow {
    right: -50px;
  }

  .models {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .models .model:nth-child(n + 7) {
    display: none;
  }

  .swatches {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar__links a:not(.btn) {
    display: none;
  }

  .hero__grid,
  .paper {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__stage {
    margin-right: 0;
  }

  .hero > .crease-pattern {
    left: -40%;
    top: 30%;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rows {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paper__art .hand {
    position: static;
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }
}

@media (max-width: 760px) {

  .hero {
    padding-top: 28px;
  }

  .cards,
  .steps,
  .facts,
  .help {
    grid-template-columns: minmax(0, 1fr);
  }

  .step__arrow {
    display: none;
  }

  .models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .models .model:nth-child(n + 7) {
    display: grid;
  }

  .model figcaption {
    padding: 14px 12px 12px;
  }

  .level {
    position: static;
    justify-self: start;
    margin-top: 6px;
  }

  .swatches {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .leaf--2,
  .leaf--4 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slides picture,
  .paper-names span,
  .leaf,
  .cta__mark {
    animation: none;
  }

  .slides picture:nth-child(n + 2) {
    display: none;
  }

  .paper-names span:first-child {
    background: var(--ink);
    color: var(--washi);
  }

  .btn,
  .card,
  .model,
  .help a,
  .swatch {
    transition: none;
  }
}
