:root {
  --bg: #000;
  --lynx: #ffb347;
  --text: #ffcf85;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
}

main {
  box-sizing: border-box;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1rem;
}

.lynx {
  width: min(30vmin, 220px);
  fill: var(--lynx);
}

.inner-ear {
  fill: var(--text);
}

/* The paws sit on the ledge, in front of the head: a ring of background keeps them apart. */
.paws {
  stroke: var(--bg);
  stroke-width: 2;
  paint-order: stroke;
}

/* Eyes and the gaps between toes. */
.cut {
  fill: var(--bg);
}

/* Sleepy eyes, wide open while the pointer is on the lynx itself (not the ledge or the space around it). */
.lynx {
  pointer-events: none;
}

.cat {
  pointer-events: visiblePainted;
}

.cat:hover .sleepy,
.cat:not(:hover) .awake {
  display: none;
}

h1 {
  margin: 0;
  font-size: clamp(1.1rem, 3.2vmin, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover,
h1 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
