/* ========================================================= */
/* DESIGN TOKENS */
/* ========================================================= */

:root {
  --bg-main: #f8fafc;
  --bg-soft: #eef2f7;
  --bg-white: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;

  --accent: #1e3a8a;
  --accent-soft: rgba(30, 58, 138, 0.08);

  --radius: 14px;

  --max-width: 1100px;
  --content-width: 72ch;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 32px;
  --space-4: 64px;
  --space-5: 128px;

  --shadow-soft: 0 10px 30px rgba(15,23,42,0.08);
}

/* ========================================================= */
/* RESET */
/* ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.8;
}

/* ========================================================= */
/* GLOBAL MEDIA */
/* ========================================================= */

img,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================================= */
/* LAYOUT SYSTEM */
/* ========================================================= */

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

.content {
  max-width: var(--content-width);
  margin: 0 auto;
}

section {
  padding: var(--space-5) 0;
}

/* ========================================================= */
/* TYPOGRAPHY */
/* ========================================================= */

h1, h2, h3 {
  font-family: 'Libre Baskerville', serif;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.2rem); margin-bottom: var(--space-4); }
h3 { font-size: 1.35rem; margin-bottom: var(--space-2); }

p, li {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ========================================================= */
/* NAVIGATION */
/* ========================================================= */

/* ========================================================= */
/* NAVIGATION */
/* ========================================================= */

header {
  position: sticky;
  top: 0;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,42,0.08);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* ✅ NEW — tighten margins */
  max-width: 1100px;     /* match site container width */
  margin: 0 auto;        /* center nav */
  padding: var(--space-2) 18px; /* tighter side padding */

  box-sizing: border-box;
}


/* ========================================================= */
/* NAV — ULTRA MINIMAL RESEARCH STYLE */
/* ========================================================= */

/* Premium masthead font */

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

/* Clean horizontal links */

.nav-links {
  display: flex;
  gap: 28px;

  list-style: none;     /* removes dot points */
  margin: 0;            /* removes default spacing */
  padding: 0;           /* removes left indent */
}


/* Text-only links */

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.15s ease;
}

/* Editorial hover underline */

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.18s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ========================================================= */
/* HERO */
/* ========================================================= */

.hero {
  background:
    radial-gradient(circle at 20% 20%, var(--accent-soft), transparent 40%),
    linear-gradient(to bottom, #f5f7fb, #ffffff);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.hero .wrap {
  padding-top: calc(var(--space-5) + 40px);
  padding-bottom: var(--space-4);
}

/* ========================================================= */
/* FIGURE SYSTEM */
/* ========================================================= */

.figure {
  margin: var(--space-4) auto;
}

.figure img {
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.figure figcaption {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.figure--feature { max-width: 900px; }
.figure--full    { max-width: var(--max-width); }
.figure--small   { max-width: 520px; }

/* ========================================================= */
/* EDITORIAL IMAGE CAPTIONS */
/* ========================================================= */

.image-block {
  margin: 48px 0;
}

.image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.image-block figcaption {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 10px;
  font-style: italic;
  letter-spacing: 0.01em;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ========================================================= */
/* TABLES */
/* ========================================================= */

.table-wrap {
  margin-top: var(--space-3);
  overflow-x: auto;
}

.research-table,
.journal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 720px;
}

/* ========================================================= */
/* FOOTER */
/* ========================================================= */

footer {
  background: #0b1220;
  color: #f1f5f9; /* crisp off-white */
  padding: var(--space-4) 24px;
  text-align: center;
  font-size: 0.85rem;
}


/* ========================================================= */
/* REVEAL ANIMATION */
/* ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================= */
/* MOBILE */
/* ========================================================= */

@media (max-width: 768px) {

  section { padding: var(--space-4) 0; }

  nav { flex-wrap: wrap; }

}

/* ============================= */
/* Philosophy Section */
/* ============================= */

.philosophy-block h2 {
  margin-bottom: 12px;
}

.philosophy-intro {
  color: #6b7280;
  margin-bottom: 50px;
  max-width: 600px;
}

/* Grid layout */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Individual principle */

.principle {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
}

/* Big subtle number */

.principle-number {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  color: #9ca3af;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

/* Headings */

.principle h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

/* Text */

.principle p {
  color: #4b5563;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .principles {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ========================================================= */
/* RESEARCH ARCHIVE — WORLD CLASS TABLE */
/* ========================================================= */

.research-table {
  width: 100%;
  border-collapse: collapse;

  /* Smaller, refined text */
  font-size: 0.88rem;

  /* Prevent oversized table */
  table-layout: fixed;
}

/* Header */

.research-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 1px solid rgba(15,23,42,0.10);
}

/* Cells */

.research-table td {
  padding: 18px 0;
  border-bottom: 1px solid rgba(15,23,42,0.06);

  /* Ensure consistent font everywhere */
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Title column emphasis */

.research-table td:nth-child(2) {
  font-weight: 500;
  color: var(--text-primary);
}

/* Scope column — match body text */

.research-table td:nth-child(3) {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Row hover — institutional style */

.research-table tbody tr {
  transition: background 0.15s ease;
  cursor: pointer;
}

.research-table tbody tr:hover {
  background: rgba(30,58,138,0.04);
}
