/*
  Typography Styles
  Font imports, headings, body text, links
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@400;700&display=swap');

/* Base Typography */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-800);
  background-color: var(--bg-primary);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive heading sizes */
@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  h3 {
    font-size: var(--text-3xl);
  }
}

/* Paragraphs */
p {
  margin-bottom: var(--space-sm);
  color: var(--color-gray-700);
}

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

/* Lead text (larger intro paragraphs) */
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-600);
}

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

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

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

/* Styled links within content */
.link,
.legal-section__text a,
.legal-section__list a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.link:hover {
  color: var(--color-primary-hover);
  text-decoration-thickness: 2px;
}

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

ul li, ol li {
  margin-bottom: 0.5rem;
  line-height: var(--leading-relaxed);
}

ul li:last-child,
ol li:last-child {
  margin-bottom: 0;
}

/* Unordered list styles */
ul {
  list-style-type: disc;
}

ul ul {
  list-style-type: circle;
  margin-top: 0.5rem;
}

/* Remove list styles for navigation */
nav ul,
.footer__links {
  list-style: none;
  padding-left: 0;
}

nav ul li,
.footer__links li {
  margin-bottom: 0;
}

/* Blockquote */
blockquote {
  margin: var(--space-lg) 0;
  padding-left: var(--space-md);
  border-left: 4px solid var(--color-primary);
  font-style: italic;
  color: var(--color-gray-600);
}

blockquote p {
  margin-bottom: var(--space-sm);
}

/* Strong and emphasis */
strong {
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
}

em {
  font-style: italic;
}

/* Small text */
small,
.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

/* Text utilities */
.text-center {
  text-align: center;
}

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

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

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

.text-gray {
  color: var(--color-gray-600);
}

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

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

.font-medium {
  font-weight: var(--font-medium);
}

.font-semibold {
  font-weight: var(--font-semibold);
}

.font-bold {
  font-weight: var(--font-bold);
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Required field indicator */
.required {
  color: var(--color-error);
  font-weight: var(--font-medium);
}

/* Code */
code,
pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background-color: var(--color-gray-100);
  border-radius: var(--radius-sm);
  padding: 0.125rem 0.25rem;
}

pre {
  padding: var(--space-sm);
  overflow-x: auto;
  margin-bottom: var(--space-sm);
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-gray-200);
  margin: var(--space-lg) 0;
}

/* Selection styling */
::selection {
  background-color: var(--color-primary-light);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-primary-light);
  color: var(--color-white);
}
