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

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

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

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

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

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 {
  font-size: 0.8rem;
}

a {
  color: #a42c45;
  &:visited {
    color: #a42c45;
  }
  &: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;
  @media screen and (max-width: 930px) {
    margin:0;
  }
}

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

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;
  & img {
    max-width:100%;
  }

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

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

.washitape {
  font-family: "mordecai";
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  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("/rsrc/img/rough_border.png") 20 fill round;
  border-top: none;
  border-bottom: none;
}

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;
}

#page {
  margin-top: 1.5em;
  padding: 1em 1.5em;
  background-color: #fff;
  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;
  & svg, img {
    width: 90%;
    height: auto;
    padding: 9px;
  }
  @media screen and (max-width: 810px) {
      column-gap: 0;
      row-gap: 0;
  }
}

.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;
}

details {
  margin-bottom: 15px;
}
summary {
  display: list-item;
  & h1, h2, h3, h4, h5, h6 {
    margin: 0;
  }
}

details summary {
  cursor: pointer;
  & > * {
   display: inline;
 }
}

/*
Repeatable/common elements
===================
*/
#content {
  margin: 1em auto 0;
  max-width: 900px;
  flex: 1;
  @media screen and (max-width: 930px) {
    margin: 1em 15px;
  }
}

#hero {
  width: 100%;
  align-items: end;
  justify-content: space-between;
  margin-bottom:1.3em;
  padding: 0;
  & img {
    width: 100%;
    #mname & {
      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;
}

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

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

/* shapes */
.triangle-right {
	width: 0;
	height: 0;
	border-top: 25px solid transparent;
	border-left: 50px solid #555;
	border-bottom: 25px solid transparent;
}
