/* =========================================================
   Base: page, type, links, focus, layout helpers
   ========================================================= */

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tt-header-h) + var(--tt-admin-bar) + 16px); }
body.tt-site {
  margin: 0;
  background: var(--tt-paper);
  color: var(--tt-text);
  font-family: var(--tt-font-body);
  font-size: var(--tt-fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.tt-site *, .tt-site *::before, .tt-site *::after { box-sizing: border-box; }
/* Element defaults use :where() (zero specificity) so any component class overrides them. */
.tt-site :where(img, svg, video) { max-width: 100%; height: auto; }
.tt-site :where(a) { color: inherit; text-decoration: none; }
.tt-site :where(a:hover) { color: inherit; }
.tt-site :where(button) { font: inherit; cursor: pointer; }

.tt-site :where(h1, h2, h3, h4) {
  font-family: var(--tt-font-display);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.1;
  color: inherit;
}
.tt-site :where(p) { margin: 0 0 1em; }
::selection { background: rgba(232, 162, 0, .35); color: inherit; }

/* Keyboard focus */
.tt-site :focus { outline: none; }
.tt-site :focus-visible { outline: 3px solid #8FB8FF; outline-offset: 3px; border-radius: 6px; }

/* Skip link (Hello's markup) */
.tt-site .skip-link:focus {
  position: fixed; left: 16px; top: calc(16px + var(--tt-admin-bar)); z-index: 1000;
  clip: auto; width: auto; height: auto; padding: 12px 18px; border-radius: 999px;
  background: #fff; color: var(--tt-ink); font-weight: 600;
}

/* Layout helpers */
.tt-wrap { width: 100%; max-width: var(--tt-wrap); margin-inline: auto; padding-inline: var(--tt-gutter); }
.tt-narrow { max-width: 880px; margin-inline: auto; }
.tt-section { position: relative; padding-block: clamp(72px, 8vw, 112px); }
.tt-dark { background: var(--tt-ink); color: #fff; }
.tt-serif { font-family: var(--tt-font-display); }
.tt-muted { color: var(--tt-muted); }
.tt-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Scroll reveal (JS adds .tt-js to <html> and .is-in to elements as they enter) */
.tt-js .tt-reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--tt-ease), transform .9s var(--tt-ease); }
.tt-js .tt-reveal.is-in { opacity: 1; transform: none; }
.elementor-editor-active .tt-reveal { opacity: 1 !important; transform: none !important; }
