/**
 * Mesada Landing - Base Styles
 * Typography, body defaults, and utility classes
 */

/* ===== Base Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===== Body ===== */
body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--mesada-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Selection ===== */
::selection {
  background-color: #C7D2FE; /* indigo-200 */
  color: var(--color-slate-900);
}

/* ===== Typography - Display Titles ===== */
.display-title {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ===== Typography - Subtitle/Body ===== */
.subtitle {
  color: var(--color-slate-600);
}

/* ===== Links ===== */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.link-underline {
  text-decoration: underline;
  color: #4F46E5; /* indigo-600 */
}

.link-underline:hover {
  color: #3730A3; /* indigo-800 */
}

/* ===== Section Backgrounds ===== */
.bg-surface {
  background-color: var(--mesada-surface);
}

.bg-gradient-subtle {
  background: linear-gradient(to bottom, var(--color-white), var(--color-slate-50));
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

/* ===== Section Spacing ===== */
.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* ===== Overflow Control ===== */
.overflow-hidden {
  overflow: hidden;
}

/* ===== Screen Reader Only ===== */
.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;
}

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

/* ===== Form Inputs Base ===== */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--mesada-primary);
  box-shadow: 0 0 0 3px rgba(142, 125, 255, 0.2);
}
