:root {
  --ink: #1d3354;
  --ink-soft: #4a6280;
  --paper: #fffaf1;
  --line: rgba(70, 120, 170, 0.28);
  --new: #d4652f;
  --sky-top: #8ec8e6;
  --sky-mid: #f6d7a2;
  --sand: #e7c98a;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Shantell Sans", "Chalkboard SE", "Comic Sans MS", cursive;
  color: var(--ink);
}

.sky {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 14vh 20px 18vh;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255, 244, 214, 0.85), transparent 62%),
    linear-gradient(180deg, #9ed0ea 0%, #f6d7a2 42%, #efd39a 62%, var(--sand) 100%);
}

.sun {
  position: absolute;
  top: 7vh;
  left: 10vw;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff6d4, #ffc56a 62%, rgba(255, 180, 80, 0) 70%);
  filter: blur(0.2px);
}

.cloud {
  position: absolute;
  height: 28px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 40px;
  filter: blur(0.4px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.c1 { width: 120px; top: 14vh; left: 22vw; animation: drift 48s linear infinite; }
.c1::before { width: 46px; height: 46px; top: -22px; left: 22px; }
.c1::after { width: 34px; height: 34px; top: -14px; left: 58px; }

.c2 { width: 80px; top: 22vh; right: 18vw; opacity: 0.7; animation: drift 70s linear infinite reverse; }
.c2::before { width: 32px; height: 32px; top: -16px; left: 16px; }
.c2::after { width: 24px; height: 24px; top: -10px; left: 40px; }

.bird {
  position: absolute;
  width: 14px;
  height: 8px;
  border-top: 2px solid rgba(29, 51, 84, 0.45);
  border-radius: 50% 50% 0 0;
  opacity: 0.55;
}

.b1 { top: 18vh; left: 48vw; animation: fly 36s linear infinite; }
.b2 { top: 26vh; left: 54vw; transform: scale(0.7); animation: fly 44s linear infinite; }

.palm {
  position: absolute;
  right: max(-40px, calc(50% - 640px));
  bottom: -4px;
  width: min(340px, 52vw);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.trunk {
  fill: none;
  stroke: #6b4a2e;
  stroke-width: 14;
  stroke-linecap: round;
}

.fronds {
  fill: #2f6b3e;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sway 6.5s ease-in-out infinite;
}

.fronds path:nth-child(odd) { fill: #3c7d4c; }
.fronds path:nth-child(2) { fill: #245833; }

.note {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 46px 34px 28px 42px;
  background:
    linear-gradient(90deg, transparent 28px, rgba(214, 92, 92, 0.4) 28px, rgba(214, 92, 92, 0.4) 29px, transparent 29px),
    var(--paper);
  border-radius: 2px 4px 3px 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 22px 50px rgba(92, 58, 24, 0.18);
  transform: rotate(-1deg);
}

.itinerary {
  padding: 0 0 22px;
  background: var(--paper);
  border-radius: 3px 3px 2px 2px;
  overflow: visible;
}

.mast {
  position: relative;
  padding: 34px 124px 18px 36px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.16), transparent 42%),
    linear-gradient(115deg, #1a6d86 0%, #2d8a62 48%, #e39a45 100%);
  color: #fffaf1;
  border-radius: 3px 3px 0 0;
}

.mast .where,
.mast .why {
  color: rgba(255, 250, 241, 0.88);
}

.mast h1 {
  color: #fffaf1;
  max-width: 8.6em;
  font-size: clamp(2.15rem, 5.6vw, 3.15rem);
}

.confirm {
  margin: 10px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffe3b0;
}

.stamp {
  position: absolute;
  top: 22px;
  right: 16px;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 2.5px solid rgba(255, 250, 241, 0.88);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 250, 241, 0.28);
  color: #fffaf1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(14deg);
}

.stamp span {
  padding: 3px 0;
  border-top: 1.5px solid rgba(255, 250, 241, 0.75);
  border-bottom: 1.5px solid rgba(255, 250, 241, 0.75);
}

.plan {
  padding: 4px 32px 0 36px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 0;
  padding: 2px 0 12px;
  border-bottom: 1px dashed rgba(70, 120, 170, 0.4);
}

.facts div { min-width: 0; }

.facts dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin: 3px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.day {
  margin: 16px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tape {
  position: absolute;
  top: -12px;
  width: 74px;
  height: 22px;
  background: rgba(232, 214, 158, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.tape.left { left: 36px; transform: rotate(-6deg); }
.tape.right { right: 48px; transform: rotate(5deg); }

.where {
  margin: 0 0 2px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.why {
  margin: 14px 0 8px;
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--ink);
}

#list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

#list a {
  display: grid;
  grid-template-columns: 3.4rem 1.5rem 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 0;
  padding: 12px 6px 11px 0;
  margin-left: -4px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dashed rgba(70, 120, 170, 0.38);
  border-radius: 0;
}

.when {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

#list a:hover,
#list a:focus-visible {
  background: rgba(255, 214, 140, 0.35);
  outline: none;
}

#list a:hover .doodle {
  color: var(--new);
}

.doodle {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.name {
  grid-column: 3;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.blurb {
  grid-column: 3;
  font-size: 0.98rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.3;
}

.blurb:empty { display: none; }

.meta {
  grid-row: 1;
  grid-column: 4;
  align-self: center;
  font-size: 0.85rem;
  color: var(--new);
  padding-top: 2px;
  white-space: nowrap;
}

.empty {
  margin: 22px 0 8px;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.empty code {
  font-family: inherit;
  font-style: italic;
  color: var(--ink);
}

.signoff {
  margin: 22px 0 4px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.signoff a {
  color: var(--ink);
}

.sandline {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin: 22px auto 0;
  padding-left: 8px;
  color: rgba(90, 58, 28, 0.7);
  font-size: 0.95rem;
  transform: rotate(-1deg);
}

.lost {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--sky-top), var(--sand));
}

.lost .note { transform: rotate(0.6deg); }

@keyframes sway {
  0%, 100% { transform: rotate(-2.2deg); }
  50% { transform: rotate(2.6deg); }
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(40px); }
}

@keyframes fly {
  0% { transform: translateX(0); }
  100% { transform: translateX(-30vw); }
}

#pts-back {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 14px;
  padding: 8px 12px 9px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Shantell Sans", "Chalkboard SE", cursive;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(70, 45, 20, 0.16);
  transform: rotate(-2deg);
}

#pts-back:hover,
#pts-back:focus-visible {
  background: #ffe7bf;
  outline: none;
}

#pts-ad {
  position: fixed;
  z-index: 19;
  right: 12px;
  bottom: 12px;
  max-width: min(340px, calc(100vw - 24px));
}

@media (max-width: 720px) {
  .sky { padding-top: 6vh; }
  .palm { opacity: 0.9; right: -40px; width: 180px; }
  .note { padding: 40px 18px 22px 28px; }
  .itinerary { padding: 0 0 18px; }
  .mast { padding: 28px 96px 16px 22px; }
  .plan { padding: 4px 16px 0 22px; }
  .facts { grid-template-columns: 1fr; gap: 8px; }
  .stamp { width: 70px; height: 70px; font-size: 0.58rem; right: 10px; top: 16px; }
  .sun { width: 64px; height: 64px; left: 6vw; }
  .name { font-size: 1.2rem; }
  #list a { grid-template-columns: 3rem 1.3rem 1fr; }
  .meta { grid-column: 3; grid-row: 3; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .fronds, .cloud, .bird { animation: none; }
}
