/**
 * Base Theme — CSS Reset
 *
 * Minimal, modern reset. Sets box-sizing, body defaults,
 * image handling, link styles, focus styles, and accessibility.
 */

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

/* Body defaults */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: var(--text-4xl); margin-bottom: 1.5rem; }
h2 { font-size: var(--text-3xl); margin-top: 2.5rem; }
h3 { font-size: var(--text-2xl); margin-top: 2rem; }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* Paragraphs & lists */
p { margin: 0 0 1.5rem; }
p:empty { display: none; }
ul, ol { padding-left: 1.5rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: var(--space-xs) var(--space-sm); text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 600; }

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

/* Links */
a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Touch targets */
a, button, input, select, textarea {
  min-height: 44px;
}

button, input, select, textarea {
  font-size: 1rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Visually hidden (screen readers only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Print */
@media print {
  .navbar, .navbar-toggle, .skip-link, .share-buttons,
  .ad-block, .footer, .breadcrumbs { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
