/*
 * Started : 07-SEP-2025
 * Updated : 10-SEP-2025
 */

/*
 * This stylesheet accompanies: Building a static website (part 7) blog post.
 */

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

body
{
   background-color: #e6e6ff;
   color: black;
   font-size: 100%;
}

h1
{
   font-size: 2rem;
   margin-block-end: 25px;
}

h2
{
   font-size: 1.6rem;
   margin-block-end: 20px;
}

h3
{
   font-size: 1.4rem;
   margin-block-end: 20px;
}

p, pre, hr
{
   margin-block-end: 20px;
}

article
{
   background-color: white;
   max-inline-size: 1000px;
   margin: 0 auto;
   padding-inline-start: 20px;
   padding-inline-end: 20px;
}

header
{
   background-color: #052962;
   height: 100px; /* Set an arbitrary height. */
}

footer
{
   background-color: #052962;
   color: white; /* Make sure the text is visible against the background. */
}

/* For now, apply the CSS styles to every element inside the footer. */
footer *
{
   max-inline-size: 1000px;
   margin: 0px auto;
   padding: 20px;
}

/* If the browser window is narrower than the intrinsic size of an image,
 * display it at 100% of the viewport, until that becomes wider than the intrinsic size of the image.
 */
img
{
   max-inline-size: 100%;
}

/*
 * CSS for the top navigation menu.
 * We set the list not to display any visible bullets and reduce the
 * margin and padding 20 pixels.
 * The list element is set to display mode "inline", which means
 * the items in the list will appear next to each other.
 * We also set the width of the icon graphic to be 40 pixels.
 */
nav ul
{
   list-style-type: none;
   margin: 0;
   padding: 0;
   max-inline-size: 1000px;
   margin: 0 auto;
}

nav li
{
   display: inline;
}

nav img
{
   width: 40px;
}

/*
 * CSS to style the "published" section, which displays a small
 * calendar icon and the published and updated dates.
 * We simply set the height of the IMG element (which is the calendar icon)
 * to "1em", to match the font size.
 */
section.published img
{
   height: 1em;
}

code
{
   background: lightgrey;
}
