/* ===================================================================
   Ethics of AI Institute â€” Redesign Demo
   Shared design system Â· Blue & white
   =================================================================== */

:root {
  /* Palette â€” blue & white */
  --cream:        #F7F9FC;   /* page background */
  --cream-2:      #EAF1FB;   /* light blue tint */
  --paper:        #FFFFFF;
  --ink:          #16202F;
  --ink-soft:     #57657A;
  --line:         #E1E8F3;

  --clay:         #2563EB;   /* primary accent (bright blue) */
  --clay-deep:    #1D4ED8;
  --clay-tint:    #DEEAFD;

  --sage:         #3E5C93;   /* secondary accent (steel blue) */
  --sage-deep:    #2C4373;
  --sage-tint:    #E7EEF9;

  --plum:         #172A50;   /* deep navy header tone (matches logo) */

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 16px 44px -24px rgba(23, 42, 80, 0.55);
  --shadow-sm: 0 8px 24px -16px rgba(23, 42, 80, 0.5);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1.1em; }

a { color: var(--clay-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--clay);
  margin-bottom: 0.9rem;
  display: block;
}

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #232A44;                 /* matches the logo background */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 12px 26px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; display: block; }
@media (max-width: 960px) {

    .brand img {
        height: 30px;
    }

}
.menu { display: flex; align-items: center; gap: 3px; }
.menu a {
  color: #fff; font-weight: 550; font-size: 0.92rem;
  padding: 8px 11px; border-radius: 8px; white-space: nowrap; transition: all .16s ease;
}
.menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.menu a.active { color: #fff; background: rgba(255, 255, 255, 0.18); }
.menu .btn { margin-left: 8px; }

/* hamburger (mobile) */
.navtoggle { display: none; }
.hamburger { display: none; flex: none; width: 44px; height: 40px; border-radius: 9px;
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column;
  gap: 5px; border: 1px solid var(--line); background: var(--paper); }
.hamburger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--clay); color: #fff !important;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--clay); transition: all .17s ease; cursor: pointer;
}
.btn:hover { background: var(--clay-deep); border-color: var(--clay-deep);
  text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--clay-deep) !important; border-color: #C8D6EC; }
.btn.ghost:hover { background: var(--paper); border-color: var(--clay); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 8vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 460px at 82% -10%, var(--sage-tint) 0%, transparent 62%),
    radial-gradient(760px 420px at 6% 8%, var(--clay-tint) 0%, transparent 58%),
    var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { margin-bottom: 1.7em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.hero-card img { width: 100%; height: 260px; object-fit: cover; }
.hero-card .body { padding: 20px 22px 22px; }
.hero-card .tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 650; color: var(--sage-deep); }
.hero-card h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.hero-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 92px) 0; }
section.tint { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.paper { background: var(--paper); }
.section-head { max-width: 64ch; margin-bottom: 44px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

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

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--clay-tint); color: var(--clay-deep); margin-bottom: 16px; font-size: 1.35rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 14px; }
.card .more { font-weight: 600; font-size: 0.92rem; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.person {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.person .ph {
    aspect-ratio: 3 / 4;
}

.person .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.person .body { padding: 22px 24px 26px; }
.person .role { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 650; color: var(--clay); }
.person h3 { margin: 6px 0 4px; }
.person .aff { color: var(--sage-deep); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.person p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .n { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 2.9rem); color: var(--clay-deep); line-height: 1; }
.stat .l { font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Timeline / news ---------- */
.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 0; }
.tl-item { position: relative; padding: 0 0 30px 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--clay); border: 3px solid var(--cream);
}
.tl-item .date { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--sage-deep); }
.tl-item h4 { font-family: var(--serif); font-size: 1.15rem; margin: 4px 0 5px; }
.tl-item p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ---------- Publication / link list ---------- */
.pub {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
  display: flex; gap: 22px; align-items: flex-start;
}
.pub .mark { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid;
  place-items: center; background: var(--sage-tint); color: var(--sage-deep); font-size: 1.2rem; }
.pub h3 { font-size: 1.16rem; margin-bottom: 4px; }
.pub .by { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 8px; }
.pub p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 10px; }
.pub .links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.9rem; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--plum), #0F2145); color: #DCE7F8; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C4D3EE; }
.cta-band .eyebrow { color: #9DBCF0; }
.cta-band .btn.ghost { color: #fff !important; border-color: rgba(255,255,255,.4); }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Callout / quote ---------- */
.quote {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35;
  color: var(--plum); max-width: 26ch;
}
.pill {
  display: inline-block; background: var(--sage-tint); color: var(--sage-deep);
  padding: 5px 13px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; margin: 0 6px 8px 0;
}

/* ---------- Page header (interior) ---------- */
.page-head { padding: clamp(52px, 7vw, 88px) 0 clamp(30px, 4vw, 46px);
  background:
    radial-gradient(820px 320px at 88% -30%, var(--sage-tint) 0%, transparent 60%),
    var(--cream); border-bottom: 1px solid var(--line); }
.page-head .crumb { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px; }
.page-head .crumb a { color: var(--sage-deep); font-weight: 600; }

/* ---------- Prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose img.figure { border-radius: var(--radius); border: 1px solid var(--line); margin: 20px 0 8px; }
.prose figcaption { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }
.prose blockquote { margin: 26px 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--clay);
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--plum); }
.prose blockquote cite { display: block; font-family: var(--sans); font-size: 0.9rem;
  font-style: normal; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { background: #111C33; color: #AEB9CC; padding: 56px 0 30px; }
.footer a { color: #C7D3E6; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer h5 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.76rem; color: #7E8CA6; margin: 0 0 14px; font-weight: 700; }
.footer .fnav a { display: block; color: #AEB9CC; margin-bottom: 9px; font-size: 0.94rem; }
.footer .fnav a:hover { color: #fff; }
.footer .brand b { color: #EAF1FB; }
.foot-bottom { border-top: 1px solid #27324B; margin-top: 40px; padding-top: 22px;
  font-size: 0.84rem; color: #7E8CA6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hamburger { display: flex; }
  .menu {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #232A44; border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    padding: 12px 20px 18px; box-shadow: var(--shadow); display: none;
  }
  .navtoggle:checked ~ .menu { display: flex; }
  .menu a { padding: 12px 14px; font-size: 1rem; }
  .menu .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .g-3, .people { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .g-2, .g-3, .people { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pub { flex-direction: column; gap: 14px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Fellows images ---------- */
.fellows-page .people {
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    justify-content: center;
}

.fellows-page .person .ph {
    height: 250px;
}

.fellows-page .person .ph img {
    object-fit: cover;
    object-position: center 12%;
}
