/* ==========================================================================
   Vivir el Mundo — "travel ticket" theme
   Sections are colour bands separated by a scalloped, stamp-like edge.
   ========================================================================== */

:root {
    --ink: #0f2b46;
    --blue: #005696;
    --blue-deep: #00467a;
    --sun: #f4c127;
    --sun-deep: #e3b010;
    --teal: #0e7c8a;
    --teal-deep: #0b6470;
    --sky: #eaf4fb;
    --mist: #d5e8f6;
    --sun-tint: #fff3d1;
    --white: #fff;
    --line: #c9dceb;
    --line-strong: #9cc3e0;

    --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-mono: 'DM Mono', ui-monospace, 'Cascadia Mono', monospace;
    --font-script: 'Caveat', 'Segoe Script', cursive;

    --shadow-card: 0 12px 28px rgba(15, 43, 70, 0.16);
    --shadow-postcard: 0 16px 34px rgba(15, 43, 70, 0.22);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.5;
}

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

img {
    height: auto;
}

a {
    color: var(--blue);
}

a:hover {
    color: var(--teal);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
    margin: 0;
}

.icon {
    flex: none;
}

.wrap {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: 0 0 10px 10px;
    background: var(--ink);
    color: var(--white);
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* Airmail stripe: the blue, white and yellow slanted bars of an envelope edge. */
.airmail {
    height: 12px;
    background: repeating-linear-gradient(120deg, var(--blue) 0 13.86px, var(--white) 13.86px 20.78px, var(--sun) 20.78px 34.64px, var(--white) 34.64px 41.57px);
}

/* Small text styles ------------------------------------------------------- */

.label,
.kicker,
.chip,
.ticket__meta,
.ticket__facts dt,
.ticket__price-label,
.facts dt,
.timeline__day,
.past-ticket__meta,
.finder__field,
.site-footer__heading {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.label {
    color: var(--teal);
    font-size: 11px;
}

.kicker {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--white);
    font-size: 12px;
    letter-spacing: 2px;
}

.kicker--sun {
    align-self: flex-start;
    background: var(--sun);
    color: var(--ink);
}

.chip {
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--sun);
    color: var(--ink);
}

/* Buttons and links ------------------------------------------------------- */

.button {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--blue-deep);
    color: var(--white);
}

.button--sun {
    background: var(--sun);
    color: var(--ink);
}

.button--sun:hover {
    background: var(--sun-deep);
    color: var(--ink);
}

.button--large {
    min-height: 54px;
    padding: 0 26px;
}

.text-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
}

/* Header ------------------------------------------------------------------ */

.site-header__top-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    align-items: center;
    justify-content: flex-end;
    padding-top: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
}

/* On wide screens the menu is part of the header row; its contact block is for the opened mobile menu. */
.site-menu {
    display: contents;
}

.site-menu__contact {
    display: none;
}

.site-header__top a {
    display: flex;
    gap: 6px;
    align-items: center;
    min-height: 28px;
    color: var(--ink);
    text-decoration: none;
}

.site-header__top a:hover {
    color: var(--blue);
}

.language-switcher {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.language-switcher a {
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
}

.language-switcher a[aria-current] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}

.site-header__main {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 16px;
}

.site-logo img {
    width: auto;
    height: 62px;
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16.5px;
    font-weight: 500;
}

.site-nav__list a {
    display: block;
    padding: 10px 0;
    border-bottom: 3px dashed transparent;
    color: var(--ink);
    text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
    border-bottom-color: var(--sun);
    color: var(--blue);
}

.site-nav__list .current-menu-item > a {
    font-weight: 700;
}

/* The last menu item is the call to action. */
.site-nav__list > li:last-child > a,
.site-nav__list > li:last-child > a:hover {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
}

.site-nav__list > li:last-child > a:hover {
    background: var(--blue-deep);
}

/* Bands ------------------------------------------------------------------- */

.band {
    background: var(--band);
}

.band--white {
    --band: var(--white);
}

.band--sky {
    --band: var(--sky);
}

.band--mist {
    --band: var(--mist);
}

.band--sun {
    --band: var(--sun-tint);
}

.band--blue {
    --band: var(--blue);
    color: var(--white);
}

.band--blue :focus-visible {
    outline-color: var(--sun);
}

/* The torn edge takes the colour of the band above. */
.band--white + .band {
    --tear: var(--white);
}

.band--sky + .band {
    --tear: var(--sky);
}

.band--mist + .band {
    --tear: var(--mist);
}

.band--sun + .band {
    --tear: var(--sun-tint);
}

.band--blue + .band {
    --tear: var(--blue);
}

.band + .band::before {
    content: '';
    display: block;
    height: 16px;
    background: radial-gradient(circle at 16px 0, var(--tear) 11px, transparent 11.5px) 0 0 / 32px 16px repeat-x;
}

/* Two bands of the same colour get a dashed line instead of an invisible edge. */
.band--white + .band--white::before {
    height: 0;
    margin-inline: 24px;
    border-top: 3px dashed var(--line);
}

.band__inner {
    padding-top: 64px;
    padding-bottom: 88px;
}

.band__more {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

.band__empty {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 36px;
    text-align: center;
}

.section-heading__title {
    font-size: clamp(30px, 4.6vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-wrap: balance;
}

.section-heading__rule {
    width: 120px;
    border-top: 4px dashed var(--sun);
}

.band--sun .section-heading__rule {
    border-top-color: var(--blue);
}

.section-heading__intro {
    max-width: 560px;
}

/* Postcard: a white card with a photo and a handwritten caption. --------- */

.postcard {
    padding: 12px 12px 8px;
    border-radius: 6px;
    background: var(--white);
    box-shadow: var(--shadow-postcard);
}

.postcard img {
    width: 100%;
    object-fit: cover;
}

.postcard figcaption {
    padding-left: 4px;
    color: var(--blue);
    font-family: var(--font-script);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.postmark {
    color: var(--teal);
    font-family: var(--font-mono);
}

/* Hero -------------------------------------------------------------------- */

.hero .band__inner {
    padding-top: 56px;
    padding-bottom: 64px;
}

.hero__layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 56px;
    align-items: center;
}

.hero__text {
    display: flex;
    flex: 1 1 460px;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.hero__greeting {
    color: var(--blue);
    font-family: var(--font-script);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    transform: rotate(-2deg);
    transform-origin: left center;
}

.hero__title {
    font-size: clamp(36px, 6.2vw, 54px);
    line-height: 1.08;
    letter-spacing: -1px;
    text-wrap: balance;
}

.hero__lead {
    max-width: 520px;
    font-size: 19px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
}

.hero__postcards {
    position: relative;
    flex: 1 1 440px;
    min-width: 0;
    min-height: 520px;
}

.hero__route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--blue);
}

.hero__postcard {
    position: absolute;
}

.hero__postcard--1 {
    top: 8px;
    right: 0;
    width: min(330px, 72%);
    transform: rotate(4deg);
}

.hero__postcard--1 img {
    height: 220px;
}

/* The second postcard overlaps the bottom left corner of the first one. */
.hero__postcard--1 figcaption {
    padding-right: 4px;
    text-align: right;
}

.hero__postcard--2 {
    top: 170px;
    left: 0;
    width: min(290px, 64%);
    transform: rotate(-6deg);
}

.hero__postcard--2 img {
    height: 190px;
}

.hero__postcard--3 {
    right: 24px;
    bottom: 0;
    width: min(270px, 60%);
    transform: rotate(-2deg);
}

.hero__postcard--3 img {
    height: 170px;
}

.hero__postcard--2 figcaption,
.hero__postcard--3 figcaption {
    font-size: 24px;
}

.hero__postmark {
    position: absolute;
    top: 0;
    left: 34%;
    width: 126px;
    transform: rotate(-14deg);
}

/* Trip finder ------------------------------------------------------------- */

.finder {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 40px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(15, 43, 70, 0.12);
}

.page-header .finder {
    margin-top: 28px;
}

.finder__title {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    padding: 16px 22px;
    border-radius: 14px 0 0 14px;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.finder__title span {
    color: var(--sun);
    font-family: var(--font-script);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.finder__field {
    position: relative;
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
    gap: 2px;
    padding: 14px 20px;
    border-right: 2px dashed var(--line);
    color: var(--teal);
    font-size: 11.5px;
}

/* Picker: replaces the browser's own list of a select where a mouse is used. */
.picker__button {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 36px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}

.picker__button .icon {
    color: var(--blue);
    transition: transform 0.15s ease;
}

.picker__button[aria-expanded='true'] .icon {
    transform: rotate(180deg);
}

.picker__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    z-index: 20;
    min-width: calc(100% - 16px);
    max-height: 320px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 16px 34px rgba(15, 43, 70, 0.22);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16.5px;
    font-weight: 500;
    letter-spacing: 0;
    list-style: none;
    text-transform: none;
}

.picker__list[hidden] {
    display: none;
}

.picker__option {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
}

.picker__option + .picker__option {
    margin-top: 2px;
}

/* The first option is the "any" choice; a dashed line sets it apart. */
.picker__option:first-child {
    margin-bottom: 6px;
    border-bottom: 2px dashed var(--line);
    border-radius: 8px 8px 0 0;
    color: var(--teal-deep);
}

.picker__option.is-active {
    background: var(--sky);
}

.picker__option[aria-selected='true'] {
    background: var(--sun-tint);
    font-weight: 700;
}

.picker__option .icon {
    visibility: hidden;
    color: var(--blue);
}

.picker__option[aria-selected='true'] .icon {
    visibility: visible;
}

.picker__native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.finder__field select {
    min-height: 36px;
    padding: 4px 0;
    border: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.finder__submit {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 12px 14px;
}

/* Tour ticket (boarding pass) --------------------------------------------- */

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ticket {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.ticket__photo {
    position: relative;
    flex: 0 1 240px;
    min-height: 210px;
    background: var(--sky);
}

.ticket__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket__body {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-width: 0;
    padding: 22px 28px;
}

.ticket__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--teal);
    font-size: 12px;
}

.ticket__title {
    font-size: 23px;
    line-height: 1.2;
}

.ticket__title a {
    color: inherit;
    text-decoration: none;
}

.ticket__title a:hover {
    color: var(--blue);
}

.ticket__route {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--blue);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ticket__route-line {
    flex: 1 1 24px;
    max-width: 120px;
    border-top: 2px dashed var(--line-strong);
}

.ticket__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 36px;
    font-size: 15.5px;
}

.ticket__facts dt {
    color: var(--teal);
    font-size: 11px;
}

.ticket__facts dd {
    font-weight: 700;
}

.ticket__stub {
    display: flex;
    flex: 0 1 240px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: center;
    min-width: 200px;
    padding: 22px 26px;
    border-left: 3px dashed var(--line);
    background: var(--sky);
}

.ticket__price-label {
    color: var(--teal-deep);
    font-size: 11px;
}

.ticket__price {
    color: var(--blue);
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
}

.ticket__stub .button {
    margin-top: 4px;
}

/* Featured tour ----------------------------------------------------------- */

.spotlight__layout {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 64px;
    align-items: center;
    padding-top: 72px;
}

.spotlight__text {
    display: flex;
    flex: 1 1 480px;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.spotlight__title {
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-wrap: balance;
}

.spotlight__lead {
    max-width: 540px;
}

.spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    align-items: center;
    margin-top: 8px;
}

.spotlight .text-link,
.spotlight .text-link:hover {
    color: var(--white);
}

.spotlight__side {
    display: flex;
    flex: 1 1 400px;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.spotlight__photo {
    position: relative;
    padding: 14px 14px 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    transform: rotate(3deg);
}

.spotlight__photo img {
    height: 340px;
}

.spotlight__photo figcaption {
    font-size: 28px;
}

.price-tag {
    position: absolute;
    top: -18px;
    right: -14px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--sun);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    color: var(--ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    transform: rotate(4deg);
}

.price-tag span {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Timeline: days along a dashed route line. */
.timeline {
    --timeline-line: var(--line-strong);
    --timeline-label: var(--teal);
    --timeline-ring: var(--white);

    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 4px 0 0 8px;
    padding: 0 0 0 26px;
    border-left: 3px dashed var(--timeline-line);
    list-style: none;
}

.band--blue .timeline {
    --timeline-line: rgba(255, 255, 255, 0.55);
    --timeline-label: var(--sun);
}

.timeline li {
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -36px;
    width: 16px;
    height: 16px;
    border: 3px solid var(--timeline-ring);
    border-radius: 50%;
    background: var(--sun);
    box-shadow: 0 0 0 1px var(--timeline-line);
}

.band--blue .timeline li::before {
    box-shadow: none;
}

.timeline__day {
    display: block;
    color: var(--timeline-label);
    font-size: 12px;
}

/* Facts: labelled values under dashed lines. */
.facts {
    --facts-line: var(--line-strong);
    --facts-label: var(--teal);

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 12px 28px;
    font-size: 15.5px;
}

.band--blue .facts {
    --facts-line: rgba(255, 255, 255, 0.55);
    --facts-label: var(--sun);
}

.facts > div {
    padding-top: 8px;
    border-top: 2px dashed var(--facts-line);
}

.facts dt {
    color: var(--facts-label);
    font-size: 11px;
}

.facts dd {
    font-weight: 700;
}

/* Category postcards ------------------------------------------------------ */

.postcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 32px;
}

.postcard--link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 22px;
    box-shadow: var(--shadow-card);
    color: var(--ink);
    text-decoration: none;
    transform: rotate(-1.5deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.postcard--link:nth-child(3n + 2) {
    transform: rotate(1deg);
}

.postcard--link:nth-child(3n) {
    transform: rotate(-1deg);
}

.postcard--link:hover,
.postcard--link:focus-visible {
    box-shadow: var(--shadow-postcard);
    color: var(--ink);
    transform: rotate(0) translateY(-4px);
}

.postcard--link img {
    height: 210px;
}

.postcard__title,
.postcard__text,
.postcard__more {
    padding-inline: 6px;
}

.postcard__title {
    color: var(--blue);
    font-family: var(--font-script);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.postcard__more {
    margin-top: auto;
    color: var(--blue);
    font-weight: 700;
}

/* Destination stamps ------------------------------------------------------ */

.stamp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.stamp {
    display: flex;
    flex: 0 1 148px;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 12px;
    border: 4px dotted var(--white);
    background: var(--sky);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease;
}

.stamp:hover,
.stamp:focus-visible {
    color: var(--blue);
    transform: translateY(-4px) rotate(-2deg);
}

.stamp img,
.stamp__placeholder {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.stamp__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: var(--sun);
}

.stamp__country {
    color: var(--teal-deep);
    font-size: 11px;
}

/* Past tours -------------------------------------------------------------- */

.past-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 20px;
    justify-content: center;
}

.past-ticket {
    position: relative;
    display: flex;
    flex: 1 1 340px;
    max-width: 440px;
    gap: 16px;
    align-items: center;
    padding: 22px 14px 14px;
    border-radius: 14px;
    background: var(--white);
}

.past-ticket img {
    flex: none;
    width: 108px;
    height: 108px;
    border-radius: 8px;
    object-fit: cover;
}

.past-ticket__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.past-ticket__meta {
    color: var(--teal);
    font-size: 11px;
    letter-spacing: 1px;
}

.past-ticket__title {
    font-size: 19px;
    line-height: 1.2;
}

.past-ticket a {
    font-size: 15px;
    font-weight: 700;
}

.past-ticket__stamp {
    position: absolute;
    top: -12px;
    right: 12px;
    padding: 3px 9px;
    border: 3px solid var(--teal);
    border-radius: 6px;
    background: var(--white);
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: rotate(7deg);
}

.past-ticket:nth-child(even) .past-ticket__stamp {
    transform: rotate(-5deg);
}

/* About and contact postcard ---------------------------------------------- */

.letter {
    padding: 10px;
    border: 2px solid var(--line);
    border-radius: 8px;
}

.letter__inner {
    display: flex;
    flex-wrap: wrap;
    border: 2px solid var(--line);
    border-radius: 4px;
}

.letter__message,
.letter__address {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 40px;
}

.letter__message {
    flex: 1 1 500px;
    gap: 14px;
    align-items: flex-start;
}

.letter__title,
.letter__signature {
    color: var(--blue);
    font-family: var(--font-script);
    font-weight: 700;
    line-height: 1;
}

.letter__title {
    font-size: 46px;
}

.letter__signature {
    font-size: 30px;
}

.letter__badge {
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--sky);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.letter__address {
    flex: 1 1 380px;
    gap: 6px;
    border-left: 2px solid var(--line);
}

.letter__stamps {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.letter__postmark {
    width: 104px;
    transform: rotate(-10deg);
}

.letter__stamp {
    width: 96px;
    height: 112px;
    padding: 6px;
    border: 4px dotted var(--line-strong);
    background: var(--white);
    object-fit: cover;
}

.letter__line {
    padding: 10px 0;
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.letter__line--phone {
    font-size: 26px;
    font-weight: 700;
}

.letter__line--email {
    font-size: 18px;
    font-weight: 700;
}

.letter__address .button {
    align-self: flex-start;
    margin-top: 14px;
}

/* Inner pages ------------------------------------------------------------- */

.page-header .band__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 48px;
    padding-bottom: 56px;
}

.page-header__title {
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-wrap: balance;
}

.page-header__lead {
    max-width: 760px;
    font-size: 18px;
}

.page-header .facts {
    margin-top: 8px;
}

/* Running text keeps a readable line length and starts in line with the page title. */
.prose > * {
    max-width: 760px;
}

.prose > * + * {
    margin-top: 1em;
}

.prose h1,
.prose h2,
.prose h3 {
    margin-top: 1.6em;
    line-height: 1.2;
}

.prose h1,
.prose h2 {
    font-size: 28px;
}

.prose h3 {
    font-size: 21px;
}

.prose > :first-child {
    margin-top: 0;
}

.prose ul:not(.timeline),
.prose ol:not(.timeline) {
    padding-left: 22px;
}

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

.prose .timeline li + li {
    margin-top: 0;
}

.nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
    font-weight: 700;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
    background: var(--ink);
    color: var(--white);
    font-size: 15px;
}

.site-footer :focus-visible {
    outline-color: var(--sun);
}

.site-footer a {
    color: var(--white);
}

.site-footer a:hover {
    color: var(--sun);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 28px;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 28px 48px;
}

.site-footer__brand,
.site-footer__column {
    display: flex;
    flex-direction: column;
}

.site-footer__column {
    gap: 6px;
}

.site-footer__name,
.site-footer__motto {
    font-family: var(--font-script);
    font-weight: 700;
    line-height: 1.1;
}

.site-footer__name {
    color: var(--sun);
    font-size: 36px;
}

.site-footer__motto {
    font-size: 26px;
}

.site-footer__heading {
    margin: 0;
    color: var(--sun);
    font-size: 12px;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__legal {
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Tour list header -------------------------------------------------------- */

.page-header__layout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 56px;
    align-items: center;
    justify-content: space-between;
}

.page-header__text {
    display: flex;
    flex: 1 1 480px;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
}

.page-header__photo {
    flex: 0 1 340px;
    transform: rotate(3deg);
}

.page-header__photo img {
    height: 220px;
}

/* Tour page --------------------------------------------------------------- */

.back-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

a.chip {
    text-decoration: none;
}

a.chip:hover {
    background: var(--sun-deep);
    color: var(--ink);
}

.tour-hero .band__inner {
    padding-top: 24px;
    padding-bottom: 64px;
}

.tour-hero__layout {
    display: flex;
    flex-wrap: wrap;
    gap: 44px 64px;
    align-items: center;
    margin-top: 16px;
}

.tour-hero__text {
    display: flex;
    flex: 1 1 480px;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.tour-hero__route {
    font-size: 17px;
}

.tour-hero__lead {
    font-size: 18px;
}

.tour-hero__photo {
    position: relative;
    flex: 0 1 440px;
    min-width: 0;
    padding: 14px 14px 10px;
    transform: rotate(3deg);
}

.tour-hero__photo img {
    height: 300px;
}

.tour-hero__photo figcaption {
    font-size: 28px;
}

.tour-hero__postmark {
    position: absolute;
    top: -40px;
    left: -44px;
    width: 112px;
    transform: rotate(-14deg);
}

/* Boarding pass: the key facts of the tour, with the price on the stub. */
.pass {
    display: flex;
    flex-wrap: wrap;
    margin-top: 48px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(15, 43, 70, 0.12);
}

.pass__facts {
    display: grid;
    flex: 1 1 520px;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 16px 28px;
    align-content: center;
    padding: 24px 28px;
    font-size: 15.5px;
}

.pass__facts dt,
.pass__price-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.pass__facts dt {
    color: var(--teal);
}

.pass__facts dd {
    font-weight: 700;
}

.pass__stub {
    display: flex;
    flex: 0 1 300px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 28px;
    border-left: 3px dashed rgba(255, 255, 255, 0.65);
    background: var(--blue);
    color: var(--white);
}

.pass__stub :focus-visible {
    outline-color: var(--sun);
}

.pass__price-label {
    color: var(--sun);
}

.pass__price {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.pass__stub .button {
    margin-top: 6px;
}

/* Programme: the full itinerary. */
.timeline--programme {
    gap: 26px;
    max-width: 820px;
    margin: 0 auto;
}

.timeline--programme li::before {
    top: 2px;
}

.timeline__title {
    margin-top: 2px;
    font-size: 20px;
    line-height: 1.25;
}

.timeline--programme p {
    margin-top: 4px;
}

/* What the price covers: two lists side by side. */
.covers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 28px;
}

.covers__card {
    padding: 28px 30px;
    border-radius: 6px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.covers__card h3 {
    margin-bottom: 14px;
    color: var(--blue);
    font-family: var(--font-script);
    font-size: 32px;
    line-height: 1.1;
}

.covers__card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.covers__card li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.covers__card .icon {
    margin-top: 4px;
    color: var(--teal);
}

.covers__card--cross .icon {
    color: #7a8ea3;
}

/* Photo gallery and its dialog. */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 45%), 1fr));
    gap: 14px;
}

.gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--sky);
    aspect-ratio: 4 / 3;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
    transform: scale(1.05);
}

.lightbox {
    max-width: min(1100px, 94vw);
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
}

.lightbox::backdrop {
    background: rgba(15, 43, 70, 0.82);
}

.lightbox img {
    max-height: calc(92vh - 60px);
    margin-inline: auto;
}

.lightbox__bar {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.lightbox__bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.lightbox__bar button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lightbox__bar button:focus-visible {
    outline-color: var(--sun);
}

.lightbox__bar [data-gallery-action='close'] {
    margin-left: 12px;
}

/* Booking form. */
.booking__layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
    align-items: flex-start;
    padding-top: 72px;
}

.booking__text {
    display: flex;
    flex: 1 1 380px;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.booking__contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking__contact .label {
    color: var(--sun);
}

.booking__contact a {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.booking__form {
    display: grid;
    flex: 1 1 480px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    min-width: 0;
    padding: 30px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    color: var(--ink);
}

.booking__form :focus-visible {
    outline-color: var(--blue);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field > span {
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.field input:not([type='checkbox']),
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input:not([type='checkbox']):focus-visible,
.field textarea:focus-visible {
    border-color: var(--blue);
    outline-offset: 0;
}

.field--wide {
    grid-column: 1 / -1;
}

.field--check {
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
}

.field--check input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--blue);
}

.field--check > span {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.booking__form .button {
    justify-content: center;
}

.form-notice {
    grid-column: 1 / -1;
    padding: 12px 16px;
    border: 2px solid var(--sun);
    border-radius: 10px;
    background: var(--sun-tint);
    font-weight: 700;
}

.form-notice--sent {
    border-color: #2f8f5b;
    background: #e3f4e9;
}

/* Sign-up box for news about new tours ------------------------------------ */

.subscribe {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 48px;
    align-items: flex-start;
    padding: 30px 32px;
    border-radius: 16px;
    background: var(--white);
}

.past-grid + .subscribe {
    margin-top: 44px;
}

.subscribe__text {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.subscribe__title {
    color: var(--blue);
    font-family: var(--font-script);
    font-size: 38px;
    line-height: 1;
}

.subscribe__form {
    display: flex;
    flex: 1 1 380px;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.subscribe__form .button {
    align-self: flex-start;
}

/* Contact page ------------------------------------------------------------ */

.prose--intro {
    margin-bottom: 32px;
}

.contact-form {
    gap: 16px;
    align-items: stretch;
}

.contact-form__subject {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--sky);
}

.contact-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.contact-form .button {
    justify-content: center;
}

/* Menu button: shown by the menu script on narrow screens. */
.menu-toggle {
    display: none;
    gap: 12px;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border: 2px solid var(--line-strong);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.menu-toggle__bars {
    position: relative;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.menu-toggle__close,
.menu-toggle[aria-expanded='true'] .menu-toggle__open {
    display: none;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__close {
    display: inline;
}

/* Opened: the button turns dark and its three bars become a cross. */
.menu-toggle[aria-expanded='true'] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars {
    background: transparent;
    box-shadow: none;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars::before,
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars::after {
    transform: rotate(-45deg);
}

/* Narrow header: a slim bar with the phone number and the languages, then the logo and the menu button in one row. */
@media (max-width: 860px) {
    .site-header__top {
        background: var(--sky);
    }

    .site-header__top-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        min-height: 40px;
        padding-top: 0;
    }

    .site-header__top .site-header__email {
        display: none;
    }

    .site-header__phone {
        white-space: nowrap;
    }

    .site-header__main {
        gap: 0 16px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-logo img {
        height: 44px;
    }

    .menu-toggle:not([hidden]) {
        display: inline-flex;
    }

    .site-menu {
        display: block;
        flex-basis: 100%;
        padding-top: 6px;
    }

    .site-menu.is-collapsible:not(.is-open) {
        display: none;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        font-size: 18px;
    }

    .site-nav__list a {
        padding: 14px 4px;
        border-bottom: 2px dashed var(--line);
    }

    .site-nav__list .current-menu-item > a {
        border-bottom-color: var(--sun);
    }

    .site-nav__list > li:last-child > a,
    .site-nav__list > li:last-child > a:hover {
        justify-content: center;
        min-height: 52px;
        margin-top: 16px;
    }

    .site-menu__contact {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin: 16px 0 8px;
        padding: 14px 16px;
        border-radius: 10px;
        background: var(--sky);
    }

    .site-menu__contact a {
        color: var(--ink);
        font-weight: 700;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .site-menu__phone {
        font-size: 22px;
    }
}

/* Narrow screens ---------------------------------------------------------- */

@media (max-width: 960px) {
    .pass__stub {
        flex-basis: 100%;
        border-top: 3px dashed rgba(255, 255, 255, 0.65);
        border-left: 0;
    }

    .ticket__stub {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 20px;
        align-items: center;
        border-top: 3px dashed var(--line);
        border-left: 0;
    }

    .ticket__stub .button {
        margin: 0 0 0 auto;
    }

    .letter__address {
        border-top: 2px solid var(--line);
        border-left: 0;
    }

    .finder__field:last-of-type {
        border-right: 0;
    }
}

@media (max-width: 720px) {
    .band__inner {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .wrap {
        padding-inline: 16px;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .hero .band__inner {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .hero__layout {
        gap: 32px;
    }

    .hero__greeting {
        font-size: 34px;
    }

    .hero__lead {
        font-size: 17px;
    }

    .hero__actions .button,
    .spotlight__actions .button {
        flex: 1 1 100%;
        justify-content: center;
    }

    /* A tighter collage: the three postcards overlap more. */
    .hero__postcards {
        min-height: 340px;
    }

    .hero__postcard--1 {
        width: min(240px, 64%);
    }

    .hero__postcard--1 img {
        height: 150px;
    }

    .hero__postcard--2 {
        top: 120px;
        width: min(215px, 58%);
    }

    .hero__postcard--2 img {
        height: 130px;
    }

    .hero__postcard--3 {
        right: 12px;
        width: min(200px, 54%);
    }

    .hero__postcard--3 img {
        height: 120px;
    }

    .hero__postcard figcaption {
        font-size: 22px;
    }

    .hero__postmark {
        top: -4px;
        left: 26%;
        width: 92px;
    }

    .ticket__photo {
        min-height: 170px;
    }

    .postcard--link img {
        height: 170px;
    }

    .spotlight__photo img {
        height: 240px;
    }

    .tour-hero__photo img {
        height: 230px;
    }

    .facts,
    .pass__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
    }

    .pass__facts,
    .pass__stub {
        padding: 18px;
    }

    /* Three small stamps in a row. */
    .stamp-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .stamp {
        gap: 6px;
        padding: 6px 6px 10px;
        border-width: 3px;
        font-size: 11px;
        letter-spacing: 0.5px;
        overflow-wrap: anywhere;
    }

    .stamp img,
    .stamp__placeholder {
        height: 92px;
    }

    .stamp__country {
        font-size: 10px;
    }

    .finder__title,
    .finder__submit {
        flex-basis: 100%;
    }

    .finder__title {
        border-radius: 14px 14px 0 0;
    }

    .finder__field {
        flex-basis: 100%;
        border-right: 0;
        border-bottom: 2px dashed var(--line);
    }

    .finder__submit .button {
        width: 100%;
        justify-content: center;
    }

    .ticket__photo {
        flex-basis: 100%;
    }

    .ticket__body {
        padding: 20px;
    }

    .letter__message,
    .letter__address {
        padding: 28px 22px;
    }

    .letter__line--phone {
        font-size: 23px;
    }

    .letter__line--email {
        font-size: 16px;
    }

    .spotlight__photo,
    .tour-hero__photo,
    .page-header__photo {
        transform: rotate(1.5deg);
    }

    .tour-hero__postmark {
        top: -34px;
        left: -6px;
        width: 92px;
    }

    .booking__form {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px;
    }

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

    .subscribe {
        padding: 24px 20px;
    }

    .subscribe__form .button {
        align-self: stretch;
        justify-content: center;
    }

    .price-tag {
        right: -6px;
    }
}

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

    .postcard--link,
    .stamp,
    .gallery img {
        transition: none;
    }
}
