:root {
    --color-bg: #344e41;
    --color-primary: #3a5a40;
    --color-dark: #588157;
    --color-accent: #a3b18a;
    --color-text: #dad7cd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text);

    align-self: center;
    align-items: center;
    
}

html, body {
    margin: 1rem;
    padding: 0rem;
    background: var(--color-bg);
    height: 100%;
}

/* Default style */
.text-body {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0;
}

/* When viewport is at least 50rem wide */
@media (min-width: 80rem) {
    .text-body {
        max-width: 70rem; /* or whatever you want for large screens */
        width: 50%;
    }
}

.text-body img {
    width: 100%;
    max-height: 30%;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: block;

    object-fit: cover;        /* crop instead of squish */
    object-position: center;  /* crop from the middle */
}

.text-body a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}


.text-body a:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.meta {
    display: flex;
    justify-content: space-between; /* pushes first child left, last child right */
    align-items: center;
}

.meta span {
    color: var(--color-text);
}


footer {
    margin: auto 0;
}

.post-nav {
  bottom: 1rem;
  top: 10rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  max-width: 40rem; /* match your text-body */
  margin: 2rem auto;
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-dark);
  max-width: 40rem;
  margin: 0 auto;
}

.post-nav .home {
  position: absolute;             /* remove from flow */
  left: 50%;
  transform: translateX(-50%);    /* perfectly center */
  padding-bottom: 1rem;
}

.post-nav a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.post-nav a:hover {
  color: var(--color-text);
  text-decoration: underline;
}
