/* WebHostPune — base reset + typography (docs/DESIGN_SYSTEM.md §2-3) */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-secondary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { margin: 0; font-family: var(--font-family); color: var(--color-secondary); }

h1 { font-size: var(--fs-h1-mobile); font-weight: var(--fw-extrabold); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2-mobile); font-weight: var(--fw-bold); line-height: 1.2; }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }

@media (min-width: 900px) {
  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); }
}

.display {
  font-size: var(--fs-display-mobile);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
}
@media (min-width: 900px) {
  .display { font-size: var(--fs-display); }
}

p { margin: 0 0 var(--space-2); }

.body-lg { font-size: var(--fs-body-lg); font-weight: var(--fw-regular); line-height: var(--lh-body-lg); }
.text-small { font-size: var(--fs-small); line-height: var(--lh-body-lg); }
.text-muted { color: var(--color-muted); }
.text-accent { color: var(--color-accent-1); }

/* ---- Layout primitives ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
@media (min-width: 900px) {
  .container { padding-inline: var(--gutter-desktop); }
}

.section {
  padding-block: var(--section-padding-mobile);
}
@media (min-width: 900px) {
  .section { padding-block: var(--section-padding-desktop); }
}

.section--surface { background: var(--color-surface); }
.section--bg { background: var(--color-bg); }
.section--dark {
  background: var(--color-secondary);
  color: var(--color-bg);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 600px) {
  .grid--2-up { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3-up { grid-template-columns: repeat(3, 1fr); }
  .grid--4-up { grid-template-columns: repeat(4, 1fr); }
}

.stack { display: flex; flex-direction: column; gap: var(--space-2); }
.cluster { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  z-index: var(--z-modal);
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* ---- Focus states (brandkit claims AAA+/High Contrast — keep that promise, DESIGN_SYSTEM.md §4.3) ---- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
