/* Base Element Styles — Feeling Fascia
   Element defaults built on design tokens.
   CF-REF: arch-static-site-patterns.md [2] (CSS custom properties only) */

/* Ensure fallback text is visible during font load */
@font-face {
  font-family: 'DM Serif Display';
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  font-display: swap;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  /* T6-12: body measure 1.5–1.65 */
  line-height: 1.65;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
}

/* Headings */

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
}

h3, h4 {
  font-family: var(--font-sans);
}

h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 26px;
  line-height: 1.20;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 20px;
  line-height: 1.30;
  font-weight: 500;
}

h4 {
  font-size: 16px;
  line-height: 1.40;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
  h4 { font-size: 18px; }
  body { font-size: 17px; }
}

/* Links */

a {
  color: var(--color-blue);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Paragraphs */

p {
  max-width: var(--max-width-text);
}

p + p {
  margin-top: var(--space-md);
}

/* Lists (within content) */

.content ul,
.content ol {
  padding-left: var(--space-lg);
  max-width: var(--max-width-text);
}

.content ul {
  list-style: disc;
}

.content ol {
  list-style: decimal;
}

.content li + li {
  margin-top: var(--space-sm);
}

/* Images */

img {
  height: auto;
  border-radius: var(--radius-md);
}

/* Skip to content link */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-charcoal);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Visually hidden (accessible text) */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Small text / captions */

.text-small {
  font-size: 15px;
  line-height: 1.60;
}

.text-caption {
  font-size: 13px;
  line-height: 1.50;
  letter-spacing: 0.02em;
  color: var(--color-gray);
}

@media (max-width: 639px) {
  .text-small { font-size: 14px; }
  .text-caption { font-size: 12px; }
}
