:root {
  --bg: #f4efe6;
  --bg-2: #e8f4f0;
  --ink: #1f2430;
  --ink-soft: #5c6578;
  --accent: #ff5f3d;
  --accent-2: #1d9bf0;
  --card: rgba(255, 255, 255, 0.84);
  --stroke: rgba(31, 36, 48, 0.15);
  --shadow: 0 22px 48px rgba(25, 40, 68, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: linear-gradient(165deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, #ffb893, #ff5f3d);
  top: -80px;
  left: -50px;
}

.orb-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, #87d6ff, #1d9bf0);
  bottom: -160px;
  right: -120px;
}

@keyframes drift {
  from { transform: translateY(-8px) scale(1); }
  to { transform: translateY(8px) scale(1.03); }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 8;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.layout {
  width: min(1160px, 94vw);
  margin: 24px auto 44px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  animation: fadeIn 500ms ease both;
}

.card:nth-child(2) { animation-delay: 60ms; }
.card:nth-child(3) { animation-delay: 120ms; }
.card:nth-child(4) { animation-delay: 180ms; }

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

.profile-card {
  grid-column: span 8;
}

.wide {
  grid-column: span 12;
}

h1, h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: "Fraunces", serif;
}

h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1.05;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.stack {
  display: grid;
  gap: 10px;
}

input, textarea, select, button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 12px;
  font: inherit;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

button {
  border: none;
  color: white;
  background: linear-gradient(90deg, var(--accent), #ff8f5a);
  font-weight: 700;
  cursor: pointer;
  transition: transform 130ms ease, opacity 130ms ease;
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stroke);
  width: auto;
  padding: 8px 14px;
}

.me-box {
  margin-top: 14px;
  border: 1px dashed var(--stroke);
  border-radius: 14px;
  padding: 12px;
}

.result {
  margin: 10px 0 0;
  background: #182033;
  color: #c8ffcb;
  border-radius: 10px;
  padding: 12px;
  white-space: pre-wrap;
  max-height: 220px;
  overflow: auto;
}

.feed-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.feed-item {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 980px) {
  .profile-card,
  .card,
  .wide {
    grid-column: span 12;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
