*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
* > :first-child { margin-top: 0; }
* > :last-child { margin-bottom: 0; }

html {
  background-color: #fff;
  background-image: url("/img/bg.webp");
  background-position: top;
  background-repeat: repeat-x;
  background-size: 8px 164px;
  color: #111;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  min-height: 100vh;
  min-width: 100vw;
  overflow: hidden;
}
body {
  background-color: #fff;
  border: 1px solid gray;
  border-top: none;
  box-shadow: 0px .5rem 3rem -2rem black;
  margin: 0 auto;
  max-height: 100vh;
  max-width: 24rem;
  overflow-y: scroll;
  padding: 2.25rem 1rem 1rem;
  text-align: center;
}

article, aside, blockquote, details, div, figure, footer, header, main, nav, section {
  display: flow-root;
  margin-bottom: .5rem;
}
dl, h1, h2, h3, h4, ol, p, pre, ul { margin-bottom: .5rem; }
blockquote, details, figure, li, section { break-inside: avoid-column; }
figure {
  margin: 0 auto;
  width: fit-content;
}
h1, h2, h3, h4 {
  clear: both;
  line-height: 1;
  margin-top: 1rem;
}
h2, h3, h4 { font-weight: normal; }
h1 {
  font-family: serif;
  font-size: 3.0rem;
  text-decoration: #ff3798 .25rem underline;
  text-underline-offset: .25rem;
}
h2 { font-size: 1.6rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
hr {
  border: none;
  border-bottom: 1px solid #999;
  column-span: all;
  margin: 1rem 0;
}
img {
  box-sizing: content-box;
  display: block;
  height: auto;
  max-width: 100%;
}

.font-small { font-size: small; }
