/* =========================
   TYPOGRAPHY & BASE STYLES
   ========================= */
:root{
  --bg:#fff;
  --text:#111;
  --muted:#6b6b6b;
  --accent:#020148;
  --surface:#f8f3f2;
  --radius:8px;
  --space-1:.5rem;
  --space-2:1rem;
  --space-3:1.5rem;
  --space-4:2rem;
  --space-6:3rem;
}

body{
  font-family:'Source Sans Pro',sans-serif;
  margin:0;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  font-size:18px;
}

h1,h2,h3,h4{ font-family:'Playfair Display',serif; }
h2,h3,h4{ color:var(--accent); }

a:focus-visible, button:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
  border-radius:4px;
}

/* Layout container: centered page with comfy gutters */
.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 2rem;
}

/* General body text */
body {
  font-size: 16px;       /* down from 18px */
  line-height: 1.65;     /* a touch tighter so it feels balanced */
  color: var(--text);
}

/* =================
   HEADER & NAV (NEW)
   ================= */
/* Header and nav */


header {
position: sticky;
top: 0;
background: #fff;
border-bottom: 1px solid #eef2f7;
z-index: 50;
}
.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 18px;
}
.nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
}
.brand-logo {
width: 40px;
height: 40px;
border-radius: 50%;
background: #000 url('images/logo.png') center/cover no-repeat;
}
.brand-title {
font-family: "Playfair Display", serif;
font-weight: 700;
font-size: 1.2rem;
}
.nav-links {
display: flex;
gap: 16px;
flex-wrap: wrap;
}
.nav-links a {
font-weight: 600;
color: #111;
text-decoration: none;
}
.nav-links a[aria-current="page"] {
color: var(--accent);
}

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

/* ======================================
   PAGE LAYOUT: MAIN + RIGHT SIDEBAR
   ====================================== */

   /* Layout */
main{padding-bottom:40px}
.content{display:grid; grid-template-columns:2fr 1fr; gap:18px; margin:26px auto}

.page-two-col{
  display:grid;
  grid-template-columns:1fr 340px; /* main | sidebar */
  gap:2rem;
  align-items:start;
}
.page-aside.note{
  background:#fff;
/* border:1px solid #eee; */
/* box-shadow:0 8px 24px rgba(0,0,0,.06); */
  padding:1.25rem;
  border-radius:12px;
  margin-top:1rem;          /* extra breathing room from hero/feature */
}
@media (max-width:900px){
  .page-two-col{ grid-template-columns:1fr; }
  .page-aside.note{ margin-top:1rem; }
}

/* Sidebar/aside text — slightly smaller to recede from the feature */
.page-aside.note {
  font-size: 15px;
  line-height: 1.6;
  color: #333;           /* softer than pure black */
}

/* ==================
   FEATURED ISSUE
   ================== */
.featured-issue{
  display:flex;
  align-items:flex-start;
  gap:2rem;
  margin:3rem 0;
}
.featured-text{
  flex:1 1 420px;
  min-width:280px;
}

.featured-carousel{
  flex:1 1 420px;
  min-width:280px;
}
.read-more{
  display:inline-block;
  margin-top:1rem;
  padding:.6rem 1rem;
  border:2px solid var(--accent);
  color:var(--accent);
  text-decoration:none;
  font-weight:700;
  border-radius:var(--radius);
}
.read-more:hover{ background:var(--accent); color:#fff; }

.carousel-button{
  display:inline-block;
  margin-top:1rem;
  padding:.6rem 1rem;
  border:2px solid white;
  color:white;
  text-decoration:none;
  font-weight:700;
  border-radius:var(--radius);
}
.carousel-button:hover{ background:white; color:var(--accent); }

.featured-image{
  flex:0 0 300px;           /* smaller, fixed media column */
  max-width:300px;
}
.featured-image img,
.featured-image iframe{
  display:block;
  width:100%;
  height:auto;
  border-radius:10px;
  border:1px solid #eee;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}

/* Optional wrapper if you use an ISSUU iframe here */
.featured-image .embed-ratio{
  position:relative;
  padding-top:140%;
  height:0;
  overflow:hidden;
  border-radius:10px;
}
.featured-image .embed-ratio > iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}

@media (max-width:720px){
  .featured-issue{ flex-direction:column; }
  .featured-image{ max-width:100%; flex-basis:auto; }
}

/* Featured issue paragraph text */
.featured-text p {
  font-size: 16px;
  line-height: 1.6;
}

/* ===============
   ARTICLE GRID
   =============== */
.grid-section{
  max-width:1000px;     /* slightly narrower for a magazine feel */
  margin:4rem auto;
  text-align:center;    /* centers the heading */
}
.article-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:2rem;
  justify-items:center; /* centers cards in their tracks */
}
.article-grid article{
  width:100%;
  max-width:360px;
  background:#fff;
  padding:var(--space-3);
  border-radius:12px;
  border:1px solid #eee;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  transition:transform .2s ease, box-shadow .2s ease;
}
.article-grid article:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}
.article-grid h4{ margin-top:0; color:var(--accent); }

/* =========
   FOOTER
   ========= */
footer{
  background:#111;
  color:#ccc;
  text-align:center;
  padding:2rem 1rem;
  font-size:.9rem;
  margin-top:var(--space-6);
}

/* ——— Layout polish ——— */

/* make the page breathe a touch more on large screens */
.container{
  max-width: 1420px;        /* a bit wider than 1180 for your big headline */
  padding: 0 28px;          /* consistent gutters */
}

/* hero: slightly tighter top/bottom + calmer line-length under it */
.hero{ padding: 0.5rem 0; }
.hero p{ max-width: 800px; }
.hero{padding-bottom: 2rem}

/* featured block: align all tops perfectly and balance spacing */
.featured-issue{
  align-items: flex-start;
  gap: 2.25rem;             /* small bump so the text doesn’t hug the image */
  margin: 2.25rem 0 2.75rem;
}
.featured-text h3:first-child{ margin-top: 0; }
.featured-image{ flex-basis: 300px; max-width: 300px; }
.featured-image img{ box-shadow: 0 8px 22px rgba(0,0,0,.06); }

/* sidebar card: give it a touch more offset from the feature */
.page-aside.note{
  margin-top: 12px;         /* lowers the card so it doesn’t collide visually */
  padding-top: 18px;        /* extra internal space at the top */
}

/* optional vertical guide between main and sidebar for cleaner centering */
@media (min-width: 901px){
  .page-two-col{ column-gap: 2.5rem; }
  .page-main{ border-right: 1px solid #eee; padding-right: 2rem;  }
}

/* “From the Magazine”: keep truly centered below the two-column area */
.grid-section{
  max-width: 1000px;
  margin: 3.25rem auto 4.5rem;  /* perfectly centered band */
  text-align: center;
}
.article-grid{
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 4rem;
  justify-items: center;
}
.article-grid article{ max-width: 360px; }

.page-main {
  position: relative;
  padding-right: 2rem; /* space from the text */
}

.page-main::before {
  content: "";
  position: absolute;
  top: 100rem;           /* how far down from the top of page-main */
  right: -1px;           /* aligns with sidebar */
  bottom: 2rem;          /* stops before the footer */
  width: 1px;
  background: #eee;      /* the line color */
}

/* Center social block */
.social-block {
  text-align: center;
  margin-top: 1.5rem;
}

/* Social buttons row */
.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-btn {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #f8f3f2;
  color: var(--accent);
  border: 1px solid #e8e3e2;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 20px; height: 20px;
}

/* Donate button styled like "Read the Issue" */
.donate-btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.donate-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Year-in-review block */
.updates-year{
  max-width: 1000px;
  margin: 2.5rem auto 3.5rem;
  text-align: center;            /* centers the heading */
}
.updates-year .info-card--wide{
  text-align: left;              /* list reads left-aligned */
  padding: 1.5rem 1.75rem;
}

/* Bulleted list inside the card */
.updates-bullets{
  margin: 0;
  padding-left: 1.25rem;         /* default bullets with nice indent */
}
.updates-bullets li{
  margin: .65rem 0;
  line-height: 1.6;
}

/* Two-equal cards band (Mission + Contact) */
.cards-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0 2.5rem;
}
@media (max-width: 900px){
  .cards-2{ grid-template-columns: 1fr; }
}

/* Reuse your card look */
.info-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:1.25rem 1.5rem;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}
.info-card h3{
  margin:.25rem 0 .75rem;
  font-size:1.35rem;
  color:var(--accent);
}

/* People grid */
.people-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.people-grid--tight{ gap: 1rem; }

.person-card{
  grid-column: span 4;                /* 3 across on desktop */
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  display:flex;
  flex-direction:column;
}
.person-card--compact{ grid-column: span 3; } /* advisors smaller */

.person-media{
  aspect-ratio: 4 / 3;
  background:#f3efee;
  overflow:hidden;
}
.person-media img{
  width:100%; height:100%; object-fit:cover; display:block;
}

.person-body{ padding:1rem 1rem 1.25rem; }
.person-name{ margin:.25rem 0 .2rem; }
.person-role{
  margin:0 0 .6rem;
  font-weight:600;
  color: #020148;
}
.person-bio{ margin:.25rem 0 .75rem; color:#333; }
.person-links .pill{
  display:inline-block;
  padding:.3rem .6rem;
  border:1px solid #e3d9d7;
  border-radius:999px;
  font-size:.85rem;
  text-decoration:none;
  color:#6c5f5c;
  margin-right:.35rem;
}
.person-links .pill:hover{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

/* Responsive people grid */
@media (max-width: 1100px){
  .person-card{ grid-column: span 6; }      /* 2 across */
  .person-card--compact{ grid-column: span 4; }
}
@media (max-width: 640px){
  .person-card,
  .person-card--compact{ grid-column: span 12; } /* single column */
}

.aboutSubHeader {
  padding-left: 350px;
  padding-right: 350px;
}

/* Social row reused */
.social-links{
  display:flex; gap:.6rem; margin-top:.5rem;
}
.social-btn{
  --size:38px; width:var(--size); height:var(--size);
  display:inline-grid; place-items:center;
  border-radius:50%; background:#f8f3f2; color:var(--accent);
  border:1px solid #e8e3e2; transition:all .2s ease;
}
.social-btn:hover{ background:var(--accent); color:#fff; transform:translateY(-2px); }
.social-btn svg{ width:20px; height:20px; }
