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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--black);
    color: var(--soft-sand);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url('../assets/textures/noise.svg');
    background-repeat: repeat;
    background-size: 256px 256px;
}

img {
    max-width: 100%;
    display: block;
    /* Prevent native drag, iOS long-press preview, and treat image as a
       background-like element so right-click "Save image as" doesn't apply
       (events fall through to the parent which has no image context). */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

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

/* App-wide: no text selection. Removes the highlight-on-drag behaviour
   that made the editorial copy feel selectable and rudimentary, while
   leaving hover, scroll, focus, keyboard nav and clicks untouched. */
html, body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
