@font-face {
  font-family: 'Sail with Tom Script';
  src: url('assets/sail-with-tom.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #102e40;
  --deep: #0b2232;
  --ink: #15364a;
  --muted: #4f6570;
  --gold: #edc375;
  --paper: #faf8f2;
  --white: #fffefa;
  --border: #d8ddd7;
  --body-font: 'Segoe UI', Arial, sans-serif;
  --display-font: Georgia, 'Times New Roman', serif;
  --gutter: clamp(1.15rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body-font); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #007d91; outline-offset: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), 80rem); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: 1rem; z-index: 10; padding: .5rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }
.preview-notice { padding: .55rem var(--gutter); background: var(--gold); color: var(--deep); text-align: center; }

.header { position: sticky; top: 0; z-index: 5; background: var(--deep); color: var(--white); border-bottom: 1px solid #ffffff24; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-inner { min-height: 5rem; }
.header :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--gold); }
.brand { flex: none; width: 13.5rem; }
.brand img { display: block; width: 100%; height: auto; }
.navigation, .header-actions { display: flex; align-items: center; gap: clamp(.55rem, 1.5vw, 1.55rem); }
.navigation a { position: relative; padding: .5rem .1rem; color: #e1ebef; text-decoration: none; font-size: .94rem; font-weight: 600; white-space: nowrap; }
.navigation a:hover, .navigation a[aria-current] { color: var(--white); }
.navigation a[aria-current]::after { content: ''; position: absolute; right: .1rem; bottom: 0; left: .1rem; height: 2px; background: var(--gold); }
.languages { display: flex; gap: .18rem; padding: .18rem; border: 1px solid #ffffff38; border-radius: .45rem; }
.languages button { padding: .24rem .35rem; border: 0; border-radius: .26rem; background: transparent; color: var(--white); font-size: .875rem; font-weight: 700; }
.languages button[aria-pressed='true'] { background: #ffffff24; color: #ffe1a8; }
.menu-toggle { display: none; border: 1px solid #ffffff55; border-radius: .4rem; padding: .35rem .65rem; background: transparent; color: var(--white); }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.9rem; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: .45rem; font-size: .95rem; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.25; transition: background-color .16s, border-color .16s; }
.button-gold { background: var(--gold); color: var(--deep); }
.button-gold:hover { background: #f6d69b; }
.button-dark { background: var(--navy); color: var(--white); }
.button-dark:hover { background: #22516a; }
.button-outline { background: var(--white); border-color: #93a5aa; color: var(--ink); }
.button-outline:hover { background: #eff4f2; }
.header-cta { min-height: 2.6rem; white-space: nowrap; }
.text-link { font-weight: 700; text-underline-offset: .24em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: var(--white); }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, transparent 27%, #0b2232a8 48%, #0b2232c2 100%); }
.hero-inner {
  display: grid;
  grid-template-columns: 41% minmax(0, 49%) 1fr;
  max-width: 120rem;
  min-height: clamp(23rem, 32.1vw, 38.5rem);
  margin-inline: auto;
  padding-block: clamp(1.1rem, 1.65vw, 2rem) clamp(1.75rem, 3.15vw, 3.8rem);
}
.hero-copy { grid-column: 2; display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; }
.hero-signature {
  position: relative;
  margin-inline-end: .4em;
  font: 400 clamp(3rem, 5.98vw, 7.18rem)/1.41 'Sail with Tom Script', 'Segoe Script', cursive;
  white-space: nowrap;
}
.hero-signature::after {
  content: '';
  position: absolute;
  left: 31.2%;
  bottom: 3%;
  width: 51.8%;
  height: 30.3%;
  background: linear-gradient(95deg, #be903d, #f1c363 65%, #d7a947);
  clip-path: polygon(0 83%, 4% 88%, 9% 87%, 16% 78%, 24% 63%, 35% 41%, 46% 22%, 56% 9%, 65% 2%, 73% 0, 82% 2%, 90% 9%, 96% 20%, 100% 30%, 94% 22%, 87% 17%, 80% 15%, 72% 16%, 62% 23%, 53% 35%, 43% 52%, 32% 74%, 22% 91%, 14% 99%, 8% 100%, 3% 95%);
  pointer-events: none;
}
.hero h1 {
  margin-top: -.13em;
  font-size: clamp(1.5rem, 3.14vw, 3.77rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .005em;
  text-wrap: balance;
}
.hero-intro { margin-top: clamp(.55rem, 1vw, 1.2rem); font-size: clamp(1rem, 1.43vw, 1.72rem); line-height: 1.3; text-wrap: balance; }
.hero-cta {
  min-width: clamp(12rem, 19.75vw, 23.7rem);
  min-height: clamp(2.9rem, 3.65vw, 4.4rem);
  margin-top: clamp(1rem, 1.55vw, 1.9rem);
  border-radius: 100vw;
  background: linear-gradient(#eec66e, #d6a547);
  color: #082941;
  font-size: clamp(1.05rem, 1.4vw, 1.68rem);
}
.hero-cta:hover { background: #f4cd7c; }
.hero-benefits {
  position: relative;
  inset-inline-start: min(1.9vw, 2.3rem);
  display: grid;
  grid-template-columns: 1.15fr 1fr .92fr 1fr;
  width: 94%;
  margin: auto 0 0;
  padding: clamp(1.75rem, 3vw, 3.6rem) 0 0;
  list-style: none;
  font-size: clamp(.875rem, 1.07vw, 1.28rem);
  font-weight: 500;
  line-height: 1.22;
  text-wrap: balance;
}
.hero-benefits li { align-content: center; padding-inline: .55em; }
.hero-benefits li + li { border-inline-start: 1px solid #ffffff80; }
.hero-media { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 18% center; }

.section { padding-block: clamp(3rem, 5.6vw, 5.6rem); }
.destinations-section { padding-top: clamp(2.5rem, 4vw, 3.6rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.65rem; }
.section h2 { font: 400 clamp(2.25rem, 4vw, 3.8rem)/1.04 var(--display-font); letter-spacing: -.05em; }
.section h3 { font-size: 1.22rem; line-height: 1.3; }
.section-heading p, .about-copy p { margin-top: .6rem; color: var(--muted); }
.destination-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.destination-card { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: .7rem; background: var(--white); text-decoration: none; transition: border-color .16s, box-shadow .16s; }
.destination-card:hover { border-color: #73929a; box-shadow: 0 8px 24px #1c3e461b; }
.destination-media { display: block; width: 100%; aspect-ratio: 1.8; background: var(--border); object-fit: cover; object-position: center 65%; }
.destination-caption { display: grid; padding: .73rem .9rem .83rem; }
.destination-caption strong { font-size: 1.18rem; }
.destination-caption span { color: var(--muted); font-size: .94rem; }
.photo-credits { margin-top: .65rem; color: var(--muted); font-size: .875rem; }
.photo-credits summary { width: fit-content; cursor: pointer; }
.photo-credits ul { margin: .4rem 0; padding-inline-start: 1.2rem; }

.trips-section, .contact-section { background: #ebf1ee; }
.trip-layout, .about-layout, .contact-layout { display: grid; gap: clamp(1.2rem, 4vw, 4rem); }
.trip-layout { grid-template-columns: 1fr 1fr; }
.trip-panel, .experience article, form, .inquiry-fallback { background: var(--white); border: 1px solid var(--border); border-radius: .7rem; padding: clamp(1.15rem, 2.8vw, 2rem); }
.trip-panel select { max-width: 21rem; }
.trip-detail { margin: 1.15rem 0 1.3rem; }
.trip-detail p, .experience p { margin-top: .42rem; color: var(--muted); }
.experience { display: grid; gap: .85rem; }
.experience article { display: grid; align-content: center; }
.about-layout { grid-template-columns: 1fr 1fr; align-items: center; }
.about-media { display: block; width: 100%; height: auto; border-radius: .85rem; }
.about-copy p { max-width: 45ch; margin: .85rem 0 1.15rem; }
.gallery-section { padding-top: 0; }
.gallery-heading { align-items: center; gap: .65rem 1rem; margin-bottom: .85rem; }
.gallery-toggle { width: 2.75rem; min-height: 2.75rem; padding: 0; }
.gallery-toggle[hidden] { display: none; }
.gallery-toggle svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.gallery-toggle[data-label='galleryPause'] .gallery-play-icon,
.gallery-toggle[data-label='galleryPlay'] .gallery-pause-icon { display: none; }
.gallery-strip { display: flex; overflow-x: auto; padding-bottom: .4rem; cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; }
.gallery-strip.is-playing { overflow-x: hidden; }
.gallery-strip.is-dragging { cursor: grabbing; }
.gallery-reel { display: flex; flex: none; width: max-content; }
.gallery-track { display: flex; flex: none; gap: .65rem; }
.gallery-reel .gallery-track { padding-inline-end: .65rem; }
.gallery-photo { flex: none; border: 0; border-radius: .65rem; padding: 0; background: transparent; }
.gallery-photo:focus-visible { outline-offset: -4px; outline-color: var(--gold); }
.is-dragging .gallery-photo { cursor: grabbing; }
.gallery-media { display: block; flex: none; width: clamp(11rem, 27vw, 16.5rem); height: clamp(6.875rem, 16.875vw, 10.3125rem); object-fit: cover; border-radius: .65rem; }
.gallery-track > .gallery-media:first-child, .gallery-photo:first-child .gallery-media { object-position: center 67%; }

html:has(.gallery-viewer[open]) { overflow: hidden; }
.gallery-viewer { width: min(64rem, calc(100% - 1.5rem)); max-width: none; max-height: calc(100% - 1.5rem); padding: 0; border: 0; border-radius: .85rem; background: var(--deep); color: var(--white); }
.gallery-viewer::backdrop { background: #061622e0; }
.gallery-viewer-panel { display: grid; gap: .5rem; padding: clamp(.55rem, 2vw, 1rem); }
.gallery-viewer-close { justify-self: end; width: 2.75rem; padding: 0; }
.gallery-viewer-close svg { width: 1.35rem; height: 1.35rem; }
.gallery-viewer-photo { height: min(65vh, 40rem); height: min(65dvh, 40rem, calc(100dvh - 9rem)); background: #061622; border-radius: .45rem; overflow: hidden; }
.gallery-viewer-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-viewer-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.gallery-viewer-controls .button { padding-inline: clamp(.55rem, 2vw, 1.15rem); }
.gallery-viewer-controls .button:first-child { justify-self: start; }
.gallery-viewer-controls .button:last-child { justify-self: end; }
.gallery-viewer-position { font-variant-numeric: tabular-nums; }
.gallery-viewer :focus-visible { outline-color: var(--gold); }

.contact-layout { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; }
.contact-copy { padding-top: .45rem; }
.contact-copy p { max-width: 36ch; margin: .85rem 0 0; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.1rem; }
.form-wide { grid-column: 1 / -1; }
label { display: block; margin-bottom: .25rem; font-size: .95rem; font-weight: 600; }
input, select, textarea { display: block; width: 100%; min-height: 2.8rem; padding: .55rem .7rem; border: 1px solid #91a4a9; border-radius: .35rem; background-color: #fff; color: var(--ink); }
select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 1.05rem center, right .75rem center; background-size: .32rem .32rem; background-repeat: no-repeat; }
textarea { resize: vertical; }
.form-hint { margin-top: .4rem; color: var(--muted); font-size: .94rem; }
.form-privacy { margin-top: 1rem; }
.form-actions { margin-top: .9rem; }
.message-preview { margin-top: 1.25rem; padding: 1rem; background: #eff4f2; border-radius: .4rem; }
.message-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: .65rem 0; }
#copy-status:not(:empty) { margin-top: .5rem; }
.footer { padding-block: 1.5rem; background: var(--deep); color: var(--white); }
.footer-links, .privacy-nav { display: flex; flex-wrap: wrap; gap: .65rem 1.35rem; }
.privacy-notice { max-width: 68ch; padding-block: clamp(2rem, 6vw, 5rem); }
.privacy-notice h1 { margin: 1.2rem 0 .8rem; color: var(--navy); font: 700 clamp(1.9rem, 5vw, 3rem)/1.1 var(--display-font); }
.privacy-notice h2 { margin-top: 1.7rem; color: var(--navy); font-size: 1.2rem; }
.privacy-notice p + p, .privacy-notice h2 + p { margin-top: .5rem; }
.privacy-status { padding: .8rem 1rem; background: #ebf1ee; border-inline-start: .2rem solid var(--navy); }

@media (max-width: 68rem) {
  .header-inner { gap: .8rem; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .navigation { display: none; position: absolute; inset: 100% 0 auto; padding: .65rem var(--gutter) 1.15rem; background: var(--deep); box-shadow: 0 .5rem 1rem #0003; }
  .navigation.is-open { display: grid; gap: .1rem; }
  .navigation a { width: fit-content; }
}

@media (max-width: 48rem) {
  html { scroll-padding-top: 4.75rem; }
  .header-inner { min-height: 4rem; }
  .brand { width: clamp(7rem, 38vw, 11rem); }
  .header-cta { display: none; }
  .hero::before { background: linear-gradient(180deg, transparent 15%, #0b22325c 36%, #0b2232db 67%, #0b2232ed); }
  .hero-inner { display: block; min-height: 0; padding: clamp(15rem, 36vw, 17rem) var(--gutter) 2rem; }
  .hero-media { object-position: 18% center; }
  .hero-signature { margin-inline-end: 0; font-size: clamp(2.7rem, 14vw, 4.75rem); }
  .hero h1 { margin-top: 0; font-size: clamp(1.6rem, 5.4vw, 2.65rem); }
  .hero-intro { max-width: 37ch; }
  .hero-benefits { inset-inline-start: 0; width: min(100%, 32rem); grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .hero-benefits li:nth-child(odd) { border-inline-start: 0; }
  .section-heading { flex-wrap: wrap; align-items: start; }
  .destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .trip-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-media { grid-row: 2; }
}

@media (max-width: 30rem) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
