/* Global base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--os-font-size-base);
  font-weight: 400;
  line-height: var(--os-line-normal);
  color: var(--os-text);
  background: var(--os-bg);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--os-space-3);
  font-weight: 600;
  line-height: var(--os-line-tight);
  color: var(--os-text);
}

p {
  margin: 0 0 var(--os-space-3);
}

p:last-child {
  margin-bottom: 0;
}

/* Body content links: neutral, not “link blue” */
a {
  color: var(--os-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--os-text);
  text-decoration-color: var(--os-text-muted);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--os-focus-ring);
}

:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

body.os-public {
  background: var(--os-bg);
}
