/* ============================================================
   Emily Adler / EA Consulting — shared design system
   ============================================================ */

:root,
[data-palette="warm"] {
  /* Original — Cream + Navy + Orange */
  --cream: #f5efe4;
  --cream-2: #ede5d4;
  --cream-3: #e4d9c3;
  --paper: #faf6ee;
  --navy: #1a2942;
  --navy-2: #2a3a55;
  --navy-soft: #46546e;
  --orange: #d4633a;
  --orange-soft: #e0865f;
  --orange-deep: #b94e26;
  --ink: #1a2942;
  --ink-mute: #5a6478;
  --rule: rgba(26, 41, 66, 0.14);
  --rule-strong: rgba(26, 41, 66, 0.32);
}

[data-palette="bone"] {
  /* 1 — Bone + Charcoal + Persimmon */
  --cream: #f0eae0;
  --cream-2: #e7e0d2;
  --cream-3: #d9d2c2;
  --paper: #f7f2e8;
  --navy: #1f2329;
  --navy-2: #2c3038;
  --navy-soft: #4a4f58;
  --orange: #c2521e;
  --orange-soft: #d97a4a;
  --orange-deep: #9d3e10;
  --ink: #1f2329;
  --ink-mute: #5a5e66;
  --rule: rgba(31, 35, 41, 0.14);
  --rule-strong: rgba(31, 35, 41, 0.32);
}

[data-palette="aubergine"] {
  /* 3 — Linen + Aubergine + Apricot */
  --cream: #f3ede1;
  --cream-2: #ebe3d3;
  --cream-3: #ddd2bd;
  --paper: #f9f4e9;
  --navy: #3a2942;
  --navy-2: #4b3754;
  --navy-soft: #6a5573;
  --orange: #d98a5c;
  --orange-soft: #e6a684;
  --orange-deep: #b96b3f;
  --ink: #3a2942;
  --ink-mute: #6e5f72;
  --rule: rgba(58, 41, 66, 0.14);
  --rule-strong: rgba(58, 41, 66, 0.32);
}

:root {

  /* Type */
  --font-serif: "Fraunces", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Menlo", monospace;
}

[data-type="editorial"] {
  --font-serif: "Newsreader", "Georgia", serif;
  --font-sans: "Inter", -apple-system, sans-serif;
}

[data-type="modernist"] {
  --font-serif: "Instrument Serif", "Georgia", serif;
  --font-sans: "Geist", -apple-system, sans-serif;
}

[data-bg="paper"] {
  --cream: #fcfcfa;
  --cream-2: #f1f0ec;
  --cream-3: #e6e4de;
  --paper: #ffffff;
}

[data-bg="ink"] {
  --cream: #15171a;
  --cream-2: #1d1f23;
  --cream-3: #2a2c31;
  --paper: #1d1f23;
  --navy: #f1ede4;
  --navy-2: #e6e0d2;
  --navy-soft: #b8b2a4;
  --ink: #f1ede4;
  --ink-mute: #b8b2a4;
  --rule: rgba(241, 237, 228, 0.16);
  --rule-strong: rgba(241, 237, 228, 0.34);
}

[data-bg="navy"] {
  --cream: #1a2942;
  --cream-2: #243352;
  --cream-3: #2e3d5e;
  --paper: #1a2942;
  --navy: #f5efe4;
  --navy-2: #ede5d4;
  --navy-soft: #b8b2a4;
  --ink: #f5efe4;
  --ink-mute: rgba(245, 239, 228, 0.78);
  --rule: rgba(245, 239, 228, 0.16);
  --rule-strong: rgba(245, 239, 228, 0.34);
}

/* Dark-navy variant: engagement cards stay light with all-black text */
[data-bg="navy"] .v-sp-service {
  background: #f5efe4;
  color: #000;
  border-color: #f5efe4;
}
[data-bg="navy"] .v-sp-service h3 { color: #000; }
[data-bg="navy"] .v-sp-service p { color: #000; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "cv11";
}

::selection {
  background: var(--orange);
  color: var(--paper);
}

/* ---------- Typography utility ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow.ink {
  color: var(--ink-mute);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--navy);
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-variation-settings: "opsz" 120, "SOFT" 40;
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

em, .italic {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--orange-deep);
}

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

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--rule-strong);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(26, 41, 66, 0.04);
}

.btn-orange {
  background: var(--orange);
  color: var(--paper);
}
.btn-orange:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-li-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  border-radius: 4px;
  background: #0a66c2;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

a.text-link {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
  transition: all 0.2s ease;
}
a.text-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

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

.section-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.section-label .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--orange);
}

/* ---------- Brand mark ---------- */
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  border-bottom: none;
}
.brand-mark-serif {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-mark-sans {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 4px;
}

/* ---------- Logo treatments ---------- */
/* Wordmark-only default keeps stacked layout above.
   Lockup: icon to the left, words stacked beside.
   Icon-only: just the mark, sized larger. */
.brand-mark-icon {
  display: block;
  width: 44px;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.brand-mark-words {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand-mark-lockup {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.brand-mark-iconmode {
  flex-direction: row;
  align-items: center;
}
.brand-mark-icon-lg {
  width: 64px;
}

/* Firm-only lockup — no "Emily Adler" line; show icon + "Consulting" larger. */
.brand-mark-firmonly {
  gap: 12px;
  align-items: center;
}
.brand-mark-firmonly .brand-mark-icon {
  width: 56px;
}
.brand-mark-firmonly-word {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1;
}
/* On inverted (navy) backgrounds, swap the navy logo for the cream tint. */
[data-bg="navy"] .brand-mark-icon,
[data-bg="ink"]  .brand-mark-icon,
.is-inverted     .brand-mark-icon {
  content: url("assets/ea-icon-cream.png");
}

/* ---------- Decorative shapes ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.headshot-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 50% / 40%;
  overflow: hidden;
  background: var(--cream-2) url("assets/emily-adler.png") center 18% / cover no-repeat;
  background-image:
    url("assets/emily-adler.png"),
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 14px,
      rgba(26, 41, 66, 0.05) 14px,
      rgba(26, 41, 66, 0.05) 15px
    );
  background-size: cover, auto;
  background-position: center 18%, 0 0;
  background-repeat: no-repeat, repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

.headshot-frame::after {
  content: "";
}

.v-sp-headshot {
  background-position: center 22%, 0 0 !important;
}

/* ---------- Animated subtle entrance ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rise {
  animation: riseIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---------- Scrollbar polish ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: var(--cream-3);
  border-radius: 999px;
  border: 2px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover { background: var(--navy-soft); }
