*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--cream);
  overflow-x: hidden;
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--duration-fast) ease;
}
.skip-link:focus {
  top: 12px;
}

/* Display font */
.font-display {
  font-family: var(--font-display);
}

/* Mono labels */
.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mono-md {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

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

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

/* Focus ring (accessibility) */
:focus-visible {
  outline: 2px solid var(--coffee);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(139, 111, 71, 0.2);
  color: var(--espresso);
}

/* Page entrance animation */
main {
  animation: pageEnter var(--duration-fast) ease both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
