/* CSS reset from 
https://dev.to/hankchizljaw/a-modern-css-reset-6p3
https://raw.githubusercontent.com/andy-piccalilli/modern-css-reset/master/src/reset.css */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"],
ul, ol
{
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Actual styles */
* {
  /* Primarily for dark mode, eventually  https://usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/ */
  -webkit-font-smoothing: antialiased;
}


:root {
  --font-size:  17px;
  --line-height: 32px;
  --background-color: #fdfdfd;
  --color: #444;
  --a-color: #444;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #2c3238;
    --color: #e6e9f0;
    --a-color: #e6e9f0;
  }

  img {
    opacity: .9;
  }
}


html {
	
	padding: 2ch;
	margin: auto;
	padding-top: calc(4 * var(--line-height));
  background-color:  var(--background-color);
}

body {
  max-width: 70ch;
  margin: auto;
  font-family:  "Iowan Old Style", "Iowan", "Times New Roman", serif;
  color:  var(--color);
  font-size: var(--font-size);
  line-height: var(--line-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Helvetica, sans-serif;
}

h1 {
  font-family: Helvetica, sans-serif;
  font-size:  2em;
  font-weight: 900;
  margin-bottom: calc(2 * var(--line-height));
}

article > h1:first-child {
  margin-bottom: 0;
}
article > h1:first-child + time {
  display: block;
  margin-bottom: calc(2 * var(--line-height));
}

/*img {
  margin-bottom: calc(1 * var(--line-height));
  margin-top: calc(1 * var(--line-height));
}*/

a, a:hover, a:active
{
  color: var(--a-color);
  /*} text-decoration-skip-ink: auto;*/
}

article > * + * {
  margin-top: 1em;
}

img {
	width: 100%;
}

footer {
	margin-top: calc(5 * var(--line-height));
}

nav.main li {
  display: flex;
  justify-content: space-between;
  margin-bottom:  var(--line-height);
}

nav.main ul {
  padding-left: 0;
}

nav.main time {
  /* otherwise date stamp wraps and does not look good */
  flex-shrink: 0; 
}

ul.img-row {
  padding: 0;
  display: flex;
  gap: 12px;
  position: relative;
}

@media (min-width: 120ch) {
  ul.img-row {
    width: 100ch;
    min-width: 100;
    left:  -15ch;
  }
} 
ul.img-row li {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 0;
  
}

ul.img-row img {
  border-radius: 3px;
  min-height: 100%;
  object-fit: cover;

}


blockquote {
  padding-left:  1em;
  font-style: italic;
}