/* ============================================================
   MPI — Managed Personal Intelligence
   Editorial / journal voice
   ============================================================ */

:root {
  --bg: #faf8f3;
  --bg-2: #f3efe6;
  --bg-3: #ffffff;
  --line: #d9d3c4;
  --line-2: #b8b0a0;
  --text: #1a1a1a;
  --text-dim: #4a4a4a;
  --text-faint: #8a8579;
  --accent: #2d2a6b;
  --accent-2: #b04a3a;
  --serif: 'Fraunces', 'Iowan Old Style', 'Hoefler Text', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --max: 1080px;
  --measure: 640px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.logo-mark {
  color: var(--accent);
  font-size: 16px;
}
.logo-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--text-faint);
  letter-spacing: 0;
}
.site-header nav {
  display: flex;
  gap: 32px;
}
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.site-header nav a:hover { color: var(--accent); }

/* ---- Section primitives ---- */
section { padding: 130px 0; }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 36px;
  display: inline-block;
  letter-spacing: 0.01em;
}
.eyebrow::before { content: '— '; }

.section-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-tag::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}
h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(46px, 7.5vw, 88px);
  margin-bottom: 44px;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 40px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

p { color: var(--text-dim); }
p strong { color: var(--text); font-weight: 600; }
p em { font-family: var(--serif); font-style: italic; }

/* ---- Ornament rule (between major movements) ---- */
hr.ornament {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent);
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}
hr.ornament::after {
  content: '◇';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-family: var(--serif);
}

/* ---- Hero ---- */
.hero {
  padding: 120px 0 160px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  max-width: 12ch;
}
.hero .lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  max-width: 640px;
  color: var(--text);
  font-weight: 400;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
}
.btn-large {
  padding: 20px 36px;
  font-size: 15px;
}

/* ---- Terrain (the running prose) ---- */
.terrain {
  border-bottom: 1px solid var(--line);
}
.terrain .prose {
  max-width: var(--measure);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
}
.terrain .prose p + p { margin-top: 24px; }
.terrain .prose p:first-child::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 72px;
  line-height: 0.85;
  padding: 8px 14px 0 0;
  font-weight: 500;
  color: var(--accent);
}

/* ---- Definition ---- */
.definition {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.big-quote {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.35;
  color: var(--text);
  font-weight: 400;
  max-width: 820px;
  margin-bottom: 56px;
  font-style: italic;
  letter-spacing: -0.015em;
}
.big-quote::before {
  content: '\201C';
  font-size: 1.4em;
  line-height: 0;
  color: var(--accent);
  vertical-align: -0.25em;
  margin-right: 4px;
}
.big-quote::after {
  content: '\201D';
  font-size: 1.4em;
  line-height: 0;
  color: var(--accent);
  vertical-align: -0.25em;
  margin-left: 2px;
}
.parallel {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.95;
  color: var(--text-dim);
  font-style: italic;
}
.parallel strong {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ---- Inquiry (numbered, journal-list) ---- */
.inquiry {
  border-bottom: 1px solid var(--line);
}
.inquiry .prose-lead {
  font-family: var(--serif);
  font-size: 20px;
  max-width: 720px;
  margin-bottom: 72px;
  color: var(--text);
  line-height: 1.55;
}
.inquiries {
  list-style: none;
  border-top: 1px solid var(--line);
}
.inquiries > li {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.inquiries > li:last-child { border-bottom: 0; }
.inquiry-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inquiry-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 0.02em;
  font-weight: 400;
}
.inquiry-head h3 {
  margin: 0;
  font-size: 32px;
}
.inquiry-body p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  max-width: 56ch;
}

/* ---- Correspondence ---- */
.correspondence {
  text-align: center;
  padding: 160px 0;
}
.correspondence h2 {
  margin-left: auto;
  margin-right: auto;
}
.correspondence .section-tag { display: inline-flex; }
.correspondence .prose-lead {
  font-family: var(--serif);
  font-size: 22px;
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--text);
  line-height: 1.5;
}
.footnote {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  font-family: var(--serif);
  font-style: italic;
}

/* ---- Footer ---- */
.site-footer {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.footer-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--text-faint);
  font-size: 16px;
}
.footer-meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  section { padding: 90px 0; }
  .hero { padding: 70px 0 110px; }
  .container { padding: 0 24px; }
  .site-header .container { height: auto; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; gap: 12px; }
  .logo-sub { display: none; }
  .site-header nav { gap: 20px; flex-wrap: wrap; }
  .inquiries > li { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .inquiry-head { flex-direction: row; align-items: baseline; gap: 16px; }
  .inquiry-head h3 { font-size: 26px; }
  .footer-italic { display: none; }
}
