:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #777;
  --line: #e5e5e5;
  --paper: #fff;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

header,
main,
footer {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

header {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

header a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.02em;
}

main { min-height: calc(100vh - 145px); padding: 72px 0 80px; }

.intro { margin-bottom: 72px; }

h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.search {
  height: 54px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.search span,
.list-meta,
.meta,
footer {
  color: var(--muted);
  font-size: 12px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search input::placeholder { color: #aaa; }

.list-meta {
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.item {
  min-height: 150px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 24px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  animation: enter .4s ease both;
  animation-delay: var(--delay);
}

.item h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.02em;
}

.item p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.meta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta span::before { content: "#"; }

.item b {
  font-size: 20px;
  font-weight: 400;
  transition: transform .18s ease;
}

.item:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.item:hover b { transform: translate(3px, -3px); }

.empty-state { padding: 64px 0; text-align: center; }
.empty-state p { margin: 0 0 16px; color: var(--muted); }
.empty-state button { padding: 0; border: 0; border-bottom: 1px solid; background: transparent; cursor: pointer; }

footer {
  height: 65px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 560px) {
  header, main, footer { width: min(100% - 32px, 760px); }
  header { height: 64px; }
  main { padding-top: 48px; }
  .intro { margin-bottom: 48px; }
  .item { min-height: 132px; padding: 24px 0; }
  .item h2 { font-size: 22px; }
}
