:root {
  color-scheme: light;
  font: 1rem/1.35 Arial, sans-serif;
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; }

#artwork { position: relative; min-height: 100svh; }

.cover, .cover img { display: block; width: 100%; height: 100svh; }

.cover img {
  object-fit: cover;
  object-position: right bottom;
  background: #fff;
}

.fit-control {
  width: 1px;
  height: 1px;
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.fit-control:checked ~ .cover img { object-fit: contain; object-position: center; }

nav {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem;
  pointer-events: none;
}

nav a, nav label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  border-radius: 0.25rem;
  background: #fff;
  color: #231e21;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

nav a:last-child { margin-left: auto; }
nav a:hover, nav label:hover { text-decoration: underline; }
nav a:focus-visible, .fit-control:focus-visible ~ nav label { outline: 3px solid #74303d; outline-offset: 2px; }
.fill-label, .fit-control:checked ~ nav .fit-label { display: none; }
.fit-control:checked ~ nav .fill-label { display: inline; }
