/* Base Typography and Element Styles */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

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

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

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

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

h6 {
  font-size: var(--text-base);
}

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

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

/* Desktop - 1024px+ */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-6xl);
  }
}

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

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

p.lead {
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--color-text-light);
}

/* Links */
a {
  color: var(--color-ocean);
  transition: color var(--transition-base);
}

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

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

/* Strong and Emphasis */
strong,
b {
  font-weight: var(--weight-semibold);
}

em,
i {
  font-style: italic;
}

/* Lists */
ul,
ol {
  margin-bottom: var(--space-sm);
}

ul {
  list-style: disc;
  padding-left: var(--space-md);
}

ol {
  list-style: decimal;
  padding-left: var(--space-md);
}

li {
  margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--color-palm);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--color-text-light);
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: 1px solid #E5E5E5;
  margin: var(--space-lg) 0;
}

/* Images */
img {
  height: auto;
}

/* Selection */
::selection {
  background-color: var(--color-ocean);
  color: white;
}

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

/* Focus Visible (for keyboard navigation) */
:focus-visible {
  outline: 2px solid var(--color-ocean);
  outline-offset: 2px;
}
