/**
 * Base styles — reset and typography.
 */
@font-face {
  font-family: 'Noto Serif Devanagari';
  src: url('../fonts/noto-serif-devanagari-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Devanagari';
  src: url('../fonts/noto-sans-devanagari-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Devanagari';
  src: url('../fonts/noto-sans-devanagari-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

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

html {
  font-size: var(--text-size-mobile);
  line-height: var(--line-height);
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-ui);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
}

a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

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

button {
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text);
}

input,
select,
textarea {
  font-family: var(--font-ui);
  font-size: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
}

p {
  margin-bottom: var(--space-16);
  line-height: var(--line-height);
}

ul,
ol {
  margin-left: var(--space-24);
  margin-bottom: var(--space-16);
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-16);
  background: var(--primary);
  color: var(--bg);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius);
  z-index: 10000;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: var(--space-16);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
