/**
* reset box sizing
*/
*, *::before, *::after {
  box-sizing: border-box;
  border: none;
}
*:after, *:before, *::before:after, *::before:before, *::after:after, *::after:before {
  box-sizing: border-box;
}

/**
* remove margins
*/
*:not(dialog) {
  margin: 0;
}

/**
* force smooth scroll
*/
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/**
* remove focus outline for mouse, keep for keyboard navigation
*/
:focus:not(:focus-visible) {
  outline: none;
}

/**
* ensure images fit container
*/
img {
  display: block;
  max-width: 100%;
}

/**
* remove bullet points from lists
*/
menu:not(article menu), ol:not(article ol), ul:not(article ul) {
  list-style: none;
}

/**
* remove padding from lists
*/
menu, ol, ul {
  padding: 0;
}

/**
* ensure list styling occurs within the list 
*/
article ol, article ul {
  list-style-position: inside;
}

/**
* Set site font famiy
*/
* {
  font-family: "Times New Roman", Times, serif;
}

/**
* force mobile adjust size according to site 
*/
html {
  text-size-adjust: none;
}

/**
* emphasize link underline 
*/
a {
  text-underline-position: under;
  text-decoration: none;
  text-decoration-thickness: 8;
}

/**
* Basic Typgraphy Overides
*/
/**
* Heading styles, h1 size 2.5 rem until h6 size 1.25rem
*/
h1 {
  font-size: 2.5rem;
  font-weight: 300;
}

h2 {
  font-size: 2.25rem;
  font-weight: 290;
}

h3 {
  font-size: 2rem;
  font-weight: 280;
}

h4 {
  font-size: 1.75rem;
  font-weight: 270;
}

h5 {
  font-size: 1.5rem;
  font-weight: 260;
}

h6 {
  font-size: 1.25rem;
  font-weight: 250;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  margin: 2rem 0;
  inline-size: 50%;
  max-inline-size: 70%;
  display: grid;
  gap: 2rem;
}

.site-header {
  margin: 2rem 0 0 0;
  border: groove 0.5rem hsl(356, 21%, 27%);
  border-radius: 2rem;
}

.navbar {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
}

.site-title {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: italic;
  font-weight: 500;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
}
.nav-links > li {
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  min-height: 100vh;
  border: dashed 0.2rem hsl(356, 21%, 27%);
  padding: 1rem;
}

.btn-link {
  padding: 10% 20%;
  border-radius: 2rem;
  border: 2px hsl(356, 21%, 27%);
  border-style: hidden;
  transition-property: background-color, color, border-style;
  transition-duration: 0.5s;
  transition-timing-function: ease-out;
  transition-delay: 20ms;
}
.btn-link:hover {
  background-color: hsl(132, 56%, 86%);
  color: hsl(240, 4%, 20%);
  border-style: solid;
}

.recent-posts {
  display: grid;
  grid-template-rows: repeat(auto-fill, minmax(min-content, 1rem));
  gap: 1rem;
}

.blog-stub {
  display: flex;
  flex-direction: column;
  margin: 0 2rem;
  gap: 0.5rem;
}

.stub-info {
  align-items: flex-end;
}

.post-article {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: stretch;
  align-content: space-between;
  justify-content: space-between;
  gap: 0rem;
}
.post-article p {
  padding: 0.5rem 3rem 0;
  text-indent: 0.5rem;
  line-height: calc(1.2rem + 0.2em);
}
.post-article picture {
  display: flex;
  justify-content: center;
  align-items: center;
}
.post-article img {
  height: auto;
}

body {
  background-color: hsl(0, 70%, 59%);
  color: hsl(240, 4%, 20%);
}
body a {
  color: hsl(252, 19%, 95%);
}