:root {
  --blue: #0a3fd8;          /* Windows Blue (owner pick; the mock samples darker, ~#0034d4) */
  --cream: #f3ebd8;
  --gutter: clamp(16px, 2.6vw, 48px);
  --sans: "Inter Tight", "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --display: clamp(40px, min(6.2vw, 9.4vh), 150px);  /* headline scale tracks the viewport */
}

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

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--blue);
  color: var(--cream);
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

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

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

/* ---------- top bar ---------- */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 84px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;           /* only the links themselves take pointer input */
}
.bar a { pointer-events: auto; }

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Absolutely centred on the page, independent of the left/right items. */
.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2.6em;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}
.nav a, .enter { transition: opacity .2s ease, background-color .2s ease, color .2s ease; }
.nav a:hover { opacity: .65; }

.enter {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 8px 15px 7px;
  border: 1px solid var(--cream);
}
.enter:hover, .enter:focus-visible { background: var(--cream); color: var(--blue); }

a:focus-visible { outline: 1px dashed var(--cream); outline-offset: 4px; }

/* ---------- copy ---------- */
.headline {
  position: fixed;
  margin: 0;
  z-index: 1;
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--display);
  line-height: 0.95;
  letter-spacing: -0.04em;
  pointer-events: none;           /* never block hover on the cat */
  user-select: none;
  -webkit-user-select: none;
}
.headline--top {
  left: var(--gutter);
  top: 13vh;
}
.headline--bottom {
  right: 4.4vw;
  bottom: 7.5vh;
  text-align: left;
}

.blurb {
  position: fixed;
  margin: 0;
  z-index: 1;
  left: var(--gutter);
  bottom: 7.5vh;
  max-width: 24ch;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  pointer-events: none;
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --display: min(13.4vw, 7.6vh); }
  .bar { height: 60px; }
  .wordmark { font-size: 20px; }
  .nav { gap: 1.6em; font-size: 11px; letter-spacing: 0.06em; }
  .enter { font-size: 11px; padding: 7px 11px 6px; }

  .headline--top { top: 84px; }
  .headline--bottom {
    right: var(--gutter);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);
  }
  .blurb {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    max-width: 30ch;
    font-size: 11px;
  }
}

/* Very narrow phones: drop the centre nav rather than let it collide. */
@media (max-width: 340px) {
  .nav { display: none; }
}
