/**
 * Dishtayate Base & Typography Styles
 * Fonts: Inter for UI text, Lora for page headings and big numbers
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .heading-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
}

h1, .page-title {
  font-size: clamp(1.35rem, 2.2vw + 0.8rem, 1.85rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.15rem, 1.8vw + 0.65rem, 1.4rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1rem, 1.2vw + 0.55rem, 1.15rem);
}

p, span, label, input, button, select, textarea {
  font-family: var(--font-ui);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

input::placeholder, textarea::placeholder {
  color: var(--color-text-subtle);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
