/* ============================================================
   Jill King — shared styles
   Palette: plum #1C1432, gold #C8A97E, cream #F5F0EA,
            charcoal #3D3D3D, amethyst #7B5EA7, terracotta #E8856A
   ============================================================ */

:root {
  --plum: #1C1432;
  --plum-soft: #2A1F47;
  --gold: #C8A97E;
  --gold-deep: #A8895E;
  --cream: #F5F0EA;
  --cream-warm: #EFE7DC;
  --charcoal: #3D3D3D;
  --charcoal-soft: #6B6B6B;
  --amethyst: #7B5EA7;
  --terracotta: #E8856A;

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1280px;
  --gutter: clamp(24px, 5vw, 80px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--plum); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.98;
  color: var(--plum);
}
.eyebrow {
  font-family: var(--mono), var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.italic { font-style: italic; }

h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 234, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(28, 20, 50, 0.08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--plum);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  transform: translateY(-3px);
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  align-items: baseline;
}
.nav-links a {
  font-size: 14px;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 2px;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--plum); }
.nav-links a.active { color: var(--plum); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
}
.nav-cta {
  font-size: 13px !important;
  background: var(--plum);
  color: var(--cream) !important;
  padding: 10px 16px !important;
  border-radius: 999px;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--plum-soft); }

/* ---------- Layout ---------- */
section { padding: clamp(64px, 9vw, 128px) var(--gutter); }
.wrap { max-width: var(--max); margin: 0 auto; }
.tight { max-width: 880px; margin: 0 auto; }
.tighter { max-width: 720px; margin: 0 auto; }

.section-dark {
  background: var(--plum);
  color: var(--cream);
}
.section-dark .display { color: var(--cream); }
.section-dark .eyebrow { color: var(--gold); }

.divider {
  height: 1px;
  background: rgba(28, 20, 50, 0.12);
  margin: 0;
}
.section-dark + .divider, .divider + .section-dark { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--plum);
  color: var(--cream);
}
.btn-primary:hover { background: var(--plum-soft); transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--plum);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--cream); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--plum);
  border: 1px solid rgba(28, 20, 50, 0.2);
}
.btn-ghost:hover { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.section-dark .btn-ghost { color: var(--cream); border-color: rgba(245, 240, 234, 0.25); }
.section-dark .btn-ghost:hover { background: var(--gold); color: var(--plum); border-color: var(--gold); }

.arrow::after {
  content: "→";
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow::after, a.arrow:hover::after { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer {
  background: var(--plum);
  color: var(--cream);
  padding: 80px var(--gutter) 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  font-family: var(--mono), var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-brand .italic { color: var(--gold); }
.footer p, .footer a { color: rgba(245, 240, 234, 0.78); font-size: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 234, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: rgba(245, 240, 234, 0.5);
  letter-spacing: 0.04em;
}

/* ---------- Page header (sub-page hero) ---------- */
.page-hero {
  padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(48px, 7vw, 88px);
  background: var(--cream);
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--plum);
  font-weight: 400;
  margin: 0;
}
.page-hero h1 .italic { color: var(--terracotta); }
.page-hero .lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--charcoal);
  max-width: 720px;
  margin-top: 32px;
}

/* ---------- Reusable bits ---------- */
.kicker-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.kicker-row .eyebrow { flex-shrink: 0; }
.kicker-row .rule {
  flex: 1;
  height: 1px;
  background: rgba(28, 20, 50, 0.15);
  min-width: 60px;
}
.section-dark .kicker-row .rule { background: rgba(245, 240, 234, 0.2); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links a.nav-cta { display: inline-flex; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
