/*
 * Greenish gradient theme — ported from mojo_programming / rust_programming sites
 *
 * --bg-gradient: linear-gradient(120deg, #0650b1, rgb(0, 128, 0));
 */

:root {
  --bg-gradient: linear-gradient(120deg, #0650b1, rgb(0, 128, 0));
}

html, body {
  background: var(--bg-gradient) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

/* Make theme wrapper transparent so gradient shows through */
.wrapper,
.page-content,
.site-header,
.site-footer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Light text on gradient */
.site-title,
.site-title:visited,
.site-nav a,
.site-nav a:visited,
.footer-heading,
.footer-col-wrapper,
.contact-list,
.social-media-list a,
.page-heading,
.post-list-heading {
  color: #d4d4d8 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.site-title:hover,
.site-nav a:hover {
  color: #ffffff !important;
}

/* Post parent container — visible boundary on gradient */
.post {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  padding: 1.5rem 2rem;
  color: #d4d4d8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.post-title {
  font-size: 1.5rem;
  font-weight: 300;
}

/* Innermost content — seamless, no borders */
.post-content {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #d4d4d8;
  font-size: 1.0625rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.home .post-list > li {
  font-size: 1.0625rem;
}

/* Article list on home page */
.post-list > li {
  background: transparent;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* Home page — uniform light text & links */
.home,
.home * {
  color: #d4d4d8 !important;
}

.post-list-heading {
  font-weight: 300;
}

.home a,
.home a:visited {
  color: #fbbf24 !important;
}

.post-link {
  font-weight: 300;
  display: inline;
}

.post-tenmo-link,
.post-tenmo-link:visited {
  font-weight: 300;
  color: #fbbf24;
  text-decoration: underline;
  font-size: 1.5rem;
  margin-left: 0.25em;
}

.post-tenmo-link:hover {
  color: #ffffff;
}

/* Code blocks */
pre,
code {
  background-color: #161B22 !important;
  color: #E6EDF3 !important;
  border: none !important;
}

.highlight {
  background: #161B22 !important;
  border-radius: 4px;
}

/* Inline code */
code {
  padding: 0.15em 0.4em;
  font-size: 0.9em;
}

pre code {
  padding: 1rem;
  display: block;
  overflow-x: auto;
}


/* Links in content area */
.post-content a {
  color: #fbbf24;
  text-decoration: underline;
}

.post-content a:hover {
  color: #ffffff;
}

/* Headings in content area */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #d4d4d8;
  font-weight: 300;
  font-size: 1.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Inline code inside post content */
.post-content code {
  background-color: rgba(22, 27, 34, 0.8) !important;
}

/* Tables in post content */
.post-content table {
  color: #d4d4d8;
  border-color: rgba(255,255,255,0.15);
}

.post-content table tr {
  background: transparent !important;
}

.post-content table th,
.post-content table td {
  background: transparent !important;
  color: #d4d4d8;
  border-color: rgba(255,255,255,0.15);
}
