@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@200..800&family=Inter:wght@100..900&family=Space+Mono:wght@400;700&display=swap");

@font-face {
  font-family: "Mekzantine";
  src: url("./MEKZANTINE-Regular.woff2") format("woff2"),
    url("./MEKZANTINE-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0c;
  --panel: #fff;
  --line: #26262e;
  --ink: #686868;
  --dim: #000;
  --accent: turquoise;
  --sidebar: min(18rem, 88vw);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  accent-color: var(
    --accent
  ); /* inherited: styles the range slider + checkboxes */
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
}
body {
  display: flex;
  min-height: 100vh;
}
aside {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  width: var(--sidebar);
  height: 100%;
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: "Iosevka Web", ui-monospace, monospace;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.3, .7, 0, 1);
  scrollbar-color: var(--line) var(--panel);
  scrollbar-width: thin;
}
body.menu-open aside {
  transform: translateX(0);
}
h1 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 300;
}
h1 small {
  display: block;
  color: var(--dim);
  font-weight: 400;
  margin-top: 3px;
  font-size: 0.6875rem;
}
.grp {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
}
.grp > label.head {
  font-size: 1rem;
  color: var(--dim);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.row .val {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  text-align: right;
}
input[type="range"] {
  width: 100%;
  height: 1.125rem;
}
input[type="text"],
select {
  width: 100%;
  font: inherit;
  font-size: 0.75rem;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.75rem 0.5rem;
}
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}
select {
  cursor: pointer;
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.status {
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: auto;
}
.status b {
  color: var(--ink);
  font-weight: 600;
}
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  min-width: 0;
  background: #f4f4f2;
}
body.dark main {
  background: #0a0a0c;
}
#art {
  width: min(100%, calc(100vh - 40px));
  height: auto;
  aspect-ratio: 1;
  display: block;
}
#content {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: spin 150s linear infinite;
}
#content.paused {
  animation-play-state: paused;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* bottom-left ⊚ glyph: opens the panel, then slides out by the sidebar width */
#menu-toggle {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #000;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.3, .7, 0, 1); 
}
body.dark #menu-toggle {
  color: #fff;
}
body.menu-open #menu-toggle {
  transform: translateX(var(--sidebar));
  transition: transform 0.3s cubic-bezier(.3, .7, 0, 1) 0.25s;
}
