/* Residua Research Institute — shared stylesheet
   Palette: Indigo (#1B2A4A) + Copper (#B06A3B) on cool off-white */

:root {
  --indigo: #1B2A4A;
  --indigo-700: #24355c;
  --indigo-500: #3a4d76;
  --copper: #B06A3B;
  --copper-600: #9a5a2f;
  --bg: #F5F5F2;
  --bg-alt: #ECECE6;
  --card: #FFFFFF;
  --text: #14141C;
  --muted: #565664;
  --line: #DCDCD4;
  --maxw: 1140px;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(20,20,28,.07), 0 8px 24px rgba(20,20,28,.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .nav, .btn, .eyebrow, .tag, .site-footer {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4 { color: var(--indigo); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.6rem; letter-spacing: -.5px; }
h2 { font-size: 1.9rem; margin-top: 0; }
h3 { font-size: 1.25rem; }

a { color: var(--copper-600); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1.1rem; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--copper);
  margin: 0 0 .6rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--indigo);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--copper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  flex-wrap: wrap;
  gap: 8px;
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 1px;
}
.brand .sub {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b9c2d6;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: #d7dce8;
  font-size: .82rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 8px 11px;
  border-radius: var(--radius);
}
.nav a:hover { color: #fff; background: var(--indigo-700); text-decoration: none; }
.nav a.active { color: #fff; box-shadow: inset 0 -2px 0 var(--copper); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--indigo) 0%, var(--indigo-700) 60%, #2c3f6b 100%);
  color: #fff;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(176,106,59,.45), transparent 70%);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { font-size: 1.25rem; max-width: 60ch; color: #e6e9f1; margin-top: 1.2rem; }
.hero .eyebrow { color: #d6a87f; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-600); text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; text-decoration: none; }
.btn-dark { background: var(--indigo); color: #fff; }
.btn-dark:hover { background: var(--indigo-700); text-decoration: none; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
section.indigo { background: var(--indigo); color: #e9ecf3; }
section.indigo h2, section.indigo h3 { color: #fff; }
section.indigo .eyebrow { color: #d6a87f; }
.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .num {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--copper);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: 1px;
}
.card-top { border-top: 3px solid var(--copper); }

.tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--indigo-500);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 20px;
  margin: 0 6px 6px 0;
}

/* lists */
.lede { font-size: 1.18rem; color: var(--muted); }
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
ul.clean li::before {
  content: "";
  position: absolute; left: 0; top: 22px;
  width: 10px; height: 10px;
  background: var(--copper);
  border-radius: 2px;
}
ul.clean li:last-child { border-bottom: none; }

.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }

/* people */
.person { text-align: left; }
.person .avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--copper));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.6rem;
  margin-bottom: 16px;
}
.person .role { color: var(--copper-600); font-weight: 700; font-size: .95rem; margin: 2px 0 10px; }

/* news */
.news-item { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-item .date { font-family: "Helvetica Neue", Arial, sans-serif; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.news-item h3 { margin: 6px 0 0; }

/* callout */
.callout {
  background: var(--card);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo);
  color: #c4ccdd;
  padding: 56px 0 28px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .9rem;
}
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #c4ccdd; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--indigo-500);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: #9aa6bf;
}

/* ---------- Page intro band ---------- */
.page-intro {
  background: linear-gradient(160deg, var(--indigo) 0%, var(--indigo-700) 100%);
  color: #fff; padding: 64px 0 56px;
}
.page-intro h1 { color: #fff; }
.page-intro p { color: #dfe3ee; max-width: 64ch; font-size: 1.15rem; }
.page-intro .eyebrow { color: #d6a87f; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.1rem; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .wrap { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .nav { width: 100%; }
  section { padding: 52px 0; }
}
