/* ===== BASE RESET & TYPOGRAPHY ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f8f7f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: #d45c00;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover, a:focus {
  color: #a84600;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #f97316;
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: #1a1a2e;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th {
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}

td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: 0.9em;
  background: #f3f4f6;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* ===== SKIP LINK (a11y) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: #f97316;
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}