@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/noto-sans-sc-sugeek-v1.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Noto Sans SC", sans-serif;
  color: #16171a;
  background: #fff;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px clamp(24px, 5vw, 80px);
}

.masthead-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.masthead-label {
  font-size: 11px;
  letter-spacing: .18em;
  color: #62646a;
}

.showcase {
  display: grid;
  place-items: center;
  padding: 12px 20px 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 520px);
}

.stage {
  position: relative;
  width: 100%;
  height: clamp(248px, 48svh, 450px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.logo-fallback {
  width: auto;
  height: 70%;
  fill: #101114;
  grid-area: 1 / 1;
}

#logo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.stage.is-rendered .logo-fallback { visibility: hidden; }
.stage.is-rendered #logo-canvas { opacity: 1; cursor: grab; touch-action: pan-y; }
.stage.is-dragging #logo-canvas { cursor: grabbing; }

.shadow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 49%;
  height: 7%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, #11152120 0%, #11152109 40%, transparent 72%);
  filter: blur(3px);
  pointer-events: none;
}

.wordmark {
  position: relative;
  width: clamp(134px, 30vw, 192px);
  aspect-ratio: 935 / 160;
  overflow: hidden;
  margin: 6px 0 16px;
}

.wordmark img {
  position: absolute;
  width: 134.12%;
  height: auto;
  max-width: none;
  left: -17.11%;
  top: -488.75%;
}

.spin-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  border-radius: 22px;
  color: #62646a;
  cursor: pointer;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .09em;
}

.spin-control[hidden] { display: none; }
.spin-control:hover { background: #f5f5f6; color: #16171a; }

.control-icon {
  width: 9px;
  height: 9px;
  border-inline: 2px solid currentColor;
}

.spin-control.is-paused .control-icon {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-right: 0;
  border-left: 7px solid currentColor;
}

.brand-motto {
  margin: 10px 0 0;
  color: #393b42;
  font-size: clamp(13px, 2.2vw, 16px);
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.6;
  text-align: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 18px;
  padding: 18px 24px 26px;
  color: #62646a;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.footer a { color: inherit; text-underline-offset: 3px; }
.police-record { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.police-record img { flex: none; }
:focus-visible { outline: 2px solid #444750; outline-offset: 4px; }

@media (max-width: 520px) {
  .masthead { padding-block: 24px; }
  .showcase { padding-inline: 12px; }
  .stage { height: clamp(230px, 43svh, 365px); }
  .footer { flex-direction: column; padding-bottom: 22px; }
}
