:root {
  --bg: #FFFFFF;
  --ink: #1A1614;
  --ink-soft: #5A5550;
  --ink-muted: #8B847C;
  --rule: rgba(26, 22, 20, 0.10);
  --rule-strong: rgba(26, 22, 20, 0.22);
  --field-bg: #FAFAF6;
  --accent: #787FFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
a:hover { color: var(--ink); }

/* ============ NAV ============ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.85rem 0;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--ink); }
.logo img {
  display: block;
  height: 40px;
  width: auto;
}
@media (max-width: 640px) {
  .logo img { height: 32px; }
}
.logo span {
  font-style: italic;
  color: var(--accent);
}

.nav-cta {
  font-family: 'Geist', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  background: var(--ink);
  padding: 0.625rem 1.4rem;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.nav-cta:hover { opacity: 0.85; color: white; transform: translateY(-1px); }

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3.5rem;
}

.page-eyebrow {
  font-family: 'Geist', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.page-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.page-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.page-subtitle {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ============ CONTENT ============ */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 6rem;
}

.content > p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.content strong { color: var(--ink); font-weight: 600; }
.content em { font-style: italic; }

/* Section blocks */
.section {
  margin: 3.5rem 0;
}

.section-number {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: 'Fraunces', serif;
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  scroll-margin-top: 2rem;
}

.section p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section p:last-child { margin-bottom: 0; }

.section ul {
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
}

.section li {
  margin-bottom: 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.section li::marker { color: var(--accent); }

/* Sub-list inside li */
.section li ul {
  margin: 0.5rem 0 0.5rem 0;
}

/* Legal emphasis blocks (the ALL CAPS sections) */
.legal-emphasis {
  background: var(--field-bg);
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink);
  border-radius: 0 4px 4px 0;
  letter-spacing: 0.005em;
}
.legal-emphasis p {
  margin-bottom: 0.85rem;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.6;
}
.legal-emphasis p:last-child { margin-bottom: 0; }

/* Contact block at end */
.contact-block {
  background: var(--field-bg);
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
  margin-top: 1rem;
}
.contact-block p { margin-bottom: 0.5rem; color: var(--ink); }
.contact-block p:last-child { margin-bottom: 0; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  margin-left: 1rem;
}
.footer-links a:hover { color: var(--ink); }

.footer-legal {
  display: flex;
  gap: 1.5rem;
  font-size: 0.825rem;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--ink); }

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .page-header { padding: 2rem 0 2.5rem; margin-bottom: 2.5rem; }
  .content { padding-bottom: 4rem; }
  .section { margin: 2.75rem 0; }
  .section-heading { font-size: 1.375rem; }
  footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
