:root {
  --ink: #152d43;
  --ink-soft: #2c465d;
  --paper: #f3ead8;
  --paper-light: #fff9ed;
  --lava: #b85638;
  --sun: #f5c34d;
  --sea: #4d8db8;
  --salt: #d7e4e8;
  --muted: #7d766b;
  --line: rgba(21, 45, 67, 0.22);
  --shadow: 0 24px 80px rgba(5, 20, 32, 0.28);
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 16%, rgba(77, 141, 184, 0.32), transparent 28rem),
    radial-gradient(circle at 88% 72%, rgba(184, 86, 56, 0.22), transparent 26rem),
    var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 4px;
  background: transparent;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sun);
  box-shadow: 0 0 20px rgba(245, 195, 77, 0.75);
}

.page {
  position: relative;
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: clip;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cover {
  position: relative;
  min-height: min(920px, 100svh);
  padding: 38px clamp(22px, 6vw, 48px) 34px;
  overflow: hidden;
  color: #fff9ed;
  background: var(--ink);
  isolation: isolate;
}

.cover::before {
  content: "CABO VERDE";
  position: absolute;
  right: -26px;
  top: 150px;
  z-index: -1;
  color: rgba(245, 195, 77, 0.08);
  font: 800 clamp(3.5rem, 16vw, 7.5rem)/0.8 var(--mono);
  letter-spacing: -0.09em;
  writing-mode: vertical-rl;
}

.flag-rule {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  background: linear-gradient(to bottom, #fff 0 20%, #ca3e3e 20% 78%, #fff 78% 100%);
}

.cover__topline,
.section-kicker,
.label,
.day-label,
.receipt__eyebrow,
.ticket__eyebrow,
.footer__eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.cover__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--sun);
  font-size: 0.68rem;
  font-weight: 700;
}

.cover__title-block {
  position: relative;
  z-index: 2;
  margin-top: clamp(34px, 9vw, 62px);
}

.cover__edition {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #fff8e9;
  background: var(--lava);
  font: 800 0.64rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover__country {
  margin: 13px 0 0;
  color: var(--sun);
  font: italic 1rem/1.2 Georgia, serif;
  letter-spacing: 0.04em;
}

.cover h1 {
  margin: 4px 0 0;
  font: 900 clamp(4.1rem, 20vw, 7.2rem)/0.84 var(--serif);
  letter-spacing: -0.1em;
}

.cover__subtitle {
  margin: 14px 0 0;
  color: var(--sun);
  font: 800 clamp(1.45rem, 6vw, 2.3rem)/1.05 var(--sans);
  letter-spacing: 0.06em;
}

.cover__photo-frame {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  padding: 6px;
  border: 1px solid rgba(255, 249, 237, 0.46);
  background: rgba(255, 255, 255, 0.05);
}

.cover__photo-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 24, 38, 0.55));
}

.cover__photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.95) contrast(1.05);
}

.cover__photo-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--sun);
  font: 800 0.63rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.cover__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-top: 20px;
}

.cover__intro {
  max-width: 28rem;
  margin: 0;
  color: rgba(255, 249, 237, 0.72);
  font-size: 0.88rem;
  line-height: 1.75;
}

.cover__stat {
  padding: 10px 11px 9px;
  color: var(--ink);
  background: var(--sun);
  font: 900 0.72rem/1.1 var(--mono);
  white-space: nowrap;
}

.tada-icon {
  width: 18px;
  height: 16px;
  flex: 0 0 auto;
}

.tada-lockup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.05em;
}

.tada-lockup--cover {
  margin-top: 24px;
  color: rgba(255, 249, 237, 0.48);
}

.tada-lockup--cover .tada-icon {
  color: var(--sun);
  opacity: 0.78;
}

.contents {
  position: relative;
  padding: 34px clamp(22px, 6vw, 48px) 42px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}

.contents__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--ink);
}

.contents__head h2 {
  margin: 0;
  font: 800 clamp(1.8rem, 7vw, 2.7rem)/1 var(--serif);
  letter-spacing: -0.05em;
}

.contents__head span {
  color: var(--lava);
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.1em;
}

.contents__grid {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.contents__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, padding-left 180ms ease;
}

.contents__item:hover {
  padding-left: 6px;
  color: var(--lava);
}

.contents__num,
.contents__days {
  font: 700 0.68rem/1 var(--mono);
}

.contents__num {
  color: var(--lava);
}

.contents__name {
  font: 700 1rem/1.3 var(--sans);
}

.contents__days {
  color: var(--muted);
}

.trip-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #fff9ed;
  background: var(--lava);
}

.trip-summary__item {
  padding: 20px 12px;
  text-align: center;
  border-right: 1px solid rgba(255, 249, 237, 0.28);
}

.trip-summary__item:last-child {
  border-right: 0;
}

.trip-summary__value {
  display: block;
  font: 700 clamp(1.45rem, 7vw, 2.2rem)/1 var(--serif);
}

.trip-summary__label {
  display: block;
  margin-top: 6px;
  color: rgba(255, 249, 237, 0.72);
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.scenic-break {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.scenic-break img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
}

.scenic-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(21, 45, 67, 0.72));
}

.scenic-break figcaption {
  position: absolute;
  right: 20px;
  bottom: 17px;
  z-index: 2;
  color: #fff9ed;
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.12em;
}

.chapter {
  position: relative;
  padding: 54px clamp(22px, 6vw, 48px) 64px;
  border-bottom: 1px solid var(--line);
}

.chapter--sal {
  background: var(--paper);
}

.chapter--fogo {
  color: #fff8e9;
  background: var(--lava);
}

.chapter--mindelo {
  background: #d9e3de;
}

.chapter__index {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
}

.chapter__number {
  display: grid;
  gap: 10px;
  justify-items: start;
  color: var(--lava);
  font: 800 0.72rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.tada-icon--chapter {
  width: 16px;
  height: 14px;
  opacity: 0.38;
}

.chapter--fogo .chapter__number,
.chapter--fogo .section-kicker,
.chapter--fogo .day-label {
  color: var(--sun);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--lava);
  font-size: 0.66rem;
  font-weight: 800;
}

.chapter h2 {
  max-width: 11ch;
  margin: 0;
  font: 800 clamp(2.35rem, 10vw, 4.4rem)/0.98 var(--serif);
  letter-spacing: -0.07em;
}

.chapter__meta {
  margin: 16px 0 0;
  color: var(--muted);
  font: 700 0.73rem/1.55 var(--mono);
}

.chapter--fogo .chapter__meta {
  color: rgba(255, 248, 233, 0.7);
}

.photo-pair {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 9px;
  margin-top: 30px;
}

.photo-card {
  margin: 0;
  padding: 7px 7px 13px;
  background: var(--paper-light);
  box-shadow: 4px 7px 0 rgba(21, 45, 67, 0.12);
}

.photo-card:first-child {
  transform: rotate(-1deg);
}

.photo-card:last-child {
  transform: translateY(18px) rotate(1.2deg);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d6d0c3;
}

.photo-card figcaption {
  margin-top: 8px;
  color: var(--muted);
  font: 700 0.58rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-align: center;
}

.chapter__body {
  margin-top: 44px;
}

.chapter__body > p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.92;
}

.chapter--fogo .chapter__body > p {
  color: rgba(255, 248, 233, 0.9);
}

.day-list {
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid currentColor;
}

.day-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.chapter--fogo .day-item {
  border-color: rgba(255, 248, 233, 0.28);
}

.day-label {
  padding-top: 4px;
  color: var(--lava);
  font-size: 0.72rem;
  font-weight: 900;
}

.day-copy {
  font-size: 0.9rem;
  line-height: 1.72;
}

.utility-section {
  padding: 56px clamp(22px, 6vw, 48px) 62px;
  border-bottom: 1px solid var(--line);
}

.utility-section--paper {
  background: var(--paper-light);
}

.utility-section--blue {
  color: #fff9ed;
  background: var(--ink);
}

.utility-section__head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 30px;
}

.utility-section__num {
  padding-top: 8px;
  color: var(--lava);
  font: 800 0.72rem/1 var(--mono);
}

.utility-section--blue .utility-section__num,
.utility-section--blue .section-kicker {
  color: var(--sun);
}

.utility-section h2 {
  margin: 0;
  font: 800 clamp(2.2rem, 10vw, 4rem)/0.95 var(--serif);
  letter-spacing: -0.07em;
}

.receipt-stack {
  display: grid;
  gap: 22px;
}

.receipt {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #fff4ed;
  box-shadow: 6px 8px 0 rgba(21, 45, 67, 0.12);
}

.receipt:nth-child(2) {
  transform: rotate(0.45deg);
}

.receipt:nth-child(3) {
  transform: rotate(-0.35deg);
}

.receipt::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 10px;
  background: linear-gradient(135deg, transparent 5px, #fff4ed 0) 0 0/10px 10px repeat-x;
}

.receipt__photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1.25;
  object-fit: cover;
  background: #ded5c7;
}

.receipt__body {
  padding: 18px 18px 22px;
}

.receipt__eyebrow {
  color: var(--lava);
  font-size: 0.62rem;
  font-weight: 800;
}

.receipt__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.receipt h3 {
  margin: 0;
  font: 800 1.28rem/1.15 var(--serif);
}

.receipt__rating {
  color: var(--lava);
  font: 800 0.66rem/1.3 var(--mono);
  white-space: nowrap;
}

.receipt__details {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.8;
}

.receipt__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed rgba(21, 45, 67, 0.38);
  font-family: var(--mono);
}

.receipt__total span:first-child {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.receipt__price {
  color: var(--lava);
  font-size: 1rem;
  font-weight: 900;
}

.ticket {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid rgba(245, 195, 77, 0.7);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.16);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}

.ticket::before {
  left: -13px;
}

.ticket::after {
  right: -13px;
}

.ticket__head {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--sun);
  font: 800 0.66rem/1 var(--mono);
  letter-spacing: 0.1em;
}

.flight {
  padding: 23px 20px 25px;
}

.flight + .flight {
  border-top: 1px dashed rgba(21, 45, 67, 0.35);
}

.flight__route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.flight__city {
  font: 900 clamp(2rem, 9vw, 3.5rem)/1 var(--serif);
  letter-spacing: -0.06em;
}

.flight__city:last-child {
  text-align: right;
}

.flight__arrow {
  color: var(--lava);
  font: 800 0.72rem/1 var(--mono);
  white-space: nowrap;
}

.flight__details {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink-soft);
  font: 600 0.7rem/1.5 var(--mono);
}

.budget {
  border-top: 1px solid rgba(255, 249, 237, 0.65);
}

.budget__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 249, 237, 0.18);
  font-size: 0.82rem;
}

.budget__value {
  color: var(--sun);
  font: 800 0.8rem/1.3 var(--mono);
  text-align: right;
}

.budget__total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
}

.budget__total span:first-child {
  color: rgba(255, 249, 237, 0.62);
  font: 700 0.7rem/1 var(--mono);
  letter-spacing: 0.1em;
}

.budget__total strong {
  color: var(--sun);
  font: 800 clamp(1.55rem, 7vw, 2.3rem)/1 var(--serif);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.note {
  min-height: 128px;
  padding: 17px;
  background: var(--paper-light);
}

.note__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 7px;
  color: var(--paper-light);
  background: var(--lava);
  font: 800 0.63rem/1 var(--mono);
}

.note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
}

.hero-story {
  position: relative;
  padding: 58px clamp(22px, 6vw, 48px) 72px;
  overflow: hidden;
  color: #fff9ed;
  background: var(--ink);
}

.hero-story::after {
  content: "01";
  position: absolute;
  right: -12px;
  bottom: -38px;
  color: rgba(245, 195, 77, 0.08);
  font: 900 11rem/1 var(--serif);
}

.hero-story__tag {
  display: inline-flex;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--sun);
  font: 800 0.64rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.hero-story h2 {
  max-width: 10ch;
  margin: 18px 0 0;
  font: 800 clamp(2.5rem, 11vw, 4.5rem)/0.95 var(--serif);
  letter-spacing: -0.07em;
}

.hero-story__meta {
  margin: 16px 0 0;
  color: var(--sun);
  font: 700 0.72rem/1.5 var(--mono);
}

.hero-story__photos {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 9px;
  margin-top: 28px;
}

.hero-story__photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border: 5px solid #fff9ed;
}

.hero-story__photos img:last-child {
  transform: translateY(22px) rotate(1deg);
}

.hero-story__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

.hero-story__copy p {
  margin: 0;
  color: rgba(255, 249, 237, 0.82);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.9;
}

.hero-story__copy strong {
  color: var(--sun);
}

.hero-story__callout {
  margin-top: 26px;
  padding: 18px;
  color: var(--ink);
  background: var(--sun);
  font-size: 0.82rem;
  line-height: 1.72;
}

.footer {
  padding: 42px clamp(22px, 6vw, 48px) 52px;
  color: var(--ink);
  background: var(--paper);
}

.footer__eyebrow {
  color: var(--lava);
  font-size: 0.65rem;
  font-weight: 800;
}

.footer h2 {
  margin: 10px 0 0;
  font: 800 clamp(2.2rem, 10vw, 4rem)/0.95 var(--serif);
  letter-spacing: -0.07em;
}

.footer__line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font: 600 0.66rem/1.5 var(--mono);
}

.footer__actions {
  display: grid;
  gap: 12px;
  justify-items: end;
  text-align: right;
}

.tada-lockup--footer {
  color: var(--ink);
  opacity: 0.62;
}

.footer__actions a {
  text-underline-offset: 4px;
}

.image-fallback {
  position: relative;
  color: transparent;
  background:
    linear-gradient(135deg, transparent 47%, rgba(21, 45, 67, 0.16) 48% 52%, transparent 53%),
    #ded6c7;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 780px) {
  body {
    padding: 42px 0 76px;
  }

  .page {
    border: 1px solid rgba(255, 249, 237, 0.18);
  }

  .cover {
    min-height: 900px;
  }

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

  .receipt:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    justify-self: center;
  }
}

@media (max-width: 440px) {
  .cover__bottom {
    grid-template-columns: 1fr;
  }

  .cover__stat {
    justify-self: start;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .note {
    min-height: 0;
  }

  .chapter__index,
  .utility-section__head {
    grid-template-columns: 42px 1fr;
    gap: 11px;
  }

  .flight__route {
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    padding: 0;
    background: white;
  }

  .page {
    width: 100%;
    max-width: none;
    box-shadow: none;
  }

  .progress {
    display: none;
  }
}
