/* ============================================
   FOLIOBLOX — CSS Reset & Base Styles
   ============================================ */

/* ── Modern Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-y: scroll;
}

body {
  min-height: 100vh;
  font: var(--text-body-md);
  color: var(--color-on-surface);
  background-color: var(--color-surface);
  overflow-x: hidden;
  /* Removed custom cursor hiding */
}

/* Restore default cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

@media (hover: none) and (pointer: coarse) {
  button { cursor: pointer; }
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

@media (hover: none) and (pointer: coarse) {
  a { cursor: pointer; }
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-weight: inherit;
}

p {
  overflow-wrap: break-word;
}

/* ── Selection Colors ── */
::selection {
  background-color: rgba(255, 77, 0, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background-color: rgba(255, 77, 0, 0.3);
  color: #ffffff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-bright);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-solar-orange);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-surface-bright) var(--color-surface);
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--color-solar-orange);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Film Grain Overlay (Disabled for performance) ── */
/* body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
} */
