@import url(https://fonts.bunny.net/css?family=alegreya:400,400i,700,700i);

:root {
  --extra-margin: 0.75rem;
  --main-margin: 20%;
  --background: #a8a284;
  --text-color: #3a2d2d;
  --nav-link-color: #40316a;
}

html {
  background-color: var(--background);
  color: var(--text-color);
  font-size: 22px;
  font-family: 'Alegreya', serif;
}

article {
  margin: 0 var(--main-margin);
}

nav {
  display: flex;
}

nav a {
  flex: 0;
  text-decoration: none;
}

nav {
/*  background-color: #9E9B8A;*/
  border-bottom: var(--text-color) 1px solid;
}

nav.sitenav ul,
nav.storynav {
  margin: 0 calc(var(--main-margin) - var(--extra-margin));
}

nav.sitenav {
  margin-bottom: 2rem;
}

nav.storynav ul {
  margin: 0;
}

nav ul {
  display: flex;
  list-style: none;
  width: 100%;
  gap: 0.25rem;
}

nav ul li.sep {
  flex: 1;
}

nav ul a:link,
nav ul span.title,
nav ul span.disabledlink {
  color: #333;
  font-size: 115%;
  padding: var(--extra-margin);
  display: inline-block;
}

nav ul .title {
  font-weight: bold;
}

nav ul a.title {
  text-decoration: none;
}

/*nav.sitenav a.title::after {
  content: "Almost Wordless";
}
*/
nav ul a:link,
nav ul span.disabledlink {
  transition: linear background-color .1s;
}

nav ul a:hover,
nav ul a:active {
  background-color: #fff6;
}

a:link,
a:visited,
a:active {
  color: var(--nav-link-color);
}


nav ul span.disabledlink:hover,
nav ul span.disabledlink:active {
  background-color: #ffffff18;
}

nav ul span.disabledlink {
  color: #655;
  cursor: default;
}

body {
  margin: 0;
}

nav ul {
  padding: 0;
}

h1, h2 {
  margin-bottom: 0.1rem;
}

time.publish-date {
  font-style: italic;
}

footer {
  font-style: italic;
  text-align: center;
  width: 100%;
  margin: 0.5rem 0;
}

article:last-of-type {
  flex: 1 0 auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a.blog-link {
  text-decoration: none;
}

a.blog-link h2 {
  text-decoration: underline;
}


a > section > time.publish-date {
  text-decoration: none;
}

/*span.disabledlink {
  text-decoration: underline;
}*/

nav.sitenav a.title img {
  height: 1.4em;
  vertical-align: top;
}