:root {
  --bg: #f5efe4;
  --paper: rgba(255, 251, 245, 0.88);
  --paper-strong: #fffaf2;
  --ink: #17120f;
  --muted: #5f564e;
  --accent: #e4572e;
  --accent-2: #00916e;
  --accent-3: #f3c623;
  --line: rgba(23, 18, 15, 0.12);
  --shadow: 0 24px 60px rgba(60, 36, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(243, 198, 35, 0.35), transparent 26%),
    radial-gradient(circle at top right, rgba(0, 145, 110, 0.24), transparent 24%),
    linear-gradient(145deg, #f8f4eb, #eadfce 58%, #e5d6bc);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero__copy,
.hero__card,
.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero__copy {
  padding: 36px;
}

.eyebrow,
.panel__eyebrow,
.hero__card-label {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.hero__lead {
  max-width: 34rem;
  margin: 18px 0 24px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-pill {
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.hero__card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(228, 87, 46, 0.16), rgba(255, 250, 242, 0.9)),
    var(--paper);
}

.hero__card-main {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.6rem);
  line-height: 1.15;
  font-weight: 900;
}

.hero__card-sub {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.panel {
  padding: 28px;
}

.panel__header {
  margin-bottom: 18px;
}

.post-form,
.field {
  display: grid;
  gap: 10px;
}

.post-form {
  gap: 18px;
}

.field span {
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  color: var(--ink);
  transition: border-color 180ms ease, transform 180ms ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.composer__footer,
.timeline__header,
.post-card__meta,
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.char-counter {
  margin: 0;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
}

.primary-button,
.filter-button,
.clap-button,
.tag-chip {
  border: 0;
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.primary-button:hover,
.filter-button:hover,
.clap-button:hover,
.tag-chip:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 14px 22px;
  background: var(--ink);
  color: #fff8ef;
  font-weight: 700;
}

.timeline__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button,
.tag-chip {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
}

.filter-button.is-active,
.tag-chip.is-active {
  background: var(--accent-3);
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.timeline__list {
  display: grid;
  gap: 14px;
}

.post-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(253, 245, 232, 0.92));
}

.post-card__author,
.post-card__time,
.post-card__content,
.post-card__tempo {
  margin: 0;
}

.post-card__author {
  font-weight: 800;
}

.post-card__time,
.post-card__tempo {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-card__tempo {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 145, 110, 0.1);
}

.post-card__content {
  margin: 16px 0 18px;
  font-size: 1.08rem;
  line-height: 1.8;
  word-break: break-word;
}

.clap-button {
  padding: 10px 14px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

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

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

  .hero__copy,
  .hero__card,
  .panel {
    border-radius: 24px;
  }

  .timeline__header,
  .composer__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
