:root {
  --paper: #f6efe4;
  --paper-2: #fffaf0;
  --ink: #4a1c1c;
  --ink-soft: #7a5752;
  --indigo: #4a4e9c;
  --indigo-wash: #8d8fd0;
  --orange: #f0892a;
  --sky: #a9dceb;
  --plum: #7c3b4a;
  --oak: #c08a52;
  --moss: #3f7a3a;
  --shadow: rgba(74, 28, 28, .14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1714;
    --paper-2: #26201c;
    --ink: #f3e8da;
    --ink-soft: #bfae9f;
    --indigo: #a7aaf5;
    --indigo-wash: #5b5ea8;
    --plum: #d58b9a;
    --oak: #8a5a32;
    --moss: #8fcf7f;
    --shadow: rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Shantell Sans", "Comic Sans MS", "Segoe Print", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .11 0 0 0 0 .11 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  body::before { opacity: .9; mix-blend-mode: screen; }
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.sketchy {
  border: 2.5px solid var(--ink);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}
.brand svg { width: 38px; height: 38px; flex: none; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.hello-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Caveat", cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 2px 14px;
  background: var(--paper-2);
  rotate: 2deg;
  text-decoration: none;
  transition: color .2s ease, rotate .25s ease, translate .25s ease;
}
.hello-chip:nth-child(1) { rotate: -1deg; }
.hello-chip:nth-child(2) { rotate: 1.5deg; }
.hello-chip:nth-child(3) { rotate: -2deg; }
.hello-chip:hover, .hello-chip:focus-visible { color: var(--orange); rotate: 0deg; translate: 0 -3px; }
.hello-chip svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 640px) {
  header .wrap { flex-direction: column; align-items: flex-start; }
  .chips { justify-content: flex-start; }
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 70px;
  align-items: center;
  padding: 28px 0 56px;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 56px 0 80px; }
  .hero-text { order: 2; }
  .portrait { order: 1; }
}

.portrait {
  position: relative;
  width: min(100%, 500px);
  margin: 0 auto;
  rotate: -2deg;
  animation: drop .9s cubic-bezier(.2,.8,.2,1) both;
}
.portrait .frame {
  background: #fffffb;
  padding: 12px;
  box-shadow: 6px 8px 0 var(--shadow);
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 200px 14px 180px 14px / 14px 180px 14px 200px;
}

.tape {
  position: absolute;
  width: 110px;
  height: 30px;
  opacity: .78;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 3px, transparent 3px 7px),
    var(--c);
  clip-path: polygon(3% 8%, 97% 0, 100% 50%, 96% 100%, 2% 94%, 0 45%);
}
.tape.t1 { --c: var(--sky);    top: -12px; left: -10px; rotate: -32deg; }
.tape.t2 { --c: var(--orange); bottom: -8px; right: -8px; rotate: -28deg; opacity: .6; }

.note {
  position: absolute;
  right: -6px;
  top: -46px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 28px;
  color: var(--plum);
  rotate: 6deg;
  animation: fade 1s .9s both;
}
.note svg { width: 58px; height: 52px; margin-bottom: -26px; }
.note path { stroke: var(--plum); }

.hero-text { text-align: center; }
@media (min-width: 860px) { .hero-text { text-align: left; } }

.hi {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 38px);
  color: var(--orange);
  rotate: -4deg;
  display: inline-block;
  animation: rise .8s .15s both;
}

h1 {
  font-weight: 800;
  font-size: clamp(44px, 9vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 4px;
  animation: rise .8s .25s both;
}

.brush {
  position: relative;
  display: inline-block;
  color: #fffaf0;
  padding: 0 .18em;
  margin-left: .05em;
  white-space: nowrap;
  z-index: 0;
}
.brush svg {
  position: absolute;
  left: -4%;
  top: 4%;
  width: 108%;
  height: 100%;
  z-index: -1;
  overflow: visible;
}
.brush .stroke-fill { fill: var(--indigo); }
@media (prefers-color-scheme: dark) {
  .brush { color: #1c1714; }
}
.scribble {
  display: block;
  width: min(280px, 70%);
  height: 22px;
  margin: 10px auto 0;
  overflow: visible;
}
@media (min-width: 860px) { .scribble { margin-left: 0; } }
.scribble path {
  stroke: var(--orange);
  stroke-width: 5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw 1.2s 1s ease-out forwards;
}

.tagline {
  margin-top: 18px;
  font-size: clamp(18px, 3.4vw, 21px);
  color: var(--ink-soft);
  max-width: 30ch;
  animation: rise .8s .35s both;
}
@media (max-width: 859px) { .tagline { margin-left: auto; margin-right: auto; } }

.meet { margin-top: 26px; animation: rise .8s .45s both; }
.meet-label {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}
.people {
  list-style: none;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (min-width: 860px) { .people { justify-content: flex-start; gap: 22px; } }
.person a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  transition: rotate .25s ease, translate .25s ease;
}
.person:nth-child(1) a { rotate: -4deg; }
.person:nth-child(2) a { rotate: 3deg; }
.person:nth-child(3) a { rotate: -2deg; }
.person img {
  width: 84px;
  height: 84px;
  display: block;
  background: #fffffb;
  border: 2.5px solid var(--ink);
  border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%;
  box-shadow: 3px 4px 0 var(--shadow);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.person .name { font-weight: 800; font-size: 17px; line-height: 1.1; }
.person .name i {
  font-style: normal;
  color: var(--orange);
  margin-left: 2px;
  display: inline-block;
  transition: translate .25s ease;
}
.person a:hover, .person a:focus-visible { rotate: 0deg; translate: 0 -4px; }
.person a:hover img, .person a:focus-visible img { border-color: var(--orange); box-shadow: 5px 7px 0 var(--shadow); }
.person a:hover .name i { translate: 2px -2px; }
.person a:focus-visible { outline: none; }
.person a:focus-visible .name { text-decoration: underline wavy var(--orange); }
@media (max-width: 400px) { .person img { width: 74px; height: 74px; } .people { gap: 14px; } }

.cue {
  display: inline-flex;
  margin-top: 26px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 24px;
  color: var(--plum);
  text-decoration: none;
  transition: opacity .4s ease;
}

.cue > span { display: inline-flex; align-items: center; gap: 6px; animation: fade 1s 1.4s both; }
.cue svg { width: 26px; height: 40px; animation: bob 1.6s ease-in-out infinite; }
.cue path { stroke: var(--plum); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.cue.gone { opacity: 0; pointer-events: none; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 7px; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.soon, .travels, .notes { scroll-margin-top: 24px; }

.kicker {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 26px;
  color: var(--orange);
  rotate: -3deg;
}
.section-title {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 52px);
  line-height: 1.05;
}
.page-title { font-size: clamp(40px, 8vw, 64px); margin-top: 0; animation: none; }
.mark {
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--sky) 70%, transparent) 58% 90%, transparent 90%);
  padding: 0 .15em;
}
.sub { color: var(--ink-soft); margin-top: 4px; max-width: 44ch; text-wrap: pretty; }
.page { padding: 28px 0 40px; }
.soon .section-title { text-align: center; font-size: clamp(34px, 6vw, 46px); line-height: 1.1; }
.soon .sub { margin: 4px auto 0; text-align: center; }
.stub {
  max-width: 36ch;
  margin: 26px auto 0;
  padding: 18px 22px;
  text-align: center;
  color: var(--ink-soft);
  border: 2px dashed var(--ink-soft);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
  rotate: -1deg;
}
.stub strong { display: block; font: 700 28px/1.15 "Caveat", cursive; color: var(--ink); text-wrap: balance; }
.stub span { display: block; margin-top: 6px; font-size: 15px; text-wrap: pretty; }
.stub button {
  margin-top: 12px;
  font: 700 21px/1.2 "Caveat", cursive;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 10px 6px 12px 8px;
  padding: 3px 16px 4px;
  cursor: pointer;
  transition: color .2s ease;
}
.stub button:hover, .stub button:focus-visible { color: var(--orange); }
.postcards .stub { grid-column: 1 / -1; margin-top: 0; }
.stats[hidden] { display: none; }
.brewing {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 640px;
  margin: 26px auto 0;
}
.brew {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 20px 20px;
  text-align: center;
  color: var(--ink-soft);
  border: 2px dashed var(--ink-soft);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
  rotate: -1deg;
}
.brew:nth-child(2) { rotate: 1.2deg; }
.brew svg { width: 52px; height: 52px; }
.brew strong { font: 700 26px/1.15 "Caveat", cursive; color: var(--ink); }
.brew span { font-size: 15px; text-wrap: pretty; }

.travels { padding-bottom: 72px; }
.travels-head {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.stats { display: flex; gap: 14px; font-family: "Caveat", cursive; font-weight: 700; font-size: 22px; color: var(--ink-soft); }
.stats > * { padding: 2px 14px; background: var(--paper-2); }
.stats > :nth-child(1) { rotate: -2deg; }
.stats > :nth-child(2) { rotate: 2deg; }
.stat-countries b { color: var(--indigo); }
.stat-trips b { color: var(--orange); }
.stat-trips {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: rotate .25s ease, color .2s ease;
}
.stat-trips:hover, .stat-trips:focus-visible { rotate: 0deg; color: var(--ink); }
.stat-trips:focus-visible { outline: none; text-decoration: underline wavy var(--orange); }
.trips-note {
  position: absolute;
  right: 45%;
  bottom: calc(100% + 2px);
  display: flex;
  align-items: flex-end;
  gap: 2px;
  font-size: 24px;
  white-space: nowrap;
  color: var(--plum);
  rotate: -4deg;
  pointer-events: none;
}
.trips-note svg { width: 44px; height: 40px; margin-bottom: -22px; transition: translate .25s ease; }
.trips-note path { stroke: var(--plum); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.stat-trips:hover .trips-note svg { translate: 2px 3px; }
@media (max-width: 720px) {
  .stats { margin-top: 44px; }
  .trips-note { right: auto; left: 40%; flex-direction: row-reverse; rotate: 3deg; }
  .trips-note svg { scale: -1 1; }
}

.travels-page .postcards { margin-top: 48px; }

.stat-countries {
  position: relative;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: rotate .25s ease;
}
.stat-countries:hover, .stat-countries:focus-visible, .stat-countries[aria-expanded="true"] { rotate: 0deg; }
.stat-countries:focus-visible { outline: none; text-decoration: underline wavy var(--orange); }
.tip {
  position: absolute;
  z-index: 5;
  top: calc(100% + 16px);
  right: -8px;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 14px 18px 14px;
  background: var(--paper-2);
  box-shadow: 4px 5px 0 var(--shadow);
  text-align: left;
  rotate: 2deg;
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  pointer-events: none;
  transition: opacity .2s ease, translate .2s ease, visibility .2s;
}
.tip::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 70px;
  height: 22px;
  translate: -50% 0;
  rotate: -5deg;
  opacity: .8;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 3px, transparent 3px 7px),
    var(--sky);
  clip-path: polygon(3% 8%, 97% 0, 100% 50%, 96% 100%, 2% 94%, 0 45%);
}
.stat-countries:hover .tip,
.stat-countries:focus-visible .tip,
.stat-countries[aria-expanded="true"] .tip {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.tip-title { display: block; font-size: 21px; line-height: 1.2; color: var(--ink-soft); white-space: nowrap; }
.tip-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  font-family: "Shantell Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.tip-list > span { display: flex; align-items: center; gap: 8px; }
.tip-list > span::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  background: var(--orange);
}
.tip-list > span:nth-child(2)::before { background: var(--indigo); }
.tip-list > span:nth-child(3)::before { background: var(--plum); }
@media (max-width: 720px) { .tip { right: auto; left: -8px; rotate: -1deg; } }

.postcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 34px 26px;
  margin-top: 40px;
}
.postcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fffffb;
  padding: 12px 12px 14px;
  box-shadow: 5px 6px 0 var(--shadow);
  border: 2.5px solid var(--ink);
  border-radius: 12px 6px 14px 8px;
  transition: rotate .25s ease, translate .25s ease;
}
@media (prefers-color-scheme: dark) { .postcard { background: var(--paper-2); } }
.postcard:nth-child(3n+1) { rotate: -2deg; }
.postcard:nth-child(3n+2) { rotate: 1.5deg; border-radius: 6px 14px 8px 12px; }
.postcard:nth-child(3n) { rotate: -1deg; border-radius: 14px 8px 12px 6px; }
.postcard:hover { rotate: 0deg; translate: 0 -4px; }
.postcard .tape { width: 90px; height: 26px; top: -12px; z-index: 2; }
.postcard:nth-child(3n+1) .tape { --c: var(--sky); left: 50%; translate: -50% 0; rotate: -4deg; }
.postcard:nth-child(3n+2) .tape { --c: var(--orange); right: 14px; rotate: 6deg; opacity: .7; }
.postcard:nth-child(3n) .tape { --c: var(--indigo-wash); left: 14px; rotate: -8deg; }

.pc-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c) 35%, var(--paper-2));
}
.pc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-photo svg { width: 64px; height: 64px; }
button.pc-photo { border: 0; padding: 0; font: inherit; color: inherit; cursor: zoom-in; }
.pc-photo.has-photos img { transition: scale .35s ease; }
.pc-photo.has-photos:hover img, .pc-photo.has-photos:focus-visible img { scale: 1.04; }
.pc-photo.has-photos:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.pc-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px 3px 8px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 40px 10px 36px 12px / 12px 34px 10px 38px;
  rotate: -3deg;
  box-shadow: 2px 3px 0 var(--shadow);
}
.pc-photo .pc-count svg { width: 18px; height: 18px; }
.pc-count path, .pc-count circle { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; fill: none; }

html.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(28, 23, 20, .84); backdrop-filter: blur(3px); }
.lb-frame {
  position: relative;
  margin: 0;
  padding: 12px 12px 8px;
  background: #fffffb;
  border: 2.5px solid #4a1c1c;
  border-radius: 10px 6px 12px 8px;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, .35);
  rotate: -1deg;
  touch-action: pan-y;
}
.lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(100vw - 160px), 1100px);
  max-height: calc(100dvh - 150px);
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-tape { --c: var(--sky); width: 110px; height: 30px; top: -16px; left: 50%; translate: -50% 0; rotate: -3deg; }
.lb-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 6px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: #4a1c1c;
}
.lb-count { color: #7a5752; white-space: nowrap; }
.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font: 700 26px/1 "Shantell Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: translate .2s ease, color .2s ease;
}
.lb-btn:hover, .lb-btn:focus-visible { color: var(--orange); }
.lb-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }
.lb-close { right: 20px; top: 20px; }
.lb-share { right: 86px; top: 20px; }
.lb-share svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-note {
  position: fixed;
  right: 20px;
  top: 84px;
  max-width: calc(100vw - 40px);
  padding: 2px 12px;
  font: 700 20px/1.3 "Caveat", cursive;
  color: var(--ink);
  background: var(--paper-2);
  border-radius: 10px 6px 12px 8px;
  overflow-wrap: anywhere;
}
.lb-note:empty { display: none; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 720px) {
  .lb-img { max-width: calc(100vw - 48px); max-height: calc(100dvh - 190px); }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
  .lb-prev { left: calc(50% - 70px); }
  .lb-next { right: calc(50% - 70px); }
}

.postcard:nth-child(3n+1) .pc-photo { --c: var(--orange); }
.postcard:nth-child(3n+2) .pc-photo { --c: var(--sky); }
.postcard:nth-child(3n) .pc-photo { --c: var(--indigo-wash); }
.pc-row { margin-top: 12px; min-width: 0; }
.postcard h3 { font-size: 20px; font-weight: 800; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.pc-country {
  display: block;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-soft);
}
.postcard p { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.year {
  align-self: flex-end;
  margin-top: auto;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  padding: 4px 10px 5px;
  border: 2px solid currentColor;
  border-radius: 40px 10px 36px 12px / 12px 34px 10px 38px;
  rotate: -3deg;
  white-space: nowrap;
}
.postcard > :nth-last-child(2) { margin-bottom: 14px; }
.postcard:nth-child(3n+1) .year { color: var(--orange); }
.postcard:nth-child(3n+2) .year { color: var(--indigo); }
.postcard:nth-child(3n) .year { color: var(--plum); }
.next {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 240px;
  padding: 20px;
  border: 2.5px dashed var(--ink-soft);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
  rotate: 1deg;
  text-align: center;
  color: var(--ink-soft);
}
.next svg { width: 54px; height: 54px; }
.next strong { font-family: "Caveat", cursive; font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1.1; }
.next span { font-size: 15px; }

.ink path, .ink circle, .ink rect, .ink line, .ink polyline {
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.ink.bold path, .ink.bold circle, .ink.bold rect, .ink.bold line { stroke-width: 3.4; }
.ink .wash { stroke: none; opacity: .55; }

.notes {
  display: grid;
  gap: 36px 56px;
  align-items: center;
  padding: 8px 0 96px;
}
@media (min-width: 860px) { .notes { grid-template-columns: .85fr 1.15fr; } }

.desk {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
}
.pile { display: grid; padding: 22px 12px 10px; }
.pile > .memo { grid-area: 1 / 1; }
.desk-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-right: 8px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 26px;
  color: var(--plum);
  rotate: -2deg;
}
.desk-cta svg { width: 46px; height: 22px; transition: translate .25s ease; }
.desk-cta path { stroke: var(--plum); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.desk:hover .desk-cta svg, .desk:focus-visible .desk-cta svg { translate: 6px 0; }
.desk:focus-visible { outline: none; }
.desk:focus-visible .desk-cta { text-decoration: underline wavy var(--orange); }

.memo {
  --rule: color-mix(in srgb, var(--sky) 55%, transparent);
  --tint: var(--paper-2);
  position: relative;
  padding: 18px 22px 22px 34px;
  background-color: var(--tint);
  background-image: repeating-linear-gradient(transparent 0 27px, var(--rule) 27px 28px);
  background-position: 0 12px;
  border: 2.5px solid var(--ink);
  border-radius: 6px 14px 8px 12px;
  box-shadow: 4px 6px 0 var(--shadow);
  transition: rotate .3s ease, translate .3s ease, box-shadow .3s ease;
}
.memo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 2px;
  background: color-mix(in srgb, var(--plum) 35%, transparent);
}
@media (prefers-color-scheme: dark) {
  .memo { --rule: color-mix(in srgb, var(--sky) 16%, transparent); }
}
.memo-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.memo-tag { margin-left: auto; }
.memo-title { overflow-wrap: break-word; }
.memo-date {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--plum);
}
.memo-tag {
  --c: var(--ink-soft);
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  padding: 3px 10px 4px;
  color: var(--c);
  border: 2px solid var(--c);
  border-radius: 40px 10px 36px 12px / 12px 34px 10px 38px;
  rotate: 3deg;
  white-space: nowrap;
}
.memo[data-tag="event"] .memo-tag { --c: var(--moss); }
.memo[data-tag="museum"] .memo-tag { --c: var(--indigo); }
.memo[data-tag="concert"] .memo-tag { --c: var(--plum); }
.memo[data-tag="park"] .memo-tag { --c: var(--orange); }
.memo[data-tag="milestone"] .memo-tag { --c: var(--ink); }
.memo-title { font-size: 22px; font-weight: 800; line-height: 1.2; margin-top: 8px; }
.memo-text {
  margin-top: 6px;
  font-size: 16px;
  line-height: 28px;
  color: var(--ink-soft);
  white-space: pre-line;
  text-wrap: pretty;
}

.memo-sign {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  rotate: -2deg;
}
.memo-sign img {
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%;
  background: #fffffb;
}

.pile .m-top { rotate: -1.5deg; z-index: 2; }
.pile .m-top::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -11px;
  left: 50%;
  width: 20px;
  height: 20px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--orange);
  border: 2.5px solid var(--ink);
  box-shadow: 2px 3px 0 var(--shadow);
}
.pile .m-u1 { --tint: color-mix(in srgb, var(--sky) 30%, var(--paper-2)); rotate: 5deg; translate: 16px 10px; z-index: 1; }
.pile .m-u2 { --tint: color-mix(in srgb, var(--orange) 22%, var(--paper-2)); rotate: -6deg; translate: -18px 16px; }
.desk:hover .m-top, .desk:focus-visible .m-top { rotate: 0deg; translate: 0 -6px; box-shadow: 6px 10px 0 var(--shadow); }
.desk:hover .m-u1, .desk:focus-visible .m-u1 { rotate: 9deg; translate: 38px 6px; }
.desk:hover .m-u2, .desk:focus-visible .m-u2 { rotate: -10deg; translate: -38px 14px; }

.notes-page, .private-page { max-width: 680px; margin: 0 auto; }
.who { margin-top: 6px; min-height: 1.6em; font-size: 15px; color: var(--ink-soft); }
.who:not(.ready) { visibility: hidden; }
.who a { color: var(--plum); white-space: nowrap; }
.tool-group {
  --g: var(--orange);
  position: relative;
  margin-top: 40px;
  padding: 20px 22px 24px;
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
  box-shadow: 5px 7px 0 var(--shadow);
  rotate: -.6deg;
}
.tool-group:nth-of-type(even) { rotate: .5deg; }
.tool-group:nth-of-type(2) { --g: var(--sky); }
.tool-group:nth-of-type(3) { --g: var(--indigo-wash); }
.tool-group::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 28px;
  translate: -50% 0;
  rotate: -3deg;
  opacity: .8;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 3px, transparent 3px 7px),
    var(--g);
  clip-path: polygon(3% 8%, 97% 0, 100% 50%, 96% 100%, 2% 94%, 0 45%);
}
.tool-title { font: 700 30px/1.1 "Caveat", cursive; color: var(--ink); }
.tools { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 24px/1.2 "Caveat", cursive;
  color: var(--ink);
  background: var(--paper-2);
  padding: 8px 18px;
  box-shadow: 4px 5px 0 var(--shadow);
  rotate: -1deg;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color .2s ease, rotate .25s ease, translate .25s ease;
}
.tool-btn:nth-child(2) { rotate: 1deg; }
.tool-btn svg { width: 30px; height: 30px; flex: none; }
.tool-btn:not(:disabled):hover, .tool-btn:not(:disabled):focus-visible { color: var(--orange); rotate: 0deg; translate: 0 -3px; }
.tool-btn:disabled { color: var(--ink-soft); box-shadow: none; cursor: default; opacity: .75; }
.soon-tag {
  font-size: 16px;
  line-height: 1;
  color: var(--plum);
  padding: 2px 8px 3px;
  border: 1.5px solid currentColor;
  border-radius: 40px 10px 36px 12px / 12px 34px 10px 38px;
  rotate: -4deg;
}

.note-form {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.note-form::backdrop { background: rgba(28, 23, 20, .7); backdrop-filter: blur(2px); }
.nf-paper {
  display: grid;
  gap: 14px;
  padding: 22px 22px 18px;
  background: var(--paper-2);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, .3);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  grid-template-columns: minmax(0, 1fr);
}
.nf-title { font: 700 34px/1.1 "Caveat", cursive; }
.nf-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 520px) {
  .nf-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nf-row label:first-child { grid-column: 1 / -1; }
}
.nf-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.note-form label { display: grid; gap: 4px; min-width: 0; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.note-form input[type="file"] { padding: 6px; font-size: 14px; }
.note-form input[type="file"]::file-selector-button {
  font: 700 18px/1.1 "Caveat", cursive;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 10px 6px 12px 8px;
  padding: 4px 12px;
  margin-right: 10px;
  cursor: pointer;
}
.nf-preview {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 10px 6px 12px 8px;
}
.nf-preview[hidden] { display: none; }
.nf-hint { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.note-form input, .note-form select, .note-form textarea {
  font: 400 16px/1.4 "Shantell Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px 6px 12px 8px;
  padding: 8px 10px;
  width: 100%;
  min-width: 0;
}
.note-form textarea { resize: vertical; }
.note-form input[type="date"], .note-form input[type="month"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  max-width: 100%;
  min-height: 2.75em;
}
.note-form input[type="date"]::-webkit-date-and-time-value, .note-form input[type="month"]::-webkit-date-and-time-value { text-align: left; }
.note-form input:focus-visible, .note-form select:focus-visible, .note-form textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.nf-status { min-height: 1.4em; font-size: 15px; color: var(--ink-soft); }
.nf-status[data-kind="ok"] { color: var(--indigo); }
.nf-status[data-kind="error"] { color: var(--plum); }
.nf-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.nf-cancel, .nf-save { font: 700 22px/1.2 "Caveat", cursive; cursor: pointer; }
.nf-cancel { background: none; border: 0; color: var(--ink-soft); padding: 6px 8px; }
.nf-save { color: var(--ink); background: var(--paper); padding: 6px 18px; transition: color .2s ease; }
.nf-cancel:hover, .nf-save:hover, .nf-cancel:focus-visible, .nf-save:focus-visible { color: var(--orange); }
.nf-save:disabled { opacity: .6; cursor: progress; }
.nf-danger { color: var(--plum); }
.nl-head {
  position: sticky;
  top: -22px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -22px -22px 0;
  padding: 22px 22px 8px;
  background: var(--paper-2);
}
.nl-list { list-style: none; display: grid; gap: 2px; min-height: 3em; }
.nl-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 6px 4px 6px 8px;
  border-bottom: 1.5px dashed color-mix(in srgb, var(--ink-soft) 45%, transparent);
}
.nl-date { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.nl-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: none;
  border: 2px solid transparent;
  border-radius: 10px 6px 12px 8px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.nl-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nl-btn:hover, .nl-btn:focus-visible { color: var(--orange); border-color: currentColor; }
.nl-btn:focus-visible { outline: none; }
.nl-row .nl-btn:last-child:hover, .nl-row .nl-btn:last-child:focus-visible { color: var(--plum); }
.nl-btn:disabled { opacity: .4; cursor: progress; }
.nl-empty { color: var(--ink-soft); padding: 8px; }
@media (max-width: 520px) {
  .nl-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .nl-date { grid-column: 1; grid-row: 1; }
  .nl-title { grid-column: 1; grid-row: 2; }
  .nl-row .nl-btn { grid-row: 1 / 3; }
}
.confirm { width: min(400px, calc(100vw - 32px)); }
.cf-text { font: 700 24px/1.25 "Caveat", cursive; text-wrap: pretty; }
.note-form.wide { width: min(860px, calc(100vw - 32px)); }
.te-photos { display: grid; gap: 10px; }
.te-head { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.te-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.te-photo {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 10px 6px 12px 8px;
  overflow: hidden;
  background: var(--paper);
}
.te-photo.is-cover { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.te-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.te-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 0 8px;
  font: 700 17px/1.3 "Caveat", cursive;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 10px 6px 12px 8px;
}
.te-tools { display: flex; justify-content: space-between; padding: 4px; }
.te-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 17px;
  color: var(--ink);
  background: none;
  border: 1.5px solid transparent;
  border-radius: 8px 5px 9px 6px;
  cursor: pointer;
}
.te-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.te-btn:hover:not(:disabled), .te-btn:focus-visible { color: var(--orange); border-color: currentColor; outline: none; }
.te-del:hover:not(:disabled), .te-del:focus-visible { color: var(--plum); }
.te-btn:disabled { opacity: .3; cursor: default; }
.te-add {
  justify-self: start;
  padding: 4px 16px 5px;
  font: 700 21px/1.2 "Caveat", cursive;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: color .2s ease;
}
.te-add:hover, .te-add:focus-within { color: var(--orange); }
.te-add.is-busy { opacity: .5; cursor: progress; }
.te-touch-hint { display: none; }
.te-touch .te-photos { display: none; }
.te-touch .te-touch-hint { display: block; }
.year-mark {
  margin: 48px 0 18px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--indigo);
  rotate: -2deg;
}
.memo-list { list-style: none; display: grid; gap: 28px; }
.memo-list > li:nth-child(3n+1) .memo { rotate: -1deg; margin-right: 24px; }
.memo-list > li:nth-child(3n+2) .memo { rotate: .8deg; margin-left: 24px; --tint: color-mix(in srgb, var(--sky) 22%, var(--paper-2)); }
.memo-list > li:nth-child(3n) .memo { rotate: -.5deg; margin-right: 10px; margin-left: 10px; --tint: color-mix(in srgb, var(--orange) 16%, var(--paper-2)); }
.memo-list > li:nth-child(odd) .memo:hover { rotate: -.2deg; translate: 3px -4px; box-shadow: 6px 9px 0 var(--shadow); }
.memo-list > li:nth-child(even) .memo:hover { rotate: .2deg; translate: -3px -4px; box-shadow: 6px 9px 0 var(--shadow); }
@media (max-width: 560px) { .memo-list .memo { margin-left: 0 !important; margin-right: 0 !important; } }
.back-chip { text-decoration: none; }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 16px 28px;
  color: var(--ink-soft);
  font-size: 14px;
}
footer .hand {
  font-family: "Caveat", cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
footer .heart { color: var(--orange); }

@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; translate: 0 -18px; rotate: -6deg; } to { opacity: 1; translate: 0 0; rotate: -2deg; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scribble path { stroke-dashoffset: 0; }
}
