:root {
  --paper: #fbfaf7;
  --ink: #182b47;
  --body: #34445a;
  --muted: #687587;
  --rule: #d8d9d7;
  --accent: #8d1b34;
  --max-width: 1120px;
}

html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6,
.page__title, .archive__item-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.018em;
}
a { color: var(--ink); text-decoration-color: rgba(141, 27, 52, .55); text-underline-offset: .2em; }
a:hover { color: var(--accent); }

.masthead {
  position: relative;
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
  background: rgba(251, 250, 247, .97);
}
.masthead__inner-wrap { max-width: var(--max-width); padding: 1.1rem 1.5rem; }
.greedy-nav { background: transparent; }
.greedy-nav a { color: var(--ink); }
.greedy-nav .visible-links a::before { height: 1px; background: var(--accent); }
.masthead__menu-item {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.masthead__menu-item--lg {
  margin-right: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0;
  font-weight: 500;
}

#main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4.5rem;
}
.page, .archive { width: 100%; float: none; padding: 0; margin: 0; }
.page__inner-wrap { float: none; width: 100%; }
.page__content { font-size: 1rem; }
.page__title, .archive > .page__title {
  margin: 0 0 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(2rem, 4vw, 3rem);
}
.page__title:empty { display: none; }
.page:has(.home-intro) .page__inner-wrap > header { display: none; }
.archive h3, .page__content h2, .page__content h3 { margin-top: 2.75rem; }
.archive li { margin-bottom: .75rem; }
.archive details {
  margin: .65rem 0 1.75rem;
  padding: .8rem 1rem;
  border-left: 2px solid var(--rule);
  color: var(--body);
}
.archive summary { cursor: pointer; }
.archive code { background: transparent; font-family: inherit; }
.page__content object { display: block; max-width: 100%; width: 100%; min-height: 72vh; border: 1px solid var(--rule); }
.site-directory ul {
  max-width: 34rem;
  margin: 2rem 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.site-directory li { margin: 0; border-bottom: 1px solid var(--rule); }
.site-directory a {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  text-decoration: none;
}
.site-directory a::after { content: "→"; color: var(--accent); }
.site-directory__xml { color: var(--muted); font-size: .85rem; }

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, .6fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.home-copy { padding: 1rem 0; }
.home-eyebrow, .section-kicker {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-about { max-width: 42rem; margin-top: 0; }
.home-about h2 {
  margin: 0 0 .8rem;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page__content .home-about h2,
.page__content .section-kicker {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .14em;
}
.home-about p { margin: 0 0 .9rem; }
.home-links { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 1.8rem; }
.home-links a {
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  text-decoration: none;
}
.home-links span { margin-left: .35rem; color: var(--accent); }

.home-portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  width: min(100%, 290px);
  margin: 0;
  justify-self: end;
  background: #eceae4;
}
.home-portrait img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 128%;
  height: auto;
  max-width: none;
  margin: 0;
  transform: translateX(-50%);
}

.home-research { margin-top: 6rem; border-top: 1px solid var(--rule); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 1.15rem;
}
.section-heading .section-kicker { margin: 0; }
.section-heading > a {
  flex: 0 0 auto;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.research-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.2rem 0 1.3rem;
  border-top: 1px solid var(--rule);
}
.research-meta {
  padding-top: .25rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.research-row h3 { margin: 0; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.4; }
.research-row h3 a { text-decoration: none; }
.research-row p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }

.page__footer { background: #f1efe9; color: var(--muted); }
.page__footer-follow { display: none; }
.page__footer footer { max-width: var(--max-width); }
.page__footer-copyright { font-size: .72rem; }

@media (max-width: 820px) {
  #main { padding-top: 1.75rem; }
  .home-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-copy { padding: 0; }
  .home-portrait { width: min(100%, 280px); justify-self: start; }
  .home-research { margin-top: 4rem; }
  .research-row { grid-template-columns: 1fr; gap: .55rem; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .masthead__inner-wrap { padding: 1rem; }
  #main { padding: 2.5rem 1rem 4rem; }
  .section-heading { align-items: start; }
  .section-heading > a { margin-top: .45rem; }
}
