/**
 * PhotoXED Reset — Minimal, opinionated, iOS-first
 * No inline styles ever. All rules here or in feature files.
 */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scrollbar-width: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-ui, system-ui, -apple-system, "SF Pro Display", sans-serif);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100dvh;
}

/* Remove default button/input ugliness */
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

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

/* Focus visible — beautiful iOS style */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}

/* Images */
img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Icon sprites — inset so strokes/edges aren't clipped at viewBox bounds */
svg.ic {
  --ic-size: 24px;
  --ic-pad: 1px;
  display: block;
  overflow: visible;
  flex-shrink: 0;
  box-sizing: content-box;
  padding: var(--ic-pad);
  width: calc(var(--ic-size) - 2 * var(--ic-pad));
  height: calc(var(--ic-size) - 2 * var(--ic-pad));
}

/* Scrollbars — hidden for native iOS app feel; scroll still works */
::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}