/* andrecalmon.com: faculty page. Source Serif 4 throughout (optical sizes: text and display). */

:root {
  --ink: #111;
  --muted: #595959;
  --link: #003057;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

/* Georgia scaled to Source Serif 4, so text does not jump when the webfont arrives */
@font-face { font-family: "Source Serif 4 Fallback"; src: local("Georgia"); size-adjust: 102.9%; }
@font-face { font-family: "Source Serif 4 Fallback"; src: local("Georgia Bold"), local("Georgia-Bold"); font-weight: 600 700; size-adjust: 89.9%; }
@font-face { font-family: "Source Serif 4 Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-style: italic; size-adjust: 94.3%; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.page {
  max-width: 47rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}
a:hover { text-decoration-thickness: 2px; }
/* Links inside running text: navy, no underline until hover or keyboard focus */
a.quiet { text-decoration: none; }
a.quiet:hover, a.quiet:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  z-index: 20;
  left: -10000px;
  top: 0.5rem;
  background: #fff;
  padding: 0.25rem 0.5rem;
}
.skip:focus { left: 0.5rem; }

h1, h2, h3 {
  font-family: "Source Serif 4", "Source Serif 4 Fallback", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: #000;
}
h1 { font-size: 2.6rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.95rem; margin: 3.5rem 0 0.75rem; }
h2 + h3 { margin-top: 0.5rem; }
h3 { font-size: 1.25rem; margin: 1.7rem 0 0.5rem; }

p { margin: 0 0 0.75rem; }
cite { font-style: italic; }
b { font-weight: 600; }
.nw { white-space: nowrap; }

/* Navigation: a plain row of links */
nav.top { padding: 1.1rem 0 0; margin-bottom: 2rem; }
nav.top ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.3rem;
}
nav.top a { text-decoration: none; }
nav.top a:hover { text-decoration: underline; }

/* Photo, name, position, contact */
.profile {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: 1.75rem;
  align-items: start;
}
.profile img { display: block; width: 100%; height: auto; }
.ident p { margin: 0 0 0.6rem; }
.ident .reach { margin-top: 1rem; }
.reach .sep { white-space: pre; color: var(--muted); }

.bio { margin-top: 1.9rem; }

/* Publications: title, then authors, then venue and year, then links */
.refs { list-style: none; margin: 0; padding: 0; }
.refs > li { margin: 0 0 1.15rem; }
.refs p { margin: 0; }
.refs .t { font-weight: 600; line-height: 1.35; }
.refs .by, .refs .venue, .refs .note { font-size: 0.95em; color: #333; line-height: 1.45; }
.refs .by { margin-top: 0.1rem; }
.refs .links { font-size: 0.92em; }
.links .b { margin-right: 0.3em; }

/* [doi] [ssrn] [abstract]: the brackets are drawn, sit outside the underline,
   and are left out of the accessible name. */
.b::before { content: "["; content: "[" / ""; }
.b::after { content: "]"; content: "]" / ""; }
.b::before, .b::after { display: inline-block; color: var(--muted); }

details.abs { display: inline; }
details.abs > summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}
details.abs > summary::-webkit-details-marker { display: none; }
details.abs > summary.b::after { content: "\00a0\25B8]"; content: "\00a0\25B8]" / ""; }
details.abs[open] > summary.b::after { content: "\00a0\25BE]"; content: "\00a0\25BE]" / ""; }
details.abs > summary:hover { text-decoration-thickness: 2px; }
details.abs > p {
  display: block;
  margin: 0.45rem 0 0.7rem 0.2em;
  padding-left: 0.9em;
  border-left: 2px solid #d0d0d0;
  font-size: 1.02em;
  line-height: 1.5;
  color: #333;
}

/* Plain lists */
.list { margin: 0 0 0.5rem; padding-left: 1.25em; }
.list > li { margin: 0 0 0.3rem; }
.list .award { font-size: 0.92em; color: #444; }

address { font-style: normal; }

.foot {
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.foot p { margin: 0; }

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .reach .sep { display: block; height: 0; overflow: hidden; }
  .page { padding: 0 1rem 2rem; }
  nav.top { margin-bottom: 1.5rem; }
  nav.top ul { gap: 0.25rem 1rem; }
  .profile { grid-template-columns: 1fr; gap: 1.1rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; margin-top: 3rem; }
  h3 { font-size: 1.15rem; }
  nav.top ul { row-gap: 0; }
  nav.top a { display: inline-block; padding: 0.35rem 0; }
  .profile img { width: 7rem; }
  /* Larger tap targets for the bracket links */
  .links { line-height: 2.2; }
  .links .b { display: inline-block; padding: 0.2em 0.1em; line-height: 1.5; margin-right: 0.45em; }
  details.abs > summary { padding: 0.2em 0.1em; }
  details.abs > p { margin-left: 0.6em; line-height: 1.5; }
}

/* News: date, then the item */
.news { list-style: none; margin: 0; padding: 0; }
.news > li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 0.75rem; margin: 0 0 0.45rem; }
.news time { color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) {
  .news > li { grid-template-columns: 1fr; margin-bottom: 0.7rem; }
}

/* Secondary lists, collapsed by default; the browser's own disclosure triangle */
details.more { margin: 0 0 0.5rem; }
details.more > summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary:hover { text-decoration-thickness: 2px; }
details.more > summary::after { content: "\00a0\25BE"; content: "\00a0\25BE" / ""; display: inline-block; }
details.more[open] > summary::after { content: "\00a0\25B4"; content: "\00a0\25B4" / ""; }
details.more .opened, details.more[open] .closed { display: none; }
details.more[open] .opened { display: inline; }
details.more[open] > summary { margin-bottom: 0.75rem; }

/* Desktop: the section links stay in view while scrolling. Phones keep the page to themselves. */
@media (min-width: 64rem) {
  nav.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding: 0.8rem 0 0.7rem;
    border-bottom: 1px solid #e3e3e3;
  }
  html { scroll-padding-top: 4.75rem; }
}

/* Desktop: a wider page (the column no longer reads as a thin strip) */
@media (min-width: 64rem) {
  body { font-size: 1.0625rem; }
  .page { max-width: 58rem; }
  .profile { grid-template-columns: 15rem 1fr; gap: 2.25rem; }
}

@media print {
  @page { margin: 2cm; }
  body { font-size: 10.5pt; }
  .page { max-width: none; padding: 0; }
  nav.top, .skip, .links, .foot { display: none; }
  details.more > summary { display: none; }
  .profile { grid-template-columns: 1.2in 1fr; }
  a { color: inherit; text-decoration: none; }
  h2, h3 { break-after: avoid; }
  .refs > li, .list > li { break-inside: avoid; }
}

