:root {
  zoom: 80%;
  color: #ffffff;
  background: #16161d;
  font-family: Georgia, serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #16161d;
  color: #ffffff;
  font-family: Georgia, serif;
  text-align: center;
}

body::before {
  position: fixed;
  z-index: 10;
  inset: 1.5rem;
  content: '';
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px #16161d, 0 0 0 6px #ffffff;
  pointer-events: none;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 3.5rem;
}

.empty-page {
  min-height: 100vh;
  justify-content: center;
}

.empty-sweet {
  position: relative;
  display: grid;
  width: 72px;
  height: 76px;
  place-items: center;
}

.empty-sweet::before {
  position: absolute;
  inset: 0;
  content: '';
  background: #ffffff;
  box-shadow: 0 0 1.5rem 0.8rem #ffffff, 0 0 4rem 1.5rem #ffffff;
  filter: blur(0.8rem);
}

.empty-sweet img {
  position: relative;
  width: 72px;
  max-width: none;
  image-rendering: pixelated;
}

.mar-page {
  min-height: 100vh;
  justify-content: center;
}

.mar-apparatus {
  display: flex;
  width: calc(100vw - 3rem);
  flex-direction: column;
  align-items: center;
}

.mar-primary,
.mar-reflection {
  display: flex;
  width: 100%;
  min-height: 12rem;
  flex-direction: column;
  align-items: center;
}

.mar-primary {
  justify-content: flex-end;
}

.mar-reflection {
  justify-content: flex-start;
}

.mar-primary img,
.mar-reflection img {
  image-rendering: pixelated;
}

.mar-divider {
  width: 100%;
}

.mar-divider-line {
  height: 3px;
  background: #ffffff;
}

.mar-inscription {
  margin: 0;
  padding: 1.25rem 1rem;
  font-family: Georgia, serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.mar-reflection img {
  transform: rotate(180deg);
}

.sweet-page {
  width: min(100%, 74rem);
  min-height: 100vh;
  margin: 0 auto;
  justify-content: center;
}

.sweet-shell {
  width: 100%;
  border: 3px solid #ffffff;
  background: #16161d;
  box-shadow: 0 0 0 3px #16161d, 0 0 0 6px #ffffff;
}

.sweet-controls {
  display: grid;
  grid-template-columns: auto minmax(10rem, 1fr) minmax(12rem, 2fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 3px solid #ffffff;
}

.sweet-transport {
  display: flex;
  gap: 0.5rem;
}

.sweet-transport button,
.sweet-track-button {
  border: 2px solid #ffffff;
  background: #16161d;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.sweet-transport button {
  min-width: 2.75rem;
  padding: 0.4rem 0.55rem;
}

.sweet-transport button:hover,
.sweet-transport button:focus-visible,
.sweet-track-button:hover,
.sweet-track-button:focus-visible,
.sweet-track-button[aria-current="true"] {
  background: #ffffff;
  color: #16161d;
  outline: none;
}

.sweet-now-playing {
  min-width: 0;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.sweet-now-playing strong,
.sweet-now-playing span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sweet-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.sweet-progress input {
  width: 100%;
  accent-color: #ffffff;
}

.sweet-progress output {
  font-size: 0.78rem;
  white-space: nowrap;
}

.sweet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.75fr);
  gap: 1.5rem;
  padding: 1.5rem;
}

.sweet-tracklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sweet-tracklist li + li {
  margin-top: 0.55rem;
}

.sweet-track-button {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  width: 100%;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  text-align: left;
}

.sweet-track-number {
  font-variant-numeric: tabular-nums;
}

.sweet-track-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sweet-track-state {
  font-size: 0.75rem;
}

.sweet-album {
  margin: 0;
  align-self: start;
}

.sweet-album > img {
  width: 100%;
  max-width: 100%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px #16161d, 0 0 0 6px #ffffff;
}

.sweet-album figcaption {
  margin-top: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.sweet-album-message {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 42rem) {
  .sweet-controls,
  .sweet-layout {
    grid-template-columns: 1fr;
  }

  .sweet-layout {
    gap: 2rem;
  }

  .sweet-album {
    order: -1;
    width: min(100%, 24rem);
    justify-self: center;
  }
}

table {
  margin: 0 auto 4rem;
  border: 3px solid #ffffff;
  border-collapse: collapse;
  box-shadow: 0 0 0 3px #16161d, 0 0 0 6px #ffffff;
}

td {
  padding: 0;
  border: 0;
}

img {
  display: block;
  max-width: min(100%, 960px);
  height: auto;
}

.index-image {
  width: 100%;
  max-width: 600px;
}

.index-table {
  width: min(100%, 606px);
}

.threshold {
  margin: 180vh auto 0;
  color: #16161d;
}

.threshold a {
  color: #16161d;
  text-decoration: none;
}

.cipher td {
  max-width: 56rem;
  padding: 1rem;
}

.octal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 1.5rem;
}

.octal-byte {
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
}

.sweet-glyph {
  width: 0.8rem;
  height: auto;
}

footer {
  height: 1px;
}