/* Base Typography & Element Styles */

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  line-height: 1.6;
}

/* Headings — Montserrat uppercase for primary, Playfair Display for accent */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 {
  font-size: var(--text-hero);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

h3 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
}

/* Body text */
p {
  margin-bottom: 1em;
  max-width: 65ch;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

/* Links */
a {
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-primary);
}

/* Selection */
::selection {
  background-color: var(--color-taupe);
  color: var(--color-charcoal);
}

/* Skip link — visually hidden until focused */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--color-charcoal);
  color: var(--color-cream);
  font-size: var(--text-small);
  z-index: 1000;
}

.skip-link:focus {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  width: auto;
  height: auto;
  padding: var(--space-xs) var(--space-sm);
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border-radius: 4px;
}

/* Horizontal rule */
hr {
  border: none;
  height: 1px;
  background-color: var(--color-taupe);
  margin: var(--space-lg) 0;
}

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