/* Homepage only: natural document scrolling instead of viewport-sized offsets. */
/* Paint the entire canvas, including space outside the body's content box. */
html.homepage {
  min-height: 100%;
  background: linear-gradient(100deg, #dc8d20 0%, #9b5915 24%, #33200b 48%, #100c07 72%, #050403 100%) fixed !important;
}
html.homepage body {
  min-height: 100svh;
  height: auto !important;
  overflow-y: auto !important;
  background: transparent !important;
}
html.homepage body .home-introduction {
  box-sizing: border-box;
  width: min(100% - 32px, 880px);
  margin: 48px auto 24px;
  padding: 24px;
  background: #130d07 !important;
  border: 1px solid #795423;
  border-radius: 18px;
  color: #fff4d6 !important;
}
html.homepage body .home-introduction :is(h2,h3,p,a) {
  color: #fff4d6 !important;
  background: transparent !important;
  line-height: 1.6;
}
html.homepage body .home-introduction a { color: #ffc95c !important; text-decoration: underline; }
@media (max-width: 1023px) {
  html.homepage {
    width: 100% !important;
    height: auto !important;
    overflow-x: clip !important;
    overflow-y: auto !important;
  }
  html.homepage body {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    height: auto !important;
    min-height: 100svh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background-attachment: scroll !important;
  }
  html.homepage body :is(header, main, footer, #logodiv, #log_section, #footerlinks, .front_title, .front_slogan) {
    box-sizing: border-box;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
  html.homepage body header { padding: 24px 16px 8px !important; }
  html.homepage body .front_title {
    padding: 0 !important;
    font-size: clamp(1.5rem, 6vw, 2.4rem) !important;
    text-align: center;
    overflow-wrap: anywhere;
  }
  html.homepage body main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 20px 32px !important;
  }
  html.homepage body #logodiv { padding: 0 !important; }
  html.homepage body .front_logo {
    width: min(55vw, 220px) !important;
    height: auto !important;
    margin: 0 auto !important;
    transform: none !important;
  }
  html.homepage body #log_section { gap: 16px; padding: 0 !important; }
  html.homepage body .front_slogan {
    display: block !important;
    padding: 0 !important;
    font-size: clamp(1.25rem, 5vw, 2rem) !important;
    line-height: 1.4;
    text-align: center;
    white-space: normal !important;
    text-wrap: wrap !important;
  }
  html.homepage body :is(.front_signup_button,.front_login_button) {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 320px) !important;
    min-height: 48px;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    font-size: 1.25rem !important;
    animation: none !important;
    transform: none !important;
  }
  html.homepage body main > form.hidden { display: none !important; }
  html.homepage body .footer {
    flex: 0 0 auto;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom)) !important;
  }
  html.homepage body #footerlinks {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px !important;
    padding: 0 !important;
  }
  html.homepage body #footerlinks a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0;
    min-height: 44px;
    margin: 0 !important;
    padding: 8px 4px !important;
    font-size: 1rem !important;
    white-space: normal;
    text-align: center;
  }
  html.homepage body #trademark {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
  }
}
