/* ————————————————————————————————————————————————
   Topos Labs
   paper #FCFBF7 · ink #1C1B1A · blue #2D59A5 · red #BE3D2E · pencil #8D897E
   ———————————————————————————————————————————————— */

:root {
  --paper: #FCFBF7;
  --ink: #1C1B1A;
  --blue: #2D59A5;
  --red: #BE3D2E;
  --pencil: #8D897E;
  --serif: "STIX Two Text", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

::selection { background: rgba(45, 89, 165, 0.18); }

/* ———— étale layer: marginalia revealed in a neighborhood of the cursor ———— */

#etale {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("etale.svg");
  background-size: 300px 300px;
  opacity: 0;
  transition: opacity 0.5s ease;
  -webkit-mask-image: radial-gradient(circle 190px at var(--mx, -500px) var(--my, -500px), rgba(0,0,0,0.95) 30%, transparent 72%);
          mask-image: radial-gradient(circle 190px at var(--mx, -500px) var(--my, -500px), rgba(0,0,0,0.95) 30%, transparent 72%);
}
#etale.on { opacity: 0.6; }

@media (hover: none), (prefers-reduced-motion: reduce) {
  #etale { display: none; }
}

/* ———— hero ———— */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 1.5rem;
}

.titleblock {
  position: relative;
  text-align: center;
}

.title {
  font-size: clamp(3rem, 9vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}

.epigraph {
  margin: 1.4rem 0 0;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-style: italic;
}

.epigraph-attr {
  font-style: normal;
  color: var(--pencil);
}

/* ———— the fibration, on the page itself ———— */

#hopf {
  display: block;
  width: min(100%, 58rem);
  margin-top: 1rem;
  cursor: crosshair;
}
