/* =========================================================
   THE PAUSE, PALOLEM — Design System
   Sun-faded palette · quiet, warm, cinematic
   ========================================================= */

:root {
  /* Palette — v2 Sun-faded */
  --shell: #fbeedc;      /* base — warmed cream */
  --shell-deep: #f3e2cc; /* slightly deeper shell for panels */
  --tan: #d7b391;        /* natural, soft, everyday */
  --clay: #b0714e;       /* earthy warmth, grounded */
  --clay-deep: #96593a;
  --olive: #5e604b;      /* muted green, rooted */
  --olive-deep: #494b39;
  --teal: #6bafa7;       /* the pop — use sparingly */
  --teal-deep: #4f938b;
  --ink: #3a3a36;        /* text only */
  --ink-soft: #6a6a63;
  --ink-faint: #9a9a90;

  /* Surfaces */
  --bg: var(--shell);
  --line: rgba(58, 58, 54, 0.14);
  --line-soft: rgba(58, 58, 54, 0.08);

  /* Typography */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  --step-4: clamp(2.8rem, 2rem + 4vw, 5.2rem);
  --step-5: clamp(3.6rem, 2.2rem + 7vw, 8rem);

  /* Spacing rhythm */
  --space-section: clamp(4.5rem, 3rem + 8vw, 10rem);
  --gutter: clamp(1.25rem, 0.8rem + 3vw, 3.5rem);
  --measure: 62ch;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::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: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--teal); color: var(--shell); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--clay);
}
.eyebrow--muted { color: var(--ink-soft); }
.eyebrow--teal { color: var(--teal-deep); }

.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  max-width: 32ch;
}
p { max-width: var(--measure); }
.prose p + p { margin-top: 1.2em; }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 920px; }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  width: 100%;
}

/* Semicolon brand mark accent */
.semi { color: var(--teal); font-family: var(--font-display); font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 1.05em 1.9em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--shell); border-color: var(--ink); }
.btn:hover::after { transform: translateY(0); }
.btn--filled {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--shell);
}
.btn--filled::after { background: var(--clay-deep); }
.btn--filled:hover { color: var(--shell); border-color: var(--clay-deep); }
.btn--light { color: var(--shell); border-color: rgba(251,238,220,0.6); }
.btn--light::after { background: var(--shell); }
.btn--light:hover { color: var(--ink); }

/* Text link with underline draw */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink);
  padding-bottom: 0.35em;
  background-image: linear-gradient(var(--clay), var(--clay));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease), color 0.4s var(--ease);
}
.link:hover { background-size: 100% 1px; color: var(--clay); }
.link .arrow { transition: transform 0.5s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-slow), transform 1.1s var(--ease-slow);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-mask { overflow: hidden; }
.reveal-mask > * {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-slow);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-mask.is-in > * { transform: none; }

/* Image ken-burns */
.kenburns { overflow: hidden; }
.kenburns img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.kenburns.is-in img { transform: scale(1); }

/* Warm cinematic grade for raw photos */
.grade { position: relative; overflow: hidden; background: var(--olive-deep); }
.grade > img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) contrast(1.02) brightness(1.02) sepia(0.12);
}
.grade::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(58,58,54,0.15) 0%, rgba(58,58,54,0) 30%, rgba(58,58,54,0.05) 70%, rgba(58,58,54,0.45) 100%),
    radial-gradient(120% 90% at 50% 20%, rgba(176,113,78,0.10), rgba(94,96,75,0.18));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.grade--soft::after { opacity: 0.6; }

/* Utility */
.center { text-align: center; }
.mono-num { font-variant-numeric: tabular-nums; }
.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;
}
