:root {
  --base-padding: 1rem;
  --base-margin: 1rem;
  --primary-color: #809fff;
}

html {
  color: #eee;
  background: #121212;
  padding: 0 30vw 0;
  font-size: 16px; /* Adjust base size for scalability */
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  max-width: 800px; 
}

.blog-html {
  max-width: none;
  padding: 0;
}

.blog-html body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6vw 6rem;
}

.blog-page {
  background: radial-gradient(circle at 10% 0%, rgba(128, 159, 255, 0.12), transparent 55%),
              radial-gradient(circle at 90% 20%, rgba(255, 128, 192, 0.08), transparent 45%),
              #121212;
}

.blog {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding-top: 3rem;
}

.blog-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 2.5rem 3rem;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(24, 24, 24, 0.92), rgba(40, 40, 55, 0.9));
  border: 1px solid rgba(128, 159, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.blog-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.blog-hero__eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.blog-hero__beats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-hero__beats li {
  position: relative;
  padding-left: 1.6rem;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.82);
}

.blog-hero__beats li::before {
  content: "•";
  position: absolute;
  left: 0.4rem;
  color: var(--primary-color);
}

.blog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.blog-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.blog-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(128, 159, 255, 0.22);
}

.blog-pill--primary {
  background: var(--primary-color);
  color: #111;
}

.blog-pill--primary:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.blog-pill--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.02);
}

.blog-pill--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.blog-section {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.blog-section h2 {
  margin: 0;
}

.blog-section--feature {
  gap: 2.4rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.post-card {
  background: rgba(20, 20, 28, 0.92);
  border: 1px solid rgba(128, 159, 255, 0.2);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 240ms ease, border 240ms ease, box-shadow 240ms ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(128, 159, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.post-card__tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

.post-card__summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.post-card__meta {
  margin: auto 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.storyline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.storyline {
  background: rgba(18, 18, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.storyline h3 {
  margin: 0;
}

.storyline ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.storyline ul li a {
  color: rgba(255, 255, 255, 0.78);
}

.storyline ul li a:hover {
  color: var(--primary-color);
}

.blog-section--catalog {
  gap: 2.4rem;
}

.catalog-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.catalog-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.catalog-card {
  padding: 1.5rem 1.6rem;
  border-radius: 16px;
  background: rgba(18, 18, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.catalog-card:hover {
  border-color: rgba(128, 159, 255, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.catalog-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.catalog-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.catalog-card[data-topic="experiment"] {
  border-color: rgba(128, 159, 255, 0.18);
}

.catalog-card[data-topic="building"] {
  border-color: rgba(255, 171, 105, 0.16);
}

.catalog-card[data-topic="human"] {
  border-color: rgba(144, 238, 144, 0.16);
}

.catalog-card[data-topic="story"] {
  border-color: rgba(255, 255, 255, 0.12);
}

.catalog-card[data-topic="experiment"]:hover {
  border-color: rgba(128, 159, 255, 0.55);
}

.catalog-card[data-topic="building"]:hover {
  border-color: rgba(255, 171, 105, 0.55);
}

.catalog-card[data-topic="human"]:hover {
  border-color: rgba(144, 238, 144, 0.46);
}

.catalog-card[data-topic="story"]:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.catalog-header a {
  color: var(--primary-color);
}

.catalog-header a:hover {
  color: #fff;
}

img, video {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 500; /* Increase the font weight */
  margin: 2rem 0;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

.content p, ul, .list {
  margin-bottom: 2rem;
  line-height: 2;

}

ul {
  padding: 0;
  list-style-position: inside;
}

.list, .content ul {
  margin-left:2rem;
}

.list li {
  margin-bottom: 1rem;
}

.nav {
display: flex;
justify-content: flex-start;
gap: 2rem;
}

.nav li {
list-style-type: none;
}

a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.3s; /* Smooth transition */
}

a:hover {
color: white;
}

#mc_embed_signup {
  clear:left; 
}

#footer {
  padding-top: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
html {
  padding: var(--base-padding);
}

.blog-html body {
  padding: 0 var(--base-padding) 4rem;
}

.blog {
  gap: 3rem;
}

.blog-hero {
  padding: 1.75rem 1.5rem 2.5rem;
}

.blog-hero__beats {
  grid-template-columns: 1fr;
}

.blog-hero__actions {
  flex-direction: column;
  align-items: flex-start;
}

.storyline-grid {
  grid-template-columns: 1fr;
}

.catalog-grid {
  grid-template-columns: 1fr;
}

.nav {
  flex-direction: row; /* display items in a row */
  justify-content: space-between; /* evenly space items */
  flex-wrap: wrap; /* allow items to wrap to the next line if there's not enough space */
}

.nav li {
  padding: 0 0.5rem; /* add some horizontal padding between items */
}

.mobileScreenshot {
  width: 100%;
}
}
