@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-sans.woff2') format('woff2');
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #fff;
  color: oklch(0.145 0 0);
  font-family: Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(3rem, 6dvh);
  min-width: 0;
  padding: 2rem;
  background: linear-gradient(to bottom right, #dcfce7, #bbf7d0);
}

.branding img {
  display: block;
  width: min(100%, 240px, 30dvh);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.notice {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: clamp(2rem, 6vw, 7rem);
}

.notice-content {
  max-width: 52rem;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.05em;
  overflow-wrap: break-word;
}

p {
  margin: 0;
  color: #4b5563;
}

.training {
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.6;
}

.redirect {
  margin-top: 3rem;
  font-size: 1rem;
}

#countdown {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
  }

  .branding {
    flex-direction: row;
    gap: clamp(2rem, 10vw, 4rem);
    padding: 1.5rem;
  }

  .branding img {
    width: min(30vw, 112px);
  }

  .notice {
    padding: 2.5rem 1.5rem;
  }

  h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .redirect {
    margin-top: 2.5rem;
  }
}

@media (min-width: 768px) and (max-height: 600px) {
  .notice {
    padding: 1.5rem 3vw;
  }

  h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 6dvh, 3rem);
  }

  .training {
    font-size: clamp(1rem, 3.5dvh, 1.25rem);
  }

  .redirect {
    margin-top: 1.5rem;
  }
}
