@font-face {
  font-family: "Patrick Hand";
  src: url("assets/patrick-hand.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0d2340;
  --gold: #e6a400;
  --cream: #f4efe6;
  --ink-soft: #777772;
  --paper: #faf7f1;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: grid;
  height: 100svh;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--navy);
  background:
    radial-gradient(circle at 18% 12%, rgb(255 255 255 / 56%), transparent 32rem),
    radial-gradient(circle at 82% 74%, rgb(255 255 255 / 42%), transparent 27rem),
    var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.045;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: clamp(18px, 3vw, 34px);
  left: clamp(20px, 3.5vw, 48px);
  z-index: 1;
}

.wordmark {
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.wordmark span {
  color: var(--gold);
}

.not-menu {
  position: fixed;
  top: clamp(16px, 2.6vw, 31px);
  right: clamp(20px, 3.5vw, 48px);
  z-index: 1;
  width: clamp(116px, 11vw, 148px);
  height: auto;
  pointer-events: none;
}

.page {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: clamp(14px, 3.5vh, 40px) 22px 18px;
}

.notice {
  display: grid;
  width: min(100%, 720px);
  height: auto;
  min-height: 0;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.mascot-wrap {
  position: relative;
  display: grid;
  width: min(56vw, 230px);
  height: auto;
  min-height: 0;
  place-items: center;
}

.speech-bubble-image {
  position: absolute;
  top: 7%;
  left: calc(100% + 2px);
  width: 222px;
  height: auto;
  transform: rotate(-1deg);
}

.mascot {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(35svh, 345px);
  object-fit: contain;
  filter: drop-shadow(0 7px 1px rgb(13 35 64 / 7%));
}

.copy {
  margin-top: 8px;
}

.subtitle,
.message,
.footer {
  font-family: "Patrick Hand", cursive;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5.2vw, 3.65rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.subtitle {
  margin: 13px 0 7px;
  font-size: clamp(1.08rem, 2.1vw, 1.42rem);
  font-weight: 400;
  letter-spacing: 0.055em;
}

.scribble {
  display: block;
  width: min(76%, 310px);
  height: 8px;
  margin-inline: auto;
  border-top: 2px solid var(--gold);
  border-radius: 50%;
  transform: rotate(-0.7deg);
}

.message {
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.23rem);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footer {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 8px 20px 18px;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.footer p {
  margin: 0;
}

.footer span {
  color: var(--gold);
  font-weight: 700;
}

.footer small {
  margin-left: 7px;
  color: var(--ink-soft);
  font-size: 0.9em;
}

@media (max-width: 540px) {
  .site-header {
    top: 16px;
    left: 18px;
  }

  .not-menu {
    top: 15px;
    right: 16px;
    width: 105px;
  }

  .page {
    padding-top: 16px;
  }

  .mascot-wrap {
    width: min(54vw, 205px);
  }

  .speech-bubble-image {
    top: 1%;
    left: 61%;
    width: 158px;
  }

  .copy {
    margin-top: 4px;
  }

  .message {
    margin-top: 14px;
  }

  .footer {
    min-height: 72px;
    text-align: center;
  }

  .footer small {
    display: block;
    margin: 3px 0 0;
  }
}

@media (max-height: 730px) and (min-width: 541px) {
  .page {
    padding-block: 18px;
  }

  .mascot-wrap {
    width: 190px;
  }

  .message {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
