/**
 * Armchair Journal Reset & Browser Normalization
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--aj-color-bg-page, #f6f7fa);
  color: var(--aj-color-ink-body, #474f5c);
  font-family: var(--aj-font-sans, system-ui, -apple-system, sans-serif);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd, figure, blockquote {
  margin-top: 0;
  margin-bottom: 0;
}

ul, ol {
  padding-left: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, select {
  text-transform: none;
}

button {
  -webkit-appearance: button;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

/*
 * Kadence adds a large generic shadow to every button on hover, focus and
 * active. Components opt into their own elevation where it is useful, so keep
 * that parent-theme effect from leaking into otherwise flat controls.
 */
button:hover,
button:focus,
button:active {
  box-shadow: none;
}

/* Accessibility: Focus-Visible */
:focus-visible {
  outline: 2px solid var(--aj-color-navy-primary, #1a3d74);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* WordPress Core / Accessible Utilities */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #ffffff;
  border-radius: var(--aj-radius-4, 4px);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--aj-color-navy-primary, #1a3d74);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 10px;
  line-height: normal;
  padding: 12px 18px;
  text-decoration: none;
  top: 10px;
  width: auto;
  z-index: 100000;
}
