@charset "UTF-8";

:root {
  color-scheme: light;
  --fluoro: #ccff00;
  --ink: #0b0b0b;
  --line: rgba(11, 11, 11, 0.28);
  --line-soft: rgba(11, 11, 11, 0.15);
  --hairline: 1px;
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--fluoro);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--fluoro);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.9rem;
  transform: translateY(-220%);
  border: var(--hairline) solid var(--ink);
  background: var(--fluoro);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible {
  outline: var(--hairline) dashed var(--ink);
  outline-offset: 5px;
}

/* ---------- stage ---------- */

.stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(0.9rem, 2.4vw, 1.6rem) clamp(1rem, 4vw, 2.75rem);
  overflow: hidden;
}

.hairlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.line {
  position: absolute;
  background: var(--line-soft);
}

.line-v {
  top: 0;
  bottom: 0;
  width: var(--hairline);
}

.line-v-left {
  left: 22%;
}

.line-v-right {
  left: 78%;
}

.line-h {
  top: 50%;
  height: var(--hairline);
}

/* The centre rule only shows in the side gutters so it never crosses the type. */
.line-h-left {
  left: 0;
  width: 22%;
}

.line-h-right {
  left: 78%;
  right: 0;
}

/* ---------- bars ---------- */

.bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.bar-top {
  justify-content: flex-end;
  padding-bottom: clamp(0.9rem, 2vw, 1.35rem);
  border-bottom: var(--hairline) solid var(--line);
}

.bar-bottom {
  padding-top: clamp(0.9rem, 2vw, 1.35rem);
  border-top: var(--hairline) solid var(--line);
  color: rgba(11, 11, 11, 0.72);
}

.tag {
  white-space: nowrap;
}

/* ---------- core ---------- */

.core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 2.6vw, 1.9rem);
  padding: clamp(2rem, 6vw, 4rem) 0;
  text-align: center;
}

.app-code {
  margin: 0;
  padding-bottom: clamp(0.85rem, 2vw, 1.2rem);
  border-bottom: var(--hairline) solid var(--line);
  font-size: clamp(1.35rem, 5.6vw, 3.4rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
}

.code-num {
  font-weight: 200;
  opacity: 0.55;
}

.actions {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  border: var(--hairline) solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.btn-primary {
  padding: 0.95rem 1.9rem;
}

.btn-square {
  width: 2.65rem;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: var(--fluoro);
}

.btn-glyph {
  font-size: 0.78rem;
  line-height: 1;
}

.caption {
  margin: 0;
  color: rgba(11, 11, 11, 0.62);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- entrance ---------- */

@keyframes frame-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hairlines {
  animation: frame-in 900ms ease both;
}

.app-code,
.actions,
.caption,
.bar {
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.actions {
  animation-delay: 90ms;
}

.caption {
  animation-delay: 160ms;
}

@media (prefers-reduced-motion: reduce) {
  .hairlines,
  .app-code,
  .actions,
  .caption,
  .bar {
    animation: none;
  }
}

@media (max-width: 620px) {
  .line-v {
    display: none;
  }

  .app-code {
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }

  .btn-primary {
    padding: 0.9rem 1.5rem;
  }

  .bar {
    letter-spacing: 0.22em;
  }
}
