* {
  box-sizing: border-box;
}

body {
  padding: 48px;
  background: #111;
  color: #e5e5e5;
  font-family: monospace;
}

main {
  max-width: 900px;
  margin: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #333;
  padding-bottom: 18px;
  margin-bottom: 42px;
}

.nav-bar {
  margin-bottom: 42px;
}

h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: normal;
}

.version a {
  color: #8fd3ff;
  text-decoration: none;
}

.version a:hover {
  text-decoration: underline;
}

h2 {
  margin-top: 42px;
  font-weight: normal;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin: 8px 0;
}

.ok {
  color: #7cfc7c;
}

code {
  background: #222;
  padding: 2px 6px;
}

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  color: #888;
  font-size: 0.9rem;
}

a {
  color: #8fd3ff;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover {
  text-decoration: underline;
}

.audio-entry {
    padding: 1rem 0;
}

.nav-bar a + a {
  margin-left: 1.5rem;
}

.project {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid #333;
}

.project h2 {
  margin-top: 0;
}

.project h3 {
  margin-top: 32px;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: normal;
}

.project-status {
  margin-top: 12px;
  color: #888;
}

.gallery {
  margin: 28px 0;
}

.gallery-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-stage img,
.gallery-stage video {
  display: none;
  max-width: 100%;
  max-height: min(32rem, 70vh);
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-stage img:not([hidden]),
.gallery-stage video:not([hidden]) {
  display: block;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.gallery-controls button {
  background: none;
  border: none;
  color: #8fd3ff;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 0;
  min-width: 44px;
  min-height: 44px;
}

.gallery-controls button:last-child {
  text-align: right;
}

.gallery-controls button:hover {
  text-decoration: underline;
}

.gallery-controls button:focus-visible {
  outline: 1px solid #8fd3ff;
  outline-offset: 2px;
}

#changelog hr {
  border: none;
  border-top: 1px solid #333;
}
