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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tlp-ivory);
  color: var(--tlp-ink);
  font-family: var(--tlp-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4, h5, h6) {
  margin-block: 0 0.65em;
  color: var(--tlp-navy);
  font-family: var(--tlp-font-serif);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
}

:where(p, ul, ol, dl, blockquote) {
  margin-block: 0 1.25rem;
}

a {
  color: var(--tlp-navy);
  text-decoration-color: color-mix(in srgb, var(--tlp-gold) 70%, transparent);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tlp-ink);
  text-decoration-color: var(--tlp-gold);
}

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

:where(button, input:not([type='hidden']), select, textarea, summary, [role='button']) {
  min-block-size: 44px;
}

:where(button, input[type='button'], input[type='reset'], input[type='submit'], select, summary, [role='button']) {
  min-inline-size: 44px;
}

:where(nav a, a[role='button'], a.button, a.wp-element-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 44px;
}

:where(input[type='checkbox'], input[type='radio']) {
  min-block-size: 44px;
  min-inline-size: 44px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--tlp-navy);
  outline-offset: 3px;
}

:where(img, picture, video, canvas, svg) {
  block-size: auto;
  max-inline-size: 100%;
}

:where(img, picture, video, canvas) {
  display: block;
}

.tlp-container {
  inline-size: min(100% - 2rem, var(--tlp-container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: var(--tlp-space-3);
  left: var(--tlp-space-3);
  width: auto;
  height: auto;
  margin: 0;
  padding: var(--tlp-space-2) var(--tlp-space-3);
  clip: auto;
  clip-path: none;
  background: var(--tlp-ivory);
  color: var(--tlp-navy);
  font-weight: 700;
}
