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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--thi-surface);
  color: var(--thi-ink);
  font-family: var(--wp--preset--font-family--inter);
  font-size: var(--wp--preset--font-size--body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.admin-bar .thi-site-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

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

a {
  color: var(--thi-accent-1);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--thi-accent-2);
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--thi-accent-1) 45%, transparent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--wp--preset--font-family--amiri);
  line-height: 1.15;
  margin-block: 0 0.55em;
  text-wrap: balance;
}

p {
  margin-block: 0 1.1em;
}

.screen-reader-text,
.thi-skip-link:not(:focus) {
  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;
}

.thi-skip-link:focus {
  background: var(--thi-surface-raised);
  border-radius: var(--thi-radius-sm);
  box-shadow: var(--thi-shadow-md);
  color: var(--thi-ink);
  left: 1rem;
  padding: 0.8rem 1rem;
  position: fixed;
  top: 1rem;
  z-index: 10000;
}

.thi-main {
  min-height: 60vh;
}

.thi-content-shell {
  margin-inline: auto;
  max-width: var(--thi-wide);
  padding: clamp(7rem, 13vw, 10rem) 1.25rem clamp(4rem, 8vw, 7rem);
}

.thi-entry {
  margin-inline: auto;
  max-width: var(--thi-content);
}

.thi-entry-header,
.thi-archive-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.thi-entry-header h1,
.thi-archive-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.thi-entry-content > * {
  margin-inline: auto;
  max-width: var(--thi-content);
}

.thi-entry-content > .alignwide {
  max-width: var(--thi-wide);
}

.thi-entry-content > .alignfull {
  margin-inline: calc(50% - 50vw);
  max-width: none;
  width: 100vw;
}

.thi-entry-image {
  margin: 0 0 clamp(2rem, 6vw, 4rem);
}

.thi-entry-image img {
  border-radius: var(--thi-radius-lg);
  width: 100%;
}

.thi-post-meta {
  color: color-mix(in srgb, var(--thi-ink) 68%, transparent);
  font-size: var(--wp--preset--font-size--meta);
  margin-bottom: 0.5rem;
}

.thi-empty-state {
  margin: 3rem auto;
  max-width: 680px;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.thi-section--hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-thi-parallax],
  .thi-hero-photo,
  .thi-hero-panel,
  .thi-story-mark {
    transform: none !important;
  }
}

.thi-motion-disabled *,
.thi-motion-disabled *::before,
.thi-motion-disabled *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

.thi-motion-disabled [data-thi-parallax],
.thi-motion-disabled .thi-hero-photo,
.thi-motion-disabled .thi-hero-panel,
.thi-motion-disabled .thi-story-mark {
  transform: none !important;
}
