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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-cream);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p {
  margin: 0;
}

/* Tamil script runs through this class wherever a caption/description is Tamil */
.lang-ta {
  font-family: var(--font-tamil);
}

.site-main {
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--nav-h-pad);
  padding-right: var(--nav-h-pad);
}

@media (max-width: 900px) {
  :root {
    --nav-h-pad: 20px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tap targets stay >= 44px on touch devices per the design brief */
@media (max-width: 640px) {
  a, button, input[type="checkbox"] {
    min-height: 44px;
  }
}
