@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #1e1a16;
  --ink-soft: #4b4137;
  --paper: #f5efe6;
  --accent: #c7542b;
  --accent-soft: #f2d1c3;
  --shadow: rgba(30, 26, 22, 0.12);
  --max-width: 920px;
  --serif: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Work Sans", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff7ee 0%, var(--paper) 55%, #efe3d4 100%);
  min-height: 100vh;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.hero {
  background: #fff9f2;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 60px var(--shadow);
  margin-bottom: 40px;
}

.hero__content {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
}

.hero__avatar img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 12px 24px var(--shadow);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 8px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0 0 6px;
}

.hero__handle {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.hero__meta {
  margin: 0 0 18px;
  max-width: 520px;
}

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

.btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(199, 84, 43, 0.25);
}

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

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.feed {
  display: grid;
  gap: 28px;
}

.post {
  background: #fffdf9;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 14px 40px var(--shadow);
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post__meta img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

.post__meta h3 {
  margin: 0;
  font-size: 1rem;
}

.post__meta p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.post__content {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
}

.post__content a {
  color: var(--accent);
}

.post__media {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.post__media img {
  width: 100%;
  border-radius: 20px;
}

.post__embed iframe {
  width: 100%;
  min-height: 240px;
  border: none;
  border-radius: 16px;
}

.post__actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.post__actions button,
.post__actions a {
  font-size: 0.85rem;
}

.replies {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #efe2d6;
}

.reply {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid #f1e7dc;
}

.reply:last-child {
  border-bottom: none;
}

.reply__meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.reply__meta img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.reply__meta span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer {
  margin-top: 40px;
  text-align: center;
  color: var(--ink-soft);
}

.modal {
  border: none;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 18px 50px var(--shadow);
  max-width: 460px;
  width: calc(100% - 32px);
}

.modal__content {
  padding: 24px;
  display: grid;
  gap: 16px;
  font-family: var(--sans);
}

.modal__content input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e5d7ca;
  font-size: 1rem;
}

.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .post {
    padding: 22px;
  }
}
