:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --bg-primary: #fcfcfd;
  --text-main: #111827;
  --text-muted: #4b5563;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --border-light: #e5e7eb;
}

#main-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

#main-text h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--text-main);
  position: relative;
  padding-left: 20px;
  border-left: 4px solid var(--accent);
}

#main-text h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

#main-text h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

#main-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-align: justify;
  hyphens: auto;
}

#main-text p:first-of-type {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-main);
}

#main-text p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  float: left;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 4px;
  color: var(--accent);
  font-weight: 700;
}

#main-text ol {
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: custom-counter;
  display: grid;
  gap: 12px;
}

#main-text ol li {
  counter-increment: custom-counter;
  position: relative;
  padding: 14px 18px 14px 54px;
  background: var(--accent-light);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
}

#main-text ol li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  #main-text {
    padding: 20px 16px;
  }
  
  #main-text p {
    text-align: left;
  }
  
  #main-text h1 {
    padding-left: 14px;
    border-left-width: 3px;
  }
}