/**
 * Reset + base typography, built on dist/css/tokens.css.
 *
 * Headings use Poppins, body uses Inter, uppercase labels/eyebrows use Sora
 * (falling back to Noto Sans Devanagari for the Nepali tagline) — per
 * HANDOFF.md §2. The four breakpoints (1140 / 1080 / 980 / 720px) are used
 * literally here and in every other stylesheet, matching --rn-bp-* in
 * tokens.css so JS and CSS never disagree about where they sit.
 */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[class], ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--rn-blue);
  text-decoration: none;
}
a:hover {
  color: var(--rn-blue-hover);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------
 * Base typography
 * ------------------------------------------------------------- */
body {
  font-family: var(--rn-font-body);
  font-size: var(--rn-fs-16);
  line-height: 1.6;
  color: var(--rn-body);
  background: var(--rn-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rn-font-display);
  font-weight: 800;
  color: var(--rn-navy);
  line-height: 1.1;
}

h1 { font-size: var(--rn-fs-54); letter-spacing: -1.8px; }
h2 { font-size: var(--rn-fs-44); letter-spacing: -1.2px; }
h3 { font-size: var(--rn-fs-32); letter-spacing: -0.8px; }
h4 { font-size: var(--rn-fs-25); letter-spacing: -0.5px; }
h5 { font-size: var(--rn-fs-20); letter-spacing: -0.4px; }

@media (max-width: 720px) {
  h1 { font-size: var(--rn-fs-38); }
  h2 { font-size: var(--rn-fs-30); }
  h3 { font-size: var(--rn-fs-25); }
}

p {
  color: var(--rn-body);
}

strong, b {
  font-weight: 700;
  color: var(--rn-ink);
}

/* Uppercase eyebrows / utility labels. */
.rnta-eyebrow {
  display: inline-block;
  font-family: var(--rn-font-label);
  font-size: var(--rn-fs-12);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rn-blue);
}

/* ---------------------------------------------------------------
 * Layout primitives
 * ------------------------------------------------------------- */
.rnta-frame {
  max-width: var(--rn-content-width);
  margin-inline: auto;
  padding-inline: var(--rn-gutter);
}

@media (max-width: 720px) {
  .rnta-frame {
    padding-inline: var(--rn-gutter-mobile);
  }
}

/* ---------------------------------------------------------------
 * Accessibility utilities
 * ------------------------------------------------------------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rnta-skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--rn-navy);
  color: var(--rn-white);
  border-radius: var(--rn-radius-8);
  font-family: var(--rn-font-body);
  font-weight: 700;
  transition: top 160ms ease;
}
.rnta-skip-link:focus {
  top: 8px;
  color: var(--rn-white);
}

/* Visible focus ring on every interactive element — never removed
 * (HANDOFF.md §8). `:focus-visible` keeps it off a plain mouse click while
 * still showing for keyboard/AT users; the plain `:focus` fallback covers
 * browsers without `:focus-visible` support, so the ring is never silently
 * dropped. */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: var(--rn-focus-width) solid var(--rn-focus-color);
  outline-offset: var(--rn-focus-offset);
}
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: var(--rn-focus-width) solid var(--rn-focus-color);
  outline-offset: var(--rn-focus-offset);
}

/* Honeypot field (inc/forms.php `rnta_form_security_fields()`). Off-screen,
 * never `display:none` / `visibility:hidden` — some bots specifically skip
 * fields the DOM reports as not rendered, so this stays "rendered" but
 * unreachable and invisible to a real visitor. */
.rnta-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------
 * Buttons — the three treatments used sitewide (primary / secondary / ghost)
 * ------------------------------------------------------------- */
.rnta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rn-space-8);
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--rn-radius-8);
  font-family: var(--rn-font-body);
  font-size: var(--rn-fs-15);
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.rnta-btn--primary {
  background: var(--rn-blue);
  color: var(--rn-white);
  box-shadow: var(--rn-shadow-button-primary);
}
.rnta-btn--primary:hover {
  background: var(--rn-blue-hover);
  color: var(--rn-white);
}
.rnta-btn--primary:active {
  background: var(--rn-blue-pressed);
  transform: translateY(1px);
}

.rnta-btn--secondary {
  background: var(--rn-white);
  color: var(--rn-navy);
  border-color: var(--rn-line);
}
.rnta-btn--secondary:hover {
  border-color: var(--rn-blue);
  color: var(--rn-blue);
}

.rnta-btn--navy {
  background: var(--rn-navy);
  color: var(--rn-white);
}
.rnta-btn--navy:hover {
  background: var(--rn-navy-deep);
  color: var(--rn-white);
}

.rnta-btn--gold {
  background: var(--rn-gold);
  color: var(--rn-navy);
}
.rnta-btn--gold:hover {
  background: var(--rn-gold-hover);
}

/* ---------------------------------------------------------------
 * Icons (inc/icons.php `rnta_icon()`)
 * ------------------------------------------------------------- */
.rnta-icon {
  flex: none;
  color: currentColor;
}
