@font-face {
  font-family: 'Inter';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}

:root {
  --bg: #E8E3D7;
  --ink: #2E2C28;
  --ink-soft: #8A8478;
  --ring: #BF3922;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  text-align: center;
  padding: 0 1.5rem;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mark {
  font-size: clamp(1.75rem, 6vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  line-height: 1.15;
}

.status {
  margin-top: 0.6em;
  font-size: clamp(0.9rem, 2.6vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--ink-soft);
}

/* ============ custom cursor ============ */
/* Only on devices with a fine pointer (mouse/trackpad) and hover support.
   Touch devices keep their native cursor entirely. */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  .cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .cursor.active {
    opacity: 1;
  }

  .cursor-ring {
    fill: none;
    stroke: var(--ring);
    stroke-width: 1.1;
    transition: r 0.22s cubic-bezier(0.34, 1.2, 0.4, 1), stroke-width 0.22s ease, fill 0.22s ease;
  }

  .cursor-tick {
    stroke: var(--ring);
    stroke-width: 1.1;
    transition: opacity 0.18s ease;
  }

  .cursor-dot {
    fill: var(--ink);
    transition: r 0.18s ease;
  }

  .cursor.down .cursor-ring {
    r: 10;
  }

  .cursor.down .cursor-dot {
    r: 2.2;
  }

  /* hover response when the cursor is over text — ring tightens and
     sharpens toward the centre point, like a lens focusing, rather
     than a generic hover glow */
  .cursor.on-text .cursor-ring {
    r: 8;
    stroke-width: 1.4;
    fill: rgba(191, 57, 34, 0.08);
  }

  .cursor.on-text .cursor-tick {
    transform: rotate(20deg) scaleY(0.7);
    transform-origin: 20px 20px;
  }

  .cursor.on-text .cursor-dot {
    r: 1.3;
  }

  .cursor svg {
    overflow: visible;
  }

  .cursor-tick {
    transition: opacity 0.18s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .wrap {
    animation: none;
  }
  .cursor,
  .cursor-ring,
  .cursor-dot,
  .cursor-tick {
    transition: none !important;
  }
}
