/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Content-warning blur — see app/javascript/controllers/post_blur_controller.js */
.post-body--blurred {
  filter: blur(12px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.2s ease;
}

/* Comment tree indentation — depth is set via inline style (margin-left)
   generated by the _comment partial from the comment's `depth` field. */
.comment {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.comment__meta {
  color: #666;
  font-size: 0.875rem;
}

.comment__body--tombstone {
  color: #999;
  font-style: italic;
}

/* Phase 19.5 — dynamic error pages (see app/views/errors/*,
   app/views/layouts/error.html.erb). Standalone, no dependency on
   the main application layout. */
.error-layout {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #261b23;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

.error-page {
  padding: 2rem 1rem;
  width: 100%;
}

.error-page__card {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1rem;
}

.error-page__status {
  font-size: 3rem;
  font-weight: 700;
  color: #d30001;
  margin: 0;
  letter-spacing: -0.02em;
}

.error-page__title {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.3;
}

.error-page__body {
  color: #555;
  margin: 0;
}

.error-page__home {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.1em;
}
