@font-face {
  font-family: "ReiGothic";
  src: url("/assets/fonts/rei-gothic-title.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "ReiHand";
  src: url("/assets/fonts/rei-notebook-hand.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #5b4651;
  --ink-soft: #7d6571;
  --pink: #ebb5ca;
  --pink-deep: #b96f8f;
  --paper: #fbf1f5;
  --paper-2: #f7e9ef;
  --page-pink: #fff4f8;
  --page-pink-2: #f9e7ef;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page-pink);
  color: var(--ink);
  font-family: "ReiHand", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("./assets/background-pattern.svg");
  background-repeat: repeat;
  background-size: 208px 159px;
  background-position: 0 0;
  opacity: .34;
}

.top-chain,
.bottom-chain {
  position: fixed;
  z-index: 4;
  left: 0;
  width: 100%;
  height: 78px;
  pointer-events: none;
  background-image: url("./assets/top-chain.svg");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: 248px auto;
  opacity: .97;
  filter: drop-shadow(0 1px 0 rgba(90,54,70,.20));
}

.top-chain { top: 0; }

.bottom-chain {
  bottom: 0;
  transform: scaleY(-1);
  transform-origin: center;
}

.bg-cross {
  position: fixed;
  z-index: 1;
  width: 118px;
  right: max(4vw, 12px);
  bottom: 34px;
  opacity: .10;
  transform: rotate(4deg);
  pointer-events: none;
}

.dust {
  position: fixed;
  z-index: 1;
  color: rgba(143, 88, 112, .32);
  font-family: Georgia, serif;
  pointer-events: none;
  text-shadow: 0 0 5px rgba(255,255,255,.24);
}

.dust-a { left: 8vw; top: 35vh; font-size: 10px; }
.dust-b { right: 9vw; top: 48vh; font-size: 13px; }
.dust-c { left: 13vw; bottom: 15vh; font-size: 14px; opacity: .24; }

.entrance {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 86px 18px 84px;
}

.stamp {
  position: relative;
  width: min(590px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(162, 111, 132, .72);
  background:
    radial-gradient(circle at 50% 0, var(--page-pink) 0 3px, transparent 3.25px) 0 0 / 13px 7px repeat-x,
    radial-gradient(circle at 50% 100%, var(--page-pink) 0 3px, transparent 3.25px) 0 100% / 13px 7px repeat-x,
    radial-gradient(circle at 0 50%, var(--page-pink) 0 3px, transparent 3.25px) 0 0 / 7px 13px repeat-y,
    radial-gradient(circle at 100% 50%, var(--page-pink) 0 3px, transparent 3.25px) 100% 0 / 7px 13px repeat-y,
    repeating-linear-gradient(0deg, rgba(120, 82, 99, .025) 0 1px, transparent 1px 3px),
    var(--paper);
  box-shadow:
    3px 3px 0 rgba(109,72,87,.15),
    0 0 0 1px rgba(255,255,255,.62) inset;
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(167, 122, 141, .72);
  pointer-events: none;
}

.stamp::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(216, 164, 185, .26);
  pointer-events: none;
}

.stamp-inner {
  position: relative;
  padding: 15px 34px 14px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 24%, rgba(130, 87, 105, .035) 0 1px, transparent 1.2px) 0 0 / 19px 17px,
    radial-gradient(circle at 71% 68%, rgba(255, 255, 255, .58) 0 1px, transparent 1.3px) 0 0 / 23px 21px,
    repeating-linear-gradient(0deg, rgba(125, 88, 103, .018) 0 1px, transparent 1px 4px),
    var(--paper-2);
  border: 1px solid rgba(143,98,117,.38);
  box-shadow: inset 0 0 12px rgba(132, 88, 105, .035);
}

.site-heading h1 {
  margin: 0;
  color: var(--pink-deep);
  font-family: "ReiGothic", "Old English Text MT", Georgia, serif;
  font-size: clamp(20px, 3.6vw, 24px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: .4px;
  text-shadow: 1px 1px 0 #fff8fb;
}

.jp-title {
  margin: 4px 0 0;
  color: #866b77;
  font-size: 11.5px;
  letter-spacing: .07em;
}

.enter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 5px auto 3px;
}

.enter-ornament {
  display: block;
  width: 31px;
  height: auto;
  flex: 0 0 auto;
  opacity: .82;
}

.notice {
  margin: 0 auto;
  max-width: 515px;
  font-size: 13px;
  line-height: 1.38;
  color: var(--ink);
  text-align: center;
}

.notice p {
  margin: 0 0 5px;
}

.notice .welcome {
  margin-bottom: 7px;
  color: #725360;
  font-size: 13.5px;
}

.notice .contact {
  margin: 7px 0 0;
}

.notice a {
  color: #995f77;
  text-decoration: none;
  border-bottom: 1px dotted #b78096;
}

.notice a:hover,
.notice a:focus-visible {
  color: #c57898;
}

.badge-wrap {
  margin: 7px auto 4px;
  min-height: 31px;
  display: grid;
  place-items: center;
}

.site-badge {
  display: block;
  width: 122px;
  height: auto;
  image-rendering: pixelated;
}

.enter-link {
  display: inline-block;
  position: relative;
  margin-top: 0;
  color: var(--pink-deep);
  font-family: "ReiGothic", "Old English Text MT", Georgia, serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: .08em;
  text-decoration: none;
  text-shadow: 1px 1px 0 #fff8fb;
}

.enter-link::before,
.enter-link::after {
  display: inline-block;
  width: 1.1em;
  color: transparent;
  font-family: Georgia, serif;
  font-size: 12px;
  vertical-align: .22em;
}

.enter-link::before { content: "†"; text-align: right; margin-right: 5px; }
.enter-link::after  { content: "†"; text-align: left; margin-left: 5px; }

.enter-link:hover,
.enter-link:focus-visible {
  color: #e196b4;
  outline: none;
}

.enter-link:hover::before,
.enter-link:hover::after,
.enter-link:focus-visible::before,
.enter-link:focus-visible::after {
  color: #bf7896;
}

@media (max-width: 640px) {
  .top-chain,
  .bottom-chain {
    height: 64px;
    background-size: 205px auto;
  }

  .entrance {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .stamp {
    width: min(520px, calc(100vw - 26px));
  }

  .stamp-inner {
    padding: 14px 18px 13px;
  }

  .notice {
    font-size: 12.4px;
    line-height: 1.36;
  }

  .bg-cross {
    width: 92px;
    right: -20px;
    bottom: 38px;
  }
}

@media (max-width: 430px) {
  .site-heading h1 {
    font-size: 19px;
  }

  .notice {
    text-align: left;
  }

  .notice .welcome,
  .notice .contact {
    text-align: center;
  }
}

@media (max-height: 700px) and (min-width: 641px) {
  .entrance {
    place-items: start center;
    padding-top: 76px;
    padding-bottom: 76px;
  }
}
