/* ============================================
   Base Styles — Thest.io
   ============================================ */

html {
  text-size-adjust: 100%;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  z-index: 10001;
  transition: none;
  pointer-events: none;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -120%;
  left: var(--space-md);
  z-index: 10000;
  padding: 0.65rem 1.1rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* Headings — clean sans-serif */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-heading);
  text-wrap: balance;
  letter-spacing: -0.025em;
}

h1,
.h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-black);
  letter-spacing: -0.035em;
}

h2,
.h2 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.025em;
}

h3,
.h3 {
  font-size: var(--font-size-2xl);
  letter-spacing: -0.02em;
}

h4,
.h4 {
  font-size: var(--font-size-xl);
}

h5,
.h5 {
  font-size: var(--font-size-lg);
}

h6,
.h6 {
  font-size: var(--font-size-base);
}

/* Body text */
p {
  margin-bottom: var(--space-md);
  color: var(--color-copy);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

small {
  font-size: var(--font-size-sm);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(5, 150, 105, 0.15);
  color: var(--color-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(28, 25, 23, 0.12);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(28, 25, 23, 0.22);
}

/* Utility classes */
.text-accent {
  color: var(--color-accent);
}

.text-primary {
  color: var(--color-accent);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-white {
  color: var(--color-white);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Accent text utility */
.gradient-text {
  color: var(--color-accent);
}

.content-measure {
  max-width: 68ch;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
