/* ============================================================
   REEF & REED — design tokens
   A twelve-room eco retreat on a mangrove estuary.
   Art direction: tide charts, field notes, wet greens and
   silt greys. The site behaves like a scroll-driven journal.
   ============================================================ */

:root {
  --silt-950: #0c1210;
  --silt-900: #121a17;
  --silt-800: #1a2420;
  --silt-700: #26332d;
  --silt-600: #3a4a42;

  --reed-500: #7d9a6d;
  --reed-400: #9bb78a;
  --reed-300: #bcd0ac;

  --tide-500: #4a8c8a;
  --tide-300: #8fc4c0;

  --sand-100: #eae4d8;
  --sand-200: #d6cdbb;
  --sand-400: #a99d85;

  --fg:      #eae4d8;
  --fg-dim:  #a9b3ac;
  --fg-faint:#6d7b73;

  --display: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", Inter, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --step--1: clamp(0.78rem, 0.75rem + 0.12vw, 0.85rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.22vw, 1.08rem);
  --step-1:  clamp(1.15rem, 1.03rem + 0.52vw, 1.5rem);
  --step-2:  clamp(1.45rem, 1.2rem + 1.1vw, 2.3rem);
  --step-3:  clamp(1.9rem, 1.35rem + 2.5vw, 3.6rem);
  --step-4:  clamp(2.6rem, 1.4rem + 5.2vw, 6.5rem);
  --step-5:  clamp(3.2rem, 1.2rem + 8.5vw, 10rem);

  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.75rem;
  --s-4: 3rem;   --s-5: 5rem; --s-6: 8rem; --s-7: 12rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gut: clamp(1.15rem, 4vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
body {
  background: var(--silt-950);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -0.022em; }
::selection { background: var(--reed-500); color: var(--silt-950); }
:focus-visible { outline: 2px solid var(--reed-400); outline-offset: 3px; }

.wrap { max-width: 82rem; margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); }
.dim { color: var(--fg-dim); }

.eyebrow {
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--reed-400);
}

/* scroll reveal */
[data-rise] {
  opacity: 0; transform: translateY(1.6rem);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
[data-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-rise] { opacity: 1; transform: none; } }
