/* ==========================================================================
   Deep Waters — base.css
   Reset, element defaults, typography, focus states.
   Logical properties only — no left/right anywhere.
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + var(--sp-5));
  background-color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* No overflow-x:hidden on html or body: it turns the body into a scroll
   container and can silently break `position: sticky` on the header and on the
   booking page's aside. Horizontal overflow is contained where it is created
   instead — see the hero's and CTA band's own overflow. */

/* --- Headings ------------------------------------------------------------
   Display type carries the adventure: heavy, tight, large. Sentence case is a
   copy rule — never add text-transform here. */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-display);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: var(--lh-display);
}

/* The hero's h1 is the loudest thing on the site */
.hero h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.015em;
}

h4 {
  font-size: var(--fs-lead);
  letter-spacing: -0.01em;
}

/* --- Text --------------------------------------------------------------- */

p,
li,
dd,
dt,
figcaption,
label {
  text-wrap: pretty;
}

p {
  max-inline-size: 66ch;
}

/* Flow rhythm. Only .prose had this, so every other consecutive paragraph on
   the site — the home page's descent copy, card bodies, form status panels —
   ran together with no gap at all. */
p + p,
p + ul,
p + ol,
ul + p,
ol + p,
p + dl,
dl + p {
  margin-block-start: var(--sp-5);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.58;
  color: var(--text);
  max-inline-size: 54ch;
}

.section--light .lead {
  color: var(--text-on-light);
}

small,
.small {
  font-size: var(--fs-small);
}

.muted {
  color: var(--text-muted);
}

strong,
b {
  font-weight: 600;
  color: var(--text);
}

.section--light strong,
.section--light b {
  color: var(--text-on-light);
}

em {
  font-style: italic;
}

/* Depths, grades, durations, section labels. The outfitter's voice: small,
   uppercase, widely tracked, heavier than the body. */
.data {
  font-family: var(--font-body);
  font-weight: var(--data-weight);
  font-size: var(--fs-label);
  letter-spacing: var(--data-tracking);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* Prices, times and Latin brand names inside Hebrew copy */
[dir="ltr"] {
  unicode-bidi: isolate;
}

/* --- Links --------------------------------------------------------------
   Underlines are drawn thin and offset so long prose stays readable, and they
   thicken on hover rather than appearing from nowhere. */

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition:
    color var(--dur-fast) var(--ease),
    text-decoration-color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

/* --- Lists -------------------------------------------------------------- */

ul,
ol {
  padding-inline-start: 1.35em;
}

li + li {
  margin-block-start: var(--sp-3);
}

li::marker {
  color: var(--river-300);
}

.section--light li::marker {
  color: var(--river-500);
}

.list-plain {
  list-style: none;
  padding-inline-start: 0;
}

/* --- Media -------------------------------------------------------------- */

img,
picture,
video,
svg {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

img {
  /* Photographs never mirror in RTL */
  transform: none;
  background-color: var(--rock-850);
}

figure {
  margin: 0;
}

figcaption {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-block-start: var(--sp-3);
  line-height: 1.5;
}

.section--light figcaption {
  color: var(--muted-on-light);
}

/* --- Forms -------------------------------------------------------------- */

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* --- Tables ------------------------------------------------------------- */

table {
  border-collapse: collapse;
  inline-size: 100%;
}

th {
  text-align: start;
  font-weight: 600;
}

/* --- Rules -------------------------------------------------------------- */

hr {
  border: 0;
  border-block-start: var(--border) solid var(--hairline);
  margin-block: var(--sp-7);
}

/* --- Focus --------------------------------------------------------------
   Two-tone ring: the river accent plus a dark halo, so it stays visible over
   photography, limestone and charcoal alike. */

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
  box-shadow: 0 0 0 5px rgb(10 14 16 / 55%);
}

.section--light :focus-visible {
  outline-color: var(--river-500);
  box-shadow: 0 0 0 5px rgb(250 247 241 / 70%);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --- Skip link ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  inset-block-start: var(--sp-3);
  inset-inline-start: var(--sp-3);
  z-index: 100;
  background-color: var(--ember-500);
  color: var(--cta-text);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tr-btn);
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateY(-250%);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--cta-text);
}

/* --- Visually hidden, still read aloud ---------------------------------- */

.vh {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Spacing utilities --------------------------------------------------
   Block-start only, only from the scale. .mt-3 exists because the markup uses
   it — it was previously missing, so those gaps silently collapsed. */

.mt-3 {
  margin-block-start: var(--sp-3);
}

.mt-4 {
  margin-block-start: var(--sp-4);
}

.mt-5 {
  margin-block-start: var(--sp-5);
}

.mt-6 {
  margin-block-start: var(--sp-6);
}

.mt-7 {
  margin-block-start: var(--sp-7);
}

/* --- Selection ---------------------------------------------------------- */

::selection {
  background-color: var(--river-600);
  color: #fff;
}

/* --- Scrollbar, dark to match the ground -------------------------------- */

@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: var(--rock-600) var(--rock-950);
  }
}
