/* Élie de Panafieu — personal page
   One typeface, ink on white, section headings set in the left margin
   as in a typeset book. Links carry the only colour, the same blue as
   the CV PDF. */

:root {
  --ink: #1d2230;
  --muted: #5e6779;
  --link: #1a4b8c;
  --rule: #d9dee7;
  --paper: #ffffff;
  --measure: 46rem;
  --margin-col: 10.5rem;
}

* { box-sizing: border-box; }

html {
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 4.5rem 1.5rem 5rem;
  max-width: calc(var(--margin-col) + var(--measure) + 3rem);
  margin-inline: auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}
a:hover { text-decoration-thickness: 0.12em; }
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

b { font-weight: 600; }

/* ---------- header ---------- */

header {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, var(--measure));
  column-gap: 1.5rem;
  margin-bottom: 4rem;
}

.portrait {
  grid-column: 1;
  justify-self: end;
  width: 8.5rem;
  height: auto;
  border-radius: 3px;
  margin-top: 0.55rem;   /* aligns the top of the photo with the cap height of the name */
}

header .intro { grid-column: 2; }

h1 {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.role {
  margin: 0 0 1.6rem;
  color: var(--muted);
}

.lede {
  font-size: 1.12rem;
  line-height: 1.5;
  margin: 0 0 1.6rem;
}

.contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact li { margin: 0.15rem 0; }

/* ---------- sections with side headings ---------- */

main { display: block; }

section {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, var(--measure));
  column-gap: 1.5rem;
  margin-bottom: 3.2rem;
}

section h2 {
  grid-column: 1;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
  text-align: right;
  color: var(--ink);
  position: sticky;
  top: 1.2rem;
  align-self: start;
}

section .body { grid-column: 2; }
section .body > :first-child { margin-top: 0; }

p { margin: 0 0 1rem; }

h3 {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  margin: 1.8rem 0 0.6rem;
  color: var(--muted);
}
h3:first-child { margin-top: 0; }

/* ---------- publication list ---------- */

.publist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.publist li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  column-gap: 0.8rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
}
.publist li:first-child { border-top: 0; }

.publist .year {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.05em;
}

.publist .pub { display: block; }
.publist .pub > span { display: block; }

.publist .title { font-weight: 600; }
.publist .authors { }
.publist .venue { color: var(--muted); }
.publist .links { margin-top: 0.1rem; font-size: 0.92rem; }
.publist .links a { margin-right: 0.9rem; }

/* ---------- plain lists ---------- */

.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain li { margin: 0 0 0.7rem; }

/* ---------- footer ---------- */

footer {
  margin-left: var(--margin-col);
  padding-left: 1.5rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  html { font-size: 16px; }
  body { padding: 2.5rem 1.2rem 3rem; }

  footer {
    margin-left: 0;
    padding-left: 0;
  }
  header {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1rem;
    margin-bottom: 2.6rem;
  }
  .portrait {
    grid-column: 1;
    justify-self: start;
    width: 6.5rem;
    margin-top: 0;
  }
  header .intro { grid-column: 1; }
  h1 { font-size: 2.1rem; }

  section {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 2.4rem;
  }
  section h2 {
    grid-column: 1;
    text-align: left;
    position: static;
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--rule);
  }
  section .body { grid-column: 1; }

  .publist li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.1rem;
  }
  .publist .year { font-size: 0.92rem; }
}

@media print {
  body { padding: 0; max-width: none; }
  a { color: inherit; text-decoration: none; }
  section h2 { position: static; }
}/* Élie de Panafieu — personal page
   One typeface, ink on white, section headings set in the left margin
   as in a typeset book. Links carry the only colour, the same blue as
   the CV PDF. */

:root {
  --ink: #1d2230;
  --muted: #5e6779;
  --link: #1a4b8c;
  --rule: #d9dee7;
  --paper: #ffffff;
  --measure: 66ch;
  --margin-col: 9.5rem;
}

* { box-sizing: border-box; }

html {
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 4.5rem 1.5rem 5rem;
  max-width: calc(var(--margin-col) + var(--measure) + 3rem);
  margin-inline: auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}
a:hover { text-decoration-thickness: 0.12em; }
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

b { font-weight: 600; }

/* ---------- header ---------- */

header {
  margin-left: var(--margin-col);
  padding-left: 1.5rem;
  max-width: var(--measure);
  margin-bottom: 4rem;
}

h1 {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.role {
  margin: 0 0 1.6rem;
  color: var(--muted);
}

.lede {
  font-size: 1.12rem;
  line-height: 1.5;
  margin: 0 0 1.6rem;
}

.contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact li { margin: 0.15rem 0; }

/* ---------- sections with side headings ---------- */

main { display: block; }

section {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, var(--measure));
  column-gap: 1.5rem;
  margin-bottom: 3.2rem;
}

section h2 {
  grid-column: 1;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
  text-align: right;
  color: var(--ink);
  position: sticky;
  top: 1.2rem;
  align-self: start;
}

section .body { grid-column: 2; }
section .body > :first-child { margin-top: 0; }

p { margin: 0 0 1rem; }

h3 {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  margin: 1.8rem 0 0.6rem;
  color: var(--muted);
}
h3:first-child { margin-top: 0; }

/* ---------- publication list ---------- */

.publist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.publist li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  column-gap: 0.8rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
}
.publist li:first-child { border-top: 0; }

.publist .year {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.05em;
}

.publist .pub { display: block; }
.publist .pub > span { display: block; }

.publist .title { font-weight: 600; }
.publist .authors { }
.publist .venue { color: var(--muted); }
.publist .links { margin-top: 0.1rem; font-size: 0.92rem; }
.publist .links a { margin-right: 0.9rem; }

/* ---------- plain lists ---------- */

.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain li { margin: 0 0 0.7rem; }

/* ---------- footer ---------- */

footer {
  margin-left: var(--margin-col);
  padding-left: 1.5rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  html { font-size: 16px; }
  body { padding: 2.5rem 1.2rem 3rem; }

  header, footer {
    margin-left: 0;
    padding-left: 0;
  }
  h1 { font-size: 2.1rem; }

  section {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 2.4rem;
  }
  section h2 {
    grid-column: 1;
    text-align: left;
    position: static;
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--rule);
  }
  section .body { grid-column: 1; }

  .publist li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.1rem;
  }
  .publist .year { font-size: 0.92rem; }
}

@media print {
  body { padding: 0; max-width: none; }
  a { color: inherit; text-decoration: none; }
  section h2 { position: static; }
}
