:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: #f6efe8;
  color: #1f2937;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f2eb 0%, #efe2d3 100%);
  color: #1f2937;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.blog-card {
  width: min(860px, 100%);
  background: rgba(255, 251, 247, 0.95);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
}

.blog-hero {
  padding: 0.8rem 0.8rem 0;
}

.blog-hero__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.blog-content-wrap {
  padding: 1.5rem 2rem 2rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
  font-weight: 700;
  color: #a67c52;
}

.blog-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.15;
  color: #1c1917;
}

.blog-meta {
  margin: 0 0 1.1rem;
  color: #7c6d5f;
  font-size: 0.95rem;
}

.blog-content p {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #3f3a33;
}

.blog-content h2,
.blog-content h3 {
  margin: 1.2rem 0 0.6rem;
  color: #1c1917;
}

.blog-content h2 {
  font-size: 1.25rem;
}

.blog-content h3 {
  font-size: 1.05rem;
  color: #7c6d5f;
}

.blog-content p:last-child {
  margin-bottom: 0;
}

.comments-section {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(166, 124, 82, 0.2);
}

.comments-section__header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  color: #1c1917;
}

.comments-section__header p {
  margin: 0 0 1rem;
  color: #7c6d5f;
  font-size: 0.95rem;
}

.comment-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.comment-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #4b3524;
  font-size: 0.92rem;
}

.comment-field--grow {
  grid-column: 1 / -1;
}

.comment-field input,
.comment-field textarea {
  border: 1px solid #e7d8c8;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #fcf7f1;
  color: #1f2937;
  font: inherit;
}

.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comment-thread__item {
  border: 1px solid #eadfce;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 251, 247, 0.9);
}

.comment-thread__item--nested {
  margin-left: 1rem;
  border-left: 3px solid #d8b892;
}

.comment-thread__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: #7c6d5f;
  font-size: 0.86rem;
}

.comment-thread__item p {
  margin: 0 0 0.45rem;
  color: #3f3a33;
}

.comment-thread__actions {
  display: flex;
  justify-content: flex-end;
}

.comment-reply-button {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f4e8dc;
  color: #4b3524;
  font-size: 0.8rem;
}

.comment-empty {
  margin: 0;
  color: #7c6d5f;
  font-style: italic;
}

.edit-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  background: #1f2937;
  color: #fffdf9;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.16);
}

.editor-panel {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.6);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.editor-panel.hidden {
  display: none;
}

.editor-card {
  width: min(700px, 100%);
  background: linear-gradient(135deg, #fffdf9 0%, #f7ebdf 100%);
  border: 1px solid rgba(166, 124, 82, 0.18);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 20px 48px rgba(31, 41, 55, 0.16);
}

.editor-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.editor-badge {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a67c52;
}

.editor-card h2 {
  margin: 0;
  color: #1c1917;
}

.editor-hint {
  margin: 0;
  max-width: 260px;
  color: #7c6d5f;
  font-size: 0.92rem;
}

.editor-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.editor-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #4b3524;
}

.editor-input {
  border: 1px solid #e7d8c8;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #fcf7f1;
  color: #1f2937;
  font: inherit;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.chip-button {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #f4e8dc;
  color: #4b3524;
  font-size: 0.9rem;
}

.editor-area-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #4b3524;
  font-size: 0.9rem;
}

textarea {
  width: 100%;
  min-height: 280px;
  margin-top: 0.2rem;
  border-radius: 14px;
  border: 1px solid #e7d8c8;
  padding: 0.9rem;
  background: #fcf7f1;
  color: #1f2937;
  resize: vertical;
  font: inherit;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font: inherit;
}

button.primary {
  background: #1f2937;
  color: #fffdf9;
}

button.secondary {
  background: #f4e8dc;
  color: #4b3524;
}

@media (max-width: 640px) {
  .editor-card__header,
  .editor-meta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .editor-hint {
    max-width: none;
  }
}
