/* ============================================================
   Reel Emotion — Design tokens & global foundation
   ============================================================ */

:root {
  /* Colour system */
  --color-paper: #f1efe9;
  --color-paper-soft: #f7f5f0;
  --color-paper-deep: #e7e4dc;

  --color-ink: #11110f;
  --color-ink-soft: #292925;
  --color-muted: #77756e;
  --color-muted-light: #a19f98;

  --color-line: rgba(17, 17, 15, 0.18);
  --color-line-light: rgba(17, 17, 15, 0.1);
  --color-line-dark: rgba(247, 245, 240, 0.22);

  --color-dark: #10100f;
  --color-dark-soft: #171715;
  --color-black: #080808;

  --color-light: #f7f5f0;
  --color-white: #ffffff;

  --color-overlay-light: rgba(0, 0, 0, 0.22);
  --color-overlay-medium: rgba(0, 0, 0, 0.36);
  --color-overlay-strong: rgba(0, 0, 0, 0.52);

  --color-focus: #8f7457;

  /* Fluid type scale */
  --font-display-xl: clamp(4rem, 7.25vw, 7.75rem);
  --font-display-lg: clamp(3.4rem, 5.9vw, 6.25rem);
  --font-h1: clamp(3.25rem, 5vw, 5.75rem);
  --font-h2: clamp(2.65rem, 4vw, 4.75rem);
  --font-h3: clamp(1.8rem, 2.6vw, 3rem);
  --font-h4: clamp(1.3rem, 1.65vw, 1.75rem);

  --font-body-lg: clamp(1.18rem, 1.4vw, 1.5rem);
  --font-body: 1rem;
  --font-body-sm: 0.875rem;
  --font-label: 0.72rem;
  --font-metadata: 0.68rem;

  /* Font families */
  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Display letterspacing */
  --tracking-display: -0.03em;
  --tracking-body: -0.015em;

  /* Layout */
  --page-max: 1600px;
  --content-max: 1440px;

  --gutter-desktop: 48px;
  --gutter-laptop: 36px;
  --gutter-tablet: 28px;
  --gutter-mobile: 20px;

  --grid-gap-desktop: 24px;
  --grid-gap-mobile: 14px;

  --header-height: 84px;
  --header-height-mobile: 68px;

  --measure-narrow: 38rem;
  --measure-body: 46rem;
  --measure-wide: 62rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 88px;
  --space-10: 112px;
  --space-11: 144px;
  --space-12: 176px;
  --space-13: 208px;

  /* Controls */
  --radius-control: 0px;
  --radius-media: 0px;

  /* Motion */
  --ease-out-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  --duration-fast: 180ms;
  --duration-standard: 320ms;
  --duration-slow: 700ms;
  --duration-media: 900ms;
}

/* ============================================================
   Reset
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  background: var(--color-paper);
  color: var(--color-ink);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--color-ink);
  color: var(--color-light);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.hidden {
  display: none !important;
}

.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;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--gutter-mobile);
  z-index: 2000;
  padding: 12px 20px;
  background: var(--color-ink);
  color: var(--color-light);
  font-size: 13px;
  font-weight: 500;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 12px;
}

/* ============================================================
   Typography
   ============================================================ */

.heading-display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  line-height: 0.98;
  text-wrap: balance;
}

.body-copy {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  line-height: 1.55;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow.on-dark {
  color: rgba(247, 245, 240, 0.66);
}

.metadata {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  line-height: 1;
  text-wrap: balance;
}

/* Editorial italic accent — used inline inside headings, e.g.
   "Films that turn destinations into <em>desire</em>." */
.heading-display em,
h1 em,
h2 em,
h3 em,
h4 em {
  font-style: italic;
  font-weight: 400;
}

.page-h1 {
  font-size: var(--font-h1);
  line-height: 0.98;
  letter-spacing: var(--tracking-display);
}

.section-h2 {
  font-size: var(--font-h2);
  line-height: 1;
}

.section-h3 {
  font-size: var(--font-h3);
  line-height: 1.04;
}

.intro-paragraph {
  font-size: var(--font-body-lg);
  line-height: 1.45;
  color: var(--color-muted);
}

.body-paragraph {
  font-size: var(--font-body);
  line-height: 1.55;
  color: var(--color-muted);
}

.small-copy {
  font-size: var(--font-body-sm);
  line-height: 1.5;
  color: var(--color-muted);
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: min(calc(100% - (var(--gutter-desktop) * 2)), var(--content-max));
  margin-inline: auto;
}

.container-wide {
  width: min(calc(100% - (var(--gutter-desktop) * 2)), var(--page-max));
  margin-inline: auto;
}

@media (max-width: 1199px) {
  .container,
  .container-wide {
    width: calc(100% - (var(--gutter-laptop) * 2));
  }
}

@media (max-width: 899px) {
  .container,
  .container-wide {
    width: calc(100% - (var(--gutter-tablet) * 2));
  }
}

@media (max-width: 599px) {
  .container,
  .container-wide {
    width: calc(100% - (var(--gutter-mobile) * 2));
  }
}

.section {
  padding-block: 160px;
}

.section-large {
  padding-block: 200px;
}

.section-compact {
  padding-block: 104px;
}

@media (max-width: 1023px) {
  .section {
    padding-block: 112px;
  }
  .section-large {
    padding-block: 144px;
  }
}

@media (max-width: 599px) {
  .section {
    padding-block: 80px;
  }
  .section-large {
    padding-block: 96px;
  }
  .section-compact {
    padding-block: 64px;
  }
}

.section-paper {
  background: var(--color-paper);
}

.section-paper-soft {
  background: var(--color-paper-soft);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-light);
}

/* 12-column grid */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 24px;
}

@media (max-width: 899px) {
  .grid-12 {
    column-gap: 14px;
  }
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

@media (max-width: 899px) {
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 12;
  }
}

.text-select-none {
  user-select: none;
}
