html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background-color: #000000;
  background-image: url("tree.svg");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto 100%;
  color: #ffffff;
  font-family: "Times New Roman", Times, serif;
  text-shadow: 0 0 3px #000000, 0 0 3px #000000, 0 0 10px rgba(255, 58, 58, 0.6);
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.4) 0px, rgba(0,0,0,0.2) 2px, transparent 2px, transparent 4px);
  z-index: 10;
}

#main {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  padding: 5vh 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5vh;
}
h1 {
  font-size: min(15vh, 12vw);
  font-weight: normal;
  line-height: 0.9;
  margin: 0;
}
h2 {
  font-size: min(7vh, 7vw);
  font-weight: normal;
  line-height: 1;
  margin: 0 0 1vh 0;
}
p {
  font-size: min(4vh, 6vw);
  line-height: 1.1;
  margin: 0 0 0.8vh 0;
  max-width: 34em;
}
a, a:visited { color: #ffffff; text-decoration: none; }
html.plain a { text-decoration: underline; }
a:hover, a:focus { background-color: #ffffff; color: #000000; text-shadow: none; outline: none; }

h1, h2 { color: #ff3a3a; }
.dim, .dim a { color: #ff3a3a; }
.dim a:hover, .dim a:focus { background-color: #ff3a3a; color: #000000; }

ul.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: min(4vh, 5vw);
  line-height: 1.05;
}
ul.menu li::before { content: "- "; }

.small { font-size: min(2vh, 3vw); }

#notice {
  position: absolute;
  bottom: 3vh;
  left: 6vw;
}

.petal {
  position: fixed;
  top: -20px;
  width: 12px;
  height: 8px;
  background-color: #c2192a;
  border-radius: 60% 0 60% 0;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-70px, 55vh) rotate(200deg); }
  100% { transform: translate(-25px, 110vh) rotate(420deg); }
}

@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
}

@media (max-aspect-ratio: 1/1) {
  body { background-position: 75% bottom; }
}

html.plain, html.plain body {
  height: auto;
  overflow: auto;
}
html.plain body {
  background-image: none;
}
#page {
  padding: 4vh 0 0 3vw;
  max-width: 45em;
}
#page h1 { font-size: 48px; margin: 20px 0; }
#page h2 { font-size: 28px; margin: 30px 0 8px 0; }
#page ul { font-size: 22px; line-height: 1.5; margin: 0; }
#page p { font-size: 20px; }

#page.diary { max-width: none; }
#page.diary p { max-width: none; }
