/* ==========================================================================
   AGDEA — Global Base
   Modern reset + base typography + utilities. Loads after variables.css.
   ========================================================================== */

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

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  /* Subtle depth gradient — never flat black */
  background-image:
    radial-gradient(ellipse at 50% -20%, rgba(232, 62, 140, 0.06), transparent 60%),
    var(--gradient-depth);
  background-attachment: fixed;
}

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: var(--color-black);
}

/* ----- Typography defaults ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
}

h1 {
  font-size: clamp(var(--fs-4xl), 6vw, var(--fs-6xl));
}

h2 {
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
}

h3 {
  font-size: var(--fs-2xl);
}

h4 {
  font-size: var(--fs-xl);
}

p {
  color: var(--text);
  max-width: 60ch;
}

small,
.muted {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent);
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.content {
  max-width: var(--content-max);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-9);
}

.section--tight {
  padding-block: var(--space-7);
}

.stack > * + * {
  margin-top: var(--space-5);
}

.stack-lg > * + * {
  margin-top: var(--space-7);
}

.divider {
  height: 1px;
  background: var(--color-border-subtle);
  border: 0;
  margin-block: var(--space-7);
}

/* ----- Focus state (keyboard a11y) ----- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ----- Visually hidden (a11y) ----- */
.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;
}
