.layout-wrapper,
.page-content,
.post-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.page-content main,
.post-container main {
  flex: 1;
}
header {
  margin: 0;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header a {
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-decoration: none;
  min-width: 3rem;
  display: inline-block;
}
.about:not(:empty) {
  margin-bottom: 1.25rem;
}
.post-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.post-list a {
  color: var(--text-primary);
  display: block;
  text-decoration: none;
  transition: opacity 0.15s ease-out;
}
.post-item {
  height: 2.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.post-item .title {
  margin: 0;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-item .date {
  white-space: nowrap;
}
.divider {
  flex: 1 1 auto;
  min-width: 3rem;
  margin: 0 0.25rem;
  height: 0.5px;
  background-color: var(--border);
}
.dotted-divider {
  flex: 1 1 3rem;
  min-width: 3rem;
  letter-spacing: 5px;
  height: 1.675rem;
  overflow: hidden;
  color: var(--text-tertiary);
  opacity: 0.75;
}
.dotted-divider:after {
  content: '·····························································································································································';
}
@media (hover: hover) and (pointer: fine) {
  .post-list:hover a {
    opacity: 0.4;
  }
  .post-list:hover a:hover {
    opacity: 1;
  }
  .post-list:hover a:hover .divider {
    background-color: var(--text-tertiary);
    opacity: 0.75;
  }
}
.placeholder {
  height: 3rem;
}
footer {
  font-size: var(--font-size-s);
  font-weight: var(--font-weight-light);
  line-height: 1.75;
  color: var(--text-secondary);
  opacity: 0.75;
  margin-top: 4rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}
footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
.back-button {
  width: 8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  color: var(--text-secondary);
  margin-bottom: 2.5em;
  position: relative;
  left: -0.175em;
  text-decoration: none;
}
.back-button:hover {
  color: var(--text-primary);
}
.toc {
  position: fixed;
  width: 10rem;
  margin-left: -13.5rem;
  top: 6rem;
  color: var(--text-secondary);
  font-size: var(--font-size-s);
}
.toc nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc nav > ul li {
  padding: 0;
  margin: 0.25rem 0;
}
.toc nav > ul li:before {
  display: none;
}
.toc a {
  display: block;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gradient-mask {
  --gradient-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.541) 34%,
    rgba(0, 0, 0, 0.194) 65%,
    transparent 100%
  );
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4rem;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.gradient-mask__blur,
.gradient-mask__background {
  position: absolute;
  inset: 0;
  mask-image: var(--gradient-mask-image);
  -webkit-mask-image: var(--gradient-mask-image);
}
.gradient-mask__blur {
  backdrop-filter: blur(1.5px);
}
.gradient-mask__background {
  background-color: var(--bg);
}
.code-block {
  position: relative;
}
.copy-code {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: var(--font-size-s);
  cursor: pointer;
}
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(24px);
  transition: opacity 0.15s ease-out;
}
.image-viewer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.image-viewer img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}
.prose img[data-preview='true'] {
  cursor: pointer;
}
body.image-viewer-open {
  overflow: hidden;
}
.link-card {
  display: flex !important;
  flex-direction: column;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  background: var(--astro-code-background);
  margin: 1.25rem 0 1.75rem;
}
.link-card-content {
  padding: 0.75rem 1.25rem;
  order: 2;
}
.link-card-image-outer {
  padding: 0.5rem 0.5rem 0;
  order: 1;
}
.link-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 6px;
}
.link-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.link-card-title {
  font-weight: var(--font-weight-bold);
  margin: 0.25rem 0 0 !important;
}
.link-card-description {
  color: var(--text-secondary);
  margin: 0 !important;
}
.link-card-url {
  color: var(--text-tertiary);
  font-size: var(--font-size-s);
  margin: 0.25rem 0 !important;
}
.embed {
  width: 100%;
  border: 0;
  border-radius: 8px;
  margin: 1.25rem 0;
}
.embed.spotify {
  height: 152px;
}
.embed.spotify.tall {
  height: 352px;
}
.embed.video {
  aspect-ratio: 16/9;
}
.github-card,
.neodb-card,
.x-post,
.callout {
  display: block;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--astro-code-background);
}
.counter-button,
.example-tag,
.theme-toggle {
  border: 0.5px solid var(--border);
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--text-primary);
  font: inherit;
  padding: 0.375rem 0.75rem;
}
.not-found {
  justify-content: center;
}
.not-found p {
  margin: 0.5rem 0;
}
@media (max-width: 1000px) {
  .toc {
    display: none;
  }
}
@media (max-width: 768px) {
  .gradient-mask {
    height: 2rem;
  }
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}
