/* views/pages/global.css */
*, *:before, *:after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

html {
  height: max-content;
}

body {
  display: flex;
  color: var(--c-black);
  background-color: var(--c-primary-pale);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='24' viewBox='0 0 88 24'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='autumn' fill='%239C92AC' fill-opacity='0.07'%3E%3Cpath d='M10 0l30 15 2 1V2.18A10 10 0 0 0 41.76 0H39.7a8 8 0 0 1 .3 2.18v10.58L14.47 0H10zm31.76 24a10 10 0 0 0-5.29-6.76L4 1 2 0v13.82a10 10 0 0 0 5.53 8.94L10 24h4.47l-6.05-3.02A8 8 0 0 1 4 13.82V3.24l31.58 15.78A8 8 0 0 1 39.7 24h2.06zM78 24l2.47-1.24A10 10 0 0 0 86 13.82V0l-2 1-32.47 16.24A10 10 0 0 0 46.24 24h2.06a8 8 0 0 1 4.12-4.98L84 3.24v10.58a8 8 0 0 1-4.42 7.16L73.53 24H78zm0-24L48 15l-2 1V2.18A10 10 0 0 1 46.24 0h2.06a8 8 0 0 0-.3 2.18v10.58L73.53 0H78z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  flex-direction: column;
  height: 100%;
  font-family: sans-serif;
}

button {
  background-color: var(--c-white);
  border: 1px solid var(--c-grey);
  cursor: pointer;
  transition-property: color, background-color, border-color;
  transition-duration: .15s;
  transition-timing-function: ease-in-out;
  box-shadow: inset 0 -2px 6px #00000026;
}

button:hover {
  background-color: var(--c-grey-pale);
}

button:disabled {
  color: var(--c-grey-light);
  background-color: var(--c-grey-pale);
  border-color: var(--c-grey);
  cursor: auto;
}

#main {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items:  center;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
}

.responsive-container {
  width: clamp(650px, 80%, 800px);
  max-width: 100%;
  padding: 0 16px;
}

.multiline-input {
  border: 1px solid var(--c-grey);
  background-color: var(--c-white);
  border-right: none;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  flex: 1 0 auto;
  padding: 4px 8px;
  transition-property: color, background-color, border-color;
  transition-duration: .2s;
  transition-timing-function: ease-in-out;
}

.multiline-input:disabled {
  background-color: var(--c-grey-pale);
}

.multiline-submit {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  flex-grow: .1;
  min-width: 100px;
  min-height: 100%;
}

.display-none {
  display: none;
}

.display-flex {
  display: flex;
}

/* views/components/post/post.css */
.post {
  border-radius: 8px;
}

.post--is-top-level {
  box-shadow: 0 2px 4px #00000029, 0 4px 8px #0000001a, 0 8px 16px #00000012, 0 16px 32px #0000000d;
}

.post__toggle {
  border-right-width: 0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  width: 16px;
}

.post__inner-wrapper {
  flex: 1;
}

.post__main {
  display: flex;
  border: 1px solid var(--c-grey);
  background: var(--c-white);
  border-bottom-width: 0;
  border-radius: 0 8px 8px 0;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px;
}

.post__main header {
  line-height: 1;
}

.post__main footer {
  display: flex;
  justify-content: space-between;
  align-items:  flex-end;
  line-height: 1;
}

.post__main.post--replied-to {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.post--created-at {
  color: var(--c-grey);
  font-size: 14px;
}

.post__reply-button {
  color: var(--c-grey);
  border-radius: 8px;
  align-items:  center;
  gap: 2px;
  padding: 4px;
  font-size: 14px;
}

.post__reply-button .icon {
  fill: var(--c-grey);
  width: 18px;
  height: 18px;
  transition: transform .2s;
  transform: rotate(0);
}

.post__reply-button:hover .icon {
  transform: rotate(-90deg);
}

.post--collapsed {
  align-items:  center;
  width: 100%;
  padding-left: 8px;
}

.post--is-reply {
  background: var(--c-white);
  border: 1px solid var(--c-grey);
  border-bottom: none;
  border-right: none;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.post__expand-button {
  display: flex;
  border: 1px solid var(--c-grey);
  border-radius: 12px;
  justify-content: center;
  align-items:  center;
  width: 16px;
  height: 16px;
  padding: 0 0 3px;
}

.post--collapsed__header {
  padding: 8px;
}

.post--collapsed__label {
  color: var(--c-grey);
  font-size: 14px;
  font-weight: 400;
}

/* views/components/post_list/post_list.css */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* views/components/post_new/post_new.css */
.post-new {
  display: flex;
}

/* views/components/log_in/log_in.css */
.log-in .log-in__controls {
  border-right-width: 0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  flex: 1 0 auto;
}

.log-in .log-in__submit {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.log-in--sign-up {
  display: flex;
  flex-direction: column;
}

.log-in--sign-up .log-in__control-couplet {
  flex-direction: column;
}

@media (min-width: 430px) {
  .log-in--sign-up .log-in__control-couplet {
    flex-direction: row;
  }
}

.log-in--sign-up .log-in__controls {
  border-bottom-width: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.log-in--sign-up .log-in__submit {
  min-height: unset;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  width: 100%;
  height: 52px;
}

.log-in__controls {
  background-color: var(--c-white);
  border: 1px solid var(--c-grey);
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.log-in__control-couplet {
  display: flex;
  gap: 8px;
}

.log-in__control {
  flex-direction: column;
  width: 100%;
}

.log-in__control input {
  width: 100%;
}

.log-in__label {
  font-size: .875rem;
}

.log-in__submit {
  flex: .5 0 auto;
  width: min-content;
  min-width: 100px;
  min-height: 100%;
}

/* views/components/page_header/page_header.css */
.page-header {
  z-index: 1;
  position: sticky;
  display: flex;
  border-bottom: 1px solid var(--c-primary-very-light);
  background-color: var(--c-white);
  justify-content: center;
  width: 100%;
  top: 0;
}

.page-header__wrapper {
  display: flex;
  color: var(--c-primary);
  justify-content: space-between;
  align-items:  center;
}

.page-header__site-title {
  display: flex;
  align-items:  center;
  font-size: 2rem;
  font-weight: 300;
}

.page-header__site-title .icon {
  position: relative;
  min-width: 26px;
  min-height: 26px;
  top: -2px;
  right: -4px;
  transform: scaleX(-1);
}

.page-header__nav {
  display: flex;
}

.page-header__nav a {
  display: flex;
  color: var(--c-primary-muted);
  background-color: var(--c-white);
  cursor: pointer;
  border-left: 1px solid #000;
  gap: 2px;
  padding: 4px 8px;
  transition: background-color .2s ease-in-out;
  font-size: 16px;
  font-weight: 100;
}

.page-header__nav a .icon {
  fill: var(--c-primary-muted);
  width: 20px;
}

.page-header__nav a:first-child {
  border-left: 0;
}

.page-header__nav a:hover {
  background-color: var(--c-grey-pale);
}

.page-header__nav-label {
  display: none;
}

@media (min-width: 500px) {
  .page-header__nav-label {
    display: inline;
  }
}

/* views/components/page_footer/page_footer.css */
.page-footer {
  display: flex;
  background-color: var(--c-white);
  justify-content: center;
  width: 100%;
}

/* views/components/reply_new/reply_new.css */
@keyframes reply-new--grow-in {
  from {
    max-height: 0;
  }

  to {
    max-height: 4rem;
  }
}

@keyframes reply-new--shrink-out {
  from {
    max-height: 4rem;
  }

  to {
    max-height: 0;
  }
}

.reply-new {
  position: relative;
  overflow: hidden;
}

.reply-new .multiline-input {
  border-top-left-radius: 0;
}

.reply-new .multiline-submit {
  border-top-right-radius: 0;
}

.reply-new__form {
  display: flex;
  width: 100%;
  padding: 0;
}

.reply-new--grow {
  animation: reply-new--grow-in .6s;
}

.reply-new--shrink {
  animation: reply-new--shrink-out .2s forwards;
}

/* views/components/post_overflow/post_overflow.css */
.post-overflow {
  display: flex;
  background-color: var(--c-white);
  border: 1px solid var(--c-grey);
  cursor: pointer;
  border-radius: 8px;
  width: 100%;
  padding: 8px;
}

.post-overflow .icon {
  fill: var(--c-grey);
  transition: transform .2s;
  transform: rotate(45deg);
}

.post-overflow:hover .icon {
  transform: rotate(90deg);
}

.post-overflow:hover .post-overflow__label {
  color: var(--c-primary);
}

.post-overflow__label {
  color: var(--c-grey);
  padding-left: 4px;
  transition: color .2s ease-in-out;
}
