/* ==========================================================================
   GLOBAL TOKENS
   Rebrand = edit this block only. Values below match the current build,
   so the page should look identical after migration.
   Naming: --c-* colour | --font-* family | --fs-* size | --ls-* tracking
           --space-* / --gutter spacing | --r shape | --dur-* / --ease motion
   ========================================================================== */

/* ---- Brand web fonts ----
   Larken: headings + italics, served by Adobe Fonts (web project kit lpt8pbr, linked in each page <head>; Adobe does not allow self-hosting).
   Garet: eyebrows + body, self-hosted in assets/font/garet (needs its own Type Forward web licence).
   Garet ships Book + Heavy only, so Book covers 100-600 (no faux bold on 500/600 text)
   and Heavy covers 700-900. */
@font-face{font-family:Garet;src:url(../assets/font/garet/Garet-Book.woff2) format("woff2"),url(../assets/font/garet/Garet-Book.woff) format("woff");font-weight:100 600;font-style:normal;font-display:swap}
@font-face{font-family:Garet;src:url(../assets/font/garet/Garet-Heavy.woff2) format("woff2"),url(../assets/font/garet/Garet-Heavy.woff) format("woff");font-weight:700 900;font-style:normal;font-display:swap}

:root{
  color-scheme:dark;

  /* ---- Brand palette (Pax Mondo guideline, Nov 2026) ----
     Pairings from the guideline: Voyage Blue + Cloudy Sky, Seaweed + First Shoots,
     Buoy Orange + Fresh Linen. Use the role tokens below in components, not these. */
  --brand-voyage:#2C3147;         /* Voyage Blue  */
  --brand-seaweed:#294530;        /* Seaweed      */
  --brand-buoy:#924421;           /* Buoy Orange  */
  --brand-shoots:#BCC1AB;         /* First Shoots */
  --brand-sky:#B2C0C9;            /* Cloudy Sky   */
  --brand-linen:#FBF6EE;          /* Fresh Linen  */

  /* ---- Colour (semantic roles, not literal names) ---- */
  --c-bg:var(--brand-voyage);     /* page background            (was --bg)   */
  --c-text:var(--brand-linen);    /* body text                  (was --ink)  */
  --c-soft:#353B54;               /* alt surface / placeholder: Voyage Blue, one step lighter */
  --c-deep:#1F2335;               /* Voyage Blue, one step darker (video fallbacks) */
  --c-band:#353B54;
  --c-accent:var(--brand-sky);    /* labels, numbers, highlights on Voyage Blue */
  --c-line:rgba(251,246,238,.3);  /* borders, field underline   (was --line) */
  --c-hair:rgba(251,246,238,.18); /* hairlines in Your Berth    (was --hair) */
  --c-bg-light:var(--brand-linen);/* light sections + hero title */
  --c-text-light:var(--brand-voyage); /* text on light sections */
  --c-accent-dark:var(--brand-buoy);  /* accent on light sections */
  --c-muted-light:#ECE5D8;        /* image placeholder on light sections */
  --c-green:var(--brand-seaweed); /* Seaweed band (Choose your Berth) */
  --c-green-accent:var(--brand-shoots);
  --c-on-image:#fff;              /* text on photos / transparent header */
  --c-overlay-rgb:30,34,52;       /* use as rgba(var(--c-overlay-rgb),.5) */
  --c-line-on-image:rgba(255,255,255,.4);

  /* ---- Typography ---- */
  /* Brand fonts (Pax Mondo guideline): Larken = headings + italics, Garet = eyebrows + body.
     Larken comes from the Adobe Fonts kit; Garet from the @font-face rules at the top of this file. */
  --font-head:"larken",Georgia,serif;
  --font-quote:"larken",Georgia,serif;
  --font-body:Garet,"Helvetica Neue",Arial,sans-serif;
  --fw-head:400;
  --fw-em:400;
  --lh-body:1.4;

  --fs-body:18px;
  --fs-small:15px;
  --fs-ui:13px;                   /* nav, buttons, secondary links */
  --fs-label:12px;                /* eyebrows, captions, field labels */
  --fs-hero:9vw;                  /* hero title (full width) */
  --fs-display:clamp(69px,12.8vw,172px);
  --fs-h2:clamp(38px,5.2vw,75px);
  --fs-h2-s:clamp(26px,3.68vw,53px);   /* window-reveal heading */
  --fs-h2-panel:clamp(34px,3.2vw,50px); /* enquire panel heading */
  --fs-h3:30px;
  --fs-list:clamp(34px,5.6vw,78px);    /* island list rows */

  --ls-ui:.14em;
  --ls-label:.13em;
  --ls-eyebrow:.13em;             /* merge into --ls-label if the .02em difference is fine */
  --ls-field:.18em;

  /* ---- Spacing ---- */
  --gutter:clamp(20px,5vw,72px);
  --gutter-header:clamp(20px,4vw,56px);
  --section-pad:clamp(56px,7.44vw,105px);
  --gap-split:clamp(32px,6vw,96px);
  --gap-grid:28px;
  --gap-four:32px;
  --space-s:16px;
  --space-m:32px;
  --tap:44px;                     /* minimum touch target */

  /* ---- Shape ---- */
  --r:10px;

  /* ---- Logo (temporary white tile for the JPG; set bg to transparent and pad to 0 for the new SVG) ---- */
  --logo-h:clamp(48px,6vw,68px);
  --logo-bg:#fff;
  --logo-pad:5px 8px;

  /* ---- Motion ---- */
  --ease:cubic-bezier(.2,.7,.2,1);
  --ease-panel:cubic-bezier(.77,0,.18,1);
  --dur-s:.3s;
  --dur-m:.4s;
  --dur-l:.5s;
  --dur-xl:.65s;
  --reveal-dur:.6s;
  --reveal-delay:0s;              /* delay on viewport entry */
  --reveal-y:14px;
  --parallax-overscan:10%;        /* image extends this far above/below its frame */

  /* ---- Layout ---- */
  --panel-w:40vw;                 /* enquire slide-out */
  --berth-sticky-top:96px;
  --wr-ix0:22vw;                  /* window reveal: starting side inset */
  --wr-iy0:36vh;                  /* window reveal: starting top/bottom inset */
  --wr-height:300vh;              /* scroll length of the reveal */

  /* ---- Icons (one anchor, used everywhere) ---- */
  --anchor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22V8'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3C/svg%3E");
}

@media(max-width:767px){
  :root{--wr-ix0:6vw;--wr-iy0:32vh;--wr-height:260vh}
}
@media(max-width:800px){
  :root{--panel-w:100vw}
}

/* ---- Platform (unchanged from current build) ---- */
:root{
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
html{scroll-padding-top:env(safe-area-inset-top,0px)}

/* ---- Scoped light theme: add class="theme-light" to any section ---- */
.theme-light{
  --c-bg:var(--c-bg-light);
  --c-text:var(--c-text-light);
  --c-accent:var(--c-accent-dark);
  background:var(--c-bg);
  color:var(--c-text);
}

/* ---- Utilities (replace inline styles) ---- */
.mt-s{margin-top:var(--space-s)}
.mt-m{margin-top:var(--space-m)}
.pt-0{padding-top:0}
