/*
 * 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.
 */
 /* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}
/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}
/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  /* 4. Increase line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}
/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}
/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}
button {
    display: inline-block;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
}

body {
  color: darkslategrey;
  background-color: antiquewhite;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  padding: 0 3rem 4rem;
}
.button{
  color: aliceblue;
  background-color:slategrey;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
}
.button-primary{
  background-color: coral;
  color: aliceblue;
}
.button:hover{
  background-color:chocolate;
}
.main-nav{
  display: flex;
  grid-area: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 3px solid coral;
  margin-bottom: 2rem;
}
.main-nav a:not([class]){
  text-decoration: none;
  color: slategrey;
}
a:not([class]):hover{
  text-decoration: underline;
}
.main-nav_buttons{
  display: flex;
  gap: 1rem;
}
input[type="submit"]{
  display: none;
}
main form{
  display: flex;
  flex-direction: column;
  width: 80vw;
  max-width: 500px;
  margin: 2rem 0 2rem;
  align-items: start;
  gap: 1rem
}
input{
  width: 100%;
}
main form div{
  width: 100%;
}
.main-nav_links{
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}
.logo{
  color: coral  ;
  text-decoration: none;
  font-family: Georgia, Times, 'Times New Roman', serif;
  font-size: 2rem;
}
.logo:hover{
  color: chocolate  ;
}
label{
  line-height: 230%;
}
main form textarea{
  width: 100%;
  resize: vertical;
}
.post-text{
  font-size: 1.4rem;
  margin-bottom: 2rem;
  border-bottom: 3px solid coral;
  padding-bottom: 2rem;
}
.post-title{
  font-size: 4rem;
  line-height: 4.5rem;
  margin-bottom: 1.25rem;
}
.author-info{
  opacity: 0.8;
  margin-top: 1rem;
}

.posts{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  align-items: center;
  margin: 5rem 0;
  padding-bottom: 5rem;
  border-bottom: 3px solid coral;

}
.post-card{
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.6rem 1.3rem rgba(0, 0, 0, 0.1);
  width: 70vw;
  max-width: 600px;
}
.post-card h2 a{
  color: coral;
  text-decoration: none;
  &:hover{
    color: coral;
  }
}
.post-card p{
  font-size: 1.2rem;
}
.button-danger{
  background-color: darkred;
}
.button-danger:hover{
  background-color: red;
}
.post-after{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;

}
.post-actions{
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.post-actions form{
  width: auto;
  margin: 0;
}