:root {
  --bg: #0b0b0a;
  --fg: #ebe7df;
  --muted: #8c887f;
  --rule: rgba(235, 231, 223, 0.35);
  --font: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

/* one font, one size, one line height, everywhere */
body {
  font: 400 14px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--fg); color: var(--bg); }

#ascii {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#bed { flex: none; margin-bottom: 2.5em; }

#content p { margin: 0 0 1.7em; }
#content p:last-child { margin-bottom: 0; }

.icon-pair { white-space: nowrap; }
.inline-icon {
  height: 14px;
  width: 14px;
  vertical-align: -2px;
  margin-right: 1px;
  border-radius: 3px;
}
.inline-icon.wide { width: auto; border-radius: 0; }

.links { display: flex; flex-wrap: wrap; gap: 0 2ch; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
a:hover, a:focus-visible { text-decoration-color: var(--fg); }
a:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }

/* text waits for the cat */
.js .reveal { opacity: 0; }
.js .reveal.shown { opacity: 1; transition: opacity 0.6s ease; }

body.cat-hover { cursor: pointer; }
body.intro { overflow: hidden; touch-action: none; }


/* a quiet nudge next to the sleeping cat */
#pet {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease, color 0.2s ease;
}
#pet.shown { opacity: 0.75; pointer-events: auto; }
#pet:hover, body.cat-hover #pet { color: var(--fg); opacity: 1; }
