/* ==========================================================================
   theme.css — Color Application, Links, Focus States, Selection, Print
   ========================================================================== */

/* ---------- Link Styles ---------- */

.content-link,
.content-wrapper a,
article a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--transition-fast);
}

.content-link:hover,
.content-wrapper a:hover,
article a:hover {
  color: var(--color-primary-hover);
}

/* ---------- Focus States ---------- */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-soft-accent);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}

/* ---------- Selection ---------- */

::selection {
  background-color: var(--color-soft-accent);
  color: var(--color-text);
}

/* ---------- Utility Classes ---------- */

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

.text-muted {
  color: var(--color-text-muted);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-primary {
  color: var(--color-primary);
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ---------- Print Styles ---------- */

@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .site-header,
  .site-footer,
  .nav-toggle-label,
  .newsletter-signup,
  .btn,
  .cta-block {
    display: none;
  }

  main {
    min-height: auto;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }
}
