/* =========================================================================
   BEACHES FOR KINGS — "The Editorial" design system
   Marcellus (display) + Mulish (body/labels), warm white field,
   hairline rules, deep sea teal accent. Single fixed palette.
   ========================================================================= */

:root {
  /* ---- Editorial source tokens ---- */
  --bg:        #fdfcfa;   /* warm paper page field */
  --sand:      #f4f0e8;   /* tonal panel / media bg */
  --sand-deep: #ece6db;   /* deeper tonal strip */
  --paper:     #ffffff;   /* card surface */
  --ink:       #15181a;   /* primary text */
  --ink-soft:  #4d5357;   /* soft body text */
  --muted:     #8a8f93;   /* labels / eyebrows / meta */
  --accent:    #1d5d63;   /* deep sea teal */
  --accent-deep:#16494e;
  --line:      #e7e5e0;   /* hairline rules */
  --line-soft: #efeae1;

  /* ---- Compatibility aliases (existing pages reference these names) ---- */
  --ocean:     var(--accent);
  --ocean-deep:#13383c;   /* deep teal section field */
  --gold:      var(--accent);
  --gold-deep: var(--accent-deep);

  --font-display: "Marcellus", Georgia, serif;
  --font-ui:      "Mulish", -apple-system, system-ui, sans-serif;
  --font-mono:    "Mulish", -apple-system, system-ui, sans-serif;

  --maxw: 1320px;
  --gutter: clamp(18px, 5vw, 48px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

#root { isolation: isolate; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ---------- shared utilities ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.serif { font-family: var(--font-display); font-weight: 400; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

/* dagger cross used as the brand "for" separator */
.cross { color: var(--accent); font-style: normal; padding: 0 0.12em; }

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

/* ---------- styled photo placeholder (context tiles only) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(200deg, var(--accent) 0%, var(--accent-deep) 70%, #0f3034 100%);
  color: #f3f7f6;
}
.ph[data-tone="sand"] {
  background:
    linear-gradient(200deg, var(--sand) 0%, var(--sand-deep) 70%, #d9d0bf 100%);
  color: var(--ink);
}
.ph__tag {
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20,30,32,0.34);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 4px 9px;
  border-radius: 2px;
  backdrop-filter: blur(3px);
}

/* ---------- buttons (editorial: squared, letterspaced) ---------- */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 0;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .28s ease, color .28s ease, border-color .28s ease;
  background: var(--ink);
  color: var(--bg);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--gold { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--gold:hover { background: transparent; color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

.btn .arr { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.btn:hover .arr { transform: translateX(4px); }

/* section rhythm */
.section { padding-block: clamp(56px, 7vw, 110px); }
.section--tight { padding-block: clamp(36px, 5vw, 70px); }

.kicker-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4.5vw, 60px);
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* photo credit (small, unobtrusive) */
.imgcred {
  position: absolute; left: 10px; bottom: 9px; z-index: 4;
  max-width: calc(100% - 20px);
  font-family: var(--font-ui);
  font-size: 9px; line-height: 1.25; letter-spacing: 0.01em;
  text-transform: none; font-weight: 400;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 1px 2px rgba(15,24,26,0.6);
  pointer-events: none;
}
.imgcred--below {
  position: static; display: inline-block; margin-top: 6px;
  max-width: none; color: var(--muted); text-shadow: none;
}
