:root {
  --bg: #1f3d2b;
  --text: #ffffff;
  --lead: #d3e2cd;
  --mark: #5f8567;
  --radius: 28px;
  --mascot-size: 380px;
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-body: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 80px 48px 60px;
}

.page__top-spacer {
  width: 1px;
  height: 20px;
  flex-shrink: 0;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: min(720px, 100%);
}

.mascot {
  display: block;
  width: var(--mascot-size);
  height: var(--mascot-size);
  max-width: 100%;
  flex-shrink: 0;
}

.mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(1048px, 100vw - 96px);
  text-align: center;
}

h1 {
  margin: 0;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 60px;
  color: var(--text);
  overflow-wrap: break-word;
}

.lead {
  margin: 0;
  width: 100%;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--lead);
  overflow-wrap: break-word;
}

.site-mark {
  margin: 0;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  color: var(--mark);
  white-space: nowrap;
}

.site-mark a {
  color: inherit;
  text-decoration: none;
}

.site-mark a:hover,
.site-mark a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .page {
    padding: 48px 24px 40px;
  }

  .content {
    gap: 28px;
  }

  .mascot {
    --mascot-size: min(280px, 72vw);
  }

  .text-block {
    width: 100%;
    gap: 16px;
  }

  h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .lead {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 28px;
    line-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
