/* Project-specific overrides. Keep typography readable by inheriting theme defaults. */
html, body, .page__content, .sidebar, .masthead {
  line-height: 1.75;
}

.page__content,
.archive__item,
.archive__item-excerpt,
.cv-container,
.cv-container p,
.cv-container li {
  font-size: 1rem;
}

.publication-authors {
  margin-top: 0.2rem;
}

.publication-author-note {
  margin-top: -0.3rem;
  font-size: 0.88rem;
  color: #4b5563;
}

.publication-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 0.75rem;
  padding: 0.7rem 0 0.95rem;
  border-bottom: 1px solid #dfe5ea;
}

.publication-header p {
  margin: 0;
}

.publication-header__kicker {
  color: #4f89a4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publication-header__summary {
  margin-top: 0.18rem !important;
  color: #56636c;
  font-size: 0.94rem;
}

.publication-scholar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #bfd1dc;
  border-radius: 999px;
  background: #f4f8fa;
  color: #2d6b87;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.publication-scholar-link:hover {
  border-color: #8ca9bd;
  background: #e8f1f5;
}

.publication-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.35rem;
  color: #69747c;
  font-size: 0.8rem;
}

.publication-legend strong {
  color: #2f6076;
}

.publication-legend__separator {
  color: #b0bbc2;
}

.publication-list {
  margin: 0;
}

.publication-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #edf0f2;
  transition: background-color 160ms ease, transform 160ms ease;
}

.publication-entry:nth-child(even) {
  background: #f7f9fb;
}

.publication-entry:hover {
  background: #eef4f8;
  transform: translateX(0.15rem);
}

.publication-entry__preview {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  border: 1px solid #d7e0e7;
  border-radius: 0.35rem;
  background: #eef3f5;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.48);
}

.publication-entry__preview img {
  display: block;
  width: 100%;
  height: 122px;
  object-fit: cover;
}

.publication-preview__label,
.publication-preview__year,
.publication-preview__title,
.publication-preview__shape,
.publication-preview__line {
  position: absolute;
}

.publication-preview__label {
  top: 0.65rem;
  left: 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.publication-preview__year {
  top: 0.55rem;
  right: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
}

.publication-preview__title {
  right: 0.7rem;
  bottom: 0.55rem;
  left: 0.7rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
}

.publication-preview__shape {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.publication-preview__shape--one {
  top: 2.55rem;
  left: 2.1rem;
}

.publication-preview__shape--two {
  top: 3.7rem;
  left: 5.7rem;
}

.publication-preview__shape--three {
  top: 2.15rem;
  left: 8.8rem;
}

.publication-preview__line {
  height: 1px;
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.65);
}

.publication-preview__line--one {
  top: 3.2rem;
  left: 3.1rem;
  width: 4rem;
  transform: rotate(24deg);
}

.publication-preview__line--two {
  top: 3.8rem;
  left: 6.8rem;
  width: 3.2rem;
  transform: rotate(-27deg);
}

.publication-entry__preview--graph {
  background: linear-gradient(135deg, #183b56 0%, #28666e 53%, #7aa95c 100%);
}

.publication-entry__preview--satellite {
  background-color: #bdcbd1;
  background-image: linear-gradient(rgba(34, 72, 85, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 72, 85, 0.16) 1px, transparent 1px), linear-gradient(135deg, #c4d8c0, #718d8e);
  background-size: 18px 18px, 18px 18px, auto;
}

.publication-entry__preview--satellite .publication-preview__shape {
  border-radius: 0.15rem;
  border-color: rgba(30, 62, 70, 0.6);
  background: rgba(248, 226, 151, 0.64);
}

.publication-entry__preview--satellite .publication-preview__line {
  background: rgba(30, 62, 70, 0.55);
}

.publication-entry__preview--satellite .publication-preview__label,
.publication-entry__preview--satellite .publication-preview__year {
  color: #173d45;
}

.publication-entry__preview--agent {
  background: linear-gradient(135deg, #2b1f4b, #54458d 54%, #db8b5c);
}

.publication-entry__preview--agent .publication-preview__shape {
  border-radius: 0.15rem;
  transform: rotate(45deg);
}

.publication-entry__preview--preprint {
  background: linear-gradient(135deg, #e4ecf1, #8ca6b5);
}

.publication-entry__preview--preprint .publication-preview__label,
.publication-entry__preview--preprint .publication-preview__year,
.publication-entry__preview--preprint .publication-preview__title {
  color: #17384a;
}

.publication-entry__preview--preprint .publication-preview__shape {
  border-color: rgba(23, 56, 74, 0.55);
  background: rgba(255, 255, 255, 0.52);
}

.publication-entry__preview--preprint .publication-preview__line {
  background: rgba(23, 56, 74, 0.45);
}

.publication-entry__body {
  min-width: 0;
}

.publication-entry__title {
  margin: 0 0 0.12rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.25;
}

.publication-entry__title a {
  color: #1d252b;
  text-decoration: none;
}

.publication-entry__title a:hover {
  color: #1f5f91;
}

.publication-entry__authors,
.publication-entry__venue {
  margin: 0;
  color: #20272d;
  font-size: 0.88rem;
  line-height: 1.35;
}

.publication-entry__venue {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.18rem;
  color: #4f89a4;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.publication-entry__venue em {
  font-style: normal;
}

.publication-entry__venue > span + span:before {
  margin-right: 0.35rem;
  color: #a4b5ba;
  content: "·";
}

.publication-entry__venue > .award-highlight--inline:before {
  display: none;
  content: none;
}

.award-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #e5a23a;
  border-left: 3px solid #c2410c;
  border-radius: 0.28rem;
  background: linear-gradient(90deg, #fff7df, #fffaf0);
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.award-highlight i {
  display: inline-grid;
  flex: 0 0 0.9rem;
  width: 0.9rem;
  height: 0.9rem;
  place-items: center;
  border: 1px solid #d99125;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd978, #e9a52f);
  box-shadow: 0 0 0 2px rgba(255, 247, 223, 0.95);
  color: #713b0a;
  font-size: 0.52rem;
}

.award-highlight--inline {
  gap: 0.18rem;
  margin-top: 0;
  padding: 0.14rem 0.28rem;
  border-left-width: 2px;
  font-size: 0.58rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
}

.award-highlight--inline i {
  flex-basis: 0.82rem;
  width: 0.82rem;
  height: 0.82rem;
  font-size: 0.48rem;
}

.home-publication__meta .award-highlight--inline:before {
  display: none;
  content: none;
}

.award-highlight--compact {
  margin-top: 0;
  padding: 0.13rem 0.42rem;
  border-left-width: 2px;
  font-size: 0.64rem;
  line-height: 1.25;
}

.publication-entry__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.38rem;
}

.publication-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.15rem 0.58rem;
  border: 1px solid #cbd5dc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #2e4659;
  font-size: 0.72rem;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.publication-link:hover,
.publication-link--primary {
  border-color: #8ca9bd;
  background: #e7f0f5;
  color: #1e4e70;
}

.cv-entry {
  max-width: 48rem;
  margin-top: 0.7rem;
}

.cv-entry > p:first-child {
  margin-bottom: 1.1rem;
  color: var(--home-muted, #5f7078);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cv-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.cv-entry__actions .publication-link {
  text-decoration: none;
}

@media (max-width: 700px) {
  .publication-entry {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 0.6rem;
  }

  .publication-entry__preview {
    width: min(100%, 360px);
  }

  .publication-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .publication-scholar-link {
    display: inline-flex;
    margin: 0;
  }
}

/* Homepage sections */
.home-page {
  --home-ink: #1d2a31;
  --home-muted: #5f7078;
  --home-teal: #2f7185;
  --home-teal-dark: #173f4d;
  --home-line: #dfe8eb;
  color: var(--home-ink);
}

.home-page a {
  color: var(--home-teal);
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
  margin-top: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.7rem;
  margin: 0 0 2.25rem;
  padding: 0.4rem 0 1.65rem;
  border-bottom: 1px solid var(--home-line);
}

.home-hero__profile {
  margin: 0 0 0.78rem;
}

.home-hero__profile img {
  display: block;
  margin: 0 auto;
  width: 5.9rem;
  height: 5.9rem;
  border: 1px solid #dfe8eb;
  border-radius: 50%;
  box-shadow: 0 0 0 0.28rem #fff, 0 0 0 0.36rem #e7eef0;
  object-fit: cover;
}

.home-hero__main {
  text-align: center;
}

.home-kicker {
  margin-bottom: 0.65rem !important;
  color: var(--home-teal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-hero h1 {
  margin-bottom: 0.65rem;
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.home-hero__lead {
  max-width: 46rem;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 0.8rem !important;
  color: #34464f;
  font-size: 0.96rem;
  line-height: 1.65;
}

.home-hero__copy {
  max-width: 46rem;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1.25rem !important;
  color: var(--home-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.home-hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  margin: 0.82rem auto 0;
  padding-top: 0.62rem;
  border-top: 1px solid #e7eef0;
}

.home-hero__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #63757c !important;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.home-hero__links a i {
  color: var(--home-teal);
  font-size: 0.76rem;
}

.home-hero__links a:hover {
  color: var(--home-teal-dark) !important;
}

.home-section {
  margin: 0 0 2.55rem;
}

.home-section__heading {
  max-width: 45rem;
  margin-bottom: 1rem;
}

.home-section__heading h2,
.home-context h2,
.home-contact h2 {
  margin-bottom: 0.45rem;
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.home-section__heading > p:last-child,
.home-context__column > p:not(.home-kicker),
.home-contact p:last-child {
  margin-bottom: 0;
  color: var(--home-muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

.home-section__heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.home-publications__heading {
  max-width: none;
  margin-bottom: 0.7rem;
  padding: 0.82rem 0 0.72rem;
  border-top: 2px solid var(--home-teal-dark);
  border-bottom: 1px solid var(--home-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
}

.home-publications__heading-copy {
  min-width: 0;
}

.home-publications__heading .home-kicker {
  margin-bottom: 0.32rem;
}

.home-publications__heading h2 {
  margin-bottom: 0.24rem;
  font-size: 1.58rem;
}

.home-publications__heading > div > p:last-child {
  max-width: 30rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.home-section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  align-self: end;
  padding: 0.44rem 0.62rem 0.44rem 0.72rem;
  border: 1px solid #a9c2c8;
  border-radius: 999px;
  background: #f5fafb;
  color: var(--home-teal) !important;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.home-section__link:hover {
  border-color: var(--home-teal);
  background: #eaf4f5;
}

.home-section__link span {
  font-size: 0.88rem;
  line-height: 0.8;
}

.home-publications__legend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0.72rem;
  padding-left: 0.48rem;
  border-left: 2px solid #c5d9dd;
  color: #748189;
  font-size: 0.68rem;
  line-height: 1.35;
}

.home-publications__legend strong {
  color: var(--home-teal);
}

.home-publications__legend span {
  padding: 0 0.25rem;
  color: #b5c0c4;
}

.home-publication-list {
  border-top: 1px solid var(--home-line);
}

.home-publication {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #edf2f3;
}

.home-publication__thumb {
  display: block;
  height: 76px;
  overflow: hidden;
  border: 1px solid #d4e0e3;
  border-radius: 0.22rem;
  background: #eef4f5;
}

.home-publication__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.home-publication:hover .home-publication__thumb img {
  transform: scale(1.04);
}

.home-publication__body {
  min-width: 0;
}

.home-publication__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.18rem !important;
  color: var(--home-teal);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-publication__meta span + span:before {
  margin-right: 0.35rem;
  color: #a4b5ba;
  content: "·";
}

.home-publication h3 {
  margin-bottom: 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  line-height: 1.25;
}

.home-publication h3 a {
  color: var(--home-ink) !important;
  text-decoration: none;
}

.home-publication h3 a:hover {
  color: var(--home-teal) !important;
}

.home-publication__authors {
  margin-bottom: 0.3rem !important;
  color: #4e5e65;
  font-size: 0.75rem;
  line-height: 1.35;
}

.home-publication__authors p {
  margin: 0;
}

.home-publication__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.home-publication__links .publication-link {
  padding: 0.12rem 0.45rem;
  font-size: 0.66rem;
}

.home-publication__links .publication-link i {
  font-size: 0.65rem;
}

.home-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 1rem;
}

.home-context__column {
  padding: 1.25rem;
  border: 1px solid var(--home-line);
  border-radius: 0.25rem;
  background: #fff;
}

.home-context__column--award {
  border-color: #ead6ad;
  background: linear-gradient(145deg, #fffaf0, #fff 70%);
}

.home-timeline {
  margin-top: 1.1rem;
  border-left: 2px solid #c9dfe2;
}

.home-timeline__item {
  display: grid;
  grid-template-columns: 5.1rem minmax(0, 1fr);
  gap: 0.55rem;
  position: relative;
  padding: 0 0 1rem 0.9rem;
}

.home-timeline__item:last-child {
  padding-bottom: 0;
}

.home-timeline__item:before {
  position: absolute;
  top: 0.25rem;
  left: -0.36rem;
  width: 0.58rem;
  height: 0.58rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--home-teal);
  content: "";
}

.home-timeline__year {
  color: var(--home-teal);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-timeline h3 {
  margin-bottom: 0.2rem;
  font-size: 0.83rem;
  line-height: 1.25;
}

.home-timeline p {
  margin-bottom: 0;
  color: var(--home-muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.home-award {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0e3c9;
}

.home-award:last-child {
  border-bottom: 0;
}

.home-award__icon {
  color: #c56b18;
  font-size: 0.9rem;
}

.home-award strong {
  display: block;
  margin-bottom: 0.18rem;
  color: #8d4a18;
  font-size: 0.78rem;
  line-height: 1.35;
}

.home-award p {
  margin-bottom: 0;
  color: #76644f;
  font-size: 0.72rem;
  line-height: 1.45;
}

.home-award--quiet strong {
  color: #576b70;
}

.home-award--quiet .home-award__icon {
  color: #7a9aa1;
}

.home-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding: 1.35rem 1.45rem;
  border-radius: 0.25rem;
  background: #173f4d;
  color: #fff;
}

.home-contact .home-kicker {
  color: #b9d9de;
}

.home-contact h2 {
  color: #fff;
  font-size: 1.25rem;
}

.home-contact p:last-child {
  max-width: 32rem;
  color: #d3e4e6;
}

.home-contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 0.8rem;
  max-width: 17rem;
}

.home-contact__links a {
  color: #d8eff1 !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-contact__links a:hover {
  color: #fff !important;
}

/* Give homepage typography priority over the theme's generic page-content rule. */
.page__content .home-page .home-kicker {
  font-size: 0.68rem;
}

.page__content .home-page .home-hero__lead {
  margin-right: auto !important;
  margin-left: auto !important;
  font-size: 0.96rem;
}

.page__content .home-page .home-hero__copy {
  margin-right: auto !important;
  margin-left: auto !important;
  font-size: 0.86rem;
}

.page__content .home-page .home-publications__legend {
  font-size: 0.72rem;
}

.page__content .home-page .home-publication__meta {
  font-size: 0.62rem;
}

.page__content .home-page .home-publication__authors {
  font-size: 0.75rem;
}

@media (max-width: 700px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
  }

  .home-hero__profile img {
    width: 5.9rem;
    height: 5.9rem;
  }

  .home-section {
    margin-bottom: 2.2rem;
  }

  .home-section__heading--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .home-publications__heading {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding-top: 0.72rem;
  }

  .home-publications__heading .home-section__link {
    align-self: start;
  }

  .home-context {
    grid-template-columns: 1fr;
  }

  .home-publication {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .home-publication__thumb {
    height: 64px;
  }

  .home-publication h3 {
    font-size: 0.88rem;
  }

  .home-publication__authors {
    font-size: 0.7rem;
  }

  .home-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .home-contact__links {
    justify-content: flex-start;
    max-width: none;
  }
}
