/* toolsfor.co — HUB-ONLY base styles. Homepage, cluster pages, 404. */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--tf-bg);
  background-image: 
    radial-gradient(at 50% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 60%),
    radial-gradient(at 100% 0%, rgba(5, 150, 105, 0.03) 0px, transparent 50%);
  background-repeat: no-repeat;
  color: var(--tf-ink);
  font-family: var(--tf-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--tf-font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
  color: var(--tf-ink);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--tf-brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

:focus-visible {
  outline: 2px solid var(--tf-focus);
  outline-offset: 2px;
  border-radius: var(--tf-radius-sm);
}

.tf-wrap {
  width: 100%;
  max-width: var(--tf-page);
  margin: 0 auto;
  padding: 0 24px;
}

.tf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tf-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--tf-surface);
  color: var(--tf-ink);
  padding: 0.5rem 1rem;
  border: 2px solid var(--tf-brand);
  border-radius: var(--tf-radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}

.tf-skip:focus {
  top: 1rem;
}
