/* ---------- Base ---------- */
:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --paper: #ffffff;
  --paper-soft: #eeece8;
  --accent: #6b4f3b;
  --line: #d4d1cb;
  --max-width: 640px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink-soft);
  background: var(--paper-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  left: 0;
  top: 0;
  text-decoration: none;
}

h1, h2, h3, .site-title {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  letter-spacing: 0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

hr.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ---------- Split layout ---------- */
.image-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--panel-w, 50vw);
  height: 100vh;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Show the entire photo (no cropping); leftover space fills with the dark panel color */
.image-panel.fit-whole {
  background-size: contain;
  background-position: center;
}

.content-panel {
  margin-left: var(--panel-w, 50vw);
  min-height: 100vh;
  background: var(--paper-soft);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
}

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--ink);
  color: #eee;
  padding: 1.25rem 1.75rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-header .site-title {
  color: #eee;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  color: #cfcfcf;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: #ffffff;
  text-decoration: none;
  border-bottom-color: #ffffff;
}

/* ---------- Home hero text (now part of content panel) ---------- */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
}

.hero .eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0;
  letter-spacing: 0.08em;
}

.hero .fellowship {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-top: 1.4rem;
}

.hero .tagline {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  color: #6a6a6a;
  letter-spacing: 0.04em;
  margin-top: 0.6rem;
}

.hero .rule {
  width: 48px;
  border-top: 1px solid var(--line);
  margin: 1.6rem 0;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: hero-rise 0.7s ease-out both;
  }
  .hero > *:nth-child(2) { animation-delay: 0.08s; }
  .hero > *:nth-child(3) { animation-delay: 0.16s; }
  .hero > *:nth-child(4) { animation-delay: 0.24s; }
  .hero > *:nth-child(5) { animation-delay: 0.32s; }
  .hero > *:nth-child(6) { animation-delay: 0.4s; }

  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Main content ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.75rem 4rem;
}

main h2.section-title {
  font-size: 1.4rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

main h2.section-title:first-child { margin-top: 0; }

main p { margin: 0 0 1.1rem; }

.figure {
  margin: 1.75rem 0;
  text-align: center;
}

.figure img {
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.icon-row a { display: inline-block; }
.icon-row img { width: 38px; height: 38px; object-fit: contain; }

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.7;
}
.pub-list li:first-child { padding-top: 0; }
.pub-list li:last-child { border-bottom: none; }

.news-item { margin-bottom: 2rem; }
.news-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
}
.news-item .source {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-size: 0.82rem;
  color: #7a7a7a;
  margin-bottom: 0.5rem;
}

.pdf-embed {
  width: 100%;
  height: 92vh;
  border: 1px solid var(--line);
}

main.wide {
  max-width: 900px;
}

main.roomy {
  max-width: 780px;
}

.page-head {
  margin-bottom: 2rem;
}

.page-head .eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 0.4rem;
}

.page-head h1 {
  font-size: 1.9rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.page-head .rule {
  width: 48px;
  border-top: 1px solid var(--accent);
  margin-top: 1.1rem;
}

.button {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--ink);
  color: #fff !important;
  padding: 0.6rem 1.3rem;
  border-radius: 3px;
  text-decoration: none !important;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.button:hover { background: var(--accent); }

.contact-title {
  text-align: center;
  margin-top: 3.5rem;
}

.contact-block {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.contact-block .email-label {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 0.5rem;
}
.contact-block .email {
  font-size: 1.15rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
}
.contact-block .email a {
  border-bottom: 1px solid var(--line);
}
.contact-block .email a:hover {
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}
.social-row:first-of-type {
  margin-top: 2rem;
}

.social-pill {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.social-pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff !important;
}

/* ---------- Footer ---------- */
footer.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  color: #9a9a9a;
  border-top: 1px solid var(--line);
}

/* ---------- Mobile: stack instead of split ---------- */
@media (max-width: 800px) {
  .image-panel {
    position: static;
    width: 100%;
    height: 38vh;
  }
  /* A letterboxed photo looks lost in the short mobile banner; crop to fill instead */
  .image-panel.fit-whole { background-size: cover; }
  .content-panel {
    margin-left: 0;
  }
  header.site-header {
    position: static;
    padding: 1rem 1.1rem;
  }
  .site-header .site-title { font-size: 1rem; }
  nav.site-nav ul { justify-content: center; gap: 0.6rem 0.85rem; }
  nav.site-nav a { font-size: 0.75rem; padding: 0.2rem 0; display: inline-block; }

  .hero { min-height: auto; padding: 2.25rem 1.25rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero .fellowship { font-size: 0.9rem; }
  .hero .tagline { font-size: 0.95rem; }

  main {
    padding: 2rem 1.25rem 3rem;
  }
  main.wide { max-width: 100%; }
  main h2.section-title { font-size: 1.25rem; }
  .page-head h1 { font-size: 1.5rem; }

  .pub-list li { font-size: 0.9rem; padding: 0.75rem 0; }
  .news-item h3 { font-size: 1rem; }

  .pdf-embed { height: 60vh; }

  .social-row { gap: 0.5rem; margin-top: 0.7rem; }
  .social-row:first-of-type { margin-top: 1.5rem; }
  .social-pill { font-size: 0.78rem; padding: 0.4rem 0.9rem; }

  .figure img { max-width: 100%; }
}

@media (max-width: 420px) {
  .image-panel { height: 28vh; }
  .hero h1 { font-size: 1.4rem; }
  main { padding: 1.5rem 1rem 2.5rem; }
  nav.site-nav ul { gap: 0.5rem 0.6rem; }
}
