/* ---------------------------------------------------
   FONTS & COLOURS
--------------------------------------------------- */
@font-face {
  font-family: 'PP Model Plastic';
  src: url('../fonts/PPModelPlastic-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Model Plastic';
  src: url('../fonts/PPModelPlastic-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Model Plastic Line';
  src: url('../fonts/PPModelPlasticLine-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Model Mono';
  src: url('../fonts/PPModelMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Model Mono';
  src: url('../fonts/PPModelMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AT Scissors';
  src: url('../fonts/AT Scissors.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Colors */
  --odo-red: #BD0029;
  --cream: #F9F5E6;
  
  /* Font families */
  --font-plastic: 'PP Model Plastic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-plastic-line: 'PP Model Plastic Line', var(--font-plastic);
  --font-mono: 'PP Model Mono', monospace;
  --font-scissors: 'AT Scissors', sans-serif;
  
  /* Font weights */
  --weight-light: 300;
  --weight-medium: 500;
  --weight-normal: normal;
}

/* ---------------------------------------------------
   RESET & LAYOUT
--------------------------------------------------- */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { width: 100%; height: 100%; }
body {
  background: var(--cream);
  color: var(--odo-red);
  font-family: var(--font-plastic);
  font-weight: var(--weight-light);
  /* Hide default cursor since we're using a custom cursor */
  cursor: none;
}
a { 
  color: var(--odo-red); 
  text-decoration: none; 
}

/* Focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid var(--odo-red);
  outline-offset: 3px;
}

/* Only show focus styles when using keyboard navigation */
a:focus:not(:focus-visible), button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--odo-red);
  outline-offset: 3px;
}

/* Skip navigation link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--odo-red);
  color: var(--cream);
  padding: 8px;
  z-index: 100;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* ---------------------------------------------------
   CUSTOM CURSOR
--------------------------------------------------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px; /* Small size, approximately the height of capital letters */
  height: 20px;
  border-radius: 50%;
  background-color: var(--odo-red);
  pointer-events: none; /* Ensures the cursor doesn't interfere with clicking */
  z-index: 9999;
  transform-origin: center;
  transform: translate(-50%, -50%); /* Center the cursor at the mouse position */
  transition: width 0.1s, height 0.1s, background-color 0.1s;
}

/* Cursor states */
.custom-cursor.hovering {
  width: 20px;
  height: 20px;
  background-color: rgba(189, 0, 41, 0.8); /* Slightly transparent red */
}

.custom-cursor.clicking {
  width: 20px;
  height: 20px;
  background-color: var(--odo-red);
}

/* Hide custom cursor on tablets and mobile devices */
@media (max-width: 1180px) {
  .custom-cursor {
    display: none;
  }

  /* Restore default cursor on mobile and tablet */
  body {
    cursor: auto;
  }

  a, button, [role="button"] {
    cursor: pointer;
  }
}

@media (orientation: landscape) and (pointer: coarse) {
  .custom-cursor {
    display: none;
  }

  body {
    cursor: auto;
  }

  a, button, [role="button"] {
    cursor: pointer;
  }
}
