@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/courier-prime-regular.woff2) format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/courier-prime-bold.woff2) format("woff2");
}

body {
  background: #fff;
  color: #000;
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  line-height: 1.5;
  max-width: 760px;
  margin: 2.5em auto;
  padding: 0 1em;
}
body.wide { max-width: 1040px; }

a:link { color: #0000EE; }
a:visited { color: #551A8B; }
code { font-family: inherit; }

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  border-bottom: 1px solid #000;
  padding-bottom: .5em;
  margin-bottom: 1.5em;
}

h1 small { font-weight: 400; font-size: .6em; margin-left: .5em; }

dl.albums dt { margin-top: 1em; font-weight: 700; }
dl.albums dd { margin-left: 0; }

/* The viewer mirrors the Swing window: an info bar, the canvas, a row of controls. */
.info-bar {
  background: #ffb3b3;
  padding: .4em .6em;
  border: 1px solid #000;
  border-bottom: none;
}
.canvas {
  margin: 0;
  border: 1px solid #000;
  background: #fff;
  line-height: 0;
}
.canvas svg { max-width: 100%; height: auto; display: block; }
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  align-items: center;
  justify-content: center;
  background: #f5c400;
  padding: .6em;
  border: 1px solid #000;
  border-top: none;
}
.controls a, .controls button, .paste button {
  font: inherit;
  display: inline-block;
  padding: .25em .8em;
  border: 1px solid #555;
  border-radius: 4px;
  background: #f3f3f3;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.controls .disabled {
  opacity: .4;
  padding: .25em .8em;
  border: 1px solid #888;
  border-radius: 4px;
}
.controls form { display: inline-flex; gap: .4em; margin: 0; }
.controls select { font: inherit; max-width: 18em; }
.status { margin: .6em 0 0; font-style: italic; }
.all .canvas { margin: .5em 0 1.5em; }
.all h2 { margin-bottom: .2em; }

.paste textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: .95em;
  padding: .5em;
  border: 1px solid #555;
}
.paste label { display: block; font-weight: 700; margin-top: 1em; }
.canvas-fields {
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  align-items: center;
  margin-top: .8em;
}
.canvas-fields label { display: inline; margin: 0; font-weight: 400; }
.canvas-fields input { font: inherit; width: 6em; padding: .2em .4em; }
.error { color: #b00020; font-weight: 700; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

pre {
  overflow-x: auto;
  background: #f6f6f6;
  border: 1px solid #ddd;
  padding: .8em;
  font-size: .9em;
  line-height: 1.35;
}
table { border-collapse: collapse; margin: .5em 0 1em; }
th, td { border: 1px solid #999; padding: .3em .6em; text-align: left; vertical-align: top; }

footer {
  margin-top: 3em;
  border-top: 1px solid #000;
  padding-top: .8em;
  font-size: .9em;
}
