:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --surface: #fffdf7;
  --ink: #1d313c;
  --muted: #555f60;
  --red: #a84030;
  --rule: #c7c7b8;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}
img { display: block; }
a { color: inherit; }
a:focus-visible, .directory:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
.wrap { width: min(76rem, calc(100% - clamp(2rem, 10vw, 11rem))); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 1;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--surface);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
.masthead, .footer, .directory-link, .brand, .card-foot, .section-heading {
  display: flex;
  align-items: center;
}
.masthead {
  min-height: 5.1rem;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}
.masthead a, .card, .footer a { text-decoration: none; }
.brand {
  gap: 0.7rem;
  min-height: 2.75rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand img { width: 2rem; height: 2rem; }
.directory-link {
  min-height: 2.75rem;
  gap: 0.55rem;
  font-size: 0.94rem;
  font-weight: 600;
}
.grid-icon {
  display: block;
  width: 0.34rem;
  height: 0.34rem;
  margin: -0.44rem 0.44rem 0 0;
  border: 1px solid currentColor;
  box-shadow: 0.44rem 0 0 -1px var(--paper), 0.44rem 0,
    0 0.44rem 0 -1px var(--paper), 0 0.44rem, 0.44rem 0.44rem 0 -1px var(--paper), 0.44rem 0.44rem;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2rem, 3.6vw, 3.65rem);
}
.domain, .address {
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
}
.domain {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}
.domain::before { content: ""; width: 1.8rem; height: 2px; background: currentColor; }
h1, h2, h3, .lede, .card-body p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); }
h1 {
  font-size: clamp(3.7rem, 5.9vw, 6.15rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.14;
}
.punct { color: var(--red); }
.lede {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.8;
}
.hero-art {
  overflow: hidden;
  aspect-ratio: 1.95;
  background: #e3dfd0;
}
.hero-art img, .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.directory {
  scroll-margin-top: 1.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-heading { gap: 1.2rem; margin-bottom: 1.35rem; }
.section-heading::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
h2 { font-size: clamp(1.55rem, 2vw, 1.95rem); line-height: 1.4; letter-spacing: -0.025em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 1.9vw, 1.55rem); }
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--surface);
  transition: border-color 150ms ease, transform 150ms ease;
}
.cover { overflow: hidden; aspect-ratio: 2.45; border-bottom: 1px solid var(--rule); }
.cover-share { background-color: #dedfc9; }
.cover-game { background-color: #dedac6; }
.cover-split { background-color: #cbdbd3; }
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1rem, 1.7vw, 1.55rem);
}
h3 { font-size: clamp(1.3rem, 1.85vw, 1.7rem); letter-spacing: -0.025em; line-height: 1.45; }
.card-body p { margin-top: 0.36rem; padding-bottom: 1.35rem; color: var(--muted); }
.card-foot {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.6rem;
  padding-top: 0.8rem;
  margin-top: auto;
  border-top: 1px solid #dcdcd1;
}
.address { color: var(--muted); font-size: 0.82rem; }
.card-action { color: var(--red); font-size: 0.88rem; font-weight: 650; }
.footer {
  justify-content: space-between;
  min-height: 4.6rem;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.86rem;
}
.footer a { display: inline-grid; align-items: center; min-height: 2.75rem; }
@media (hover: hover) {
  .directory-link:hover, .footer a:hover { color: var(--red); }
  a.card:hover { border-color: var(--ink); transform: translateY(-3px); }
  a.card:hover .card-action { text-decoration: underline; text-underline-offset: 0.22em; }
}
@media (max-width: 52rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero { gap: 1.5rem; }
  .hero-art { aspect-ratio: 1.5; }
  .cards { gap: 0.8rem; }
  .cover { aspect-ratio: 1.9; }
}
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead { min-height: 4.15rem; }
  .brand { font-size: 1.12rem; }
  .brand img { width: 1.8rem; height: 1.8rem; }
  .hero { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 1.9rem 2rem; }
  h1 { font-size: clamp(2.5rem, 9vw, 3.7rem); letter-spacing: -0.05em; line-height: 1.22; }
  h1 br { display: none; }
  .domain { margin-bottom: 0.65rem; }
  .lede { margin-top: 0.7rem; }
  .hero-art { aspect-ratio: 2; }
  .section-heading { margin-bottom: 1rem; }
  .cards { grid-template-columns: 1fr; gap: 1.1rem; }
  .cover { aspect-ratio: 2.55; }
  .card-body { padding: 1.1rem 1.2rem; }
  h3 { font-size: 1.5rem; }
  .card-body p { padding-bottom: 1rem; }
}
@media (max-width: 22rem) {
  .wrap { width: calc(100% - 2rem); }
  h1 br { display: initial; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  a.card:hover { transform: none; }
}
