html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 28px;
}

.shell {
  width: min(1120px, 100%);
  text-align: center;
}

.mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e9e9e9;
  border-radius: 50%;
  color: #222;
  font-size: 20px;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.sub {
  margin: 18px auto 0;
  max-width: 520px;
  color: #777;
  font-size: 18px;
  line-height: 1.7;
}

.nav {
  margin: 76px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 200px));
  justify-content: center;
  gap: 18px;
}

.card {
  min-height: 136px;
  padding: 24px 18px 22px;
  border: 1px solid #e9e9e9;
  border-radius: 28px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  display: grid;
  align-content: center;
  gap: 9px;
  transition: transform 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, background 160ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #d8d8d8;
  background: #f8f8f8;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.06);
}

.card[aria-disabled="true"] {
  cursor: pointer;
}

.cn {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.en {
  font-size: 18px;
  color: #777;
}

.motto {
  margin-top: 64px;
  color: #aaa;
  font-size: 17px;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.motto-en {
  display: block;
  margin-top: 2px;
  color: #b8b8b8;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.visitor {
  margin: 28px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #e9e9e9;
  border-radius: 999px;
  color: #777;
  font-size: 14px;
  line-height: 1;
}

.visitor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #222;
  opacity: 0.72;
}

.visitor strong {
  color: #222;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}

.modal:target {
  display: grid;
}

.modal-panel {
  width: min(460px, 92vw);
  min-height: 280px;
  border: 1px solid #e9e9e9;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  text-align: center;
}

.modal-title {
  margin: 0;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 42px;
  border: 1px solid #e9e9e9;
  border-radius: 999px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: background 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.back:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

@media (max-width: 760px) {
  .page {
    padding: 40px 20px;
  }

  .nav {
    margin-top: 54px;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .card {
    min-height: 116px;
    border-radius: 24px;
  }

  .cn {
    font-size: 25px;
  }

  .en {
    font-size: 16px;
  }

  .motto {
    margin-top: 46px;
  }
}

@media (max-width: 420px) {
  .nav {
    grid-template-columns: 1fr;
  }
}
