/* ══════════════════════════════════════════════════════════════════════════
   BuildWithAdithya — base layer
   Reset, typography, buttons and the shared keyframes. Everything here is
   page-agnostic; section styling lives in landing.css.
   ══════════════════════════════════════════════════════════════════════════ */

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

html,
body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--pg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

p { margin: 0 0 12px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

a {
  color: var(--color-accent);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { color: var(--color-accent-600); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
::selection { background: var(--sel); }

.grayscale { filter: grayscale(1) contrast(1.08); }

/* Screen-reader-only, still focusable — used by the skip link. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus-visible {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip: auto;
  clip-path: none;
  background: var(--ink-fill);
  color: var(--ink-fill-text);
  font-weight: 600;
}

/* ── buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 8px 14.4px;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }

.btn-secondary { border: 2px solid var(--rule); color: var(--color-text); }
.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
  color: var(--color-text);
}
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

/* The hero and section CTAs run larger than the system default. */
.btn-lg { padding: 15px 22px; font-size: 15px; }
.btn-md { padding: 13px 20px; font-size: 14px; }

/* ── motion ──────────────────────────────────────────────────────────── */

@keyframes dashflow { to { stroke-dashoffset: -28; } }
@keyframes floaty  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floaty2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes pulsedot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Applied for the length of a theme change so the whole page cross-fades
   instead of snapping. Removed again by landing.js. */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition:
    background-color .42s cubic-bezier(.4, 0, .2, 1),
    background-image .42s cubic-bezier(.4, 0, .2, 1),
    border-color .42s cubic-bezier(.4, 0, .2, 1),
    color .42s cubic-bezier(.4, 0, .2, 1),
    fill .42s, stroke .42s, box-shadow .42s, opacity .42s !important;
}

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