/* Jakarta AI Research — "Ink & Paper" design system */

:root {
  --paper: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #14213D;
  --ink-muted: #4A4A45;
  --accent: #B1121C;
  --accent-dark: #8C0E16;
  --border: #E3DFD3;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--ink-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ---------- Buttons ---------- */

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
  border-radius: 4px;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Header / nav ---------- */

.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar-brand img {
  height: 36px;
}

.site-header .nav-link {
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
}

.site-header .nav-link:hover {
  color: var(--accent);
}

.site-header .nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--surface);
}

.card .card-body {
  padding: 2rem 1.75rem;
}

.card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
}

.more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Colors the inline-injected search-1.svg icon (SVGInject, src/js/scripts.js).
   The SVG's paths carry no inline fill/stroke — they rely on these external
   classes, verified by reading src/img/icons/search-1.svg during planning. */
.icon-svg .svg-fill {
  fill: var(--ink);
}

.icon-svg .svg-stroke {
  fill: none;
  stroke: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.hero .lead {
  color: var(--ink-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero img {
  max-width: 100%;
  margin-top: 3rem;
}

/* ---------- Generic sections ---------- */

.section {
  padding: 4rem 0;
}

.section-surface {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--ink);
  color: #E6E2D8;
  padding: 4rem 0 2rem;
}

.site-footer a {
  color: #E6E2D8;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.site-footer p {
  color: #C9C5B8;
}

.site-footer small {
  color: #A8A399;
}

.site-footer .form-control {
  border-radius: 4px 0 0 4px;
  border: none;
}

.site-footer .btn-primary {
  border-radius: 0 4px 4px 0;
}

/* ---------- Team grid (About page) ---------- */

.team-card {
  text-align: center;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-card h4 a {
  color: var(--ink);
}

.team-card h4 a:hover {
  color: var(--accent);
}

.team-card .role {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ---------- Focus areas (Research page) ---------- */

.focus-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.focus-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.focus-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.focus-item p {
  color: var(--ink-muted);
  font-size: 0.9rem;
}
