Geometrical structures of confining surfaces profoundly influence the adsorption of fluids upon approaching a critical point Tc in their bulk phase diagram, i.e., for t = (T −Tc)/Tc → ±0. Guided by general scaling considerations, we calculate, within mean-field theory, the temperature dependence of the order parameter profile in a wedge with opening angle γ < π and close to a ridge (γ > π) for T ≷ Tc and in the presence of surface fields. For a suitably defined reduced excess adsorption Γ±(γ, t → ±0) ∼ Γ±(γ)|t| β−2ν we compute the universal amplitudes Γ±(γ), which diverge as Γ±(γ → 0) ∼ 1/γ for small opening angles, vary linearly close to γ = π for γ < π, and increase exponentially for γ → 2π. There is evidence that, within mean-field theory, the ratio Γ+(γ)/Γ−(γ) is independent of γ. We also discuss the critical Casimir torque acting on the sides of the wedge as a function of the opening angle and temperature.