/* Farm Capital — Base / Reset Styles */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--surface-base);
}

/* ── Headings ── */
h1 {
  font-family: var(--font-display);
  font-size: var(--type-h1-size);
  font-weight: var(--type-h1-weight);
  line-height: var(--type-h1-lh);
  color: var(--text-primary);
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2-size);
  font-weight: var(--type-h2-weight);
  line-height: var(--type-h2-lh);
  color: var(--text-primary);
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--type-h3-size);
  font-weight: var(--type-h3-weight);
  line-height: var(--type-h3-lh);
  color: var(--text-primary);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-size: var(--type-h4-size);
  font-weight: var(--type-h4-weight);
  line-height: var(--type-h4-lh);
  color: var(--text-primary);
}

p {
  line-height: var(--lh-relaxed);
  text-wrap: pretty;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

/* ── Lists ── */
ul, ol {
  padding-left: var(--space-6);
}

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

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid var(--color-blue-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ── Utility: container ── */
.fc-container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-inline: auto;
  padding-inline: var(--spacing-page-x);
}

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

/* ── Dark surface text overrides ── */
.fc-dark h1,
.fc-dark h2,
.fc-dark h3,
.fc-dark h4,
.fc-dark p,
.fc-dark span {
  color: var(--text-inverse);
}

.fc-dark a {
  color: rgba(255,255,255,0.8);
}

.fc-dark a:hover {
  color: var(--color-white);
}
