body {
  transition:
    background-color 0.3s,
    color 0.3s;
  font-family: "Lora", serif;
}

nav {
  font-family: "Merriweather", serif;
}

header h1 {
  font-family: "Merriweather", serif;
  font-size: 3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 4rem;
}

header p {
  margin-top: 2rem;
  font-family: "Lora", serif;
}

header ul {
  font-family: "Merriweather", serif;
}

.headerfont {
  font-family: "Merriweather", serif;
}

.home div,
.home h3 {
  font-family: "Merriweather", serif;
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  font-family: "Merriweather", serif;
}

.markdown h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.markdown h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.markdown h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

.markdown p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-family: "Lora", serif;
}

.markdown code {
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.95rem;
}

.markdown pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
}

.markdown ul,
.markdown ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style-type: disc;
}

.markdown ul li,
.markdown ol li {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.markdown strong {
  font-family: "Merriweather", serif;
}

.markdown blockquote {
  background: #e6e6e0;
  border-left: 4px solid #e04330;
  padding: 1rem;
  border-radius: 0.25rem;
  margin: 1rem 0;
}

.markdown blockquote p {
  margin-bottom: 0rem;
}

.markdown table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.markdown th {
  font-family: "Merriweather", serif;
}

.markdown th,
.markdown td {
  border: 1px solid #d1d5db; /* Tailwind gray-300 */
  padding: 0.75rem 1rem;
  text-align: left;
}

.markdown th {
  background-color: #f3f4f6; /* Tailwind gray-100 */
  font-weight: 600;
  color: #111827; /* Tailwind gray-900 */
}

.markdown tr:nth-child(even) {
  background-color: #f9fafb; /* Tailwind gray-50 */
}

.hover-highlight {
  position: relative;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    text-decoration-color 0.3s ease;
  text-decoration: underline dotted #e04330;
  padding: 0.25rem;
  background-color: #f8f8f8;
}

.hover-highlight:hover {
  background-color: #fef9c3; /* soft yellow background */
  text-decoration-color: #000;
  padding: 0.25rem;
}

.hover-highlight::after {
  content: attr(data-hover);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.hover-highlight:hover::after {
  opacity: 1;
}

.callout-note {
  color: #2d3127;
  background: #fde2dd;
  border-left: 4px solid #c93020;
  padding: 1rem;
  border-radius: 0.25rem;
  margin: 1rem 0;
}

.callout-note p {
  margin-bottom: 0rem;
}

.markdown a {
  color: #e04330;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.markdown a:hover {
  color: #2d3127;
}

.links a {
  color: #e04330;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.links a:hover {
  color: #2d3127;
}

footer {
  font-family: "Merriweather", serif;
}
