/* styles.css — clean neutral, centered column with two vertical rails */

:root{
  --ink: #0b0f0d;
  --muted: rgba(11,15,13,.64);
  --rule: rgba(11,15,13,.16);
  --rule-soft: rgba(11,15,13,.10);

  --bg: #ffffff;

  --max: 980px;
  --padX: clamp(18px, 3vw, 44px);
  --padY: clamp(34px, 5vw, 60px);
} 

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: .01em;
}

/* Centered page column (no box) */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--padY) var(--padX) calc(var(--padY) + 24px);
  position: relative;
  text-align: left;
}

/* Header: photo + title block */
.header{
  display: flex;
  align-items: flex-start; /* top-align: photo lines up with text */
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.titleblock{ min-width: 0; }

h1{
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tagline{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Portrait: larger and aligned with top of title */
.portrait{
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: #fff;
  flex: 0 0 auto;
  display: block;
  margin-top: 2px; /* tiny nudge to align visually with H1 */
}

/* Nav: neutral */
.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.nav a{
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav a:hover{
  border-bottom-color: rgba(11,15,13,.45);
}

/* Sections */
main{ margin-top: 18px; }
section{ padding-top: 26px; }

h2{
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

p{
  margin: 10px 0;
  max-width: 78ch;
  color: var(--ink);
}

/* Publications list */
.pubs{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  max-width: 92ch;
}

.pubs li{
  padding: 12px 0;
  border-top: 1px solid var(--rule-soft);
}

.pubs li:first-child{
  border-top: 1px solid var(--rule);
}

.pub-line{ margin: 0; }

.authors{
  margin-top: 6px;
  color: var(--muted);
  font-size: .95rem;
}

/* Links (neutral) */
a{
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover{
  text-decoration-color: rgba(11,15,13,.45);
}

/* Footer */
footer{
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

footer p{
  color: var(--muted);
  margin: 10px 0 0;
}

/* Mobile: remove rails + stack header */
@media (max-width: 720px){
  .container::before,
  .container::after{ display: none; }

  .header{
    flex-direction: column;
    align-items: flex-start;
  }

  .portrait{
    width: 180px;
    height: 180px;
    margin-top: 0;
  }
}
