/* withtotem.ai — black, the wordmark, Sign in (Tarun 10-06).
   Same face as the product: IBM Plex Sans, self-hosted (OFL). */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url(/fonts/ibm-plex-sans-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  --black: #000;
  --oat: #f6f1e7;
  --hairline: rgba(246, 241, 231, 0.4);
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --track: 0.5em;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--oat);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}

/* T O T E M. The tracking also follows the last letter, so the same amount
   on the left keeps the visible word optically centred. */
.word {
  margin: 0;
  padding-left: var(--track);
  font-size: clamp(32px, 8vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--track);
  text-transform: uppercase;
  animation: appear 220ms ease-out both;
}

.signin {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--oat);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.signin:hover {
  border-color: var(--oat);
  background-color: rgba(246, 241, 231, 0.08);
}
.signin:focus-visible {
  outline: 2px solid var(--oat);
  outline-offset: 3px;
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* phone: a 44px touch target (46 = 20 line + 24 padding + 2 border) */
@media (max-width: 480px) {
  .signin { top: 16px; right: 16px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .word { animation: none; }
  .signin { transition: none; }
}
