@font-face {
  font-family: "GT America";
  src: url("/fonts/closed/GTAmerica-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GT America";
  src: url("/fonts/closed/GTAmerica-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: #171717;
  --muted: #666;
  --rule: #dedede;
  --soft-rule: #eeeeee;
  --surface: #fafafa;
  --link: #111;
  --max-width: 880px;
  --title-max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "GT America", Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.1em;
}

.page {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero {
  text-align: center;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  left: 50%;
  width: min(calc(100vw - 2rem), var(--title-max-width));
  margin-inline: auto;
  transform: translateX(-50%);
  margin-bottom: 1.5rem;
  font-size: clamp(2.375rem, 7vw, 3.75rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-wrap: pretty;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.authors {
  max-width: 720px;
  margin: 0 auto 0.8rem;
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  line-height: 1.55;
}

.author {
  white-space: nowrap;
}

sup {
  line-height: 0;
}

.affiliations,
.notes {
  color: var(--muted);
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  gap: 0.25rem 1rem;
  margin-bottom: 0.3rem;
}

.notes {
  margin-bottom: 1.7rem;
  font-size: 0.95rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.52rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 0.55rem;
  background: #fff;
  text-decoration: none;
  line-height: 1;
}

.resource-link:hover {
  border-color: #aaa;
}

.resource-link[aria-disabled="true"] {
  color: var(--rule);
  cursor: not-allowed;
}

.resource-link svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.section {
  padding: clamp(2.4rem, 5vw, 3.4rem) 0;
  border-bottom: 1px solid var(--soft-rule);
}

.section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.section p {
  margin-bottom: 0;
  color: #2c2c2c;
  font-size: clamp(1rem, 2.25vw, 1.25rem);
  letter-spacing: -0.015em;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.tldr {
  padding: clamp(2rem, 3vw, 3rem) 0;
  border-bottom: 1px solid var(--soft-rule);
}

.tldr h2 {
  margin-bottom: 0.55rem;
}

.tldr p {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: clamp(1.125rem, 2.4vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: -0.018em;
  text-align: center;
  hyphens: auto;
}

pre {
  margin: 0;
  padding: 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 0.45rem;
  background: var(--surface);
  font-size: 0.88rem;
  line-height: 1.55;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

@media (max-width: 620px) {
  .page {
    width: min(calc(100% - 2rem), var(--max-width));
    padding-block: 2.2rem;
  }

  h1 {
    width: min(calc(100vw - 2rem), var(--title-max-width));
    letter-spacing: -0.045em;
  }

  .affiliations {
    align-items: stretch;
    flex-direction: column;
  }

  .links {
    gap: 0.45rem;
  }

  .resource-link {
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.42rem 0.68rem;
    font-size: 0.95rem;
  }

  .resource-link svg {
    width: 1rem;
    height: 1rem;
  }
}
