/* Summer Institute in Social-Science Genomics
   Static rebuild of the former Wix site. */

:root {
  --ink: #1c1c1c;
  --muted: #474747;
  --rule: #8f8f8f;
  --page: #ffffff;
  --content-width: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Skip link ------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 0; }

/* Masthead -------------------------------------------------------------- */

.masthead {
  padding: 30px 0 44px;
  text-align: center;
}

.nav ul {
  list-style: none;
  margin: 0 0 46px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 14px;
}

.nav a {
  display: block;
  padding: 12px 14px 6px;
  border-top: 2px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.nav a:hover { border-top-color: var(--ink); }

.nav a[aria-current="page"] {
  border-top-width: 4px;
  border-top-color: var(--ink);
  padding-top: 10px;
}

.logo {
  display: block;
  width: 218px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 26px;
}

.masthead h1 {
  margin: 0;
  font-size: clamp(34px, 6.2vw, 71px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.1em;
}

.masthead h1 span { display: block; }

.funder {
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--muted);
}

.funder a { color: var(--muted); }

/* Section headings ------------------------------------------------------- */

.bar {
  display: inline-block;
  margin: 46px 0 26px;
  padding: 7px 26px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

/* Body content ----------------------------------------------------------- */

.prose { max-width: 760px; }
.prose p { margin: 0 0 20px; }
.prose a { color: var(--ink); }

.indent { padding-left: 26px; }

/* Two-column: text beside an image */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.split img {
  width: 100%;
  height: auto;
  display: block;
}

/* Link lists (problem sets, readings, lecture videos) --------------------- */

.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links li { margin: 0 0 18px; }

.links a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.links a:hover { color: #000; text-decoration-thickness: 2px; }

/* Home ------------------------------------------------------------------- */

.hero { margin: 0; }
.hero img { width: 100%; height: auto; display: block; }

.hero figcaption {
  margin-top: -34px;
  padding: 0 18px 12px;
  position: relative;
  color: #fff;
  font-family: georgia, palatino, "book antiqua", serif;
  font-size: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

/* Photos ----------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact ---------------------------------------------------------------- */

.contact-lede { font-size: 17px; margin: 0 0 24px; }

.email-link {
  font-size: 20px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.site-footer {
  margin-top: 80px;
  padding: 26px 0 40px;
  border-top: 1px solid #e2e2e2;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: center;
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .indent { padding-left: 0; }
  .funder { letter-spacing: 0.22em; font-size: 12px; }
  .bar { letter-spacing: 0.14em; padding: 6px 18px; }
  .nav ul { gap: 0 4px; }
  .nav a { padding: 10px 8px 6px; font-size: 11px; }
  .hero figcaption { margin-top: 0; color: var(--muted); text-shadow: none; padding-left: 0; }
}
