// Opt-in CSS reset.
//
// Not loaded by the umbrella `ngwr` entry. Apps that don't already have a
// reset (Tailwind preflight, normalize.css, etc.) can opt in via:
//
//   @use 'ngwr/reset';
//
// Modest scope — boxes, margins, form-element inheritance, and a few
// link/list cleanups. No opinionated typography or color.

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--wr-font-family-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--wr-font-weight-semibold);
  line-height: var(--wr-leading-tight);
  letter-spacing: var(--wr-tracking-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--wr-text-4xl);
}
h2 {
  font-size: var(--wr-text-3xl);
}
h3 {
  font-size: var(--wr-text-2xl);
}
h4 {
  font-size: var(--wr-text-xl);
}
h5 {
  font-size: var(--wr-text-lg);
}
h6 {
  font-size: var(--wr-text-base);
}

p {
  line-height: var(--wr-leading-normal);
  text-wrap: pretty;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

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

code,
kbd,
samp,
pre {
  font-family: var(--wr-font-family-mono);
}
