/* ============================================
   HOFZWANZIG Base Styles
   webdesign-workflow Phase 2
   ============================================ */

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

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Body */
body {
  font-family: var(--font-body);
  font-size: var(--type-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-normal);
  color: var(--color-primary);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-sm);
}

h1 { font-size: var(--type-3xl); }
h2 { font-size: var(--type-2xl); }
h3 { font-size: var(--type-lg); }
h4 { font-size: var(--type-md); }

/* Paragraphs */
p {
  margin: 0 0 var(--space-sm);
  max-width: 65ch;
}

/* Text utilities */
.text-sm { font-size: var(--type-sm); }
.text-xs { font-size: var(--type-xs); }
.text-lg { font-size: var(--type-lg); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover { color: var(--color-accent); }

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
  font-size: var(--type-sm);
}
.skip-link:focus {
  top: var(--space-sm);
}

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

/* Selection */
::selection {
  background: var(--color-primary-200);
  color: var(--color-primary-700);
}

/* HR / Divider */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

/* Lists inside content */
ul, ol {
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}
