:root {
  --foreground:         #ff7733;
  --foreground-accent:  #dd5555;
  --background:         #110011;

  /* derived by palemoon from background-accent */
  --button-border-bright:  #eeaaaa;
  --button-border-dark:    #9b3c3c;
}

:root.light {
	/* here i go solarizing again... */
  --foreground:        #110011;
  --foreground-accent: #9d000c;
  --background:        #fdf6e3;

  /* derived by palemoon from background-accent */
  --button-border-bright: #e1b2b6;
  --button-border-dark:   #570007;
}



body {
  font-family: "Computer Modern Typewriter Variable", serif;
  line-height: 1.6;
  font-size: 18px;

  color: var(--foreground);
  background-color: var(--background);

  margin: 1em auto;
  max-width: 600px;
  padding: 0 0.55em;
}

body.alternate-font {
  font-family: "Atkinson Hyperlegible", sans-serif;
}

h1,
h2,
h3 {
  font-weight: normal;
  line-height: 1.2;
  text-align: center;
  text-decoration: underline;
}

h1 {
  /* default 0.67 */
  margin-top: 1em;
  margin-bottom: 0.34em;
}

h2 {
  /* default 0.83 */
  margin-top: 1.25em;
  margin-bottom: 0.41em;
}

h3 {
  /* default 1.0 */
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  text-align: left;
}

hr {
  background-color: var(--foreground);
  border: none;
  height: 1px;
  width: 100%;
  margin-left: 0;
}

hr.littlebreak {
	width: 40%;
	margin: auto;
}

article {
  margin-top: 190px;
  margin-bottom: 10px;
}

address {
  text-align: center;
  font-style: italic;
}

a {
  color: var(--foreground-accent);
}

a:visited {
  color: var(--foreground-accent);
}

table {
  border: 1px solid var(--foreground-accent);
  font-size: 16px;
}

td {
  padding: 4px;
  margin: 3px;
  border: 1px solid var(--foreground-accent);
}

img.content {
  width: 100%;
  height: auto;
}

img.full {
  width: 75%;
  height: auto;
}

img.emoji {
  width: auto;
  height: 0.75em;
  border: none;
}

figure {
  margin: 0;
  font-style: italic;
}

strong {
  font-weight: normal;
  text-decoration: underline;
}

div.toc {
  margin-left: 30px;
  margin-right: 30px;
}

.toc {
  list-style-type: none;
  padding: 0;
}

/* janky underline may be problematic but at least it gets stuff done */
.toc > li {
  border-bottom: 1px solid var(--foreground);
  line-height: 1;
  margin-bottom: 0.69em;
}

.toc > li > .taso {
  float: right;
}

nav {
  text-align: center;
}

.root-issues {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;
  padding: 0px;
}

.root-issues a {
  width: 48%;
}

@media screen and (max-width: 480px) {
  .root-issues a {
    width: 100%;
  }
}

.root-issues img {
  display: block;
  float: left;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
}

.root-issues figcaption {
  text-align: center;
  font-style: normal;
}


/*
the button in the top-right that lets you switch themes
*/

/*
On wide monitors, just put it in the top-right corner. On thin monitors,
we float: right so that it reflows the nav bar text.

Our body max-width is 750px, so we add a bit onto that for margin and then
call it good
*/
@media (min-width: 758px) {
  #appearance {
    position: absolute;
    top: 1em;
    right: 1em;
  }
}

#appearance {
  float: right;
  margin-top: 0px;
  margin-left: 4px;
  padding: 4px;
  list-style-type: none;
}

#appearance button {
  background-color: var(--background);
  color: var(--foreground);
  border-width: 2px;
  border-style: solid;

  /*
  border-width: 2px;
  border-style: outset;
  border-color: var(--foreground-accent);
  /**/

  /*
  outset (unclicked):
  - top/left is bright
  - bottom/right is dark
  */
  border-top-color:   var(--button-border-bright);
  border-left-color:    var(--button-border-bright);
  border-bottom-color:  var(--button-border-dark);
  border-right-color:   var(--button-border-dark);
  /**/
}

#appearance button:active {
  /*
  inset (clicked):
  - top/left is dark
  - bottom/right is bright
  */
  border-top-color:   var(--button-border-dark);
  border-left-color:    var(--button-border-dark);
  border-bottom-color:  var(--button-border-bright);
  border-right-color:   var(--button-border-bright);
}
