@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@300;400;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --bg-gradient: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --text-accent: #00ff00;
  --border-color: #2a2a2a;
  --accent-gradient: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #0288d1 100%);
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Navigation */
nav:not(.breadcrumbs) {
  background: #000 !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.5);
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

nav a {
  text-shadow: 0 0 2px rgba(0, 255, 0, 0.05);
  text-decoration: underline !important;
  color: var(--text-secondary);
  text-transform: lowercase;
  transition: color 0.25s ease, transform 0.15s ease;
}

nav a:hover {
  transition: text-shadow 1s ease, color 1s ease;
  text-decoration: underline !important;
  color: var(--text-accent) !important;
}

nav a[href="/"] {
  text-shadow: none !important;
  padding-top: 0.25rem !important;
  text-decoration: none !important;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  text-transform: lowercase;
}

nav a[href="/"]:hover {
  text-shadow: none !important;
  color: inherit !important;
}

/* Typography */
h1 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: center;
}

h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.prose, article, .lh-copy {
  font-size: 1.125rem;
  line-height: 1.8;
  text-align: justify;
  text-justify: auto;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Paragraph indent for all content */
.lh-copy p,
.prose p,
article p,
.measure lh-copy p {
  text-indent: 1.5em !important;
  margin-top: 0 !important;
  margin-bottom: 1.125em !important;
  text-wrap: pretty;
}


/* Code blocks */
code, pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

/* About page layout */
.about-layout-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-image {
  margin-top: 2rem;
  display: inline-block;
  max-width: 26em;
}

.about-image > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.about-image > img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

@media (min-width: 60em) {
  .about-layout-container {
    flex-direction: row !important;
    justify-content: center;
    align-items: flex-start;
  }
  
  .about-content {
    max-width: 30em;
    flex-shrink: 0;
  }
  
  .about-image {
    margin-top: 0;
    margin-left: 2rem;
    max-width: 28em;
  }
}

.about-image {
  margin-top: 2rem;
  display: inline-block;
  max-width: 30em;
}

.about-image > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.about-image > img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Footer */
footer {
  font-size: 0.75rem;
  box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.5);
}

/* Scrollbar */
html, body {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 #0d0d0d;
}

body::-webkit-scrollbar {
  width: 10px;
  display: block !important;
}

body::-webkit-scrollbar-track {
  background: #0d0d0d;
}

body::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #444;
}

html {
  overflow-y: scroll !important;
}

@media (min-width: 30em) {
  main .ph4-ns {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Breadcrumbs */
.breadcrumbs nav,
.breadcrumbs ol,
.breadcrumbs li {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Links and text wrapping */
.prose a, article a, .lh-copy a {
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 195, 247, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.prose a:hover, article a:hover, .lh-copy a:hover {
  border-bottom-color: var(--text-accent);
}

/* Tag bubbles */
.tag {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  margin-right: 0.25rem;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
