/* Layout mirrors harvardundergraduatesws.com; colors and type follow stanfordsws.org. */
:root {
  --ink: #272727;          /* Stanford SWI text + buttons */
  --ink-soft: #3e3e3e;
  --white: #ffffff;
  --sky: #c6ddef;          /* Stanford SWI light blue */
  --blue: #2581c4;         /* Stanford SWI accent blue */
  --mist: #efefef;         /* Stanford SWI light gray */
  --dark: #272727;         /* dark sections (Harvard uses deep purple here) */
  --serif: "Sorts Mill Goudy", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 24px);
  --max: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 86px; gap: 24px; }
.logo img { height: 70px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav > ul { list-style: none; display: flex; gap: 6px 18px; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; }
.nav > ul > li > a, .folder > button {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--ink);
  border-bottom: 1px solid transparent;
}
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="page"],
.folder:hover > button, .folder.active > button { border-bottom-color: var(--ink); }
.folder { position: relative; }
.folder ul {
  display: none; position: absolute; top: 100%; left: -16px;
  list-style: none; margin: 0; padding: 12px 16px; min-width: 230px;
  background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.folder:hover ul, .folder:focus-within ul { display: block; }
.folder li a { display: block; padding: 6px 0; }
.folder li a:hover { text-decoration: underline; }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--ink); color: var(--white);
  font-family: var(--sans); font-size: 15px; letter-spacing: .02em;
  padding: 14px 36px; border: 0; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--blue); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sky); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; }

/* ---------- Heroes ---------- */
.hero {
  position: relative; min-height: 66vh;
  display: flex; align-items: flex-end;
  background: var(--ink) center/cover no-repeat;
  color: var(--white);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.05) 70%); }
.hero .wrap { position: relative; width: 100%; padding-bottom: 56px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 72px); max-width: 15ch; margin: 0; }
.banner { height: clamp(220px, 42vw, 520px); background: var(--mist) center/cover no-repeat; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-sky { background: var(--sky); }
.section-dark { background: var(--dark); color: var(--white); }
.section-mist { background: var(--mist); }
.page-title { font-size: clamp(36px, 4.4vw, 56px); }
.section-dark .page-title { text-align: center; }
.lead { font-size: 15px; line-height: 1.8; }

/* Home intro: headline + button left, paragraph right */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 10%; }
.intro h2 { font-size: clamp(32px, 3.4vw, 46px); }
.intro .btn { margin-top: 12px; }
.intro p { font-size: 15px; line-height: 1.85; margin: 0 0 1em; }

/* Home three-up */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 1140px; margin: 0 auto; }
.three img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.three h3 { font-size: 30px; margin: 22px 0 10px; }
.three p { font-size: 14px; line-height: 1.85; margin: 0; }

/* Content pages (Comp / Fund / Events style) */
.content { max-width: 1040px; margin: 0 auto; }
.content > p, .content li { font-size: 15px; line-height: 1.85; }
.content h2 { font-size: clamp(30px, 3vw, 40px); margin-top: 1.6em; }
.content .btn { margin: 8px 0 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.curriculum h4 { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 28px 0 8px; letter-spacing: .1em; }
.curriculum ol { margin: 0; padding-left: 0; list-style: none; }
.curriculum li { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.1); font-size: 15px; }
.curriculum li span { font-family: var(--serif); font-size: 18px; margin-right: 10px; color: var(--ink-soft); }
.pull-quote { max-width: 900px; margin: 0 auto; text-align: center; }
.pull-quote blockquote { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.4; margin: 0 0 20px; }
.pull-quote cite { font-style: normal; font-size: 14px; letter-spacing: .08em; }

/* Executive board grid */
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 32px; max-width: 1140px; margin: 48px auto 0; }
.member img { aspect-ratio: 4/5; object-fit: cover; width: 100%; background: #3a3a3a; }
.member h3 { font-size: 24px; margin: 18px 0 2px; }
.member .role { font-size: 14px; color: var(--sky); margin: 0 0 6px; }
.member a.email { font-size: 13px; color: #d9d9d9; }
.member details { margin-top: 10px; font-size: 13px; line-height: 1.75; color: #dcdcdc; }
.member summary { cursor: pointer; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--white); list-style: none; }
.member summary::-webkit-details-marker { display: none; }
.member summary::after { content: " +"; }
.member details[open] summary::after { content: " –"; }

/* Events list */
.event { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid rgba(0,0,0,.12); }
.event:first-of-type { border-top: 0; }
.event-head h3 { font-size: 28px; }
.event-head p { margin: 0; font-size: 14px; }
.event-body p, .event-body li { font-size: 15px; line-height: 1.8; }
.event-body h4 { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0; margin: 18px 0 4px; }
.event-body h4:first-child { margin-top: 0; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--sky); padding: 3px 10px; margin-bottom: 10px; }
.tag-past { background: var(--mist); }

/* Digest archive (Partners-page style: one white section) */
.digest { border-top: 1px solid rgba(0,0,0,.12); }
.digest summary { cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; list-style: none; }
.digest summary::-webkit-details-marker { display: none; }
.digest summary h3 { font-size: 26px; margin: 0; }
.digest summary span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.digest summary span::after { content: "  +"; }
.digest[open] summary span::after { content: "  –"; }
.digest .body { padding: 0 0 28px; max-width: 860px; }
.digest .body p, .digest .body li { font-size: 15px; line-height: 1.8; }
.digest .body li { margin-bottom: 8px; }
.digest-year { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 48px 0 8px; }

/* Contact (dark full section) */
.contact { min-height: 70vh; display: flex; align-items: center; }
.contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 8%; align-items: center; }
.contact h1 { font-size: clamp(44px, 5vw, 72px); }
.contact p { font-size: 15px; line-height: 1.85; }
.contact a { color: var(--sky); }
.contact img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--white); padding: 56px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; }
.site-footer .org { font-family: var(--serif); font-size: 24px; color: var(--sky); margin: 0 0 22px; }
.site-footer p { font-size: 14px; margin: 0; line-height: 1.75; }
.site-footer .right { text-align: right; }
.socials { display: flex; justify-content: flex-end; gap: 14px; margin-bottom: 10px; }
.socials a { display: inline-flex; }
.socials svg { width: 20px; height: 20px; fill: var(--white); }
.socials a:hover svg { fill: var(--sky); }
.site-footer nav a { font-size: 14px; text-decoration: none; margin-right: 18px; }
.site-footer nav a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .board-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 86px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 16px var(--gutter) 28px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: flex-start; gap: 10px; }
  .folder ul { display: block; position: static; box-shadow: none; padding: 4px 0 0 14px; min-width: 0; }
  .intro, .three, .two-col, .event, .contact .grid, .site-footer .wrap { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .site-footer .right { text-align: left; }
  .socials { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .board-grid { grid-template-columns: 1fr; }
  .logo img { height: 58px; }
}

/* Substack feed on the Weekly Digest page */
.substack-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.substack-head h2 { margin: 0; }
.substack-head .btn { margin: 0; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.post { display: flex; flex-direction: column; background: var(--white); text-decoration: none; padding: 0 0 22px; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.post img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--mist); }
.post .post-date { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: 18px 20px 6px; }
.post h3 { font-size: 22px; margin: 0 20px 8px; }
.post p:last-child { font-size: 14px; line-height: 1.7; margin: 0 20px; color: var(--ink-soft); }
.subscribe { margin-top: 48px; text-align: center; }
.subscribe h3 { font-size: 26px; }
.subscribe iframe { width: 100%; max-width: 480px; height: 150px; border: 0; background: transparent; }
