/* AnnaBay Club — shared styles for every page.
   Brand: red, gold, black and white from the design system, plus a light sand
   paper ground. Barlow Condensed (D-DIN stand-in) for display, Kameron for body.
   Mobile first: base rules target a 375px phone, min-width queries scale up. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Style Script";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/style-script.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Kameron";
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/kameron-variable.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --red: #d50032;
  --red-dark: #b5002a;
  --red-deep: #94001f;
  --gold: #c99200;
  --gold-light: #e2ac1c;
  /* Lighter gold for large display type on brand red (3.4:1, fine for large text).
     Small text on red stays white. */
  --gold-bright: #f5c85a;
  --black: #3e2b2e;
  --white: #ffffff;
  --sand: #f3ede4;

  --display: "Barlow Condensed", "D-DIN Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --body: "Kameron", Georgia, "Times New Roman", serif;
  /* Handwriting for polaroid captions. The brand script font is Playlist Script: once its file is in
     assets/fonts, add it first in this list. Style Script (a connected brush script) stands in until then. */
  --script: "Style Script", "Segoe Script", "Bradley Hand", cursive;

  --gutter: 20px;
  --max: 1200px;
  --header-h: 60px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
  }
}

/* ---------- Reset and base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

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

body {
  --ink: var(--white);
  margin: 0;
  background: var(--sand); /* sand under the footer, also behind the cookie banner's reserved space */
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

body.is-locked {
  overflow: hidden;
}

/* Clip sideways overflow (rotated bands, full-bleed rows) on the content only */
main,
footer {
  overflow-x: clip;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}

address {
  font-style: normal;
}

/* :where keeps specificity at zero, so component padding always wins */
:where(ul, ol)[role="list"] {
  list-style: none;
  padding: 0;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--white);
  color: var(--red);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skip-link:focus {
  top: 16px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
/* Hollow outline type, the brand's artwork treatment. The outline takes --ink. */
.hollow {
  -webkit-text-stroke: 2px var(--ink, #fff);
  color: transparent;
}

@supports not (-webkit-text-stroke: 2px white) {
  .hollow {
    color: var(--ink, #fff);
  }
}

.big {
  display: grid;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 19vw, 150px);
  line-height: 0.84;
  text-transform: uppercase;
}

.big--sm {
  font-size: clamp(48px, 13vw, 96px);
}

.big--red {
  --ink: var(--red);
  color: var(--red);
}

.sub {
  max-width: 34ch;
  margin: 16px 0 34px;
  font-size: 17px;
}

.sub--dark {
  color: var(--black);
}

.center {
  margin-top: 40px;
  text-align: center;
}

/* ---------- Buttons: straight block, slanted arrow tab on the right, hard shadow ----------
   --bg is the button colour, --tab the lighter arrow tab, --fg the text. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 62px 0 22px;
  border: 2px solid var(--bg);
  border-radius: 6px;
  background: linear-gradient(104deg, var(--bg) calc(100% - 48px), var(--tab) calc(100% - 46px));
  color: var(--fg);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  box-shadow: 3px 3px 0 var(--black);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

/* The arrow: a line and a chevron, drawn in the tab */
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  transition: transform 160ms ease;
}

.btn::before {
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
}

.btn::after {
  width: 8px;
  height: 8px;
  margin-top: -5px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--black);
}

.btn:hover::before,
.btn:hover::after {
  transform: translateX(3px);
}

.btn:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
}

.btn--block {
  width: 100%;
}

.btn--white {
  --bg: var(--white);
  --tab: var(--sand);
  --fg: var(--red);
}

.btn--line {
  --bg: transparent;
  --tab: rgba(255, 255, 255, 0.16);
  --fg: var(--white);
  border-color: var(--white);
}

.btn--red {
  --bg: var(--red);
  --tab: var(--red-dark);
  --fg: var(--white);
}

.btn--line-red {
  --bg: var(--white);
  --tab: var(--sand);
  --fg: var(--red);
  border-color: var(--red);
}

.btn--gold {
  --bg: var(--gold-light);
  --tab: var(--gold);
  --fg: var(--black);
}

/* Small button for lists and pop-ups; --down turns the arrow to point straight down */
.btn--sm {
  min-height: 40px;
  padding: 0 46px 0 14px;
  background: linear-gradient(104deg, var(--bg) calc(100% - 34px), var(--tab) calc(100% - 32px));
  font-size: 16px;
  box-shadow: 2px 2px 0 var(--black);
}

.btn--sm::before,
.btn--sm::after {
  right: 9px;
}

.btn--down::before {
  width: 2px;
  height: 12px;
  margin-top: -7px;
  right: 15px;
}

.btn--down::after {
  right: 12px;
  margin-top: -5px;
  transform: rotate(135deg);
}

.btn--down:hover::before {
  transform: translateY(3px);
}

.btn--down:hover::after {
  transform: translateY(3px) rotate(135deg);
}

/* Washi tape, for anything pinned to the page */
.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 26px;
  background: rgba(243, 237, 228, 0.78);
  box-shadow: 0 1px 0 rgba(62, 43, 46, 0.12);
  transform: translateX(-50%) rotate(-3deg);
}

/* ---------- The print: the Curaçao engraving as a watermark through every ground ----------
   Grey line art multiplied over the section colour: darker red lines on red, soft
   grey lines on sand. The pseudo element sits under the content, over the background. */
.engraved,
.paper {
  position: relative;
  isolation: isolate;
  overflow: clip; /* the print starts above the section; never let it spill over the neighbours */
}

.engraved::before,
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Phone: the tall print, zoomed in, so every section shows a different part of it.
     Positions stay at 50% or more, which keeps the moon and wordmark at the top out of view. */
  background-image: url("../img/engraving-tall-lines-1400.webp");
  background-size: auto 250%;
  background-position: center 65%;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.engraved::before {
  opacity: 0.35;
}

.paper::before {
  opacity: 0.2;
}

/* ---------- One continuous print behind the whole page ----------
   Every print section shows the same viewport-sized layer, held still (position: fixed) and
   cut off at the section edges (clip-path). The sections are windows onto one big engraving,
   and main.js pans it as you scroll (--px, --py: 0 to 1): the coast slides by from the houses
   of Willemstad to the fort. */
.engraved,
.paper {
  clip-path: inset(0);
}

.engraved::before,
.paper::before {
  position: fixed;
  inset: auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  /* Phone: the tall print enlarged and held near its bottom, so the fort, the houses, the
     beach and the barrel are in view and the empty sky above them never is; it drifts a
     little as you scroll */
  background-size: auto 175%;
  background-position: 50% calc(95% + var(--py, 0.5) * 5%);
}

@media (min-width: 900px) {
  .engraved::before,
  .paper::before {
    /* Desktop: the wide print one screen tall, so palms, rocks and barrel stay in view with
       the sea, repeating sideways for very wide screens; it pans along the coast as you scroll */
    background-image: url("../img/engraving-wide-lines-2172.webp");
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: calc(var(--px, 0.5) * 100%) 50%;
  }
}

/* ---------- Torn paper edges (top and bottom) ---------- */
.torn {
  position: relative;
  z-index: 1;
  margin-block: -30px; /* the neighbours slide fully under the 30px tears */
  padding-block: 84px;
  -webkit-mask: url("../img/tear-top.svg") top / 600px 30px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 58px) no-repeat,
    url("../img/tear-bottom.svg") bottom / 600px 30px repeat-x;
  mask: url("../img/tear-top.svg") top / 600px 30px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 58px) no-repeat,
    url("../img/tear-bottom.svg") bottom / 600px 30px repeat-x;
}

/* ---------- Swipe rows: scroll snap, arrows, centred start ---------- */
.arrows {
  display: flex;
  gap: 8px;
}

.arrow {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  box-shadow: 2px 2px 0 var(--black);
}

.arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translate(-30%, -50%) rotate(45deg);
}

.arrow--next::before {
  transform: translate(-70%, -50%) rotate(-135deg);
}

.arrow--red {
  background: var(--red);
  color: var(--white);
}

.arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.row {
  --item: 52vw;
  display: flex;
  gap: 14px;
  padding: 20px calc((100vw - var(--item)) / 2) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.row::-webkit-scrollbar {
  display: none;
}

.row > li {
  flex: 0 0 var(--item);
  scroll-snap-align: center;
  transition: transform 300ms var(--ease-out), opacity 300ms ease;
}

.row.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.row.is-dragging a {
  pointer-events: none;
}

@media (min-width: 768px) {
  .row {
    --item: 240px;
  }
}

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--red);
  color: var(--white);
  transition: background-color 300ms ease, color 300ms ease;
}

.top__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.top__logo {
  position: relative;
  margin-right: auto;
}

.top__logo img {
  height: 46px;
  width: auto;
}

.top__logo-red {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms ease;
}

.top__book {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 5px;
  background: var(--white);
  color: var(--red);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--black);
  transition: background-color 300ms ease, color 300ms ease, transform 160ms ease;
}

.top__book:hover {
  transform: translate(-1px, -1px);
}

.top__menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.top__burger {
  position: relative;
  width: 26px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

[aria-expanded="true"] .top__burger {
  transform: rotate(45deg);
  box-shadow: 0 0 0 currentColor, 0 0 0 currentColor;
}

[aria-expanded="true"] .top__burger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: rotate(-90deg);
}

/* ---------- Menu: sand sheet that opens from the burger ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  align-content: center;
  padding: 80px var(--gutter);
  background: var(--sand);
  color: var(--red);
  visibility: hidden;
  clip-path: circle(0 at calc(100% - 40px) 30px);
  transition: clip-path 420ms var(--ease-out), visibility 0s 420ms;
}

.menu.is-open {
  visibility: visible;
  clip-path: circle(150% at calc(100% - 40px) 30px);
  transition: clip-path 520ms var(--ease-out);
}

.menu li:nth-child(even) a {
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
}

.menu a {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 13vw, 84px);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.menu li:nth-child(odd) a:hover {
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
}

.menu li:nth-child(even) a:hover {
  color: var(--red);
}

html.menu-open .top {
  color: var(--red);
  background: var(--sand);
}

html.menu-open .top__logo-white {
  opacity: 0;
}

html.menu-open .top__logo-red {
  opacity: 1;
}

html.menu-open .top__book {
  background: var(--red);
  color: var(--white);
}

/* ---------- Social icons ---------- */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transition: background-color 160ms ease, color 160ms ease;
}

/* ---------- Footer: the label, centred on sand ---------- */
.foot {
  padding: 84px 0 72px;
  color: var(--black);
  background: var(--sand);
  font-size: 15px;
}

.foot__grid {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.foot__grid > img {
  width: 130px;
}

.foot__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 36px;
}

.foot__nav a {
  display: block;
  padding: 6px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
}

.foot__nav a:hover {
  color: var(--black);
}

.foot address a {
  display: inline-block;
  padding-block: 4px;
}

.foot__social {
  display: flex;
  gap: 12px;
  color: var(--red);
}

.foot__social .social-link:hover {
  background: var(--red);
  color: var(--white);
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font-size: 14px;
}

.foot__legal a,
.foot__legal button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot__small {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.8;
}

@media (min-width: 900px) {
  .foot__nav {
    grid-template-columns: repeat(4, auto);
    gap: 4px 36px;
  }
}

/* ---------- Opening status ---------- */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.open-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.open-status.is-open::before {
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(245, 200, 90, 0.35);
}

/* ---------- Age gate (18+) ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--red);
  color: var(--white);
  text-align: center;
  overflow-y: auto;
}

.age-gate[hidden] {
  display: none;
}

.age-gate__box {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: 100%;
  max-width: 420px;
}

.age-gate__box img {
  width: 150px;
}

.age-gate__title {
  display: grid;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 14vw, 84px);
  line-height: 0.86;
  text-transform: uppercase;
}

.age-gate__actions {
  display: grid;
  gap: 14px;
  width: 100%;
}

.age-gate__note {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--sand);
  color: var(--black);
  border-top: 3px solid var(--red);
  padding-block: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  font-size: 15px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner a {
  color: var(--red);
}

.cookie-banner__inner {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cookie-banner__actions .btn {
  min-height: 48px;
  font-size: 18px;
}

.cookie-settings {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.cookie-settings[hidden] {
  display: none;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(62, 43, 46, 0.3);
  background: var(--white);
}

.cookie-option input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--red);
  flex: none;
}

.cookie-option strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Only hide when JS runs, so content never stays invisible */
  .js .reveal {
    opacity: 0;
    transform: translateY(14px) rotate(var(--tilt, 0deg));
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Menu on a computer: a side bar from the right, the page stays in view ---------- */
@media (min-width: 900px) {
  .menu {
    inset: var(--header-h) 0 0 auto;
    width: min(440px, 38vw);
    align-content: start;
    padding: 56px 48px 48px;
    clip-path: inset(0 0 0 100%);
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.28);
    overflow-y: auto;
  }
  .menu.is-open {
    clip-path: inset(0 0 0 0);
  }
  .menu a {
    font-size: clamp(44px, 4.4vw, 62px);
  }
  /* The bar stays red; only the side bar is sand */
  html.menu-open .top {
    color: var(--white);
    background: var(--red);
  }
  html.menu-open .top__logo-white {
    opacity: 1;
  }
  html.menu-open .top__logo-red {
    opacity: 0;
  }
  html.menu-open .top__book {
    background: var(--white);
    color: var(--red);
  }
}

/* Medals never change shape: whatever box they are put in, they shrink as a whole and keep their proportions */
img[src*="medal-gold"],
img[src*="medal-silver"],
img[src*="gsm-gold"],
img[src*="gsm-silver"] {
  object-fit: contain;
}
