:root {
  --bg: #06131f;
  --bg-soft: #102437;
  --panel: rgba(9, 23, 36, 0.84);
  --panel-strong: rgba(10, 28, 44, 0.95);
  --line: rgba(187, 220, 255, 0.16);
  --text: #eff7ff;
  --muted: #acc3d8;
  --accent: #ff845a;
  --accent-soft: #ffc07e;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 18px;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(255, 132, 90, 0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(108, 200, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #04101a 0%, #071826 52%, #09131e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.35;
}

.page-shell {
  position: relative;
  width: min(1400px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.hero,
.upload-panel,
.board-section {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 24px;
  padding: 34px;
  border-radius: 32px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: #111;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 192, 126, 0.22), transparent 44%),
    var(--panel-strong);
  border: 1px solid var(--line);
}

.hero-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.layout {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.board-section,
.upload-panel {
  border-radius: 28px;
  padding: 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2vw, 2.3rem);
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.toolbar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.toolbar input,
.upload-form input,
.upload-form textarea {
  width: 100%;
  border: 1px solid rgba(220, 234, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.toolbar input::placeholder,
.upload-form input::placeholder,
.upload-form textarea::placeholder {
  color: #7c96ac;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-width: 0;
}

.card-button {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card-button:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 192, 126, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #0f2438;
}

.card-copy {
  padding: 16px 16px 18px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-tag {
  color: var(--accent-soft);
}

.card-title {
  margin: 10px 0 8px;
  font-size: 1.18rem;
}

.card-account {
  margin: 10px 0 0;
  color: var(--accent-soft);
  font-size: 0.92rem;
}

.card-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-subsection {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-subsection strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.88rem;
}

.card-caption,
.card-prompt {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.upload-form {
  display: grid;
  gap: 14px;
}

.upload-form label {
  display: grid;
  gap: 8px;
}

.upload-form span {
  font-size: 0.94rem;
  color: var(--muted);
}

.full-width {
  width: 100%;
}

.form-status,
.empty-state {
  color: var(--muted);
  line-height: 1.6;
}

.post-dialog {
  width: min(1000px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(5, 16, 26, 0.96);
  color: var(--text);
  padding: 28px;
}

.post-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
}

.dialog-layout img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #0d2133;
}

.dialog-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.dialog-note,
.dialog-prompt {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dialog-account {
  margin: 10px 0 0;
  color: var(--accent-soft);
}

.dialog-caption {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dialog-caption pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  line-height: 1.6;
}

.dialog-prompt pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-soft);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .hero,
  .layout,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100vw - 20px, 1400px);
    padding-top: 18px;
  }

  .hero {
    padding: 22px;
  }
}
