/* Latin Modern Mono: the typewriter face of LaTeX, and so of most
   cryptography papers. */
@font-face {
  font-family: "Latin Modern Mono";
  src: url("fonts/lmmono10-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Latin Modern Mono";
  src: url("fonts/lmmonolt10-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #fff;
  --ink: #333;
  --rule: #666;
  --muted: #555;
}

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

html {
  background: var(--ground);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Latin Modern Mono", "CMU Typewriter Text", "Courier New", Courier, monospace;
  font-size: 1rem;
  line-height: 1.5;
  font-synthesis: none;
  /* Same rendering as the reviewed review group. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--ink);
  color: var(--ground);
}

/* A narrow centred column, 72 characters wide. */
main {
  max-width: calc(72ch + 3rem);
  margin-inline: auto;
  padding: clamp(3rem, 14vh, 7.5rem) 1.5rem 4rem;
}

h1,
h2,
p,
ul {
  margin: 0;
  padding: 0;
  font-size: inherit;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  text-wrap: balance;
}

.mission {
  margin-top: 1rem;
  text-wrap: pretty;
}

.mission p + p {
  margin-top: 0.75rem;
}

/* Links follow the original quiet underline treatment. */
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

section {
  margin-top: 3rem;
}

h2 + * {
  margin-top: 0.5rem;
}

.roll {
  list-style: none;
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-wrap: balance;
}

/* Narrow screens: affiliation sits under the name, indented. */
.roll li + li {
  margin-top: 0.5rem;
}

.roll .affiliation {
  display: block;
  padding-left: 2ch;
}

.affiliation-expression {
  white-space: pre-wrap;
  font-synthesis: style;
}

@media (min-width: 40rem) {
  .roll {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 6ch;
  }

  .roll li {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 24ch 1fr;
    column-gap: 6ch;
  }

  @supports (grid-template-columns: subgrid) {
    .roll li {
      grid-template-columns: subgrid;
    }
  }

  .roll li + li {
    margin-top: 0;
  }

  .roll .affiliation {
    padding-left: 0;
  }
}

@media print {
  :root {
    --ground: #fff;
    --ink: #000;
  }

  main {
    padding-top: 0;
  }
}

.byline { margin-top: 1rem; }
header + p { margin-top: 3rem; }

/* The Delightful Rainbow layer. */
:root {
  --r1: #e40303;
  --r2: #ff8c00;
  --r3: #ffed00;
  --r4: #008026;
  --r5: #004cff;
  --r6: #732982;
  --rainbow: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6));
}

body::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--rainbow);
}

::selection {
  background: var(--r6);
  color: #fff;
}

h1::after {
  content: "";
  display: block;
  width: 12ch;
  height: 4px;
  margin-top: 0.75rem;
  background: var(--rainbow);
}

.roll li:nth-child(6n + 1) .name { text-decoration-color: var(--r1); }
.roll li:nth-child(6n + 2) .name { text-decoration-color: var(--r2); }
.roll li:nth-child(6n + 3) .name { text-decoration-color: var(--r3); }
.roll li:nth-child(6n + 4) .name { text-decoration-color: var(--r4); }
.roll li:nth-child(6n + 5) .name { text-decoration-color: var(--r5); }
.roll li:nth-child(6n + 6) .name { text-decoration-color: var(--r6); }

.roll .name {
  text-decoration: underline 2px;
  text-underline-offset: 0.25em;
}
