/* Shared layout and colors for the static entry and error pages. */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 80px 20px 120px;
  background: #fff;
  color: #111827;
  font-family: "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.site-logo {
  display: block;
  width: 145px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

h1,
.subtitle,
.entry-button,
.notice,
.site-footer {
  word-break: keep-all;
}

h1,
.entry-button,
.notice {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 12px;
  font-size: 3.1rem;
}

.subtitle {
  margin: 1em 0 45px;
  color: #667085;
  font-size: 1.45rem;
}

.entry-button {
  display: inline-block;
  max-width: calc(100% - 16px);
  margin: 12px 8px;
  padding: 22px 58px;
  border-radius: 50px;
  background: #0076e8;
  color: #fff;
  font-size: 1.42rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .entry-button:hover {
    background: #005fc0;
  }
}

.entry-button:focus-visible {
  outline: 3px solid #0076e8;
  outline-offset: 6px;
}

.notice {
  max-width: 824px;
  margin: 55px auto;
  padding: 32px;
  border-radius: 20px;
  background: #f7f8fa;
}

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

.notice p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 80px;
  color: #667085;
  font-size: 0.95rem;
}

/* Keep the same composition readable on narrow screens. */
@media (max-width: 640px) {
  body {
    padding: 48px 16px 64px;
  }

  h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.4rem);
  }

  .subtitle {
    margin-bottom: 28px;
    font-size: 1.05rem;
  }

  .entry-button {
    padding: 18px 32px;
    font-size: 1.2rem;
  }

  .notice {
    margin: 40px auto;
    padding: 24px 20px;
  }

  .site-footer {
    margin-top: 56px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-button {
    transition: none;
  }
}
