/* =========================================================
   Bet Your Bud — Base Styles
   File: /assets/css/base.css
   Purpose: Reset/normalize, typography defaults, accessible focus,
            base elements (links, images, forms), utility helpers.
   ========================================================= */

/* ---------- Modern reset / normalize-ish ---------- */
*,
*::before,
*::after{ box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  min-height: 100dvh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button{
  cursor: pointer;
}

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

a:hover{
  text-decoration: none;
}

p{
  margin: 0;
}

h1, h2, h3, h4, h5, h6{
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: var(--ls-tight);
}

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

hr{
  border: 0;
  border-top: var(--bw-1) solid var(--c-border);
  margin: var(--sp-24) 0;
}

:focus{
  outline: none;
}

:focus-visible{
  box-shadow: var(--ring);
  border-radius: var(--r-12);
}

/* ---------- Selection ---------- */
::selection{
  background: rgba(110,231,255,0.22);
}

/* ---------- Accessible skip link ---------- */
.skip-link{
  position: absolute;
  left: var(--sp-16);
  top: var(--sp-16);
  transform: translateY(-140%);
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.88);
  padding: var(--sp-10) var(--sp-14);
  border-radius: var(--r-12);
  box-shadow: var(--sh-md);
  z-index: var(--z-modal);
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus{
  transform: translateY(0);
}

/* ---------- Typography helpers used by index.html ---------- */
.h2{
  font-size: clamp(var(--fs-24), 2.4vw, var(--fs-40));
  line-height: var(--lh-tight);
}

.h3{
  font-size: clamp(var(--fs-18), 1.5vw, var(--fs-24));
  line-height: var(--lh-snug);
}

.lead{
  margin-top: var(--sp-12);
  color: var(--c-text-2);
  font-size: clamp(var(--fs-16), 1.2vw, var(--fs-18));
  line-height: var(--lh-relaxed);
}

.p{
  margin-top: var(--sp-10);
  color: var(--c-text-2);
  line-height: var(--lh-relaxed);
}

.fine{
  font-size: var(--fs-13);
  color: var(--c-text-3);
  line-height: var(--lh-relaxed);
}

.hint{
  margin-top: var(--sp-8);
  font-size: var(--fs-13);
  color: var(--c-text-3);
  line-height: var(--lh-relaxed);
}

/* ---------- Utility ---------- */
.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;
}

/* Gradient text utility used in hero title */
.u-gradient{
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Small inline code / emphasis (future use) */
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: rgba(255,255,255,0.08);
  padding: 0.12em 0.35em;
  border-radius: var(--r-10);
  border: var(--bw-1) solid var(--c-border);
}

/* ---------- Form element baseline (enhanced in components.css) ---------- */
input,
select,
textarea{
  background: transparent;
  border: none;
  outline: none;
}

label{
  display: inline-block;
}

/* ---------- Reduce tap highlight ---------- */
a, button{
  -webkit-tap-highlight-color: transparent;
}
