/* László Kopácsi — personal site. One rail on the left carries dates, years and theme names;
   the reading column sits to its right. The fixation mark (dot and dwell ring) is the one signature. */

@property --dwell {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

:root {
  --ground: #ffffff;
  --ink: #132029;
  --ink-2: #47575f;
  --rule: #d3dcde;
  --mark: #e8720c;
  --link: #a3450a;
  --band: #132029;
  --band-ink: #f4f7f7;
  --band-ink-2: #b9c6cb;
  --chip-on: #132029;
  --chip-on-ink: #f4f7f7;

  --rail: 13rem;
  --gap: 2.5rem;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* The pages carry data-theme="dark" by default; the button in the masthead switches to light (site.js). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0e1518;
  --ink: #e4eaec;
  --ink-2: #a3b3ba;
  --rule: #27343a;
  --mark: #ff9a3c;
  --link: #ffae63;
  --band: #172329;
  --band-ink: #eef3f4;
  --band-ink-2: #a9b8be;
  --chip-on: #e4eaec;
  --chip-on-ink: #0e1518;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-color: var(--ink-2) var(--ground);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

::selection { background: var(--mark); color: #132029; }

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
  transition: text-decoration-color 0.2s var(--ease);
}
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
/* On white, the dark orange reads thin at regular weight: links in the text are set one step heavier
   and their underline is stronger. Fonts without a medium weight show them as before. */
:root:not([data-theme="dark"]) :where(main, footer) a:not(:where(h1, h2, h3, h4, strong, b, .link-row, .links) a) {
  font-weight: 500;
}
:root:not([data-theme="dark"]) :where(main, footer) a {
  text-decoration-color: color-mix(in srgb, var(--link) 65%, transparent);
}
:root:not([data-theme="dark"]) :where(main, footer) a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4, p, ul, dl, dd, dt { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(100% - 3rem, 60rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--mark);
  color: #132029;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------- masthead ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--band);
  color: var(--band-ink);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}
.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--band-ink);
  font: 600 1.0625rem/1.2 var(--font-head);
  text-decoration: none;
}
.site-name::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--mark);
  box-shadow: 0 0 0 3px var(--band), 0 0 0 4.5px var(--mark);
}
.site-head nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-head nav a {
  color: var(--band-ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
  padding-block: 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--band-ink-2);
  border-radius: 999px;
  background: transparent;
  color: var(--band-ink-2);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-icon { width: 0.95em; height: 0.95em; fill: currentColor; }
.theme-icon path { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.icon-moon path { stroke: none; }
/* The icon shows the theme that the button switches to. */
:root[data-theme="dark"] .icon-moon,
:root:not([data-theme="dark"]) .icon-sun { display: none; }
.theme-toggle:hover { color: var(--band-ink); border-color: var(--mark); }
.theme-toggle:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.site-head nav a:hover,
.site-head nav a[aria-current="page"] { color: var(--band-ink); border-bottom-color: var(--mark); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  padding-top: 4rem;
}
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
h1 {
  font: 650 clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem)/1.08 var(--font-head);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.role {
  margin-top: 0.75rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.tagline { margin-top: 1rem; max-width: 52ch; font-size: 1.125rem; line-height: 1.45; text-wrap: pretty; }
.bio { margin-top: 1.5rem; max-width: 68ch; }
.bio p + p { margin-top: 0.9rem; }

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-weight: 600;
  font-size: 0.9875rem;
}

.link-row .cta {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 3px;
  background: var(--chip-on);
  color: var(--chip-on-ink);
  text-decoration: none;
}
.link-row .cta:hover { background: var(--link); color: var(--ground); }
.link-row:not(.minor) { align-items: center; margin-top: 1.1rem; padding-top: 0; border-top: 0; }
.link-row.minor {
  margin-top: 1.3rem;
  padding-top: 0.9rem;
  font-weight: 400;
  font-size: 0.875rem;
}
.link-row.minor a { color: var(--ink-2); }

/* ---------- sections ---------- */

main > section { margin-top: 5rem; }
main > section.hero { margin-top: 0; }

h2 {
  font: 650 1.625rem/1.2 var(--font-head);
  letter-spacing: -0.012em;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 1.4rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 2rem;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 0;
}
.section-head h2 { border: 0; padding: 0; margin: 0; }
.section-head p { color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- news ---------- */

.news li {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gap);
  padding-block: 0.55rem;
}
.news li[hidden] { display: none; }
@media screen { [data-limit] > [hidden] { display: none !important; } }
.eq { color: var(--ink-2); white-space: nowrap; }
.text-btn.flat { margin-left: 0; margin-top: 0.4rem; }
.list-more { list-style: none; padding-left: 2.025rem; }
@media print { .text-btn, .theme-toggle { display: none; } }
.news time { color: var(--ink-2); }
.news span { max-width: 68ch; }

.text-btn {
  margin-top: 0.9rem;
  margin-left: calc(var(--rail) + var(--gap));
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: 600 0.9375rem/1.4 var(--font);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.text-btn:hover { text-decoration-thickness: 2px; }

/* ---------- research themes and publications ---------- */

.theme {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gap);
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--rule);
}
.theme:last-child { border-bottom: 0; padding-bottom: 0; }
.theme.progress { margin-top: 1.9rem; border-top: 1px solid var(--rule); }
.theme-head h3 {
  font: 650 1.0625rem/1.3 var(--font-head);
  text-wrap: balance;
}
.theme-head p {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pubs { display: grid; gap: 1.5rem; }

.pub {
  --dwell: 0deg;
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  transition: --dwell 0.25s var(--ease);
}
.pub.has-thumb { grid-template-columns: 1.125rem minmax(0, 1fr) 10rem; }
.pub:hover,
.pub:focus-within { --dwell: 360deg; transition: --dwell 0.55s linear; }

/* fixation mark: a dot; the ring closes while the pointer dwells on the entry */
.fix {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.28rem;
}
.fix::before {
  content: "";
  position: absolute;
  inset: 0.375rem;
  border-radius: 50%;
  background: var(--mark);
}
.fix::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--mark) var(--dwell), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}

.pub-title {
  font: 600 1.0625rem/1.4 var(--font);
  text-wrap: pretty;
}
.pub-title a { color: var(--ink); text-decoration-color: transparent; }
.pub:hover .pub-title a,
.pub-title a:hover { text-decoration-color: var(--mark); text-decoration-thickness: 2px; }

.authors { margin-top: 0.3rem; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.authors b { color: var(--ink); font-weight: 600; }
.meta { margin-top: 0.3rem; font-size: 0.9375rem; line-height: 1.5; }
.venue { font-style: italic; }
.kind {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.45rem;
  border: 1px solid var(--ink-2);
  border-radius: 3px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.5;
  white-space: nowrap;
}
.award {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.45rem;
  border-radius: 3px;
  background: var(--mark);
  color: #132029;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.summary { margin-top: 0.45rem; font-size: 0.9375rem; max-width: 64ch; }
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.thumb { width: 10rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; background: #fff; border: 1px solid var(--rule); }
.thumb-play { position: relative; display: block; width: 10rem; line-height: 0; border-radius: 3px; }
.thumb-play .thumb { display: block; width: 100%; }
.thumb-zoom { display: block; width: 10rem; line-height: 0; border-radius: 3px; cursor: zoom-in; }
.thumb-zoom .thumb { display: block; width: 100%; }
.thumb-zoom:hover .thumb, .thumb-zoom:focus-visible .thumb { border-color: var(--mark); }
.thumb-play .play {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #132029;
  opacity: 0.92;
  transition: background 0.15s;
}
.thumb-play .play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.36rem 0 0.36rem 0.6rem;
  border-color: transparent transparent transparent #fff;
}
.thumb-play:hover .play,
.thumb-play:focus-visible .play { background: var(--mark); }
dialog.video {
  width: min(92vw, 60rem);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #000;
  overflow: hidden;
}
dialog.video::backdrop { background: rgba(10, 16, 20, 0.82); }
dialog.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
dialog.figure { width: min(92vw, 640px); }
dialog.figure img { display: block; width: 100%; height: auto; background: #fff; }
.video-close {
  display: block;
  margin-left: auto;
  padding: 0.45rem 0.9rem;
  border: 0;
  background: none;
  color: #fff;
  font: 600 0.875rem/1.2 var(--font);
  cursor: pointer;
}
.video-close:hover { text-decoration: underline; }
/* The notice shown before the player is loaded from YouTube. */
.video-ask { max-width: 34rem; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; color: #fff; font-size: 1rem; line-height: 1.5; }
.video-ask p { margin: 0 0 1.1rem; }
.video-ask p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0; }
.video-ask a { color: #fff; }
.video-play {
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #132029;
  font: 600 1rem/1.2 var(--font);
  cursor: pointer;
}
.video-play:hover { background: #dfe7ea; }
.video-play:focus-visible, .video-ask a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media print { .thumb-play .play { display: none; } }
.proj-more { font-size: 0.875rem; font-weight: 400; margin-left: 0.6rem; }
.proj-more::before { content: "· "; }

/* ---------- rail rows: projects, software, press, teaching, awards ---------- */

.rows .row {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gap);
  padding-block: 0.55rem;
}
.rows dt { color: var(--ink-2); }
.rows dd { max-width: 68ch; }
.rows.named dt { color: var(--ink); font-weight: 600; }
.rows.wide .row { padding-block: 1.2rem; border-bottom: 1px solid var(--rule); }
.rows.wide .row:first-child { padding-top: 0.3rem; }
.rows.wide .row:last-child { border-bottom: 0; padding-bottom: 0; }
.rows h3 { font: 600 1.0625rem/1.4 var(--font); }
.rows h3 a { color: var(--ink); }
.proj-meta { margin-top: 0.2rem; color: var(--ink-2); font-size: 0.9375rem; }
.proj-role { color: var(--ink); font-weight: 600; }
.rows dd p + p { margin-top: 0.45rem; }
.lede { max-width: 68ch; margin-block: 1rem 1.6rem; }
.rows .row-title { font-weight: 600; }
.rows .tools { list-style: none; margin: 0; padding: 0; }
.rows .tools li + li { margin-top: 0.2rem; }
#supervision .row-title { font-weight: inherit; font-style: italic; }
.rows dd .row-desc { margin-top: 0.15rem; color: var(--ink-2); }
.rows .links { margin-top: 0.35rem; }
.when { color: var(--ink-2); }

/* ---------- publications page ---------- */

.page-head { padding-top: 4rem; }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.page-head > p { margin-top: 1rem; max-width: 68ch; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.chip {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--ink-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 0.9375rem/1.4 var(--font);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip .n { color: var(--ink-2); margin-left: 0.15rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--chip-on); border-color: var(--chip-on); color: var(--chip-on-ink); }
.chip[aria-pressed="true"] .n { color: inherit; opacity: 0.75; }
.empty { margin-top: 2rem; color: var(--ink-2); }

main > section.year {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gap);
  margin-top: 0;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}
main > section.page-head + section.year { margin-top: 2.5rem; border-top: 1px solid var(--ink); }
main > section.year:last-child { border-bottom: 0; }
.year[hidden], .pub[hidden] { display: none; }
.year h2 {
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 1.625rem;
  color: var(--ink);
}

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

.site-foot {
  margin-top: 6rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 0.4rem 2rem; flex-wrap: wrap; }

/* Headings that fold their section on phones (site.js). Outside the phone layout the button is plain text. */
.fold-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}

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

@media (max-width: 46rem) {
  :root { --gap: 1.25rem; }
  html { scroll-padding-top: 1rem; }
  body { font-size: 1rem; }
  .wrap { width: min(100% - 2rem, 60rem); }
  /* masthead: name and theme button on one line, the section links in one row that scrolls sideways */
  .site-head { position: static; }
  .site-head .wrap { gap: 0 1rem; padding-block: 0.7rem 0; }
  .theme-toggle { order: 2; padding: 0.35rem 0.8rem; }
  .site-head nav {
    order: 3;
    flex: 0 0 calc(100% + 2rem);
    margin-inline: -1rem;
    padding-inline: 1rem;
    gap: 1.3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
  .site-head nav::-webkit-scrollbar { display: none; }
  .site-head nav a { padding-block: 0.75rem 0.65rem; white-space: nowrap; }
  .site-head nav a:last-child { padding-right: 2rem; }

  /* hero: small portrait beside the name, then the links, then the bio */
  .hero { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0; padding-top: 1.75rem; }
  .hero-text { display: contents; }
  .portrait { grid-row: 1 / span 2; width: 5.5rem; align-self: center; }
  .hero h1 { grid-column: 2; align-self: end; font-size: 1.875rem; }
  .hero .role { grid-column: 2; align-self: start; margin-top: 0.35rem; font-size: 0.875rem; line-height: 1.4; }
  .hero .link-row, .hero .bio, .hero .tagline { grid-column: 1 / -1; }
  .hero .tagline { font-size: 1.0625rem; }
  .hero .link-row:not(.minor) { margin-top: 1.25rem; gap: 0.2rem 1.25rem; }
  .link-row a { display: inline-block; padding-block: 0.45rem; }
  .link-row .cta { padding: 0.45rem 1rem; }
  .bio { margin-top: 1rem; }
  main > section { margin-top: 3.25rem; }

  /* folded parts */
  .clipped > .extra { display: none; }
  .text-btn { padding-block: 0.5rem; }
  .fold-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 2.75rem;
    cursor: pointer;
  }
  .fold-btn::after {
    content: "";
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.3rem;
    border-right: 2px solid var(--mark);
    border-bottom: 2px solid var(--mark);
    transform: translateY(-0.15rem) rotate(45deg);
    transition: transform 0.2s var(--ease);
  }
  .fold-btn[aria-expanded="true"]::after { transform: translateY(0.12rem) rotate(-135deg); }
  main > section[data-fold] > h2 { padding-bottom: 0.3rem; font-size: 1.25rem; }
  main > section[data-fold].folded > h2 { margin-bottom: 0; border-bottom-color: var(--rule); }
  main > section.folded > :not(h2) { display: none; }
  main > section[data-fold] + section[data-fold] { margin-top: 0.35rem; }
  main > section[data-fold] + section[data-fold]:not(.folded),
  main > section[data-fold]:not(.folded) + section[data-fold] { margin-top: 1.5rem; }
  .theme.folded > :not(.theme-head) { display: none; }
  .theme.folded { padding-block: 0.9rem; }
  .pub .links a { display: inline-block; padding-block: 0.4rem; }

  .news li, .rows .row { grid-template-columns: 1fr; gap: 0.1rem; padding-block: 0.6rem; }
  .news time, .rows dt { font-size: 0.875rem; }
  /* Under its label the list of tools is indented, and a line that wraps once more, so that the names stand out. */
  .rows .tools { padding-left: 1.1rem; }
  .rows .tools li { padding-left: 1.1rem; text-indent: -1.1rem; }
  .text-btn { margin-left: 0; }

  .theme, main > section.year { grid-template-columns: 1fr; gap: 1.1rem; }
  .pub.has-thumb { grid-template-columns: 1.125rem minmax(0, 1fr); }
  .pub.has-thumb > .thumb, .pub.has-thumb > .thumb-play, .pub.has-thumb > .thumb-zoom { grid-column: 2; width: 100%; max-width: 20rem; }
  .page-head { padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  .site-head, .chips, .text-btn, .skip { display: none; }
  .news li[hidden] { display: grid; }
  body { font-size: 10.5pt; background: #fff; color: #000; }
  a { color: inherit; }
}

/* ---------- paper pages (papers/<id>/) ---------- */

.crumb { font-size: 0.9375rem; }
.paper-head h1 { margin-top: 0.6rem; max-width: 26em; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); }
.page-head.paper-head > p { max-width: none; }
.paper-head .authors { margin-top: 1rem; }
.paper-head .meta { color: var(--ink); }
main > section.paper-abstract { margin-top: 2.5rem; }
.paper-body {
  display: grid;
  grid-template-columns: minmax(0, 68ch) minmax(0, 320px);
  gap: var(--gap);
  align-items: start;
  margin-top: 1rem;
}
.paper-body .thumb, .paper-body .thumb-zoom { width: 100%; height: auto; }
@media (max-width: 60rem) {
  .paper-body { grid-template-columns: minmax(0, 1fr); }
  .paper-body .thumb { max-width: 320px; }
}

/* ---------- legal notice and privacy notice ---------- */

main > section.legal { margin-top: 4rem; }
main > section.legal + section.legal { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--ink); }
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.prose h2 { margin-top: 2.2rem; font-size: 1.25rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.0625rem; }
.prose p, .prose ul { margin-top: 0.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.25rem; }
.prose a { overflow-wrap: anywhere; }
.legal-note { color: var(--ink-2); font-size: 0.9375rem; }
mark.todo {
  padding: 0 0.35em;
  border: 1px dashed var(--mark);
  background: none;
  color: var(--mark);
  font-size: 0.875em;
  cursor: help;
}
