/* ==========================================================================
   YACHTSWRAP — main.css
   Design tokens, base styles, typography, layout primitives
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --c-black: #0D0D0D;
  --c-charcoal: #171717;
  --c-charcoal-2: #1F1F1D;
  --c-off: #F5F4F0;
  --c-white: #FDFCFA;
  --c-grey: #FFFFFF;
  --c-light: #E8E7E3;
  --c-light-2: #DEDCD6;
  --c-accent: #B99A5B;          /* restrained brass */
  --c-accent-soft: rgba(185, 154, 91, .35);
  --c-line: rgba(245, 244, 240, .14);
  --c-line-dark: rgba(13, 13, 13, .14);
  --c-whatsapp: #1FAF54;

  /* Typography */
  --font-sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --fs-hero: clamp(2.75rem, 7.5vw, 6.5rem);
  --fs-h1: clamp(2.25rem, 5.5vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 3.75vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --ls-label: 0.22em;

  /* Spacing */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --section-pad: clamp(4.5rem, 9vw, 9.5rem);

  /* Layout */
  --container: 1440px;
  --container-narrow: 1080px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 88px;
  --header-h-compact: 68px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;

  /* Radii — kept minimal (premium, not "rounded card" look) */
  --radius: 2px;
}

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

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

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-off);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--c-accent); color: var(--c-black); }

/* Focus states */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0 0 var(--space-3);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Serif section headings — Fraunces at display optical size */
h1, h2 {
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 144;
  font-weight: 380;
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.25; }

.display {
  font-family: var(--font-serif);
  font-weight: 380;
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 144;
  line-height: 1.06;
  letter-spacing: 0.005em;
}

.display em {
  font-style: italic;
  color: var(--c-accent);
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--c-grey);
  max-width: 56ch;
  line-height: 1.75;
}

/* Eyebrow / uppercase label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-grey);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--c-accent);
  flex: none;
}

.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--c-accent);
  flex: none;
}

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

.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-pad); position: relative; }

.section--light {
  background: var(--c-off);
  color: var(--c-black);
}
.section--light .lead,
.section--light .muted { color: #6B6B66; }
.section--light .eyebrow { color: #6B6B66; }

.section--charcoal { background: var(--c-charcoal); }

.muted { color: var(--c-grey); }
.accent { color: var(--c-accent); }

/* Section header block */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head > * { max-width: 640px; }
.section-head .h2 { margin-bottom: 0; }
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Thin rules */
.rule { border: 0; border-top: 1px solid var(--c-line); margin: 0; }
.section--light .rule { border-color: var(--c-line-dark); }

/* ---------- Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--c-charcoal-2);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
/* Common aspect ratios */
.ratio-hero    { aspect-ratio: 21 / 9; }
.ratio-wide    { aspect-ratio: 16 / 9; }
.ratio-card    { aspect-ratio: 4 / 3; }
.ratio-tall    { aspect-ratio: 3 / 4; }
.ratio-square  { aspect-ratio: 1 / 1; }
.ratio-cine    { aspect-ratio: 2.35 / 1; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  background: var(--c-off);
  color: var(--c-black);
  padding: .75rem 1.25rem;
  font-size: var(--fs-small);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-grey);
  margin-bottom: var(--space-3);
}
.breadcrumbs a { transition: color .3s var(--ease); }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .4; }
.breadcrumbs [aria-current] { color: var(--c-off); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.no-scroll { overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mx-auto { margin-inline: auto; }
.actions-center { justify-content: center; }
