/* ==========================================================================
   Flow Tribe — Reset
   --------------------------------------------------------------------------
   A modern, minimal reset. Only normalises things that actively cause bugs;
   it does not strip styling that base.css then has to restore.
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  /* Prevent iOS text inflation on rotate without disabling user zoom. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh; /* accounts for mobile browser chrome */
  -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;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Break long words rather than let a pasted URL widen the whole layout —
   this app is full of member-submitted links. */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove the spinner from number inputs — used for PIN entry, where the
   stepper is meaningless and steals a tap target. */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Visible focus for keyboard users only. Never remove focus outlines
   outright: it makes the app unusable without a mouse. */
:focus-visible {
  outline: 2px solid var(--ft-burgundy-600);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

[hidden] {
  display: none !important;
}
