/* ============================================================
   THE PREMISE — v4 Design System
   "Premise at Scale"
   ============================================================ */

:root {
  --ink:        #0a0a0a;
  --ink-soft:   #1a1a1a;
  --paper:      #f6f3ee;
  --paper-warm: #ede8df;
  --rule:       #d9d3c7;
  --muted:      #6b6359;
  --gold:       #b8926a;
  --gold-deep:  #8a6a4a;

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:  'DM Sans', 'Inter', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "ss01";
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184,146,106,.04) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(10,10,10,.03) 0, transparent 40%);
  mix-blend-mode: multiply;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 500; }

p { max-width: var(--measure); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 60ch;
}

a { color: inherit; }
a.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: border-color .25s, color .25s;
}
a.link:hover { color: var(--gold-deep); border-color: var(--ink); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.rule { height: 1px; background: var(--rule); border: 0; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; z-index: 2; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--paper-warm { background: var(--paper-warm); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: var(--gold); }
.section--ink h2, .section--ink h3 { color: var(--paper); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,238,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 0.5rem;
}
.nav__brand .mark {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold-deep);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav__links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav__links a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.25rem 0;
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}
.nav__cta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .25rem; }

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--rule);
  }
  .nav.open .nav__cta { display: inline-block; align-self: start; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--ghost { border-color: var(--rule); color: var(--ink-soft); }
.btn--ghost:hover { background: var(--paper-warm); color: var(--ink); border-color: var(--ink); }

/* ===== Page header (interior pages) ===== */
.page-header {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.page-header__crumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.page-header__crumb a { color: var(--muted); text-decoration: none; }
.page-header__crumb a:hover { color: var(--ink); }
.page-header h1 { max-width: 18ch; }
.page-header__lede { margin-top: 1.5rem; max-width: 62ch; }

/* ===== Practice cards (grid on home + practice index) ===== */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 900px) { .practice-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .practice-grid { grid-template-columns: 1fr; } }

.practice-card {
  background: var(--paper);
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: var(--ink);
  transition: background .25s;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 280px;
}
.practice-card:hover { background: var(--paper-warm); }
.practice-card__tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.practice-card h3 { font-family: var(--serif); font-weight: 500; max-width: 14ch; }
.practice-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.practice-card__arrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.1rem;
}

/* ===== Inline entry list (used on Insights and Career library) ===== */
.entry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  padding-top: 0.4rem;
}
.entry__body h3 { margin-bottom: 0.6rem; }
.entry__body p { color: var(--ink-soft); margin-bottom: 0.75rem; }
.entry__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .entry__num { padding-top: 0; }
}

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  line-height: 1.3;
  max-width: 32ch;
  padding: 2rem 0 2rem 2rem;
  border-left: 2px solid var(--gold);
  color: var(--ink-soft);
}

/* ===== Capability list (used on practice subpages) ===== */
.cap-list { list-style: none; color: var(--ink-soft); }
.cap-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}
.cap-list li:first-child { border-top: 1px solid var(--rule); }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #c8c1b3;
  padding: 4rem 0 2rem;
  position: relative; z-index: 2;
}
.footer h4 { color: var(--paper); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #2a2a2a;
}
.footer__brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--paper); margin-bottom: 0.5rem; }
.footer__brand-tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { color: #c8c1b3; text-decoration: none; font-size: 0.92rem; transition: color .2s; }
.footer ul a:hover { color: var(--gold); }
.footer__legal {
  margin-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.72rem; color: #6b6259; letter-spacing: 0.08em;
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__legal { flex-direction: column; gap: 1rem; align-items: start; }
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ===== Utility ===== */
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; } .mb-4 { margin-bottom: 4rem; }
