/* Style sheet for RedbeardCreations.com */
/* Copyright 2003 Michael D Johnson.  All rights reserved */

@import url("reset.css");
@import url("fonts/ikarius/ikarius.css");
@import url("fonts/switzera/switzera.css");
@import url("fonts/fantasque/fantasque.css");

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

body {
  background: black url(images/fyre-glow.jpg);
  color: #FFCC24;
  color: hsl(46, 100%, 57%);
  font: normal 1em/1.45 "Switzera Web", "Switzera ADF Light", Verdana, Arial, sans-serif;

  max-width: 65em;
  margin: 0 auto;
}

h1, h2 {
  color: #F62;
  font: bold 2em "Ikarius Web", "Ikarius ADF No2 Std", Verdana, Arial, sans-serif;
}

h2 {
    font-size: 1.6em;
    color: #FA8;
}

:focus {
  outline: 1px dotted yellow;
}

ins {
  color: #DA8202;
}

/*{{{ Header */

body > header {
  margin: 1em 10em 2em 1em;
  border-right: 4px solid rgb(96, 0, 0);
  border-right: 4px solid rgba(96, 0, 0, 0.80);
  min-width: 16em;
}

body > header,
body > header > h1,
article,
footer, article > header > p,
body > nav ul {
  border-radius: 32px 8px 0 0;
}

body > header > h1 {
  font-size: 2em;
  color: #F62;
  color: hsl(18, 86%, 50%);
  border-right: solid 4px rgb(82, 0, 0);
  border-right: solid 4px rgba(82, 0, 0, 0.80);
  background: rgb(68, 0, 0);
  background: rgba(68, 0, 0, 0.80);
  padding: 0.5em;
  height: 3.25em;
  margin: 0;
}

body > header > h1 > small {
  display: block;
  font-size: 0.65em;
  padding: 0 0.1em;
  color: #F84;
  color: hsl(18, 72%, 60%);
}

body > header > h1 > a,
body > header > h1 > a:visited,
body > header > h1 > a:hover,
body > header > h1 > a:focus
{
  text-shadow: 0 0 20px rgba(255,160,160,0.65);
  font: inherit;
  color: inherit;
  background: transparent;
}

body > header > h1 > a:hover,
body > header > h1 > a:focus {
  text-shadow: 0 0 20px rgba(255,160,160,0.85);
  color: hsl(18, 86%, 65%);
}

header > ol.breadcrumb {
  color: #800;
  display: block;
  font-size: 1.2em;
  font-weight: normal;
  margin: -4.2em 0 0 3em;
  padding: 0;
  list-style-type: none;
  font-family: "Ikarius Web", "Ikarius ADF No2 Std", sans;
}

header > ol.breadcrumb > li {
  display: inline;
  display: inline-block;
  margin: 0;

}

header > ol.breadcrumb > li:before {
  content: "→";
}

header > ol.breadcrumb > li:first-child:before {
  content: "";
}


header > ol.breadcrumb a,
header > ol.breadcrumb a:visited {
  color: #800;
  border: none;
  background: transparent;
  padding: 0 0.25em;
  border-radius: 0;
}

header > ol.breadcrumb a:hover,
header > ol.breadcrumb a:focus {
  color: #000;
  text-shadow: 0 0 5px #F62;
}

header > ol.breadcrumb a:active {
  color: #AA0;
  text-shadow: 0 0 8px #F00;
  outline: none;
}

/*}}}*/


article {
  padding-bottom: 0.5rem;
  display: block;
  position: relative;
  margin: -3em 1em 1em 3em;
  background: rgb(34, 0, 0);
  background: rgba(34, 0, 0, 0.80);
  background:
    radial-gradient(rgba(34, 0, 0, 0.80) 15%, transparent 16%) 0 0,
    radial-gradient(rgba(34, 0, 0, 0.80) 15%, transparent 16%) 8px 8px,
    radial-gradient(rgba(255,255,0,.1) 15%, transparent 20%) 0 1px,
    radial-gradient(rgba(255,255,0,.1) 15%, transparent 20%) 8px 9px;
  background-color:rgba(34, 0, 0, 0.80);
  background-size:16px 16px;
  color: inherit;
  border-right: solid 4px rgb(68, 0, 0);
  border-right: solid 4px rgba(68, 0, 0, 0.80);
}

article + article {
  margin-top: 0;
}

article > div, article > header  {
  border-right: solid 4px rgb(51, 0, 0);
  border-right: solid 4px rgba(51, 0, 0, 0.80);
  padding: 1em 0.5em 0.25em 2.5em;
}

article > div  {
  padding: 0.25em 0.5em 1em 2.5em;
}

article header h1 {
  background: transparent;
  font-size: 1.8em;
  padding: 0.5em 0.5em 0 0.5em;
  text-shadow: 2px 1px 3px #700;
  clear: both;
}

article > div > section {
  padding: 0 0.5em 0 0.5em;
}

article div h1, article div h2 { /* f62 + 200 * .75 = d22 */
  color: #A22;
  font-size: 1.5em;
  margin-left: 0;
  text-shadow: 1px 1px 2px #700;
}

article div h2 {
  font-size: 1.25em;
}

article section > section > h1 {
  font-size: 1.25em;
  text-indent: -0.8em;
}

article section > section {
  margin-left: 1em;
}

section:target, section:target {
  background: rgb(53, 20, 20);
  background: rgba(53, 20, 20, 0.90);
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}

article ul {
  list-style: disc outside;
  margin: 0.5em 1em 0.5em 2em;
  padding: 1em 1em 0.5em 1em;
  background: rgba(255, 255, 255, 0.03);
}

article li {
  margin: 0 0 0.5em 1em;
}

article ol {
  list-style: decimal outside;
}

article img {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: 0 auto;
}

p {
  margin: 0.25em 1em 1em 0;
}

footer {
  margin: -3em 0 0;
  text-align: right;
  position: absolute;
}

article > header > p {
  position: static;
  margin: 0.5rem 3rem 0.5rem -4rem;
}

article footer,
article > header > p,
body > nav ul {
  width: auto;
  padding: 0.5em 0.5em 0.5em 2em;
}

article footer {
  margin: 0 3rem 2rem 3rem;
  position: static;
}

footer a,
footer a:visited,
body > nav ul a,
body > nav ul a:visited {
  color: inherit;
  font: inherit;
}

footer a:hover,
footer a:focus {
  text-shadow: 0 0 5px white;
  background: transparent;
  color: inherit;
}


footer > div {
  border-right: solid 4px rgb(85, 0, 0);
  border-right: solid 4px rgba(85, 0, 0, 0.80);
  padding: 1em 1.5em 1em 1.5em;
}

a, a:visited {
  text-decoration: none;
  font-weight: normal;
  color: #FA8;
  color: hsl(17, 47%, 77%);
  background: inherit;
}

a.footnote-ref {
  font-size: 75%;
  line-height: 0;
  /* position: relative; */
  /* top: -0.5em; */
  vertical-align: super;
}

.footnotes ol {
  list-style: decimal outside;
}

.footnotes hr {
  border: none;
  border-top: solid 1px rgba(85, 0, 0, 0.8);
}

/*a[rel="external"]:visited {
  color: #FFCC24;
  color: hsl(46, 50%, 57%);
}*/

a:hover, a:focus {
  color: #C84;
  text-shadow: 0 0 2px black, 0 0 5px white;
}

a:active {
  color: #EE5;
}

a[rel="tag"] {
  display: inline-block;
  font-size: 0.8em;
  line-height: 1.25;
  padding: 0.5em 0.75em 0.5em 0.25em;
  background: hsla(17, 47%, 77%, 0.25);
  border-left: 0.5em solid hsla(17, 47%, 77%, 0.25);
  border-radius: 0 1em 1em 0;
  margin-left: 0.75em;
  vertical-align: middle;
  position: relative;
  transition: background 0.25s, border 0.25s;
  font-style: normal;
}

a[rel="tag"] + a[rel="tag"] {
  margin-left: 0.25em;
}

a[rel="tag"]:hover {
  color: white;
  background: hsla(17, 47%, 77%, 0.5);
  border-left: 0.5em solid hsla(17, 47%, 77%, 0.5);
  text-shadow: none;
}

h1 > a, h1 > a:visited {
  font-weight: bold;
  color: inherit;
  text-shadow: 1px 1px 2px #975;
}

h1 > a:hover, h1 > a:focus {
  color: #C44;
  background: transparent;
  text-shadow: 1px 1px 1px #B97, -1px -1px 1px #B97;
  text-shadow: 1px 1px 2px #B97;
}


/*{{{ Navigation */
header nav {
  display: block;
  position: absolute;
  top: 5em;
  right: 2em;
  border-radius: 20px 10px 5px 5px;
  width: auto;
  height: 2em;
  z-index: 10; /* Go on top of the articles */
}

header nav > ul {
  height: 2em;
}

header nav a, header nav a:visited {
  color: rgb(255, 204, 34);
  background: rgb(68, 0, 0);
  font-weight: bold;
  display: block;
}

header nav a:hover, header nav a:focus {
  background: #FFBB44;
  color: #400;
  text-shadow: 0 0 1px #600;
}

header nav > ul > li {
  display: inline-block;
  margin: 0;
  height: 1.5em;
}

header nav > ul > li > a {
  border: 3px outset #400;
  border-right-width: 0;
  border-left-width: 0;
  padding: 0.25em 0.75em;
}

header nav > ul > li > a:active {
  background: #FFAB19;
  text-shadow: 0 0 10px #A00;
  outline: none;
}

header nav > ul > li:first-child > a {
  padding-left: 1em;
  border-left-width: 2px;
  border-radius: 20px 0 0 5px;
}

header nav > ul > li:last-child > a {
  padding-right: 0.85em;
  border-right-width: 2px;
  border-radius: 0 10px 5px 0;
}

header nav li > ul {
  display: none;
}

header nav li:hover > ul {
  display: block;
  position: absolute;
  margin-top: -3px;
  font-size: 0.9em;
  border: 3px outset #400;
  border-right-width: 2px;
  border-left-width: 2px;
  border-top: none;
  border-radius: 0px 0px 5px 5px;
  overflow: visible;
  box-shadow: 4px 4px 5px #888;
}

header nav li > ul > li {
}

header nav li > ul a {
  display: block;
  padding: 0.5em;
}

article footer nav ul,
body > nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  list-style-type: none;
  padding: 0;
  margin: 0;
  background: none;
}

footer, article > header > p, body > nav ul {
  display: block;
  right: 3rem;
  font-size: 0.85rem;
  font-style: italic;
  background: rgb(68, 0, 0);
  background: rgba(68, 0, 0, 0.80);
  color: #F62;
  border-right: 4px solid rgb(96, 0, 0);
  border-right: 4px solid rgba(96, 0, 0, 0.80);
  width: auto;
}

body > nav ul {
  margin-left: 10em;
  margin-right: 50%;
  margin-top: -2rem;
  z-index: 2;
  position: relative;
}

article footer nav li,
body > nav li {
  text-align: left;
  flex: 0 1 auto;
}

article footer nav li:last-child,
body > nav li:last-child {
  text-align: right;
}

/*}}}*/

pre, code {
  font: normal 1em "Fantasque Sans Mono", monospace;
  color: hsl(80, 100%, 40%);
}

pre {
  background: rgba(255, 255, 255, 0.03);
  margin: 1em 0.75em;
  padding: 0.75em;
}

blockquote {
  margin: 0.75em 2.25em;
  line-height: 1.25;
  background: rgb(34, 0, 0);
  background: rgba(34, 0, 0, 0.80);
  background: hsla(0, 25%, 15%, 0.50);
  padding: 0.25em;
  position: relative;
  text-align: justify;
  z-index: 10;
}

blockquote:before {
  font: bold 10em "Switzera Web", Arial, sans-serif;
  position: absolute;
  top: -0.12em;
  left: -0.3em;
  content: '\201c';
  background: transparent;
  color: hsla(0, 35%, 25%, 1);
  z-index: -1;
}

blockquote:after {
  font: bold 10em "Switzera Web", Arial, sans-serif;
  position: absolute;
  bottom: -0.5em;
  right: -0.20em;
  content: '\201d';
  background: transparent;
  color: hsla(0, 35%, 25%, 1);
  z-index: -1;
}

em.slow {
  letter-spacing: 0.25em;
}

article dl dt {
  font-weight: bold;
  font-size: 1.1em;
}

article dl dd {
  margin: 0 1em 1em 3em;
}

article table {
  margin: 1em auto;
}

article thead {
  background: rgb(68, 0, 0);
  background: rgba(68, 0, 0, 0.80);
}

article tbody tr:nth-of-type(even) {
  background: rgb(68, 20, 20);
  background: rgba(68, 0, 0, 0.50);
}

article td, article th {
  padding: 0.25em 0.5em;
}

.draft {
  font-style: italic;
  border-bottom: white 1px dashed;
}

.draft::before {
  content: "✎";
}


@media (max-width: 768px) {
  article {
    margin-top: -2em;
  }

  header nav {
    position: relative;
    left: 1em;
    top: -1em;
    float: left;
  }
}

@media (max-width: 650px) {
  body > header {
    margin: 0.25em 0.25em 2em 0.25em;
  }

  body > header > h1 {
    padding: 0 0.5em 0.5em 0.25em;
    height: 2.75em;
    border-radius: 16px 8px 0 0;
  }

  article > header > p {
    margin-right: 0;
  }
}

@media (max-width: 450px) {

  header nav {
    left: 0;
    right: 0;
  }

  header nav > ul > li > a {
    padding: 0.25em 0.5em;
  }

  header nav > ul > li:first-child > a {
    border-radius: 0;
    padding-left: 0.5em;
  }

  header nav > ul > li:last-child > a {
    padding-right: 0.5em;
    border-radius: 0;
  }

  article {
    margin-left: 1em;
    margin-bottom: 0.25em;
  }

  article > div, article > header  {
    padding: 0.25em 0.25em 0.25em 0.25em;
  }

  article > header > h1 {
    padding: 0;
  }

  article > header > p {
    margin: 0.5rem -1.25rem 0.5rem -1rem;
    border-radius: 0;
  }

  article ul {
    margin: 0.5em 0.5em 0.5em 0.75em;
  }

  article li {
    margin-left: 0.5em;
  }

  article footer {
    margin: 0 -1em 2rem;
    padding: 0.5em 0.25em;
  }

  article footer nav li {
    margin-left: 0;
  }

  footer {
    border-radius: 0;
    right: 0;
    width: 100%;
  }

  body > footer {
    margin-top: 0;
  }

  body > footer > div {
    padding: 0.25em;;
  }
}
