/* tapgioco.com — base.css
   Reset, design tokens (--tap-*), typography. Components live in tap.css. */

:root {
  /* palette */
  --tap-white: #ffffff;
  --tap-ink: #111114;
  --tap-grey: #f2f2f5;
  --tap-blue: #0a84ff;
  --tap-green: #30c463;
  /* derived tones (same hues, tuned for text contrast) */
  --tap-blue-ink: #006edb;
  --tap-blue-deep: #0058b3;
  --tap-blue-wash: #eaf4ff;
  --tap-green-ink: #1a7a3a;
  --tap-green-wash: #e9f9ee;
  --tap-muted: #5c5c66;
  --tap-line: #e4e4ea;

  /* type */
  --tap-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --tap-text-xs: 0.8125rem;
  --tap-text-sm: 0.9375rem;
  --tap-text-md: clamp(1rem, 0.96rem + 0.2vw, 1.0938rem);
  --tap-text-lg: clamp(1.125rem, 1.04rem + 0.45vw, 1.3125rem);
  --tap-h3: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem);
  --tap-h2: clamp(1.625rem, 1.25rem + 1.8vw, 2.5rem);
  --tap-h1: clamp(2.125rem, 1.35rem + 3.8vw, 4rem);

  /* shape */
  --tap-radius-xl: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --tap-radius-lg: 1.5rem;
  --tap-radius-md: 1rem;
  --tap-radius-pill: 999px;
  --tap-shadow-soft: 0 1px 2px rgba(17, 17, 20, 0.04), 0 14px 36px -14px rgba(17, 17, 20, 0.14);
  --tap-shadow-lift: 0 2px 4px rgba(17, 17, 20, 0.05), 0 26px 56px -20px rgba(17, 17, 20, 0.22);
  --tap-shadow-blue: 0 10px 24px -10px rgba(10, 132, 255, 0.65);

  /* layout */
  --tap-gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --tap-wrap: 50rem;
  --tap-wrap-wide: 68rem;
  --tap-prose: 43rem;
  --tap-gap-section: clamp(3rem, 2rem + 4vw, 5.5rem);
  --tap-tabbar-h: 4rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--tap-white);
  color: var(--tap-ink);
  font-family: var(--tap-font);
  font-size: var(--tap-text-md);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: var(--tap-h1);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--tap-h2);
  line-height: 1.08;
  letter-spacing: -0.032em;
}

h3 {
  font-size: var(--tap-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--tap-blue-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tap-blue-deep);
}

strong,
b {
  font-weight: 650;
}

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

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

th {
  text-align: left;
}

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

summary {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--tap-blue);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

::selection {
  background: var(--tap-blue);
  color: var(--tap-white);
}

.srOnly {
  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;
  border: 0;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
