/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

:root {
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-soft: #4a4f56;
  --text-muted: #6d737b;
  --heading-soft: #3d434b;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(165deg, #faf9f7 0%, #f3f1ec 48%, #f7f6f3 100%);
}

/* --------------------------------------------------------------------------
   Global: softer canvas, no blocky content cards
   -------------------------------------------------------------------------- */

.masthead {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.masthead__menu-item--lg {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.greedy-nav a {
  color: #565d66;
  font-weight: 400;
}

.greedy-nav a:hover,
.greedy-nav a:focus {
  color: #2f3640;
}

.page__content,
.archive,
.vita-page {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.75em 0 1.5em;
}

.page__content,
.page__content p,
.page__content li,
.page__content dd,
.vita-page,
.archive {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.012em;
  color: var(--text-soft);
}

.page__content h1,
.page__content h2,
.page__content h3,
.page__content h4,
.vita-page h2,
.archive h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--heading-soft);
}

.page__content h2,
.vita-page h2 {
  border-bottom: 1px solid rgba(62, 66, 72, 0.12);
  padding-bottom: 0.35em;
}

.page__content a,
.vita-page a,
.archive a {
  color: #4f5d6b;
  text-decoration-color: rgba(79, 93, 107, 0.35);
}

.page__content a:hover,
.vita-page a:hover,
.archive a:hover {
  color: #2f3a45;
}

.page__footer {
  background: transparent;
}

/* Sidebar: lighter presence on inner pages */
.sidebar .author__name {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--heading-soft);
}

.sidebar p,
.sidebar li,
.author__urls a {
  font-family: var(--font-sans);
  font-weight: 400;
}

.author__avatar img {
  border: none !important;
  box-shadow: none !important;
  border-radius: 4px;
}

.author__urls a {
  color: #5a626c;
}

/* --------------------------------------------------------------------------
   Home page: integrated profile + narrative
   -------------------------------------------------------------------------- */

.home-main {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
}

.page--home {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.page__content--home {
  padding: 0;
}

.home {
  padding: 0.5rem 0 2rem;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 206px) minmax(0, 1fr);
  gap: 1.75rem 2.25rem;
  align-items: start;
  padding: 1.75rem 0 1.25rem;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: -1.5rem -1.25rem 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 28%, rgba(214, 208, 196, 0.28), transparent 72%),
    radial-gradient(ellipse 55% 45% at 88% 18%, rgba(198, 206, 214, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.home-profile,
.home-body {
  position: relative;
  z-index: 1;
}

.home-profile {
  display: contents;
}

.home-profile__media {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.home-profile__identity {
  grid-column: 2;
  grid-row: 1;
}

.home-body {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.74;
  letter-spacing: 0.012em;
  color: var(--text-soft);
}

.home-profile__photo {
  display: block;
  width: 100%;
  max-width: 206px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 3px;
  opacity: 0.82;
  filter: saturate(0.85) contrast(0.92) brightness(1.04);
}

.home-profile__name {
  margin: 0 0 0.2em;
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--heading-soft);
}

.home-profile__role {
  margin: 0 0 0.35em;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.home-profile__affiliation {
  margin: 0 0 0.85em;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
}

.home-profile__sep {
  margin: 0 0.35em;
}

.home-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
}

.home-profile__links a {
  color: #4f5d6b;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 93, 107, 0.22);
}

.home-profile__links a:hover {
  color: #2f3a45;
  border-bottom-color: rgba(47, 58, 69, 0.45);
}

.home-body p {
  margin: 0 0 1em;
}

.home-contact {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(62, 66, 72, 0.1);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.home-contact p {
  margin: 0;
}

.home-contact a {
  color: inherit;
  text-decoration-color: rgba(109, 115, 123, 0.45);
}

.home-feature {
  margin: 2.25rem auto 0;
  max-width: 34rem;
  text-align: center;
}

.home-feature img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 3px;
  opacity: 0.94;
  filter: saturate(0.92);
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}

@media (max-width: 700px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  .home-profile__media,
  .home-profile__identity,
  .home-body {
    grid-column: 1;
    grid-row: auto;
  }

  .home-profile__photo {
    margin: 0 auto;
  }

  .home-profile__links {
    justify-content: center;
  }

  .home-body {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Deter casual image downloading
   NOTE: images displayed in a browser are always sent to the client, so this
   cannot truly prevent saving (screenshots, devtools, and the network tab all
   remain). It only blocks the easy paths: drag-out, right-click "Save image
   as", and mobile long-press "Save image".
   -------------------------------------------------------------------------- */

img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
