/* ============================================================
   MODERN CSS RESET — Backyard Playground
   Based on Andy Bell's reset + custom additions
   ============================================================ */

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

/* Core body defaults */
body {
  min-height: 100vh;
  line-height: var(--leading-normal);
  color: var(--color-slate);
  background-color: var(--color-warm-white);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Balance headings */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: var(--leading-tight);
  font-family: var(--font-serif);
  color: var(--color-charcoal);
  font-weight: var(--weight-regular);
}

/* Readable body copy */
p, li, figcaption, blockquote {
  max-width: 68ch;
  text-wrap: pretty;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

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

/* Inherit fonts in form elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* No bullet styles */
ul, ol {
  list-style: none;
}

/* Remove default button styles */
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Textarea resize */
textarea {
  resize: vertical;
}

/* Table */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Hidden elements */
[hidden] {
  display: none !important;
}

/* Skip to main content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-brass);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  z-index: var(--z-toast);
  transition: top var(--duration-fast);
}
.skip-link:focus {
  top: var(--space-4);
}

/* Selection color */
::selection {
  background: var(--color-brass);
  color: var(--color-white);
}
