/* Thicket's paper: the same colours, type and shapes as the app. Flat fills and hairlines only. */
:root {
  --page: #F6F2EB;
  --card: #FFFDF8;
  --ink: #24201A;
  --soft: #6F685C;
  --line: #E1D9CB;
  --well: #EBE5D9;
  --moss: #5C7839;
  --bark: #4A4038;
  --honey: #E8BF57;
  --wash: #D1D5C0;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  /* One curve for everything that moves: a strong ease-out. */
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* Stickers hang over card edges; near the screen edge that must never scroll sideways. */
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.mark {
  display: inline-flex; align-items: center; gap: 11px;
  font: 600 27px/1 var(--serif); letter-spacing: -0.01em; text-decoration: none;
}
.mark img { width: 38px; height: 38px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; font: 600 15px/1 var(--sans); }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* Apple's badge exactly as Apple draws it: 48 px tall (40 px is the least allowed), with a quarter of
   its height clear all round, which the hero's spacing gives it. Apple asks for one badge per page,
   so the closing card has a plain pill instead. */
.store { display: block; width: fit-content; border-radius: 8px; }
.store img { width: auto; height: 48px; }
.get {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  border-radius: 24px; background: var(--ink); color: #fff;
  font: 600 16px/1 var(--sans); white-space: nowrap; text-decoration: none;
  transition: background-color 0.14s var(--out);
}
.get:hover { background: var(--bark); }

/* Stickers: cut by Thicket's own cutter from public-domain photos. A hard, unblurred shadow gives
   them the thickness of a printed sticker without a fade. */
.sticker {
  position: absolute; z-index: 2; height: auto;
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 2px 0 rgba(36, 32, 26, 0.18));
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 64px; align-items: center; padding: 36px 0 88px; }
.hero h1 {
  font: 500 clamp(48px, 6.2vw, 76px)/0.98 var(--serif);
  letter-spacing: -0.028em; margin: 0 0 22px;
}
.lede { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.4; color: var(--soft); margin: 0 0 32px; max-width: 24ch; text-wrap: balance; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; }
.facts li {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: 17px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font: 600 14px/1 var(--sans);
}

/* The moss paper card the journal sits on, with stickers stuck over its edges. */
.stage {
  position: relative; display: grid; place-items: center;
  padding: 56px 32px; border-radius: 44px;
  background: var(--moss) url(/assets/speckle-moss.svg);
}
.phone {
  margin: 0; width: min(290px, 66%); border-radius: 38px; overflow: hidden;
  background: var(--wash); box-shadow: 0 0 0 1px rgba(36, 32, 26, 0.14);
}
.phone img { width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; }
.stage .phone { width: min(262px, 60%); }
/* Each sticker sits mostly on the moss and hangs off the card, clear of the journal's content. */
.stage .s-left { width: clamp(150px, 14vw, 192px); left: -78px; top: 34%; --r: -10deg; }
.stage .s-top { width: clamp(120px, 11.5vw, 156px); right: -52px; top: -38px; --r: 12deg; }
.stage .s-bottom { width: clamp(100px, 9.5vw, 128px); right: -44px; bottom: 10%; --r: 6deg; }

/* A sheet of stickers: one tile each, named the way the journal names them. */
.sheet {
  padding: 40px; margin-bottom: 20px; border-radius: 36px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.sheet h2 { font: 500 clamp(28px, 3vw, 34px)/1.08 var(--serif); letter-spacing: -0.015em; margin: 0 0 28px; }
.peel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.peel li {
  display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 12px; min-width: 0;
  aspect-ratio: 5 / 6; padding: 18px 10px 16px; border-radius: 24px; background: var(--page);
}
.peel img {
  align-self: center; width: 90%; height: 100%; max-height: 144px; object-fit: contain;
  rotate: var(--r, 0deg); filter: drop-shadow(0 2px 0 rgba(36, 32, 26, 0.18));
}
/* Names stay on one line so they sit on one baseline across the row. */
.peel span { font: 600 14px/1.2 var(--sans); text-align: center; white-space: nowrap; translate: 0 -0.06em; }

/* Features: each a card with its screen whole inside it, the same padding on every side.
   Cards share rows through a subgrid, so titles, text and pictures side by side start on one line. */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 20px; }
.feature {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start;
  padding: 40px; border-radius: 36px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.feature h2 { font: 500 clamp(28px, 3vw, 34px)/1.08 var(--serif); letter-spacing: -0.015em; margin: 0 0 10px; }
.feature p { margin: 0 0 32px; color: var(--soft); max-width: 32ch; }
.shot { display: grid; justify-items: center; align-content: end; }
.shot .phone { width: min(262px, 78%); }
.feature.bark { background: var(--bark) url(/assets/speckle-bark.svg); box-shadow: none; color: #fff; }
.feature.bark p { color: rgba(255, 255, 255, 0.78); }
.feature.bark .phone { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); }

/* Rarity: what each mark means, then the real mark from the app. The picture stretches so the
   card ends on the same line as the one beside it. */
.rare .media { display: flex; flex-direction: column; gap: 16px; }
.marks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.marks li {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px; background: var(--page);
}
.marks b { font-weight: 600; }
.marks span.n { color: var(--soft); font-size: 15px; text-align: right; }
.coin {
  display: inline-flex; align-items: center; justify-content: center; gap: 1px;
  min-width: 30px; height: 30px; padding: 0 7px; border-radius: 15px; background: var(--honey);
}
.coin svg { width: 14px; height: 14px; fill: var(--ink); }
.detail { flex: 1; display: grid; place-items: center; margin: 0; }
.detail img { width: min(340px, 100%); border-radius: 28px; }

/* Closing line, with a monarch caterpillar making its way along the top edge. */
.close {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px 40px; margin: 56px 0 64px; border-radius: 36px;
  background: var(--honey) url(/assets/speckle-honey.svg);
}
.close h2 { font: 500 clamp(28px, 3.4vw, 40px)/1.05 var(--serif); letter-spacing: -0.015em; margin: 0; }
.close .s-caterpillar { width: clamp(130px, 13vw, 170px); right: 230px; top: -40px; --r: -3deg; }

/* Footer */
.foot { padding: 32px 0 56px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.foot .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.foot nav { display: flex; gap: 20px; font-weight: 600; color: var(--ink); }
.foot nav a { text-decoration: none; }
.foot p { margin: 0 0 8px; max-width: 60ch; }
.foot .legal { margin-top: 16px; font-size: 13px; max-width: 72ch; }

/* Privacy and support */
.doc {
  max-width: 760px; margin: 12px auto 72px; padding: 48px;
  border-radius: 36px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.doc h1 { font: 500 clamp(38px, 5vw, 52px)/1.05 var(--serif); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .when { color: var(--soft); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font: 600 19px/1.3 var(--sans); margin: 32px 0 8px; }
.doc p, .doc li { color: #3d372e; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.short {
  margin: 0 0 8px; padding: 20px 22px; border-radius: 20px; background: var(--page);
  font-size: 18px; line-height: 1.45; color: var(--ink);
}
.mail {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; margin-top: 4px;
  border-radius: 22px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
}

/* Continuous corners where the browser can draw them. */
@supports (corner-shape: squircle) {
  .stage, .feature, .sheet, .close, .doc { corner-shape: squircle; border-radius: 64px; }
  .phone { corner-shape: squircle; border-radius: 56px; }
  .detail img, .marks li, .short, .peel li { corner-shape: squircle; }
  .detail img { border-radius: 48px; }
  .peel li { border-radius: 40px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Stickers land once, quickly, one after another. */
  .sticker, .peel img { animation: land 0.42s var(--out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes land { from { opacity: 0; scale: 1.14; } }
}

/* Where there is a pointer, a sticker lifts a little toward it. */
@media (hover: hover) and (pointer: fine) {
  .sticker, .peel img {
    transition: translate 0.18s var(--out), rotate 0.18s var(--out), scale 0.18s var(--out), filter 0.18s var(--out);
  }
  .sticker:hover, .peel li:hover img {
    translate: 0 -4px; scale: 1.04; rotate: calc(var(--r, 0deg) + 4deg);
    filter: drop-shadow(0 5px 0 rgba(36, 32, 26, 0.14));
  }
}

@media (max-width: 960px) {
  .peel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .peel img { max-height: 150px; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-bottom: 64px; }
  .features { grid-template-columns: 1fr; }
  .stage { padding: 48px 24px; }
  .stage .s-left { left: -16px; }
  .stage .s-top { right: -14px; }
  .stage .s-bottom { right: -12px; }
  .close .s-caterpillar { right: 32px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .top { padding: 16px 0; }
  .top nav { display: none; }
  .stage { padding: 44px 16px; border-radius: 32px; }
  .stage .phone { width: min(236px, 66%); }
  .stage .s-left { width: 108px; left: -18px; top: 45%; }
  .stage .s-top { width: 104px; right: -10px; top: -28px; }
  .stage .s-bottom { width: 84px; right: -8px; bottom: 8%; }
  .sheet { padding: 28px 20px 20px; border-radius: 30px; }
  .sheet h2 { margin-bottom: 20px; }
  .peel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature { padding: 28px 20px; border-radius: 30px; }
  .feature p { margin-bottom: 24px; }
  .shot .phone { width: min(248px, 84%); }
  .close { padding: 36px 24px 28px; border-radius: 30px; margin-top: 48px; }
  .close .s-caterpillar { width: 120px; right: 20px; top: -30px; }
  .doc { padding: 32px 22px; border-radius: 30px; margin-top: 4px; }
  .marks li { grid-template-columns: 40px 1fr; }
  .marks span.n { grid-column: 2; text-align: left; margin-top: -6px; }
}
