* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --background: #000;
  --text: #fff;
  --muted: #aaa;
  --rule: #555;
}

html {
  background: var(--background);
  color: var(--text);
}

body {
  max-width: 1440px;
  margin: auto;
  padding: 24px 32px;
  font: 16px/1.45 Arial,Helvetica,sans-serif;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:visited {
  color: var(--muted);
}

a:hover,a:active {
  background: var(--text);
  color: var(--background);
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

p {
  text-wrap: pretty;
}

h1,h2,h3,p {
  margin-top: 0;
}

h2 {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 400;
  margin: 0;
}

h3 {
  font-size: 18px;
  font-weight: 400;
}

time {
  color: var(--muted);
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
}

.site-name {
  align-self: center;
  font: 14px 'Courier New',monospace;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-nav a {
  padding-block: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--text);
  color: var(--background);
  padding: 8px;
}

.skip-link:focus {
  top: 8px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 32px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 12px/1.45 'Courier New',monospace;
}

.site-footer a:visited {
  color: var(--text);
}

.home-title {
  font: 900 clamp(64px,15vw,200px)/.8 Arial,Helvetica,sans-serif;
  letter-spacing: -.065em;
  margin: 40px 0 32px;
  text-transform: uppercase;
}

.home-title span {
  display: block;
}

.intro {
  background: var(--text);
  color: var(--background);
  font-size: 20px;
  padding: 16px 24px;
  margin-bottom: 0;
}

.community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.community p {
  max-width: 60ch;
  margin: 0;
}

.destination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}

.destination p {
  margin: 0;
  max-width: 40ch;
}

.page-title {
  font: 400 clamp(40px,8vw,112px)/1 Arial,Helvetica,sans-serif;
  letter-spacing: -.055em;
  text-transform: none;
  margin: 40px 0 24px;
}

.latest-preview {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.latest-preview h2 {
  font-size: 32px;
  letter-spacing: 0;
  line-height: 1.45;
}

.latest-preview h3 {
  font-size: clamp(24px,3vw,36px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -.025em;
}

.preview-copy p {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
}

.blog-intro {
  color: var(--muted);
  margin-bottom: 32px;
}

.blog-entry {
  display: grid;
  grid-template-columns: 160px minmax(0,1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}

.blog-entry:last-child {
  border-bottom: 1px solid var(--rule);
}

.blog-entry h2 {
  font-size: clamp(24px,3vw,36px);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 16px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--muted);
  font: 14px/1.5 'Courier New', monospace;
  overflow-wrap: anywhere;
}

.blog-entry > .post-meta {
  flex-direction: column;
  align-items: flex-start;
}

.latest-preview .post-meta {
  margin-bottom: 16px;
}

.post {
  max-width: 800px;
  margin: 40px auto 64px;
}

.post-heading {
  display: block;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--rule);
}

.post-title {
  font: 400 clamp(36px,6vw,64px)/1.05 Arial,Helvetica,sans-serif;
  letter-spacing: -.04em;
  text-transform: none;
  margin: 24px 0;
}

.post-body {
  font: 18px/1.7 Georgia,'Times New Roman',serif;
  margin-top: 32px;
  overflow-wrap: anywhere;
}

.post-body p {
  margin: 0 0 24px;
}

.post-body h2 {
  font-size: 28px;
  margin: 40px 0 16px;
}

.post-body h3 {
  font-size: 22px;
  margin: 32px 0 16px;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

.post-body pre {
  overflow: auto;
}

.post-body blockquote {
  margin: 24px 0;
  padding-left: 24px;
  border-left: 1px solid var(--muted);
}

@media(max-width:650px) {
  .latest-preview,.blog-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .post {
    margin-top: 32px;
  }
  .post-body {
    font-size: 17px;
  }
}

.papers-introduction {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

.publication {
  display: grid;
  grid-template-columns: 160px minmax(0,1fr) 100px;
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding: 32px 0;
}

.publication:last-child {
  border-bottom: 1px solid var(--rule);
}

.publication h2 {
  font-size: clamp(24px,3vw,36px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 400;
  max-width: 34ch;
  margin-bottom: 16px;
}

.publication p {
  max-width: 65ch;
  margin-bottom: 0;
  color: var(--muted);
}

.publication-meta {
  font: 14px/1.5 'Courier New',monospace;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publication-pdf {
  align-self: start;
  justify-self: end;
  white-space: nowrap;
}

@media(max-width:700px) {
  .publication {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 16px;
  }
  .publication-meta {
    grid-column: 1/-1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 24px;
  }
  .publication-pdf {
    grid-column: 2;
    grid-row: 2;
  }
  .publication h2 {
    font-size: 24px;
  }
}

@media(max-width:650px) {
  body {
    padding: 20px 16px;
  }
  .site-header {
    flex-direction: column;
    gap: 8px;
  }
  .site-name {
    align-self: flex-start;
  }
  .home-title {
    font-size: 18vw;
    margin-top: 32px;
  }
  .destination,.community {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .community {
    padding: 24px 0;
  }
  .intro {
    font-size: 18px;
    padding: 16px;
  }
  .site-footer {
    flex-wrap: wrap;
  }
}
