:root {
  color-scheme: light;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1f2623;
  background: #f3efe6;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f3efe6;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 4% 2%, rgba(255, 255, 255, 0.9), transparent 28rem),
    linear-gradient(145deg, #f5f1e8 0%, #ece6da 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(34px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

.hero {
  padding: 12px 4px 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #827c70;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(2.8rem, 14vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.96;
}

.intro {
  margin: 20px 0 0;
  color: #6f6a60;
  font-size: 0.98rem;
  line-height: 1.7;
}

.site-grid {
  display: grid;
  gap: 12px;
}

.site-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  min-height: 116px;
  padding: 20px 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 38, 35, 0.1);
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(55, 50, 41, 0.07);
  isolation: isolate;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.site-card::after {
  position: absolute;
  right: -24px;
  bottom: -44px;
  z-index: -1;
  width: 132px;
  height: 132px;
  border: 28px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  content: "";
}

.site-card:active {
  transform: scale(0.985);
}

.site-card:focus-visible {
  outline: 3px solid #202824;
  outline-offset: 3px;
}

.card-market {
  background: #cfe0cf;
}

.card-sweet {
  background: #f6cedd;
}

.card-mind {
  background: #cddced;
}

.card-oracle {
  background: #e4d6b5;
}

.card-island {
  background: #c9e2dd;
}

.card-library {
  background: #ddd4eb;
}

.card-index {
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(31, 38, 35, 0.42);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(31, 38, 35, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  font-family: "Songti SC", "STSong", serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.card-copy {
  display: grid;
  gap: 6px;
}

.card-copy strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.card-copy small {
  color: rgba(31, 38, 35, 0.66);
  font-size: 0.76rem;
}

.card-arrow {
  align-self: end;
  margin: 0 2px 2px 12px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 700;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 0 2px;
  color: #888175;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.footer-dot {
  width: 3px;
  height: 3px;
  margin: 0 10px;
  border-radius: 50%;
  background: currentColor;
}

@media (min-width: 640px) {
  .page-shell {
    padding-inline: 28px;
  }

  .hero {
    padding-block: 34px 40px;
  }

  .site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .site-card {
    grid-template-columns: 58px 1fr;
    min-height: 180px;
    align-content: end;
  }

  .card-arrow {
    position: absolute;
    right: 18px;
    bottom: 20px;
  }
}

@media (hover: hover) {
  .site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(55, 50, 41, 0.12);
  }
}

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