:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; color: #fff; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

.site-header {
  min-height: 190px;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center 43%;
  background-size: cover;
  background-repeat: no-repeat;
}
.site-header h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.site-header p {
  margin: 14px 0 0;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}
.story-grid {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.story-card {
  display: block;
  overflow: hidden;
  border: 1px solid #252525;
  border-radius: 14px;
  background: #151515;
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}
.story-card:hover { transform: translateY(-2px); border-color: #555; }
.user-card { border-color: #4f72a8; background: linear-gradient(135deg, #17253a, #111); }
.user-card .story-info { min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.story-card:focus-visible { outline: 3px solid #8b6cff; outline-offset: 3px; }
.story-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #222; }
.story-info { padding: 15px 18px 18px; }
.story-info h2 { margin: 0 0 5px; font-size: 20px; }
.story-info p { margin: 0; color: #aaa; }
.story-badge {
  display: inline-block;
  margin: 0 0 9px;
  padding: 5px 9px;
  border: 1px solid #777;
  border-radius: 999px;
  color: #ddd;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.story-badge.private { border-color: #8b6cff; color: #c9bbff; }
.notice { padding: 30px 20px; text-align: center; color: #bbb; }
@media (max-width: 600px) {
  .site-header { min-height: 140px; padding: 28px 18px; }
  .site-header h1 { font-size: 44px; }
  .story-grid { display: block; padding: 12px; }
  .story-card { margin-bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) { .story-card { transition: none; } }
