.page {
  min-height: 100vh;
  padding-bottom: calc(70px + var(--safe-b));
}

.feed {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 20px 0;
}

/* Hero ------------------------------------------------------------ */
.feed-hero {
  padding: 6px 2px 28px;
}
.feed-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.accent-text {
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.feed-hero p {
  margin: 0;
  max-width: 30em;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hero-meta .pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  font-size: 12px;
}

/* Cards ----------------------------------------------------------- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-card {
  position: relative;
  padding: 19px 20px 15px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  overflow: hidden;
  isolation: isolate;
}
.post-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}
/* Above the body text, below the interactive footer. */
.post-card .card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-avatar {
  width: 42px;
  height: 42px;
  font-size: 13px;
}
.card-meta {
  min-width: 0;
  flex: 1;
}
.card-author {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.005em;
}
.card-time {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-3);
}
.card-title {
  margin: 14px 0 7px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.card-body {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.62;
}
.card-foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  pointer-events: none;
}

.feed-end {
  padding: 44px 0 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* Compose sheet --------------------------------------------------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sheet {
  width: 100%;
  max-width: 560px;
  padding: 8px 20px calc(22px + var(--safe-b));
  background: #14141d;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, 0.8);
  touch-action: none;
}
.sheet-grab {
  width: 40px;
  height: 4px;
  margin: 6px auto 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.sheet h3 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.sheet-textarea {
  width: 100%;
  min-height: 128px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.65;
  resize: none;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.sheet-textarea::placeholder {
  color: var(--text-3);
}
.sheet-textarea:focus {
  border-color: rgba(255, 92, 124, 0.5);
}
.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.sheet-count {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.sheet-submit {
  padding: 11px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.sheet-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sheet-submit:not(:disabled):active {
  transform: scale(0.96);
}
