@font-face {
  font-family: "Absans";
  src:
    url("../assets/fonts/Absans-Regular.woff2") format("woff2"),
    url("../assets/fonts/Absans-Regular.woff") format("woff"),
    url("../assets/fonts/Absans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  /* Base surfaces */
  --bg:           #faf8f4;
  --bg-2:         #f3f0eb;
  --bg-3:         #ece8e1;
  --surface:      #ffffff;

  /* Ink */
  --ink:          #1a1523;
  --ink-2:        #3d3650;
  --ink-3:        #7c7490;
  --ink-4:        #b0abc0;

  /* Brand accents */
  --violet:       #7c3aed;
  --violet-light: #ede9fe;
  --violet-mid:   rgba(124,58,237,0.12);
  --rose:         #f43f5e;
  --rose-light:   #ffe4e6;
  --sky:          #0ea5e9;
  --sky-light:    #e0f2fe;
  --amber:        #f97316;
  --amber-light:  #ffedd5;
  --saffron:      #f59e0b;

  /* Rules */
  --rule:         rgba(26,21,35,0.08);
  --rule-mid:     rgba(26,21,35,0.15);

  /* Font */
  --font: "Absans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Easing */
  --expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --smooth: cubic-bezier(0.76, 0, 0.24, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
  cursor: none;
}

body.is-loading { overflow: hidden; }

::selection { background: var(--violet); color: #fff; }

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: none; font-family: var(--font); color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 2px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
