@font-face {
  font-family: 'ArialBlackWeb';
  src: url('arial-black.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  width: 100%;
  font-family: 'ArialBlackWeb', sans-serif;
  color: #111;
  background: white;
  overflow: auto;
}

/* Header Container */
header {
  margin: 0;
  padding: 0;
}

/* Logo */
header h1 {
  font-size: 40px;
  font-weight: normal;
  color: #111;
}

header h1 a {
  text-decoration: none;
  color: #111;
}

/* Navigation Links */
header nav {
  margin-top: 5px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

header nav a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 20px;
  color: #111;
  font-weight: bold;
}

header nav a:hover {
  color: #333;
}

/* Microblog posts */
main {
  padding: 40px;
  padding-top: 0;
}

article {
  margin-top: 20px;
  text-align: left; /* Force all article content to start left */
}

article a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

article a:hover {
  color: #333;
}

time {
  color: gray;
  font-size: 0.9em;
}

p {
  margin-top: 5px;
  font-size: 16px;
  font-family: Arial, sans-serif;
}

/* Images — always own line, left-aligned */
article img {
  display: block;           /* Puts image on its own line */
  margin: 10px 0;            /* Space above & below */
  max-width: 100%;
  height: auto;

  object-fit: contain;
}

/* Optional: For panoramic/wide images */
article img.wide {
  object-fit: cover;
  max-height: 60vh;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  /* Same left padding for header, main, and articles */
  header,
  main,
  article {
    padding-left: 20px;
    padding-right: 10px;
  }

  header nav {
    flex-direction: column;
    gap: 20px;
  }

  header h1 {
    font-size: 28px;
  }

  header nav a {
    font-size: 22px;
  }

  /* Remove double padding inside paragraphs */
  article p {
    padding-left: 0;
    padding-right: 0;
  }

  /* Reduce image dominance on small screens */
  article img {
    max-height: 60vh;
    border-radius: 3px;
  }
}

