* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}

/* two columns: nav on the left, title + content on the right (like the mock) */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 2.5rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  /* pushes the nav down so it sits beside the body text, not the title */
  padding-top: 8.5rem;
}

.sidebar a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.35rem;
}

.sidebar a:hover { text-decoration: underline; }

.page-title {
  text-align: center;
  font-size: 3.4rem;
  font-weight: 700;
  margin: 0 0 2.25rem;
  overflow-wrap: break-word;
}

.content { font-size: 1.15rem; font-weight: 500; }

.meta { font-size: 0.9rem; }

/* blog index / admin lists */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin-bottom: 1.5rem; }
.post-list a { color: #000; font-weight: 600; }

.post-body img { max-width: 100%; }
.post-body pre { overflow-x: auto; border: 1px solid #000; padding: 0.75rem; }
.post-body code { font-size: 0.95em; }
.post-body table { border-collapse: collapse; }
.post-body th, .post-body td { border: 1px solid #000; padding: 0.3rem 0.6rem; }
.post-body a { color: #000; }

/* admin forms */
.admin-form label { display: block; margin-bottom: 1rem; font-weight: 600; }
.admin-form input,
.admin-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem;
  font: inherit;
  font-weight: 400;
  color: #000;
  background: #fff;
  border: 1px solid #000;
}
.admin-form button,
.inline button {
  font: inherit;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  padding: 0.35rem 1rem;
  cursor: pointer;
}
.inline { display: inline; }

@media (max-width: 640px) {
  .page {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
    gap: 1.5rem;
  }
  .sidebar {
    flex-direction: row;
    justify-content: center;
    padding-top: 0;
    gap: 1.75rem;
  }
  .page-title { font-size: 2.4rem; }
}
