/* Participio — quiet academic editorial */

:root {
  --bg: #fafaf7;
  --ink: #0d2818;
  --ink-2: #2a3d31;
  --muted: #6b7a6f;
  --rule: #d8d6cc;
  --rule-soft: #e8e6dc;
  --accent: #3d6b4a;
  --accent-soft: #b8c9b0;
  --paper: #f1efe6;
  --max: 1280px;
  --gutter: 32px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

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

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

h1, h2, h3, h4 {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: pretty;
  color: var(--ink);
}

h1 { font-size: clamp(48px, 6.5vw, 96px); letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: 18px; font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: 0; }

p { text-wrap: pretty; }

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

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  position: relative;
  margin-right: 4px;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.55;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.22;
}
.brand-em {
  font-style: italic;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.nav-links a {
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}

/* ── EYEBROW / META TYPE ──────────────────────────────────── */
.eyebrow {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-num {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-right: 12px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn .arrow { font-size: 16px; transition: transform 0.18s; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  margin-top: 120px;
  padding: 64px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── PAGE HEADER (non-home) ───────────────────────────────── */
.page-header {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule-soft);
}
.page-header .eyebrow { margin-bottom: 24px; display: block; }
.page-header h1 {
  max-width: 14ch;
  margin-bottom: 32px;
}
.page-header .lede {
  font-size: 22px;
  line-height: 1.45;
  max-width: 56ch;
  color: var(--ink-2);
  font-family: 'EB Garamond', serif;
  font-style: italic;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
section { padding: 96px 0; }
section + section { padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head h2 { max-width: 16ch; }
.section-head .lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 48ch;
}

/* ── PLACEHOLDER IMAGES ───────────────────────────────────── */
.ph {
  position: relative;
  background: var(--paper);
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0,
      transparent 14px,
      color-mix(in srgb, var(--ink) 4%, transparent) 14px,
      color-mix(in srgb, var(--ink) 4%, transparent) 15px);
  border: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ph::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px dashed color-mix(in srgb, var(--ink) 15%, transparent);
}
.ph span { position: relative; padding: 6px 12px; background: var(--bg); }

/* ── DOCUMENT-STYLE PLACEHOLDERS ──────────────────────────── */
.doc {
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  box-shadow: 0 1px 0 var(--rule-soft);
}
.doc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.doc-line {
  height: 6px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 2px;
}
.doc-line.short { width: 60%; }
.doc-line.med { width: 85%; }
.doc-line.title { height: 10px; background: var(--ink); width: 70%; margin-bottom: 12px; }

/* ── UTILITY ──────────────────────────────────────────────── */
.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.divider-soft { border-top: 1px solid var(--rule-soft); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { gap: 18px; font-size: 12.5px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
