/* AnHonestHost Base Styles */

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

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

body {
  font-family: var(--anhh-font-family);
  background-color: var(--anhh-bg);
  color: var(--anhh-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: var(--anhh-font-size-2xl);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.08;
}

h2 {
  font-size: var(--anhh-font-size-xl);
  font-weight: 800;
  letter-spacing: -1.5px;
}

h3 {
  font-size: var(--anhh-font-size-md);
  font-weight: 700;
}

p {
  color: var(--anhh-text-secondary);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--anhh-transition-base);
}

a:hover {
  color: var(--anhh-text-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--anhh-font-family);
  cursor: pointer;
}

/* Selection */
::selection {
  background: var(--anhh-accent);
  color: var(--anhh-bg);
}

/* Background effects — dark mode only */
.anhh-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 86, 219, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.anhh-light .anhh-bg-grid {
  display: none;
}

.anhh-bg-glow {
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.anhh-light .anhh-bg-glow {
  display: none;
}

/* Ensure content sits above background effects */
.anhh-section,
.fl-page,
nav,
footer,
header,
main {
  position: relative;
  z-index: 1;
}
