/* OG-010-Chris — Research Zone styles
 *
 * Multi-page strategic brief. Cream-first editorial palette,
 * left-aligned throughout, designed to scale into the future
 * design system without rework.
 */

:root {
  --cream:       #faf8f3;
  --paper:       #f4f0e8;
  --paper-deep:  #ece6d8;
  --ink:         #1f1f1f;
  --ink-soft:    #3a3a3a;
  --muted:       #6a6a6a;
  --line:        #e0dccf;
  --line-soft:   rgba(224, 220, 207, 0.55);
  --accent:      #5a6048;
  --accent-soft: #8a906f;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body:    Georgia, "Times New Roman", serif;
  --font-meta:    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter:       48px;
  --section-gap:  64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  /* In-page / programmatic scroll eases in and out (browser-native). */
  scroll-behavior: smooth;
  /* Sticky public header (~22px pad + wordmark line) */
  scroll-padding-top: 5.5rem;
  /* Keep OS rubber-band / momentum where the browser offers it */
  overscroll-behavior-y: auto;
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.62;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Soft edge bounce is applied via translate on html (site-motion.js) */
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ─── Site chrome ─────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.wordmark .tag {
  color: var(--muted);
  margin-left: 6px;
  font-size: 14px;
  letter-spacing: 0;
}
.wordmark .tag .sep {
  display: inline-block;
  margin-right: 6px;
  color: var(--line);
  font-weight: 300;
}
.topnav {
  display: flex;
  gap: 18px;
  font-family: var(--font-meta);
  font-size: 13px;
  color: var(--muted);
}
.topnav a { transition: color 0.18s ease; }
.topnav a:hover { color: var(--ink); }
.topnav a.active { color: var(--ink); font-weight: 500; }

/* Public site chrome (homepage + about/process/portfolio/contact).
   Research/curator pages keep the compact .topbar above; they do not use .public-topbar. */
.public-topbar .topbar-inner {
  padding: 22px var(--gutter);
}
.public-topbar .wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 500;
}
.public-topbar .topnav {
  gap: 0;
  font-size: 14px;
}
.public-topbar .topnav a {
  font-family: var(--font-meta);
  font-size: 14px;
  color: var(--muted);
  margin-left: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.public-topbar .topnav a:first-child { margin-left: 0; }
/* Hover must be obvious: muted→accent is too close in luminance. */
.public-topbar .topnav a:hover,
.public-topbar .topnav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.public-topbar .topnav a.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--accent);
}
/* Subtle curator entry — pipe + quiet “Sign in” after Contact (OGA-6 note) */
.public-topbar .topnav .nav-sep {
  display: inline-block;
  margin-left: 22px;
  margin-right: 0;
  color: var(--line);
  font-weight: 300;
  user-select: none;
  pointer-events: none;
  border-bottom: none;
  padding-bottom: 0;
}
.public-topbar .topnav a.nav-signin {
  margin-left: 14px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.72;
  border-bottom-color: transparent;
}
.public-topbar .topnav a.nav-signin:hover,
.public-topbar .topnav a.nav-signin:focus-visible {
  opacity: 1;
  color: var(--ink);
  border-bottom-color: var(--line);
}

/* ─── Page container ─────────────────────────────────────────── */

.page {
  max-width: 880px;
  margin: 0;
  padding: 72px var(--gutter) 96px;
}

/* Public site pages (About / Process / Portfolio / Contact) — shared orientation.
   Same max-width, padding, and left edge for title stack so pages feel identical. */
main.public-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
  box-sizing: border-box;
}
main.public-page > .eyebrow,
main.public-page .page-intro > .eyebrow {
  font-family: var(--font-meta);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
main.public-page > h1,
main.public-page .page-intro > h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 20ch;
}
main.public-page > .lede,
main.public-page .page-intro > .lede {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 44px;
  max-width: 64ch;
}
/* Prose column (About / Process body) sits on the same left edge as the title */
main.public-page.public-page--prose > h2,
main.public-page.public-page--prose > p,
main.public-page.public-page--prose > .quiet-aside,
main.public-page.public-page--prose > .stage {
  max-width: 64ch;
}
main.public-page.public-page--prose > h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 48px 0 14px;
  color: var(--ink);
}
main.public-page.public-page--prose > p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
main.public-page.public-page--prose > p strong {
  color: var(--ink);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 22ch;
}

h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin: 56px 0 16px;
  color: var(--ink);
}

h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 32px 0 10px;
  color: var(--ink);
}

p { margin: 0 0 18px; max-width: 64ch; }

.lede {
  font-size: 19.5px;
  font-style: italic;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.5;
  margin: 0 0 8px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: var(--section-gap) 0;
  border: 0;
}

/* ─── Components ─────────────────────────────────────────────── */

.callout {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 22px 28px;
  margin: 28px 0;
  max-width: 64ch;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { font-weight: 700; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 32px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.metric {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.metric .n {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.metric .l {
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.card {
  background: var(--paper);
  padding: 28px;
  margin: 20px 0;
}
.card .label {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.card h3 { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card dl { margin: 12px 0 0; display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; font-size: 14.5px; }
.card dt { color: var(--muted); font-family: var(--font-meta); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.card dd { margin: 0; }

.move-list { padding: 0; margin: 0; list-style: none; counter-reset: move; }
.move-list li {
  position: relative;
  padding: 22px 0 22px 64px;
  border-bottom: 1px solid var(--line);
  counter-increment: move;
}
.move-list li:last-child { border-bottom: 0; }
.move-list li::before {
  content: counter(move, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
  font-weight: 400;
}
.move-list h3 { margin: 0 0 6px; font-size: 20px; }
.move-list p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.move-list .tag {
  display: inline-block;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
}
td a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: color 0.18s ease, border-bottom-color 0.18s ease;
}
td a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
td a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.78em;
  letter-spacing: 0;
  color: var(--accent-soft);
  margin-left: 2px;
}
td a[target="_blank"]:hover::after { color: var(--ink); }

.sitemap {
  background: var(--paper);
  padding: 28px 32px;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  overflow-x: auto;
  margin: 28px 0;
  white-space: pre;
  border-left: 3px solid var(--accent);
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 24px 0;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 17px;
  max-width: 60ch;
}
blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
  font-family: var(--font-meta);
  letter-spacing: 0.04em;
}

ul.clean { padding-left: 0; list-style: none; }
ul.clean li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 15.5px;
}
ul.clean li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── Page navigation cards ─────────────────────────────────── */

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.nav-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.nav-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.nav-card .num {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.nav-card h3 { margin: 0 0 6px; font-size: 18px; }
.nav-card p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: none; }

/* ─── Prev / next ───────────────────────────────────────────── */

.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.prev-next a {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-meta);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.prev-next a:hover { color: var(--ink); }
.prev-next a .nav-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; }
.prev-next a .nav-title { color: var(--ink); font-family: var(--font-display); font-size: 17px; }
.prev-next .next { text-align: right; align-items: flex-end; }
.prev-next .placeholder { visibility: hidden; }

/* ─── Footer ────────────────────────────────────────────────── */

.pagefoot {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 32px var(--gutter);
  margin-top: 64px;
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pagefoot p { margin: 0; }
.pagefoot a { border-bottom: 1px solid var(--line); }
.pagefoot a:hover { border-bottom-color: var(--accent); color: var(--ink); }

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 760px) {
  :root { --gutter: 24px; --section-gap: 48px; }
  body { font-size: 16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  .lede { font-size: 17.5px; }
  .topnav { display: none; }
  .topbar-inner { grid-template-columns: 1fr; }
  .card dl { grid-template-columns: 1fr; }
  .card dt { padding-top: 0; }
  .move-list li { padding: 18px 0 18px 0; }
  .move-list li::before { position: static; display: block; margin-bottom: 8px; }
}
