/* Ahmad Dibo — reset
   Minimal, intentional. No opinionated defaults beyond zeroing the browser. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* the scrollbar is chrome the page never asked for: scrolling still works by
     wheel, trackpad, keyboard and drag — only the bar itself is hidden. */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* legacy Edge */
}
/* WebKit — Safari, Chrome. The root scrollbar is NOT reliably suppressed by
   html::-webkit-scrollbar alone (Safari resolves the viewport bar through
   body/root propagation), so cover the universal selector too. Both the zero
   track AND `display: none` are needed: the zero width/height collapses the
   track in Chrome, `display: none` is what removes it in Safari. */
*::-webkit-scrollbar,
:root::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  display: none;
  background: transparent;
}
/* every nested scroll region inherits the same treatment */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
/* No page may scroll sideways. A single wide child (an SVG, a wide table, a
   grid that does not wrap) is enough to raise a horizontal bar on one page and
   not the next — which is exactly the inconsistency this rule removes. Wide
   content must scroll inside its own container, never the document. */
html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

::selection {
  background: #000;
  color: var(--paper);
}
