@charset "UTF-8";

:root {
  --paper: #f7f3ea;
  --ink: #27364f;
  --muted: #8a8377;
  --gold: #b78a38;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

html {
  min-width: 280px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 9px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 9px 16px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-main {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 42px 48px 34px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(213, 177, 99, 0.055), transparent 29%),
    var(--paper);
}

.landing-main::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.075'/%3E%3C/svg%3E");
}

.landing-brand {
  position: absolute;
  top: 39px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.landing-brand span {
  padding-left: 14px;
  border-left: 1px solid rgba(39, 54, 79, 0.18);
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.28em;
}

.landing-center {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-bottom: 8px;
}

.bell-entry {
  position: relative;
  display: grid;
  width: 180px;
  height: 190px;
  place-items: center;
  border-radius: 50%;
}

.bell-svg {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 154px;
  overflow: visible;
  transform-origin: 50% 17%;
  transition: transform 280ms ease, filter 280ms ease;
}

.bell-entry:hover .bell-svg {
  filter: drop-shadow(0 10px 12px rgba(155, 106, 32, 0.14));
  transform: translateY(-4px);
}

.bell-halo {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(183, 138, 56, 0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: border-color 280ms ease, transform 280ms ease;
}

.bell-entry:hover .bell-halo {
  border-color: rgba(183, 138, 56, 0.36);
  transform: translate(-50%, -50%) scale(1.06);
}

.bell-entry.is-ringing .bell-svg {
  animation: bell-ring 680ms ease-in-out;
}

.bell-entry.is-ringing .bell-halo {
  animation: halo-ring 850ms ease-out;
}

.landing-hint {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  margin: 25px 0 0;
  color: #777165;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.28em;
  line-height: 1.5;
}

.landing-hint span {
  color: #aaa091;
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.3em;
}

.landing-status {
  position: absolute;
  top: calc(100% + 22px);
  width: max-content;
  max-width: 80vw;
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.landing-footer {
  position: absolute;
  right: 48px;
  bottom: 30px;
  left: 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #a0988a;
  font-size: 9px;
  letter-spacing: 0.12em;
}

@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  18% { transform: rotate(13deg); }
  38% { transform: rotate(-11deg); }
  58% { transform: rotate(7deg); }
  78% { transform: rotate(-4deg); }
}

@keyframes halo-ring {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.75); }
}

@media (max-width: 600px) {
  .landing-main {
    padding: 30px 24px 24px;
  }

  .landing-brand {
    top: 28px;
    left: 25px;
    font-size: 15px;
  }

  .landing-brand span {
    font-size: 7px;
  }

  .bell-entry {
    width: 156px;
    height: 172px;
  }

  .bell-svg {
    width: 116px;
    height: 138px;
  }

  .bell-halo {
    width: 136px;
    height: 136px;
  }

  .landing-footer {
    right: 25px;
    bottom: 23px;
    left: 25px;
    font-size: 8px;
  }

  .landing-footer span:first-child {
    display: none;
  }

  .landing-footer {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
