/* Base Typography and Layout */

body {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Container */
.section {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--container-padding);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typography Scale */
.main-heading {
  font-size: clamp(2.5rem, 8vw, var(--font-size-3xl));
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.section-heading {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Tagline */
.tagline {
  font-size: clamp(1.125rem, 3vw, var(--font-size-lg));
  font-weight: var(--font-weight-regular);
  color: var(--text-secondary);
  max-width: 600px;
}

/* Highlight/Mark Effect */
mark {
  background: linear-gradient(180deg, transparent 60%, var(--accent) 60%);
  color: var(--text-primary);
  padding: 0 0.2em;
  font-weight: var(--font-weight-medium);
}

/* Header */
header {
  position: fixed;
  top: 0;
  right: 0;
  padding: var(--spacing-md);
  z-index: var(--z-header);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.theme-toggle:hover {
  background-color: var(--hover-bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .section {
    padding: var(--spacing-xl) var(--container-padding);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-max-width: 900px;
  }
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
