:root {
  color-scheme: dark;
  --background: #000;
  --foreground: #f8f8f8;
  --type-size: clamp(27px, min(6vw, 5.5svh), 55px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-width: 280px; }

body { background: var(--background); }

button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 60px 24px;
  overflow: clip;
}

.portrait {
  position: relative;
  width: max-content;
  max-width: 100%;
  text-align: center;
  font-size: var(--type-size);
  font-weight: 450;
  letter-spacing: -0.06em;
  line-height: 0.99;
  isolation: isolate;
}

.line {
  display: block;
  margin: 0;
  font: inherit;
  white-space: nowrap;
}

.identity { position: relative; }

.honours {
  margin-top: 0.56em;
  font-size: 0.53em;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.award { margin: 0; }

.award + .award { margin-top: 0.55em; }

.award-title { font-size: 1.22em; line-height: 1.12; }

.replay {
  position: absolute;
  z-index: 2;
  inset: -18px;
  width: calc(100% + 36px);
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
}

.replay:focus { outline: none; }

.replay:focus-visible {
  outline: 1px solid #676767;
  outline-offset: 12px;
}

.glyph {
  position: relative;
  display: inline-block;
  white-space: pre;
}

.glyph.is-active { color: transparent; }

.glyph-fx {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  color: var(--glitch-color, var(--foreground));
  transform: translate(var(--shift-x, 0px), var(--shift-y, 0px));
  pointer-events: none;
}

.is-active > .glyph-fx { display: block; }

.is-active.is-boxed > .glyph-fx::before {
  content: "";
  position: absolute;
  inset: 0.04em -0.035em 0.02em;
  border: 0.7px solid currentColor;
  opacity: 0.48;
}

.is-active.is-tagged > .glyph-fx::after {
  content: attr(data-code);
  position: absolute;
  left: 0;
  top: calc(100% + 0.05em);
  font: 400 max(5px, 0.16em)/1 Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0.8;
}

.cursor {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  width: 19px;
  height: 19px;
  display: none;
  color: #aaa;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor::before, .cursor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.cursor::after { transform: translate(-50%, -50%) rotate(90deg); }

@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor, .has-custom-cursor .replay { cursor: none; }
  .has-custom-cursor .cursor.is-visible { display: block; }
}

@media (max-width: 600px) {
  :root { --type-size: clamp(25px, 7.35vw, 42px); }
  .stage { padding: 56px 20px; }
  .honours { font-size: 0.57em; margin-top: 0.65em; line-height: 1.14; }
  .award + .award { margin-top: 0.7em; }
}

@media (max-width: 350px) {
  :root { --type-size: 7.25vw; }
  .stage { padding-inline: 14px; }
}

@media (max-height: 540px) and (min-width: 601px) {
  :root { --type-size: 6.7svh; }
  .stage { padding-block: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .glyph.is-active { color: inherit; }
  .glyph-fx { display: none !important; }
}
