* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sans-serif-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --monospace-font-family: ui-monospace, Menlo, "SF Mono", "Andale Mono", "Cascadia Code", "Source Code Pro", "Roboto Mono", Monaco, Consolas, "DejaVu Sans Mono", monospace;
  --font-family: var(--sans-serif-font-family);
}

body {
  font-family: var(--font-family);
  color: white;
  background-color: rgba(9,10,17,0.8); 
  display: flex;
  flex-direction: column;
  padding: 14px;
  min-height: 100vh;
  gap: 14px;
}

header,
main,
footer {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}


header, main, footer {
  color: white;
}

header a {
  color: inherit;
  text-decoration: none;
}

header {
  padding: 14px 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.postsContainer {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

.postCard {
  padding: 14px;
  background: rgba(88, 88, 88, 0.8);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  box-shadow: 0 1px 3px 0 #f6821f, 0 1px 2px -1px rgb(0 0 0 / 0.1);
  border-radius: 14px;
  height: 100%;
  border: 1px solid transparent;
  transition-duration: 200ms;
}

.postCard:hover {
  border-color: #e96b04;
}


.postCard > a {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
}

.postCard > p {
  flex: 1;
  color: #ffffff;
}

.statsContainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.unstyled {
  color: inherit;
  text-decoration: none;
}

.back-to-home {
  font-size: 1.5em; 
  font-weight: bold;
  color: #f6821f;
}

h1 {
  color: #f6821f 
}

h2, h3 {
  color: #f6821f 
}

a {
  color: #f6821f; 
}

article div {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

article div ul {
  list-style-position: inside;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

footer {
  color: #f6821f; 
}

footer a {
  text-decoration: none; 
  color: inherit; 
}

footer a:hover {
  text-decoration: underline; 
}

@media (min-width: 640px) {
  body {
      padding: 24px;
      gap: 24px;
  }

  .postsContainer {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px;
  }

  .postCard {
      padding: 24px;
  }
}

