@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

:root {
  --ground: #07080b;
  --ivory: #e8e0cf;
  --stone: #7b756a;
  --bronze: #b08d57;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ground);
  color: var(--ivory);
}

body {
  height: 100dvh;
  font-family: "Cinzel", serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

#sky {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.4dvh;
  width: 100%;
  height: 100dvh;
}

.instrument {
  flex: none;
  width: min(60dvh, 88vw);
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
}

.instrument .i,
.instrument .s,
.instrument .b {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.instrument .i {
  stroke: var(--ivory);
}

.instrument .s {
  stroke: var(--stone);
}

.instrument .b {
  stroke: var(--bronze);
}

.instrument .w14 {
  stroke-width: 1.4;
}

.instrument .w15 {
  stroke-width: 1.5;
}

.instrument g.i,
.instrument g.s {
  fill: none;
}

.instrument .ts {
  fill: var(--stone);
}

.instrument .ti {
  fill: var(--ivory);
}

.instrument .tb,
.instrument .fb {
  fill: var(--bronze);
}

.instrument .fi,
.instrument .fs {
  fill: var(--ivory);
}

.instrument .bead circle {
  fill: var(--ground);
  stroke: var(--ivory);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.turn {
  transform-origin: 0 0;
  animation: turn 240s linear infinite;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

.wordmark {
  margin: 0;
  padding-left: 0.42em;
  font-size: min(5dvh, 7.4vw);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.42em;
  white-space: nowrap;
  color: var(--ivory);
}

.wordmark a {
  color: inherit;
  text-decoration: none;
}

.wordmark a:focus-visible {
  outline: 1px solid var(--bronze);
  outline-offset: 0.4em;
}

.seal {
  flex: none;
  width: min(38dvh, 54vw);
  height: auto;
  fill: var(--bronze);
}

.mark {
  margin: 0;
  padding-left: 0.5em;
  font-size: max(10px, min(2dvh, 3.4vw));
  line-height: 1;
  letter-spacing: 0.5em;
  color: var(--stone);
}

@media (prefers-reduced-motion: reduce) {
  .turn {
    animation: none;
  }
}
