@font-face {
  font-family:"Sorts Mill Goudy";
  src: url('/resources/font/GoudyStM-webfont.woff');
  src: url('/resources/font/GoudyStM-webfont.woff') format('woff'),
       url('/resources/font/GoudyStM-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family:"Sorts Mill Goudy";
  src: url('/resources/font/GoudyStM-Italic-webfont.woff');
  src: url('/resources/font/GoudyStM-Italic-webfont.woff') format('woff'),
       url('/resources/font/GoudyStM-Italic-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family:"mordecai";
  src: url('/resources/font/Mordecai.otf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family:"Cotham Sans";
  src: url('/resources/font/CothamSans.otf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family:"linja suwi";
  src: url('/resources/font/linjasuwi.otf');
  font-weight: thin;
  font-style: normal;
}

html {
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  font-size: 18px;
  font-weight: bold;
}

body {
  line-height: 1.5;
  word-spacing: 0.01em;
  margin: 0;
  padding: 0;
  font-family: "Sorts Mill Goudy", serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-feature-settings: "calt", "cpsp", "kern", "case", "lnum";
  font-variant-ligatures: common-ligatures;
  color: #333;
  background-color: #eeffe5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

p {
  margin-bottom:1lh;
}

.subh {
  margin-top: -0.66em;
}

h1, h2, h3, h4, h5 {
  margin: 1.3rem 0;
  line-height: 1.3;
}
h1 {
  margin-top: 0;
  font-size: 2.027rem;
}
h2 {
  margin-bottom: 1rem;
  font-size: 1.802rem;
}
h3 {
  margin-bottom: 0.75rem;
  font-size: 1.602rem;
}
h4 {
  margin-bottom: 0.563rem;
  font-size: 1.424rem;
}
h5 {
  margin-bottom: 1.266rem;
  font-size: 1.2rem;
}

small,
.text_small {
  font-size: 0.8rem;
}

a {
  color: #a42c45;
}
a:visited {
  color: #a42c45;
}
a:hover {
  color: #f1ba51;
}
.blanklist {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
li {
  padding-bottom: 6px;
  break-inside: avoid-column;
}
/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/
code, kbd, samp, pre {
  font-family: monospace;
  font-size: 0.9em;
  background-color: #eeffe5;
}
pre {
  font-size: 0.9em;
}
blockquote {
  margin:0 2em;
  font-size: 0.9em;
  line-height: 1.4;
}

figure blockquote {
  margin:0;
}

figure blockquote + figcaption {
  text-align: right;
  margin-right:1em;
}

@media screen and (max-width: 930px) {
  blockquote {
    margin:0;
  }
}

figcaption {
  margin-top: 3px;
  font-size: small;
  font-style: italic;
  text-align: center;
}

.post {
  background-color: #fff;
  padding: 3em 5em;
  border: 1px solid #d3d3d3;
  margin-bottom:3em;
}

.post img {
  max-width:100%;
}

@media screen and (max-width: 930px) {
  .post {
    margin: 0 30px;
    padding: 2em 3em;
  }
}

@media screen and (max-width: 650px) {
  .post {
    margin: 0 15px;
    padding: 1em 2em;
  }
}

@media screen and (max-width: 650px) {
  .post {
    margin: 0 6px;
    padding: 1em 1em;
  }
}

.discord {
  text-align: left;
  font-family: sans-serif;
  font-weight: normal;
  font-size: 16px;
  background-color: #36393f;
  color: #fff;
  padding: 9px 18px;
}

.discord img {
  border-radius: 2.5%;
  max-width:300px;
}

.discord p {
  margin-top: 3px;
  margin-bottom: 6px;
}

.discord .discord-reply {
  font-size: small;
  margin-top: 21px;
  margin-bottom: -21px;
  color:#AAA;

  /* truncate reply at edge of div with ellipses, producing similar behaviour to discord itself */
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.discord .discord-uname {
  margin-top: 21px;
  margin-bottom: 3px;
}

.discord .editors-note {
  color: #FFC88B;
  opacity: 75%;
  font-family: serif;
  font-size: small;
  font-style: italic;
}

@media screen and (max-width: 530px) {
  .discord {
    font-size: 0.75em;
  }

  .discord .discord-reply {
    font-size: smaller;
  }
}

.todo {
  color: #6e58bd;
  font-size:small;
  font-style:italic;
}

.washitape {
  font-family: "mordecai";
  letter-spacing: 0.06em;
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  background-clip: padding-box;
  border-style: solid;
  border-width: 10px;
  border-color: transparent;
  border-image: url("/resources/imgs/rough_border.png")
    20 fill round;
  border-top: none;
  border-bottom: none;
}

.rubric {
  font-style: italic;
  color: Purple;
}

b {
  font-variant: small-caps;
  text-shadow:.5px 0 0 currentColor;
  letter-spacing: 0.01em;

}

/* Prevent 'sub' and 'sup' elements from affecting the line height in all browsers. */
sub, sup {
  font-size: 72%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
.navbox {
  border: 1px solid #000;
  padding: 6px;
  margin-bottom: 15px;
}
.navbox .navtitle {
  text-align: center;
  margin-bottom: 6px;
}
.navbox .linkbox {
  justify-content: space-around;
}

.navbox .navlink {
  margin:3px;
}

.infobox {
  background-color: #eeffe5;
  padding: 1px 15px;
  margin: 6px;
  border: 1px solid #333;
  font-size: 0.81em;
}
@media screen and (min-width: 940px) {
  .rightwards {
    position: absolute;
    right: 0;
    top: 0;
    width: 15rem;
    margin-right: calc(-15rem - 30px);
  }
  .leftwards {
    position: absolute;
    left: 0;
    top: 0;
    width: 15rem;
    margin-left: calc(-15rem - 30px);
  }
}
#page {
  margin-top: 1.5em;
  padding: 1em 1.5em;
  background-color: #fff;
  border: 1px solid #d3d3d3;
  outline: 1px solid #838383;
  outline-offset: -9px;
}
.scrollbox {
  font-size:small;
  overflow-y: scroll;
  background-color: #ddd;
  border: 1px solid #d3d3d3;
  padding: 0 9px;
  max-height: 150px;
}
/*
Grid + flexbox
==============
*/
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.flex-container-mid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.grid-container {
  display: grid;
  justify-items: stretch;
  column-gap: 27px;
  row-gap: 27px;
}

.grid-container svg,
.grid-container img {
  width: 100%;
  height: auto;
  padding: 9px;
}

.twocolumn {
  grid-template-columns: auto auto;
}
.threecolumn {
  grid-template-columns: auto auto auto;
}
.fourcolumn {
  grid-template-columns: auto auto auto auto;
}
.fivecolumn {
  grid-template-columns: auto auto auto auto auto;
  column-gap: 15px;
  row-gap: 15px;
}
.sixcolumn {
  grid-template-columns: auto auto auto auto auto auto;
  column-gap: 9px;
  row-gap: 9px;
}
.sevencolumn {
  grid-template-columns: auto auto auto auto auto auto auto;
  column-gap: 9px;
  row-gap: 9px;
}

@media screen and (max-width: 810px) {
  .grid-container {
    column-gap: 0;
    row-gap: 0;
  }

  .fivecolumn {
    grid-template-columns: auto auto auto auto auto;
    column-gap: 0;
    row-gap: 0;
  }
}

.fullwidth {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}
.flip .flip-entry {
  display: flex;
  align-items: center;
}
.flip .flip-entry .icon {
  padding-right: 30px;
  flex: 0 0 128px;
}
.flip :nth-child(even) {
  flex-direction: row-reverse;
}
.flip :nth-child(even) .icon {
  padding-right: 0;
  padding-left: 30px;
  flex: 0 0 128px;
}
.flex-columns {
  flex-direction: column;
}
/*
Forms
=====
*/
/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}
/**
Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.
*/
button,
select {
/* 1 */
  text-transform: none;
}
/**
Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
/**
Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
/**
Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type='button']:-moz-focusring,
[type='reset']:-moz-focusring,
[type='submit']:-moz-focusring {
  outline: 1px dotted ButtonText;
}
.big-button {
  background: #a42c45;
  padding: 15px;
  margin-bottom: 15px;
  flex-shrink: 1;
  flex-wrap: nowrap;
  text-align: centers;
  color: #fff;
}
.big-button h2 {
  margin-top: 0;
}
.big-button:hover {
  background: #8f3f6a;
}
/**
Correct the padding in Firefox.
*/
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/
legend {
  padding: 0;
}
/**
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}
/**
Correct the cursor style of increment and decrement buttons in Safari.
*/
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/**
Remove the inner padding in Chrome and Safari on macOS.
*/
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/*
Interactive
===========
*/
/*
Add the correct display in Chrome and Safari.
*/
details {
  margin-bottom: 15px;
}
summary {
  display: list-item;
}
summary h1,
summary h2,
summary h3,
summary h4,
summary h5,
summary h6 {
  margin: 0;
}

details summary {
  cursor: pointer;
}

details summary > * {
  display: inline;
}
/*
Repeatable/common elements
===================
*/
#content {
  margin: 1em auto 0;
  max-width: 900px;
  flex: 1;
}
@media screen and (max-width: 930px) {
  #content {
    margin: 1em 15px;
  }
}
#hero {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom:1.3em;
}
#hero #mname img {
  width: 64px;
  padding: 0;
}
#crumbs {
  width: 100%;
  margin-bottom: 2em;
}

.photograph {
  transform: rotate(-0.01turn);
  display:inline-block;
  background-color: white;
  padding:9px;
  border: 1px solid #d3d3d3;
}

#plebmention_form {
  text-align: center;
  margin: 0 auto;
  padding: 0 15px;
  margin-bottom: 30px;
}

#plebmention_form pm_form_elememts {
}

@media screen and (max-width: 810px) {
  #sitetitle h1 {
    font-size:1.44rem;
  }
}

.smallcaps {
  font-variant:small-caps;
  letter-spacing: 0.01em;
}

.sitelenpona {
  font-family: "linja suwi";
  font-size: 1.5em;
  line-height:1em;
  font-weight: normal;
}
