/* =========================
   Global / Base
   ========================= */

/* Prefer Pico's default system font stack for crisper rendering */
/* body { font-family: Arial, sans-serif; } */

/* Keep text line length comfortable */
.text-content { max-width: 65ch; }

/* Responsive profile layout on the home page */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing);
}

@media (min-width: 768px) {
  .profile-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
    gap: calc(var(--spacing) * 2);
  }
}

figure {
  margin: 0;               /* remove default figure margin */
  display: flex;
  align-items: center;
  justify-content: center;
}

#portrait {
  max-width: clamp(200px, 24vw, 320px);
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* Optional polish */
  /* border-radius: 8px; */
  /* border: 1px solid var(--muted-border-color); */
}

/* Footer */
footer {
  text-align: center;
  padding: var(--spacing) 0;
  margin-top: var(--spacing);
  border-top: 1px solid var(--muted-border-color);
}
footer small a { margin: 0 5px; }

/* Horizontal rules (global) */
hr {
  margin-top: var(--spacing);
  margin-bottom: var(--spacing);
}

/* === Research page: weighty flat entries === */
#working-papers { max-width: 72ch; }  /* keeps line length elegant */

#working-papers .paper-entry {
  /* kill Pico card look if <article> sneaks in */
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  padding: 1.1rem 0 1.1rem 0;
}

#working-papers .paper-entry + .paper-entry {
  border-top: 1px solid var(--muted-border-color);   /* single hairline between items */
}

/* Small “eyebrow” status above the title */
#working-papers .eyebrow {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
  color: var(--muted-color);
  margin: 0 0 .25rem 0;
}

/* Title gets the visual weight */
#working-papers .paper-title {
  margin: 0 0 .15rem 0;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--contrast);
  line-height: 1.25;
}
#working-papers .paper-title a { color: inherit; text-decoration: underline; }

/* Authors/status line under the title */
#working-papers .meta {
  margin: 0 0 .35rem 0;
  font-size: .95rem;
  color: var(--muted-color);
}

/* Abstract/snippet */
#working-papers .snippet {
  margin: 0;
  font-size: .98rem;
}


/* =========================
   Projects page (grouped list pattern)
   ========================= */

/* Intro line under the page title */
#applied-projects p.lede {
  margin-top: 0;
  color: var(--muted-color);
  font-size: .98em;
}

/* Group wrapper */
.project-group { margin-top: 2rem; }

/* One subtle separator ABOVE each group except the first */
.project-group + .project-group {
  margin-top: 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--muted-border-color);
}

/* Group header: visually outranks project titles */
#applied-projects h2 {
  margin: 0 0 .5rem 0;
  font-style: normal;
  font-weight: 700;
  font-size: 1.15rem;         /* larger than h3 */
  letter-spacing: .02em;
  color: var(--contrast);     /* brighter than project titles */
}

/* Project block */
.project { padding-bottom: .5rem; }

/* Project title: secondary to h2 */
.project h3 {
  margin: .25rem 0 .25rem 0;
  font-weight: 600;
  font-size: 1.02rem;
}

/* Project copy rhythm */
.project p { margin: 0 0 .5rem 0; }

/* Hairline only BETWEEN sibling projects (not after the last) */
.project + .project {
  border-top: 1px solid var(--muted-border-color);
  padding-top: .75rem;
}


.cta-row a { margin-right: .5rem; }
