/*
 * Wendo — Base Styles
 * Imports tokens, defines typography scale and utility classes.
 */

@import url('./tokens.css');

/* ============================================
   Body
   ============================================ */
body {
  font-family: var(--wendo-font-family);
  font-size: var(--wendo-text-base);
  font-weight: var(--wendo-font-regular);
  color: var(--wendo-foreground);
  background-color: var(--wendo-background);
  line-height: var(--wendo-leading-normal);
  letter-spacing: var(--wendo-tracking-normal);
}

/* ============================================
   Headings
   ============================================ */
h1 {
  font-size: var(--wendo-text-4xl);
  font-weight: var(--wendo-font-extrabold);
  line-height: var(--wendo-leading-tight);
  letter-spacing: var(--wendo-tracking-tight);
}

h2 {
  font-size: var(--wendo-text-3xl);
  font-weight: var(--wendo-font-bold);
  line-height: var(--wendo-leading-tight);
  letter-spacing: var(--wendo-tracking-tight);
}

h3 {
  font-size: var(--wendo-text-2xl);
  font-weight: var(--wendo-font-bold);
  line-height: var(--wendo-leading-tight);
}

h4 {
  font-size: var(--wendo-text-xl);
  font-weight: var(--wendo-font-semibold);
  line-height: var(--wendo-leading-tight);
}

h5 {
  font-size: var(--wendo-text-lg);
  font-weight: var(--wendo-font-semibold);
  line-height: var(--wendo-leading-tight);
}

/* ============================================
   Text
   ============================================ */
.text-sm {
  font-size: var(--wendo-text-sm);
}

.text-xs {
  font-size: var(--wendo-text-xs);
  font-weight: var(--wendo-font-medium);
}

p {
  line-height: var(--wendo-leading-normal);
}

/* ============================================
   Links
   ============================================ */
a {
  color: var(--wendo-primary);
  transition: color var(--wendo-transition-fast);
}

a:hover {
  color: var(--wendo-primary-hover);
}

a:focus-visible {
  outline: 2px solid var(--wendo-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--wendo-muted);
}

.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;
}

/* ============================================
   Focus Visible (global)
   ============================================ */
:focus-visible {
  outline: 2px solid var(--wendo-primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--wendo-primary-muted);
  color: var(--wendo-primary);
}
