:root {
  color-scheme: light;
  --background: #f5f6f7;
  --foreground: #41464d;
  --muted: #69717c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--background);
  color: var(--foreground);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #131518;
    --foreground: #c1c6ce;
    --muted: #929ba8;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #131518;
  --foreground: #c1c6ce;
  --muted: #929ba8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 240px;
}

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 72px 20px;
}

.aquarium {
  margin: 0;
  width: 60ch;
  font-family: inherit;
  font-size: min(17px, calc((100vw - 40px) / 36.2), calc((100svh - 144px) / 24));
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: pre;
  user-select: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.controls {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.profile {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}

.theme-toggle {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  color: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-label {
  padding: 3px 4px;
  color: #c1c6ce;
  background: #131518;
}

[data-theme="dark"] .theme-label {
  color: #41464d;
  background: #f5f6f7;
}

.profile:hover,
.theme-toggle:hover {
  color: var(--foreground);
}

:is(.profile, .theme-toggle):focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .controls {
    top: 12px;
    right: 12px;
    gap: 8px;
  }
}
