@font-face {
  font-family: Departure;
  src: url('assets/departure-mono.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: VT323;
  src: url('assets/vt323.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #3b2b23;
  --text: #f5f2e9;
  --secondary: #c4b7a7;
  --accent: #c5a17d;
  --line: #806752;
  --body-font: Departure, 'Courier New', monospace;
  --heading-font: Departure, 'Courier New', monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16.5px/1.8 var(--body-font);
}
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a { touch-action: manipulation; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
::selection { color: var(--background); background: var(--accent); }
h1, h2, p, ul { margin: 0; }
h1, h2 { font-weight: 400; }
.page {
  width: calc(100% - 64px);
  max-width: 860px;
  margin: 72px auto 48px;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  color: var(--background);
  background: var(--text);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0 20px;
  border-bottom: 1px dotted var(--line);
}
.site-header nav { display: flex; gap: 24px; font-size: 16.5px; }
.site-header nav a {
  display: inline-block;
  padding-block: 4px;
  text-decoration: underline;
}
main { padding: 38px 0 36px; }
.introduction { display: grid; grid-template-columns: 1fr 128px; gap: 32px; align-items: center; }
h1 { font: 400 33px/1.4 var(--heading-font); }
.introduction p { max-width: 35em; margin-top: 17px; color: var(--secondary); }
.geometry { display: block; width: 128px; height: 128px; image-rendering: pixelated; }
#research { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-top: 32px; padding-top: 26px; border-top: 1px dotted var(--line); }
h2 { font: 400 22px/1.5 var(--heading-font); }
ul { padding-left: 19px; list-style-type: square; }
li { padding-left: 5px; }
li + li { margin-top: 8px; }
li::marker { color: var(--accent); font-size: 12px; }
footer { padding: 16px 0; border-top: 1px dotted var(--line); color: var(--secondary); font-size: 16.5px; }

/* Optional design comparisons share the same content and color palette. */
:root[data-theme='terminal'] { --body-font: VT323, monospace; --heading-font: VT323, monospace; }
[data-theme='terminal'] body { font-size: 25px; line-height: 1.3; }
[data-theme='terminal'] .page { box-shadow: none; }
[data-theme='terminal'] .site-header { background: transparent; border-bottom-style: dashed; }
[data-theme='terminal'] .site-header nav { font-size: 23px; }
[data-theme='terminal'] .site-header nav a { border: 0; box-shadow: none; padding: 0; }
[data-theme='terminal'] .site-header nav a::before { content: '['; margin-right: 4px; }
[data-theme='terminal'] .site-header nav a::after { content: ']'; margin-left: 4px; }
[data-theme='terminal'] h1 { font-size: 44px; line-height: 1.1; }
[data-theme='terminal'] h2 { font-size: 32px; line-height: 1.1; }
[data-theme='terminal'] footer { font-size: 22px; border-top-style: dashed; }

:root[data-theme='classic'] { --body-font: Georgia, 'Times New Roman', serif; --heading-font: Georgia, 'Times New Roman', serif; }
[data-theme='classic'] body { font-size: 19px; line-height: 1.6; }
[data-theme='classic'] .page { border: 0; box-shadow: none; }
[data-theme='classic'] .site-header { padding-inline: 0; background: transparent; }
[data-theme='classic'] .site-header nav { font-size: 18px; gap: 24px; }
[data-theme='classic'] .site-header nav a { padding: 0; border: 0; box-shadow: none; text-decoration: underline; }
[data-theme='classic'] .site-header nav a:hover { background: transparent; color: var(--accent); }
[data-theme='classic'] main { padding-inline: 0; }
[data-theme='classic'] h1 { font-size: 40px; }
[data-theme='classic'] h2 { font-size: 26px; }
[data-theme='classic'] li::marker { font-size: 13px; }
[data-theme='classic'] footer { padding-inline: 0; font-size: 17px; }

@media (max-width: 680px) {
  .page { width: calc(100% - 40px); margin-block: 24px; }
  .site-header { padding: 0 0 18px; gap: 14px; }
  .site-header nav { gap: 20px; }
  main { padding: 28px 0 30px; }
  .introduction { grid-template-columns: 1fr; gap: 20px; }
  h1 { font-size: 22px; line-height: 1.5; }
  .introduction p { margin-top: 14px; }
  .geometry { width: 96px; height: 96px; }
  #research { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; padding-top: 23px; }
  h2 { font-size: 22px; }
  ul { padding-left: 16px; }
  li { padding-left: 3px; }
  footer { padding: 14px 0; }
  [data-theme='terminal'] h1 { font-size: 36px; }
  [data-theme='terminal'] .site-header nav a { padding: 0; }
  [data-theme='classic'] .page { width: calc(100% - 40px); }
  [data-theme='classic'] h1 { font-size: 34px; }
}
