body {
  align-items: flex-start;
  padding: 2.5rem 1.5rem;
}

.yap {
  width: 100%;
  max-width: 40rem;
  margin: auto;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.yap__header {
  text-align: center;
  margin-bottom: 2rem;
}

.yap__back {
  display: inline-block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: color 0.15s ease;
}

.yap__back:hover,
.yap__back:focus-visible {
  color: var(--text);
}

.yap__title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.yap__bio {
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.yap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.yap-list__item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.7rem;
  padding: 0.7rem 0.9rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.yap-list__item:hover,
.yap-list__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(20, 20, 25, 0.16);
  box-shadow: 0 12px 30px -20px rgba(20, 20, 25, 0.4);
  outline: none;
}

.yap-list__path {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: ui-monospace, monospace;
}

.yap-list__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.yap-list__date {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.78rem;
  white-space: nowrap;
}

#yap-post {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.6rem 1.8rem 2rem;
  box-shadow: 0 16px 40px -24px rgba(20, 20, 25, 0.35);
}

#yap-post h1 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.yap-post__date {
  margin-top: 0.3rem;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.yap-post__body {
  margin-top: 1.2rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.yap-post__body h2 { margin: 1.6rem 0 0.6rem; font-size: 1.2rem; }
.yap-post__body h3 { margin: 1.3rem 0 0.5rem; font-size: 1.05rem; }
.yap-post__body p { margin: 0.8rem 0; }
.yap-post__body ul,
.yap-post__body ol { margin: 0.8rem 0 0.8rem 1.3rem; }
.yap-post__body li { margin: 0.3rem 0; }
.yap-post__body a { color: var(--text); }
.yap-post__body blockquote {
  margin: 1rem 0;
  padding: 0.2rem 1rem;
  border-left: 3px solid var(--card-border);
  color: var(--text-dim);
}
.yap-post__body code {
  background: var(--bg);
  border-radius: 0.3rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
}
.yap-post__body pre {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
}
.yap-post__body pre code {
  background: none;
  padding: 0;
}
.yap-post__body hr {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 1.5rem 0;
}

.yap__footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .yap { animation: none; }
  .yap-list__item:hover, .yap-list__item:focus-visible { transform: none; }
}
