/*
 * 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.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1f2933;
  line-height: 1.5;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1rem;
}

#posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#posts > div {
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

form div {
  margin-bottom: 1rem;
}

form label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

form input[type="text"],
form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  font-size: 1rem;
}

form textarea {
  min-height: 6rem;
}

input[type="submit"],
button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background-color: #2563eb;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

input[type="submit"]:hover,
button:hover {
  background-color: #1d4ed8;
}
