:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --cell: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#gol {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: none;
}

#logo {
  position: fixed;
  top: var(--cell);
  left: var(--cell);
  width: calc(var(--cell) * 7);
  height: calc(var(--cell) * 7);
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  transition: opacity 220ms ease, filter 220ms ease;
  -webkit-tap-highlight-color: transparent;
}

#logo img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
}

@media (hover: hover) {
  #logo:hover {
    opacity: 0.85;
  }

  #logo.ghost:hover {
    opacity: 0.28;
  }
}

#logo:focus-visible {
  outline: 1px solid rgba(245, 245, 245, 0.5);
  outline-offset: 2px;
}

#logo.ghost {
  opacity: 0.14;
}

main {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
  padding: 1.5rem;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-align: center;
  text-shadow: 0 0 24px rgba(10, 10, 10, 0.95), 0 0 8px rgba(10, 10, 10, 0.95);
  user-select: text;
}

#things-toggle {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-shadow: inherit;
  background: none;
  border: 0;
  border-bottom: 1px dotted rgba(245, 245, 245, 0.35);
  padding: 0 0 0.05em;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

#things-toggle:active,
#things-toggle[aria-expanded="true"] {
  border-bottom-color: rgba(245, 245, 245, 0.85);
}

@media (hover: hover) {
  #things-toggle:hover {
    border-bottom-color: rgba(245, 245, 245, 0.85);
  }
}

#things-toggle:focus-visible {
  outline: 1px solid rgba(245, 245, 245, 0.5);
  outline-offset: 4px;
}

#things-list {
  position: absolute;
  top: calc(100% + 1.25rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

#things-list.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

#things-list a {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: #8a8a8a;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(10, 10, 10, 0.95), 0 0 6px rgba(10, 10, 10, 0.95);
  pointer-events: none;
  transition: color 180ms ease;
}

#things-list.open a {
  pointer-events: auto;
}

#things-list a:active {
  color: var(--fg);
}

#things-list a:focus-visible {
  color: var(--fg);
  outline: 1px solid rgba(245, 245, 245, 0.5);
  outline-offset: 4px;
}

@media (hover: hover) {
  #things-list a:hover {
    color: var(--fg);
  }
}

#things-list .arrow {
  margin-left: 0.25em;
  font-size: 0.85em;
  opacity: 0.7;
}
