html {
    scroll-padding-top: 60px;
}

p {
  text-indent: 2em;
}

body {
    background-color: black;
    color: white;
    font-size: large;
    max-width: 1000px;
    margin: auto;
    padding: 0 20px;
}
.parent {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.topbar {
  position: sticky; /* stays pinned when scrolling; use static if you don't want that */
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #1a1a1a;
}

.topbar a {
  color: #eee;
  text-decoration: none;
  margin-left: 1rem;
}

article {
  scroll-margin-top: 4rem; /* roughly the topbar's height */
}

code {
    font-family: monospace;
    background: lightgrey;
    color: black;
    padding: 2px 2px;
    border-radius: 2px;
}

pre {
    color: black;
    background: lightgray;
    padding: 10px;
    border-radius: 6px;
    line-height: 1.3;
}

/* 
.right_pictures {
    flex: 1;
} */

.link-card {
    display: block;
    text-decoration: none;
    width: 460px;
    border-radius: 8px;
    overflow: hidden; /* keeps corners rounded */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.link-image {
    background-color: #3a4448;
    height: 220px;
}

.link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-caption {
    background-color:darkmagenta;
    color: white;
    font-weight: bold;
    padding: 12px 16px;
    font-family: sans-serif;
}
@media (max-width: 768px) {
    .parent {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .main_text,
    .right_pictures {
        flex: none;
    }
}