/* Sunday Hugo Theme - Main Styles */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  margin: 0;
}

/* Utility Classes - Warm Theme */
.bg-cream { background-color: #faf9f7; }
.bg-cream-95 { background-color: rgba(250, 249, 247, 0.95); }
.bg-cream-alt { background-color: #f5f3ef; }
.text-stone-900 { color: #1c1917; }
.text-stone-800 { color: #292524; }
.text-stone-600 { color: #57534e; }
.text-stone-500 { color: #78716c; }
.text-stone-400 { color: #a8a29e; }
.text-amber-700 { color: #b45309; }
.bg-plum { background-color: #4A3447; }
.bg-plum-hover { background-color: #3A2837; }
.text-plum { color: #4A3447; }
.border-stone-200 { border-color: #e7e5e4; }
.border-stone-300 { border-color: #d6d3d1; }
.bg-stone-100 { background-color: #f5f5f4; }
.bg-stone-200 { background-color: #e7e5e4; }

/* Legacy classes for compatibility */
.text-white { color: #ffffff; }
.text-white-50 { color: rgba(255, 255, 255, 0.5); }
.bg-white { background-color: #ffffff; }
.text-black { color: #000000; }

/* Layout */
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-16 { padding-bottom: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Flexbox */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Grid */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
}

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-hero { font-size: 3rem; line-height: 1.1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Positioning */
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }

/* Borders & Radius */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }

/* Effects */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-opacity { transition: opacity 0.15s; }
.transition-transform { transition: transform 0.15s; }

/* Interactive */
.cursor-pointer { cursor: pointer; }
.list-none { list-style: none; }
a { text-decoration: none; color: inherit; }
a:hover { opacity: 0.9; }

/* Aspect Ratios */
.aspect-\[2\/1\] { aspect-ratio: 2 / 1; }
.object-cover { object-fit: cover; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-32 { width: 8rem; }
.h-24 { height: 6rem; }
.min-w-0 { min-width: 0; }

/* Background Gradients */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.from-green-500\/10 { --tw-gradient-from: rgba(34, 197, 94, 0.1); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-emerald-500\/5 { --tw-gradient-to: rgba(16, 185, 129, 0.05); }

/* Prose (Article Content) - Warm Theme */
.prose { max-width: 65ch; color: #57534e; }
.prose-lg { font-size: 1.125rem; line-height: 1.65; }
.prose h2 { color: #1c1917; font-size: 1.5rem; margin-top: 3rem; margin-bottom: 1rem; font-family: 'Inter', system-ui, sans-serif; font-weight: 450; letter-spacing: -0.025em; }
.prose h3 { color: #1c1917; font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; font-family: 'Inter', system-ui, sans-serif; font-weight: 450; }
.prose p { margin-bottom: 1.25rem; }
.prose a {
  color: #4A3447;
  background: linear-gradient(to bottom, transparent 60%, rgba(180, 83, 9, 0.3) 60%);
}
.prose a:hover {
  background: linear-gradient(to bottom, transparent 60%, rgba(180, 83, 9, 0.15) 60%);
}
.prose strong { color: #1c1917; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote { border-left: 3px solid #4A3447; padding-left: 1rem; font-style: italic; color: #78716c; }
.max-w-none { max-width: none; }

/* Details/Summary */
details summary::-webkit-details-marker { display: none; }
.group-open\:rotate-45:where(.group[open] *) { transform: rotate(45deg); }

/* Negative margins */
.-mx-4 { margin-left: -1rem; margin-right: -1rem; }
.-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-4 { padding-right: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-8 { padding-top: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Block element */
.block { display: block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

/* Responsive */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:items-center { align-items: center; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 1024px) {
  .lg\:px-16 { padding-left: 4rem; padding-right: 4rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-hero { font-size: 4.375rem; line-height: 1.1; }
}

/* Hovers - Warm Theme */
.hover\:text-stone-900:hover { color: #1c1917; }
.hover\:text-stone-600:hover { color: #57534e; }
.hover\:bg-plum-hover:hover { background-color: #3A2837; }
.hover\:bg-stone-100:hover { background-color: #f5f5f4; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:opacity-80:hover { opacity: 0.8; }
.group:hover .group-hover\:text-plum { color: #4A3447; }

/* Mobile Menu */
#mobile-menu-btn {
  background: none;
  border: none;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background-color: #faf9f7;
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  padding: 1.5rem 2rem;
}

.mobile-menu-drawer.open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  color: #78716c;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background-color 0.15s, color 0.15s;
}

.mobile-menu-close:hover {
  background-color: #f5f5f4;
  color: #1c1917;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.mobile-menu-link {
  font-size: 1.25rem;
  color: #57534e;
  transition: color 0.15s;
}

.mobile-menu-link:hover {
  color: #1c1917;
  opacity: 1;
}

.mobile-menu-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #4A3447;
  color: #ffffff;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.15s;
  align-self: flex-start;
}

.mobile-menu-cta:hover {
  background-color: #3A2837;
  opacity: 1;
}

/* Responsive utilities for mobile menu */
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
}
