:root {
  --heading-font: 'Libre Caslon Display', Georgia, 'Times New Roman', Times, serif;
  --body-font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px;
  color: #333;
  background: #FEFCF3;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse 600px 400px at 30% 30%, rgba(100, 180, 255, 0.4) 0%, rgba(100, 180, 255, 0.2) 30%, transparent 70%),
              radial-gradient(ellipse 500px 600px at 25% 25%, rgba(255, 140, 180, 0.35) 0%, rgba(255, 140, 180, 0.15) 35%, transparent 65%),
              radial-gradient(ellipse 400px 300px at 35% 40%, rgba(120, 200, 255, 0.25) 0%, transparent 60%),
              radial-gradient(ellipse 350px 450px at 20% 35%, rgba(255, 160, 200, 0.2) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
  animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% {
    opacity: 0.6;
    transform: translate(-2px, -2px) scale(1);
  }
  100% {
    opacity: 0.8;
    transform: translate(2px, 2px) scale(1.02);
  }
}

h1 {
  font-family: var(--heading-font);
  font-size: 2.5em;
  margin-bottom: 0.5em;
  font-weight: 500;
  position: relative;
}

.hero-title {
  font-family: var(--heading-font);
  font-size: 3.8em;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 1em;
  font-weight: 500;
  position: relative;
}

.hero-subtitle {
  font-family: var(--heading-font);
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 1em;
  font-weight: 400;
  color: #555;
}

h2 {
  font-family: var(--heading-font);
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 500;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 5%;
  height: 1px;
  background: linear-gradient(90deg, rgba(100, 180, 255, 0.8), rgba(255, 140, 180, 0.8));
  margin-top: 0.3em;
  border-radius: 1px;
}

h3 {
  font-family: var(--heading-font);
  font-size: 1.2em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 500;
}

p {
  margin-bottom: 1em;
}

ol, ul {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

strong {
  font-weight: 600;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

.contact {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #ddd;
}

img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

section {
  margin-bottom: 2em;
}

/* About Me section bullet styling - match article prose */
section:first-of-type ul {
  list-style: disc;
  padding-left: 1.625em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

section:first-of-type li {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  line-height: 1.6;
}

/* Writing and Speaking list styling */
section:not(:first-of-type) ul {
  list-style: none;
  padding-left: 0;
}

section:not(:first-of-type) li {
  margin-bottom: 0.8em;
}

section:not(:first-of-type) li a {
  font-weight: 600;
}

.meta {
  color: #888;
  font-size: 0.9em;
}

/* Additional utility classes to replace Tailwind */
.text-l {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-gray-500 {
  color: #6b7280;
}

.font-bold {
  font-weight: 700;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-5 {
  padding-bottom: 1.25rem;
}

.pb-10 {
  padding-bottom: 2.5rem;
}

.pb-14 {
  padding-bottom: 3.5rem;
}

.pt-5 {
  padding-top: 1.25rem;
}

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

.prose {
  color: #374151;
  max-width: 65ch;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


.prose-xl {
  font-size: 1.25rem;
  line-height: 1.8;
}

.prose h1 {
  font-family: var(--heading-font);
  font-size: 2.25rem;
  margin-top: 0;
  margin-bottom: 0.8888889em;
  font-weight: 800;
  line-height: 1.1111111;
}

.prose h2 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin-top: 2.5em;
  margin-bottom: 1.25em;
  font-weight: 700;
  line-height: 1.3333333;
  color: #1f2937;
}

.prose h3 {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  margin-top: 2em;
  margin-bottom: 0.75em;
  font-weight: 600;
  line-height: 1.6;
  color: #1f2937;
}

.prose p {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  text-align: justify;
  hyphens: auto;
}

.prose p:first-child {
  margin-top: 0;
}

.prose a {
  color: #0066cc;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
  font-weight: 500;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #0056b3;
  text-decoration-thickness: 0.15em;
}

.prose strong {
  color: #111827;
  font-weight: 600;
}

.prose ul, .prose ol {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  line-height: 1.6;
}

.prose ol li {
  padding-left: 0.25em;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: #4b5563;
  border-left: 0.25rem solid #9ca3af;
  quotes: "\201C""\201D""\2018""\2019";
  margin-top: 2em;
  margin-bottom: 2em;
  padding-left: 1.5em;
  font-size: 1.1em;
  line-height: 1.8;
}

.prose code {
  color: #111827;
  font-weight: 600;
  font-size: 0.875em;
}

.prose pre {
  color: #e5e7eb;
  background-color: #1f2937;
  overflow-x: auto;
  font-weight: 400;
  font-size: 0.875em;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding: 0.8571429em 1.1428571em;
}

/* Article-specific styles */
.article-nav {
  margin-bottom: 2rem;
}


.article-header {
  margin-bottom: 0.75rem;
  padding-bottom: 2rem;
}

.article-title {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111827;
}


.article-content {
  margin-bottom: 4rem;
}

/* Footnote styling */
.prose .footnotes {
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.95rem;
  color: #6b7280;
}

.prose .footnotes ol {
  padding-left: 1.2em;
}

.prose .footnotes li {
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.prose .footnotes p {
  margin: 0;
  font-size: inherit;
  text-align: left;
}

.prose .footnote-ref {
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
}

.prose .footnote-ref:hover {
  text-decoration: underline;
}

.prose .footnote-backref {
  color: #6b7280;
  text-decoration: none;
  margin-left: 0.5em;
}

.prose .footnote-backref:hover {
  color: #0066cc;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .article-title {
    font-size: 2rem;
  }
}