/* Palette sampled from the cup artwork (slide 1 / flyer background) */
:root {
  --coral: #E2665A;
  --coral-art: #E16453;   /* sky colour at the top edge of hero-art.jpg */
  --teal: #237983;
  --teal-dark: #155162;
  --sea: #164D5D;         /* flat sea colour at the bottom edge of hero-art.jpg */
  --sun: #F3D99B;
  --cream: #F7ECD6;
  --paper: #FCF7EC;
  --foam: #FFFDF8;
  --ink: #12414E;
  --display: "Barlow Condensed", "Aptos Black", "Aptos", "Arial Narrow", sans-serif;
  --body: "Barlow", "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sea);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  color: var(--foam);
  transition: background-color .25s, box-shadow .25s;
}
.nav.scrolled { background: rgba(22, 77, 93, .96); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.nav-brand {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  opacity: 0; transition: opacity .25s;
}
.nav.scrolled .nav-brand { opacity: 1; }
@media (max-width: 1199px) { .nav-brand { display: none; } }
.nav-brand span { color: var(--sun); }
.nav nav {
  margin-left: auto; display: flex; gap: clamp(.8rem, 1.5vw, 1.6rem);
  overflow-x: auto; scrollbar-width: none;
}
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  padding: .35rem 0; border-bottom: 3px solid transparent;
}
.nav nav a:hover, .nav nav a.active { border-bottom-color: var(--sun); }

/* ---------- Hero (slide 1) ---------- */
.hero { position: relative; background: var(--coral-art); color: #fff; }
.hero-art { width: 100%; height: auto; margin-bottom: -1px; } /* -1px hides a sub-pixel seam above the next section */
.hero-text {
  position: absolute; z-index: 1;
  top: 8.5vw; left: 6vw; width: 54vw;
}
.hero-kicker {
  font-family: var(--display); font-weight: 600; font-size: 2.3vw;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sun);
}
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: 5.6vw; line-height: 1;
  letter-spacing: .01em; text-transform: uppercase; margin-top: .4vw; white-space: nowrap;
}
.bar { display: block; width: 5.5em; height: .4em; border-radius: 1em; background: var(--teal); margin: 1.1em 0; font-size: 1.3vw; }
.hero-lead { font-size: 1.75vw; font-weight: 500; line-height: 1.4; max-width: 27em; }
.hero-org { font-size: 1.45vw; font-weight: 600; margin-top: 1.1em; color: var(--sun); }

@media (max-width: 899px) {
  .hero { padding-top: var(--nav-h); }
  .hero-text { position: static; width: auto; padding: 2rem 1.5rem 0; }
  .hero-kicker { font-size: 1.2rem; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 5rem); margin-top: .25rem; white-space: normal; }
  .bar { font-size: 1rem; }
  .hero-lead { font-size: 1.15rem; }
  .hero-org { font-size: 1.05rem; }
  /* blend the top edge of the artwork into the flat sky above it */
  .hero-art { -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); margin-top: -4vw; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.wrap { width: min(1160px, 100% - 2 * clamp(1.25rem, 5vw, 3rem)); margin-inline: auto; }
.cream { background: var(--cream); }
.paper { background: var(--paper); }
.sea { background: var(--sea); color: var(--foam); }
.teal { background: var(--teal); color: var(--foam); }
#event { padding-top: clamp(2rem, 4vw, 3.5rem); }

h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.02;
  letter-spacing: .01em; text-transform: uppercase; color: var(--teal);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
h2::after { content: ""; display: block; width: 4.5rem; height: .5rem; border-radius: 1rem; background: var(--coral); margin-top: 1rem; }
.sea h2, .teal h2 { color: var(--foam); }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.15; letter-spacing: .02em; }
.subhead { font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3; color: var(--teal); margin: -.75rem 0 2rem; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cols { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Lists */
.list > li { position: relative; padding-left: 1.6rem; }
.list > li + li { margin-top: .7rem; }
.list > li::before { content: ""; position: absolute; left: 0; top: .5em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--coral); }
.list.check > li::before, .list.cross > li::before { background: none; width: auto; height: auto; top: 0; font-weight: 700; }
.list.check > li::before { content: "✓"; color: var(--teal); }
.list.cross > li::before { content: "✕"; color: var(--coral); }

/* Photos */
.ph { position: relative; border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .12); box-shadow: 0 14px 34px -18px rgba(8, 40, 50, .65); }
.ph > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- The Event and the Races (slide 2) ---------- */
.facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.facts dt { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); }
.facts dd { font-weight: 600; font-size: 1.2rem; }
.callout { margin-top: 1.75rem; padding: 1rem 1.25rem; border-left: .4rem solid var(--coral); background: rgba(255, 255, 255, .08); border-radius: 0 10px 10px 0; font-weight: 500; }
.motto { margin-top: 1.5rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; color: var(--sun); }

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.collage .ph { overflow: visible; }
.collage .ph > img { border-radius: 14px; }
.c-boat { grid-row: span 2; }
.c-regatta { aspect-ratio: 5 / 4; }
.c-regatta > img { object-position: 45% 70%; }
.c-dinner { aspect-ratio: 5 / 4; }
.c-city { grid-column: 1 / -1; aspect-ratio: 2 / 1; margin-top: .6rem; }
.c-city > img { object-position: 50% 62%; }
.stamp {
  position: absolute; left: 50%; bottom: -.9rem; transform: translateX(-50%) rotate(-4deg);
  width: max-content; max-width: 92%; padding: .45rem 1rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; letter-spacing: .03em; text-align: center;
  color: #fff; border: 3px solid var(--foam); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6);
}
.stamp.coral { background: var(--coral); color: #3A0F0A; }
.stamp.teal { background: var(--teal); transform: translateX(-50%) rotate(3deg); }

/* ---------- The Location (slide 3) ---------- */
.places { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.place figcaption { margin-top: .65rem; padding-left: 1.5rem; position: relative; font-size: 1rem; color: var(--teal-dark); }
.place figcaption::before { content: ""; position: absolute; left: .1rem; top: .42em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(226, 102, 90, .3); }
.place figcaption b { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); margin-right: .4rem; }
.p-if .ph { aspect-ratio: 1920 / 460; }
.p-port .ph { aspect-ratio: 338 / 233; }
.p-port img { object-position: 50% 76%; }
.p-base .ph { aspect-ratio: 800 / 452; }
.p-map .ph { aspect-ratio: 1298 / 829; }
@media (min-width: 760px) {
  .places { grid-template-columns: repeat(3, 1fr); }
  .p-if { grid-column: 1 / -1; }
  .p-port .ph, .p-base .ph, .p-map .ph { aspect-ratio: 3 / 2; }
  .p-map img { object-position: 40% 50%; }
}
.pin { position: absolute; width: 1.1rem; height: 1.1rem; margin: -.55rem 0 0 -.55rem; border-radius: 50%; background: var(--coral); border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(226, 102, 90, .4), 0 2px 6px rgba(0, 0, 0, .5); }
.maplabel { position: absolute; transform: translate(-50%, -50%); padding: .1rem .6rem; border-radius: 6px; background: rgba(255, 253, 248, .92); color: #B43A2E; font-weight: 600; font-size: 1rem; }

/* ---------- The Boats (slide 4) ---------- */
.specs { margin-top: 2rem; font-size: .95rem; color: var(--teal-dark); }
.specs a { overflow-wrap: anywhere; color: var(--teal); }
.boatgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.boatgrid .ph { aspect-ratio: 3 / 2; }
.b-fleet > img { object-position: 60% 50%; }

/* ---------- The Race & Trophy (slide 5) ---------- */
.bigdate { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; color: var(--sun); margin: -.5rem 0 1.5rem; }
.schedule li { display: grid; grid-template-columns: 11.5rem 1fr; gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.schedule span { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sun); }
.schedule b { font-weight: 600; font-size: 1.25rem; }
.trophy { aspect-ratio: 3 / 4; max-width: 440px; width: 100%; justify-self: center; border: 6px solid var(--foam); }

/* ---------- Important Information / Not included (slides 6, 7) ---------- */
.card { background: var(--foam); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.25rem); border-top: .5rem solid var(--teal); box-shadow: 0 14px 34px -22px rgba(8, 40, 50, .5); }
.card h3 { color: var(--teal); margin-bottom: 1.1rem; }
.note { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.25rem 1.5rem; border-left: .4rem solid var(--teal); background: rgba(35, 121, 131, .09); border-radius: 0 12px 12px 0; color: var(--teal-dark); font-size: 1.05rem; }

/* ---------- Price Information (slide 8) ---------- */
.pricetag { background: var(--coral); color: #fff; border-radius: 16px; padding: 1.5rem 1.75rem 1.6rem; margin-bottom: 1.75rem; box-shadow: 0 14px 34px -20px rgba(140, 40, 30, .8); }
.pricetag span { display: block; font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: .08em; text-transform: uppercase; color: #3A0F0A; }
.pricetag strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(3.5rem, 9vw, 5.5rem); line-height: 1; }
.payments { margin-top: .75rem; display: grid; gap: .5rem; }
.payments li { background: var(--foam); border-radius: 10px; padding: .6rem 1rem; border-left: .35rem solid var(--teal); }
.payments b { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--teal); margin-right: .3rem; }

/* ---------- Come and have fun (slide 9) ---------- */
.contacts { display: grid; gap: 2rem; }
.contacts h3 { color: var(--sun); margin-bottom: .6rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.button {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; background: var(--sun); color: var(--sea);
  font-weight: 600; font-size: 1.2rem; text-decoration: none; overflow-wrap: anywhere; transition: transform .15s, background-color .15s;
}
.button.outline { background: transparent; color: var(--sun); box-shadow: inset 0 0 0 2px var(--sun); }
.button.outline:hover { color: var(--sea); }
.button:hover { background: #fff; transform: translateY(-2px); }
.flyer { aspect-ratio: 5 / 6; max-width: 460px; width: 100%; justify-self: center; border: 6px solid var(--cream); }
.flyer > img { object-position: 50% 30%; }

/* ---------- Footer ---------- */
.footer { background: var(--cream); color: var(--teal-dark); text-align: center; padding: 2.25rem 1.5rem; font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: .05em; }

a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
